Home » Community » Coffee corner » HTML viewer
Re: HTML viewer [message #60034 is a reply to message #60028] |
Tue, 11 July 2023 13:52   |
Oblivion
Messages: 1226 Registered: August 2007
|
Senior Contributor |
|
|
Quote:Parsing HTML is (relatively) easy. Where it gets hard IMO is where you have to interpret styles to have some meaningful rendering info. Font sizes, colors, line styles and width and such.. I have not checked too deeply, but few examples I have seen do not seem to deal with that stuff at all...
Of course, you are right. It is not meant to build a web renderer and it does not parse CSS. But it let's you focus on everything else (i.e. in this case parsing CSS, without worrying too much about even colossal HTML pages.). And I can tell you from my experience with libtidy that it makes life so much easier if you are working with web pages. The parser part itself is very fast and is long battle-tested (after all, it is one of the "eldest" parsers).
Best regards,
Oblivion
Github page: https://github.com/ismail-yilmaz
Bobcat the terminal emulator: https://github.com/ismail-yilmaz/Bobcat
[Updated on: Tue, 11 July 2023 13:53] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Aug 23 22:41:45 CEST 2025
Total time taken to generate the page: 0.03680 seconds
|