- From: <bugzilla@jessica.w3.org>
- Date: Thu, 27 Mar 2014 02:43:23 +0000
- To: www-international@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25136 Martin Dürst <duerst@it.aoyama.ac.jp> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |duerst@it.aoyama.ac.jp --- Comment #19 from Martin Dürst <duerst@it.aoyama.ac.jp> --- (In reply to Leif Halvard Silli from comment #16) > OK, that means that you require visual order. However, for CP862, visual > order does not work cross browser. > > To get it in visual order in a cross browser compatible way you should use > "ISO-8869-8" rather than "DOS-862". Here is what you could do: That should be iso-8859-8, not 8869. Same below. > 1) Let your application convert each Hebrew letter to its numerical > character reference equivalent. For example, convert Hebrew aleph into > א You can also convert it to the actual byte value, at least for those characters in DOS-862 that are also in ISO-8859-8 > 2) Apply the charset label "ISO-8869-8" to the web page. > (For example <meta charset="ISO-8869-8"/>) > > 3) Make sure the dir="" attribute is set to "ltr": <html dir="ltr">. Instead of this, I'd use CSS to apply the same styling as for <bdo dir='ltr'>: direction: ltr; unicode-bidi: bidi-override; > RESULTS: The letters will display in *visual* order not only in Firefox but > also in Safari and Chrome. In IE it might not give you visual order since > visual order only works in quirks mode. Given this data and the web pages are very old, my guess would be that they result in quirks mode anyway. But I might be wrong. > (Of course, you should rather use UTF-8. But then I guess you must first > convert the text from visual to logical order, which sounds more > complicated, to me.) Yes.Converting from visual to logical order is impossible without intervention from a human being understanding the text. But it is possible to convert to UTF-8 and have the text display in visual order. Put the text into <pre> elements or otherwise make sure that line breaks are preserved for display, and apply the style rules given above. -- You are receiving this mail because: You are on the CC list for the bug.
Received on Thursday, 27 March 2014 02:43:24 UTC