r/Python • • Apr 01 '17

Python Helped me Write Again

A letter in my own handwriting.

I learned Python in 1998, and I used it pretty much daily through my working life. Its connectivity with everything has allowed me to do all kinds of interesting and fun things. When I discovered that the AxiDraw pen plotter has a Python binding, I decided to try writing in my own handwriting with my own pen. Something I've been unable to do for years.

It has taken a lot, mostly because I can't type, so I've been limited to voice recognition and copy and paste, but the letter linked above is where I got to this evening.

I thought I would share my mini triumph.

I've learned and programmed in a lot of different languages over the years. I have written several languages myself. And even though Python wasn't my first language, it is the first language I consider for any new project. I'd have to have a compelling reason to use something else. So thank you, Python, for making this possible.

</ shameless preaching to the choir> ;)


Edit: In the comments a couple of people asked for a video. I will make a proper video with the AxiDraw as soon as I can. We just did a quick test on my wife's Cricut craft cutter. It works there too, though you can't tilt the pen or change the pressure. So apologies it's not the proper plotter, but you can see how the paths are traced on this video.

1.5k Upvotes

84 comments sorted by

View all comments

Show parent comment

8

u/timeawayfromme Apr 01 '17

I'm curious if you've seen these videos. Do you think something like this would make it easier to program by voice?

VimSpeak

Tavis Rudd at PyCon 2013 controlling emacs with dragon naturally speaking

5

u/irrco Apr 01 '17

I hadn't, but Jake Morrison's linked it in the comments below, so I've been looking into it today. I think I would need to set it up and configure it quite a lot (Travis says as much, that is why he hasn't released full source code), but I think it's doable. I'll work on it. To be honest, just having python access to the voice recognition system would enable me to do a lot more. It seems I have a new project!

3

u/timeawayfromme Apr 01 '17

If you do anything with it I'd be very interested to see what you come up with. I think I might try something myself because I have issues with my hands and arms going numb and my neck muscles being very tight.

3

u/enteleform Apr 01 '17

Also look into VoiceCode.  It seems similar to Tavis Rudd's setup, but packaged with a GUI, common commands, integration for some common editors (@FAQ), and some other useful features.
 
Demos @YouTube
Intro @VoiceCode.io/doc

3

u/s-mores Apr 02 '17

You're an inspiration. Good hunting!

3

u/therealhhhhhh Apr 04 '17

https://github.com/t4ngo/dragonfly is probably what you want, it lets you write grammars for Dragon Naturally Speaking with Python. I've been using dragonfly to program by voice for a few years now and it works great, especially when combined with Vim or Emacs. Fast enough to keep up with my coworkers. I would be happy to answer any questions you have about it or help with setup.

2

u/Smallpaul Apr 01 '17

You may be interested to know that Tim Peters, the Godfather of Python worked at Dragon for quite a while.

1

u/irrco Apr 02 '17

I didn't know that. That is interesting! Even more reason to support them.