Home » Community » Coffee corner » HTML viewer
Re: HTML viewer [message #60028 is a reply to message #60027] |
Tue, 11 July 2023 13:14   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
Oblivion wrote on Tue, 11 July 2023 12:37Hi,
In case you've missed it, we already have a fully functional html-5 parser (and sanitizer/prettifier as a bonus) now.
(Of course, I am aware that Mirek's code serves another purpose, but a fully-fledged HTML->QTF converter, using HtmlTools package would too be very easy to implement.)
Humor me 
I have actually noticed this, but "It corrects and cleans up HTML and XML documents by fixing markup errors and upgrading legacy code to modern standards." does not seem like going too far into rendering stuff.
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...
Mirek
|
|
|
Goto Forum:
Current Time: Sat Aug 23 22:39:01 CEST 2025
Total time taken to generate the page: 0.05210 seconds
|