OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 4 <title>Charsets and submitting forms</title> |
| 5 </head> |
| 6 <body> |
| 7 <form action="?" name="f"> |
| 8 <!-- This example comes from page 9 of the SBL Hebrew Font User Manual http://w
ww.sbl-site.org/Fonts/SBLHebrewManualv1.5.pdf |
| 9 "The final four characters of this word are correctly encoded in the order
lamed + patah + hiriq + final mem, |
| 10 and the word is correctly displayed ...; however,the faulty canonical comb
ining classes |
| 11 for patah and hiriq in Unicode cause hiriq to always precede patah when re
ordering due to |
| 12 normalisation is applied. The resulting sequence lamed + hiriq + patah + f
inal mem is both |
| 13 textually incorrect and cannot be correctly displayed by the SBL Hebrew fo
nt" --> |
| 14 <input type="hidden" name="q" value="יְרוּש
ָׁלִַם" style="font: 40pt 'SBL Hebrew';"><br
> |
| 15 </form> |
| 16 <script> |
| 17 if (window.testRunner) { |
| 18 testRunner.dumpAsText(); |
| 19 testRunner.waitUntilDone(); |
| 20 } |
| 21 |
| 22 if (document.URL.substring(0, 4) == "file") { |
| 23 |
| 24 if (document.URL.indexOf('?') == -1) { |
| 25 document.f.submit(); |
| 26 |
| 27 } else { |
| 28 if (unescape(document.URL.substring(document.URL.indexOf('?') + 1, docum
ent.URL.length)) == unescape("q=%D7%99%D6%B0%D7%A8%D7%95%D6%BC%D7%A9%D6%B8%D7%81
%D7%9C%D6%B7%D6%B4%D7%9D")) |
| 29 document.write("<p>Success</p>"); |
| 30 else |
| 31 document.write("<p>Failure</p>"); |
| 32 |
| 33 if (window.testRunner) |
| 34 testRunner.notifyDone(); |
| 35 } |
| 36 |
| 37 } else { |
| 38 |
| 39 document.write("<p>This test doesn't work directly from bugzilla, please sav
e it to a local file first.</p>"); |
| 40 } |
| 41 </script> |
| 42 </body> |
| 43 </html> |
OLD | NEW |