View Single Post
Old 06-10-2007, 12:22 PM   #33
EatingPie
Blueberry!
EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.EatingPie puts his or her pants on both legs at a time.
 
EatingPie's Avatar
 
Posts: 888
Karma: 133343
Join Date: Mar 2007
Device: Sony PRS-500 (RIP); PRS-600 (Good Riddance); PRS-505; PRS-650; PRS-350
Quote:
Originally Posted by JSWolf View Post
I don't have any issues with using the command line. What I would like is to know the commands to convert a CLIT output HTML from LIT format. Either it's not working or I'm doing something wrong. I have no idea.
Okay.

There's two approaches.

First you can just trust that pielrf does the right thing, and use the "--strip-html" command line switch. This will run pielrf as usual, and strip out any of the html it doesn't know.

The second is to use the striphtml utility before running pielrf. This will do the exact same thing as "--strip-html" but output another text file for you to look at / edit.

I prefer pre-stripping with striphtml and then editing that file and feeding it to pielrf. CLIT creates pretty complex HTML, and if you want to add the "<chapter>" tags, pre-stripping makes that a lot easier. It also allows you to clean up any HTML that striphtml didn't get rid of.

-Pie
EatingPie is offline   Reply With Quote