Interesting question! Out of curiosity: What's the application for this?
–
JakeNov 14 '12 at 22:22

1

I am learning morsecode and have written a tool that generates soundfiles for me to "study". It also outputs the correct groups of five letters (one "word") in a row of twelve words of what it made into soundfiles. I copy down what I read with my ears, then compare my copy with the printout. I lay the copied down letters below the current row, then compare what I got right or wrong. Having the letters rotated on my printout would free me from rotating them visually ;)
–
ChristianNov 14 '12 at 22:32

Right direction, but changing the 180 to 90 or 270 yields funny output for me as the text is also written from right-to-left now and the characters are overlapping a bit. Also, I don't know how to remove the right-to-left part (deleting one of the rotaing rows doesn't do it).
–
ChristianNov 14 '12 at 22:45

3 Answers
3

This solution is based on soul. \srotate takes the text and rotates the tokens, centered at the math axis. Because of the rotation the side bearings are missing, thus the code adds .05ex around the letters, hyphens get a little more space.

Perfect - I added what I use right now to my question. I wonder, though, why line 05 seems to be out of sync with the spacing of the ther lines (just a bit, starting at the second word)?
–
ChristianNov 14 '12 at 23:24

This looks promising, yet the spaces between words seem to disappear and the letters overlap.
–
ChristianNov 14 '12 at 22:55

Yeah, saw that problem when I added more text. Not sure I'll be able to figure that out as I think that the problem I am having handling that is in the expl3 portion of the code. But haven't given up yet!!
–
Peter GrillNov 14 '12 at 22:59

The idea is just the same, but the text is first split into words and a sequence of words is formed; we apply rotation to every letter, which is then put in a 1.6ex wide box (all vertically centered with respect to the same line with the help of \vcenter).