Re: Translating foreign text into html code - help
- From: "Jukka K. Korpela" <jkorpela@xxxxxxxxx>
- Date: Wed, 26 Oct 2005 13:27:02 +0300
Garmt de Vries wrote:
Either get a new program for your web authoring work, or get a tool to
change all "special" characters to numeric references.
If he is using a sufficiently new version of MS Word, he could just select File/Save As and select a format like "Web page (filtered)" to get an HTML version, with numeric references. The "filtered" thing or something like that means that MS Word refrains from spitting out most its usual "Office XML" stuff and you get something reasonable like
<p class=MsoNormal><span lang=FI>This is Polish: Wałęsa</span></p>
That's what a version of Word produced. Of course, the lang attribute it inserts is worse than nonsense. It's partly my fault, since I was lazy and didn't set the language in Word. If I paint the text, set its language to English, then click on the Polish name and set its language to Polish, and save as above, I get (here I quote a little more):
<body lang=EN-US>
<div class=Section1>
<p class=MsoNormal>This is Polish: <span lang=PL>Wałęsa</span></p>
</div>
</body>
Not bad. The class attribute has of course no effect per se, and it might even be useful at times. Some day someone might wish to use some styling for paragraphs generated using MS Office software, and the class name MsoNormal is in practice a rather reliable indicator.
Setting the language to Polish has hardly any noticeable effect at present, but it's still the right thing to do. (I guess the most probable situation where it is useful is when someone opens the HTML document in MS Word or some compatible program, which recognizes the lang markup and uses this information in its spelling or grammar checks. Somewhat deceptively, my version of MS Word has no such checks available for Polish, so anything I claim to be Polish will "pass", i.e. will not be flagged by MS Word.)
.
- Follow-Ups:
- Re: Translating foreign text into html code - help
- From: Pierre Senellart
- Re: Translating foreign text into html code - help
- From: Alan J. Flavell
- Re: Translating foreign text into html code - help
- References:
- Translating foreign text into html code - help
- From: gregf
- Re: Translating foreign text into html code - help
- From: Garmt de Vries
- Translating foreign text into html code - help
- Prev by Date: Re: How to align elements and define resize behaviour?
- Next by Date: Re: Translating foreign text into html code - help
- Previous by thread: Re: Translating foreign text into html code - help
- Next by thread: Re: Translating foreign text into html code - help
- Index(es):
Relevant Pages
|