I was stuck on a train WITHOUT A PEN OR PENCIL and had a brainwave about the Ph.D. So I used the Memo function on my Samsung phone to jot those ideas down.
But how to transfer those ideas onto a more useful device, like a computer? A day later, I came up with this as a solution. You will need Bash and libxslt.
I don't know if it works for other phones: if it can be extended, go for it!