Originally Posted by Jack Tingle
Well, except for Freda which uses .NET components like ... the Majestic-12 HTMLParser
Yep, I just use the free Majestic-12 parser to give me the tag types and contents, and decode the content into a simplistic (by design) format of 'lightly decorated text'. Then I have written a (once again, simplistic) renderer that puts that text onto bitmaps.
Advantages of this approach:
- since I wrote the renderer myself I have complete control over how it works (so animated page turning etc. is doable);
- it can be quick to run and light on memory usage.
- it's never going to produce beautifully laid out text that looks 'just like the author intended'. But then the author probably didn't intend their book to be read on a screen that was only 4cm wide ...
Anyhow, if you want to see how it was done, this is the source code