Hi Rob, for internationalization of HTML help with KITTEN you have
to take care of TWO aspects:

Kitten does not accept HTML (obviously) but does accept escape sequences
like \n for a line break etc. - so you cannot use HTML entities to encode
local chars like Umlauts (ä for example which is in DOS - always IBM437
charset - 0xe4 and which is in ISO-8859-1 (popular for European HTML for
those who do not think Windows-1251 is standard and who are too lazy for the
real ä solution either) 0xe4 (ä)... Uhm... Sigh. Typo...

&auml: -> ISO-8859-1: 0xe4 (ä), DOS CP437: 0x84, Windows-1251 probably 0xe4
as well. And so on. I can send you a list of the small and caps versions of
the a, o and u umlauts in DOS and ISO-8859-1 if you need one. About the
"scharfes s" (ß in html), it is often displayed as a "beta" in DOS,
because there is no real ß in the charset there. Even Linux often has
no separate charset entities for beta and szlig. I prefer to use Swiss German
style spelling where the ß has been completely replaced by double s.
In modern German spelling the ß is used far less often than in the old
spelling but it did (alas) not vanish completely.

Whatever. To process &...; entities (including &#number; style HTML 4 ones),
you will need a switch/case or table for mapping entities to DOS/ASCII
characters. Numbers 0..127 are ASCII and 128..255 are "as selected in the
HTML headers" (e.g. 8859-1) and should all be mappable to displayable things
under DOS. Higher numbers and quite a few of the &name; type entities are not
available in the "DOS" charset anyway and could be displayed as is
(e.g. as the string &something; instead of a single char which is called
something but not available in DOS...).

Eric.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to