m. c. de marco: To invent new life and new civilizations...

sffms2txt

Last night when I should have been sleeping, I was writing sffms2txt, a LaTeX-to-plain text converter for sffms or other simple LaTeX files—ostensibly so that I can send one of my stories to a market that requires plain text submissions.

The one exciting feature of sffms2txt that sets it above detex and query replace is the choice of pseudo-italics:

  • *single asterisks*
  • **double asterisks**
  • _single underscores_
  • __double underscores__
  • or no distinguishing markup at all

The php source is available upon request.