On 2023-10-03 19:06, Jukka K. Korpela wrote:
> Robert Prins wrote:
>
>> I've got a tiny, no pun intended, problem with the size="2" font, size=2 and
>> font-size: 81.0% are obviously not the same, but life's way too short to
>> figure out the decimals.
>
> I have no idea why you are converting old documents to new format,
> but maybe there is a reason. If you just keep the documents on the web
> and make some updates and additions, I don't see why you would not work
> with their existing HTML and CSS code. If you want to make a major revision, it
> is probably faster and better to design new templates and
> start with them, just copying content from old documents as needed.
I do it because I have too much time on my hands, and as I wrote, I've written a
bit of REXX to almost completely automate the conversion, so I'm hitting two
birds with one stone, I make the content more easily (not via
archive.org)
available again on a site that tries to collect as much hitchhike material as
possible, Bernd Wechner has indicated that he no longer has the time to keep his
<
https://bernd.wechner.info/Hitchhiking/> site up-to-date, and I keep my grey
cells active during those times that I'm not working on my other hitchhike
statistics programs and an ongoing discussion to see if it's possible to define
an DTD to define hitchhiking data recorded by various hitchhikers, who now all
use their own totally incompatible formats.
Anyway, there are still a few loose ends to tidy up in the REXX exec, like
processing <font> tags with multiple attributes, but I'll iron these out once
I'm back from hitchhiking to the Netherlands (later this week) and back to
Lithuania again (early next week), and if you ask why? My father has Alzheimer.
> But the specific problem you mention looks simple to me: the values
> of the size attribute of the <font> element was meant be numeric values
> from 1 to 7, corresponding to an implementation-defined set of font sizes, in
> increasing order. Specifically, <font size=2> corresponds to
> font-size: small in CSS, as explicitly described at
>
https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3
That seems to solve the issue, well almost, as using these "textual" sizes
correct the font, but there's still flutter in the line-spacing, with "small",
the line-spacing is visibly larger than with size=2, but, as I already
mentioned, that is not my problem, which is the much wider calculated size of
the table compared to the specified size.