Title | JSPWiki shows text backwards for Hebrew |
Date | 15-Feb-2006 17:05:20 EET |
Version | 2.3.72 |
Submitter | 141.7.56.2 |
Bug criticality | MediumBug |
Browser version | Internet Explorer 6.0 |
Bug status | ClosedBug |
PageProvider used | |
Servlet Container | |
Operating System | Microsoft Windows Server 2003 |
URL | "Sandbox" and "Wiki Etiquette" |
Java version | unknown |
An Isreali friend of mine added some sentences to "Sandbox" and "Wiki Etiquette" and the wiki correctly saved them and successfully showed the Hebrew letters. However, because DIR:RTL is not activated, the text does not appear correctly (from the right to the left). You can compare the result of your wiki to that of the correct result from Wikipedia: http://sandbox.jspwiki.org/Wiki.jsp?page=WikiEtiquette with http://he.wikipedia.org/wiki/%D7%90%D7%AA%D7%99%D7%A7%D7%94
He just copied the first two sentences from the Hebrew Wikipedia.
Hi!
Could you cut-n-paste some text here? I'm afraid the sandbox gets rewritten every 24 hours... :)
Here is the test string:
הפילוסופיה של המוסר נקראת גם אתיקה או תורת המידות, והיא ענף של הפילוסופיה העוסק בשאלה 'מה ראוי?' מהי 'המידה הנכונה?'
האתיקה - Εθος = מנהג ביוונית - בעיקרה בוחנת את ההתנהגות האנושית. כלומר כיצד אני מתנהג. כאשר ההתנהגות מאופיינת בהתנהגות תקנית, על פי סטנדרנטים ונורמות או שגויה על פי נורמות שאינן מקובלות בחברה.
השיטה לעיל נקראת השכל הישר (=ההגיון הבריא, common sense) שלפיו ניתן לקבוע מוסר.
The correct presenting should be as seen on (I've copied above the first, second and last paragraphs) :
http://www.jspwiki.org/attach/BugJSPWikiShowsTextBackwardsForHebrew/wikipedia_he-correct.bmp
OK, good, thanks. I'll look into this...
- You could enclose the text in %%(direction:rtl;) .... %% and see the reverse direction. --DF
האתיקה - Εθος = מנהג ביוונית - בעיקרה בוחנת את ההתנהגות האנושית. כלומר כיצד אני מתנהג. כאשר ההתנהגות מאופיינת בהתנהגות תקנית, על פי סטנדרנטים ונורמות או שגויה על פי נורמות שאינן מקובלות בחברה. השיטה לעיל נקראת השכל הישר (=ההגיון הבריא, common sense) שלפיו ניתן לקבוע מוסר.
Good point. I guess this is kinda hard one to fix, unless you specify it at the template level. It's definitely something we need to think about with localization... I recommend you use
<body style="direction:rtl;">...</body>in your ViewTemplate.jsp, or just change the default body CSS to have direction:rtl in it.
Demoting, as there's a workaround.
I believe there should be simple markup such as >>> and <<< for direction:ltr and direction:rtl respectively. Meanwhile, at least indicate how to do such things (as in your example above), in the editing hints / syntax rules.
JSPWiki 2.4.0 includes %%rtl and %%ltr directives for this purpose.
Add new attachment
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
bmp |
wikipedia_he-correct.bmp | 494.9 kB | 1 | 16-Feb-2006 20:07 | 217.132.224.80 |