Quote:
Originally Posted by jackie_w
Hi Amalthia,
- Created my own MSWord ebook template containing
- a limited number of styles set up to my taste
- a large number of macros which I can use as required
- Created my own standard ebook CSS file which closely matches the ebook template styles - it doesn't have to be exact.
- When I want to clean up a file (RTF, HTML, DOC, TXT), I import the source into my ebook template and apply the styles strictly using the macros. Then I save as Web-Filtered HTML.
- Finally, I edit the HTML as a text file (using a macro) and:-
- remove everything between (and including) the <style>...</style> tags
- replace with a single line linking to a copy of my standard ebook CSS file
Result - simple, clean, readable HTML to import to Calibre.
Anyway, enough from me. I could discuss this stuff for hours but I don't suppose many people would be interested.
P.S. By the way, I use Notepad++ for text editing HTML files because of its automatic colour-coding. It makes it so much easier to find matching start/end tags.
|
I use Notepad ++ for when I want to find and replace all across multiple documents at once.

But yes the color coding is rather nice.

Though at this point with Wordpad it's just habit for me to use and I've been using it for so long switching to something else hasn't been easy.
I mostly just use Wordpad to open the html so I can copy and paste the html into Word (run my macros) and then recopy it back into Wordpad and save.
WordPerfect Plain HTML has so far given me the least amount of work when it comes to cleaning up the HTML. I use stylesheet elements in the Look and Feel section css override box.
The reason I only added my method of conversion and cleaning up the docs is that because I thought it would be more confusing to add all the other ways people can clean up their HTML. The goal was to give the people one way and then from there they can start exploring other options. The tutorial is actually geared towards newbies to formatting and I also wanted to stick with programs they should have on their computer like Wordpad. I know for me when I first saw Notepad ++ it was a bit overwhelming with all the options at the top.
I also tried the MS Word save as html, filtered and it was impossible to read through and I dreaded making macros to try and clean that up. For many years I was using Word 97 to save as HTML. I upgraded to Word Perfect because I heard from someone that it does save as html in plain html. (most of the times)
I do think for people who are not as familiar with HTML it's easier to read plain html vs the code MS Word throws in.
Having said all that if you're willing to create an html page with screencaps outlining all your steps I'd be willing to add it to the tutorial.
I think as long as we point out there are multiple ways to clean up the HTML depending on what program your using and specify the programs then it should work. I do think more people have MS Word than Word Perfect so most will probably try the save as html, filtered option.
The reason I didn't cover it myself is because I never use that method, I don't have any macros set up for it, and I wasn't about to add stuff to a tutorial in which I haven't tested and used first.