Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.