Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a large sum of e-books that I need to have converted into .xht format. It's apparently pretty difficult to do judging from the lack of information on the internet. Or maybe it's just a really obscure conversion.

Either way, it would be great if anyone could help me out.

share|improve this question
up vote 1 down vote accepted

You may want to look into the txt2html Perl script. There is a --xhtml argument you can pass to output XHTML instead of HTML.

I don't see any arguments in the documentation specifically for converting a whole directory of files, so you may need to write a small script that loops through each file in your directory, then calls txt2html on it.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .