Open
Bug 406406
Opened 17 years ago
Updated 8 years ago
remedy against BiDi interference caused by the (arbitrary) content of various fields
Categories
(Bugzilla :: User Interface, defect)
Bugzilla
User Interface
Tracking
()
NEW
People
(Reporter: gangleri, Unassigned)
References
()
Details
Attachments
(9 files)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070427 Firefox/2.0.0.3 Build Identifier: inserted manualy: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070427 Firefox/2.0.0.3 adding an attachment later bug_bugzilla_mozilla_·_BiDi_readability_problem_·_comment_information_·_01.html another url: https://bugzilla.mozilla.org/show_bug.cgi?id=319331#c3 Dear friends, The BiDi algorithm does not influence / interfere at tables. The content of one cell will not interact with the content of another cell. However in lists where <item_1> <item_2> ... <item_n> is displayed the arbitrary content in the items can interfere and visitors of the page may not recognize what content relates to what item. There are some methods in order to « stabilize » such lists under certain conditions. I describe here the example where no General Punctuaution Characters are present in the list items. The method explained gives good results. The basic principle is to embed the items inside ‎<span style="direction: ltr; " > and a></span>‎ or similar / equivalent constructs.if the page is designed with LTR directionality *or* ‏<span style="direction: rtl; " > and a></span>‏ or similar / equivalent constructs.if the page is designed with RTL directionality. note: In the attachment the characters of the International Phonetical Alphabet (IPA) will / may not render properly. Please change the attachment with the approriate fonts inside « font-family ». Maybe you will find a solution which renders both the IPA and Hebrew character in a usefull font. Best regards Reinhardt [[user:Gangleri]] P.S. Please let me know if you know better methods to achive the same result. Reproducible: Always Steps to Reproduce: at the url from above at anytime this may happen in general at fields with BiDi content Actual Results: not satisfactory Expected Results: the fix should be easy note: a) The more complicated cases relating to objects containing BiDi is handeled by Bug 320273 – BiDi: request for a "BiDi balancing function" to avoid BiDi overlapping between objects b) related topic Bug 324359 – BiDi control characters can disfigure e-mail notifications
Reporter | ||
Comment 1•17 years ago
|
||
attachment bug_bugzilla_mozilla_·_BiDi_readability_problem_·_comment_information_·_01.html as promised above
Reporter | ||
Comment 2•17 years ago
|
||
added a second attachment where the user name ends with RTL followed by a closing parentheses; the user name is now lɛʁi____(לערי ריינהארט) To my understanding the remedy still works. It can be broken / it might be broken if the user name contains additional General punctuation characters as Unicode Character 'POP DIRECTIONAL FORMATTING' - U+202C HTML Entity (decimal) ‬ – (hex) ‬ – UTF-8 (hex) 0xE2 0x80 0xAC (e280ac) %E2%80%AC %e2%80%ac Best regards Reinhardt [[user:Gangleri]]
Reporter | ||
Comment 3•17 years ago
|
||
added an example using ‎‪foo bar‬‎ embeding # Unicode Character 'LEFT-TO-RIGHT EMBEDDING' - U+202A HTML Entity (decimal) ‪ – (hex) ‪ – UTF-8 (hex) 0xE2 0x80 0xAA (e280aa) %E2%80%AA %e2%80%aa # Unicode Character 'POP DIRECTIONAL FORMATTING' - U+202C HTML Entity (decimal) ‬ – (hex) ‬ – UTF-8 (hex) 0xE2 0x80 0xAC (e280ac) %E2%80%AC %e2%80%ac It works as well. Personaly I prefer *not* to use General Punctuation characters as « immediate neighbours » of a text which could be copied and pasted by myself or other users. There is a « high risk » that General Punctuation get copied and pasted by mistake and can *harm* the target page. This is why I try to embed such text either as ‎<span style="direction: ltr; ">« foo bar »</span>‎ or as ‎‪« foo bar »#8236;‎ Best regards Reinhardt [[user:Gangleri]]
Comment 4•17 years ago
|
||
This is the case with parentheses that I had in mind
Reporter | ||
Comment 5•17 years ago
|
||
(In reply to comment #4) > Created an attachment (id=291611) [details] > another testcase with parentheses > > This is the case with parentheses that I had in mind Dear Simon, comparing your test case http://gangleri.pastebin.com/f4ad4abd8 https://bugzilla.mozilla.org/attachment.cgi?id=291611&action=edit <A href="mailto:gangleri@torg.is">lɛʁi____לערי (ריינהארט)</A> against mine http://gangleri.pastebin.com/f7aac75fd https://bugzilla.mozilla.org/attachment.cgi?id=291610&action=edit ‪<A href="mailto:gangleri@torg.is">lɛʁi____(לערי ריינהארט)</A> ---- This bug ( bug 406606 ) is about limiting the interfearence of the content of *one* field against the content of *other* fields by the bidirectional algorithm . This bug is neither about the *optimal character stream* required to render "an idea" in a specific (LTR | RTL) directionality environment nor about some future attributes about an entity (in this case the user names pecified in preferences) and its suitable directionality the last is handeled in Bug 407067 – in a real environment providing full BiDi support each entity should have its own BiDi properties To achive what you suggest I would use: lɛʁi____( I probably would add a « ‎ » here לערי ריינהארט) Best regards Reinhardt [[user:gangleri]]
Reporter | ||
Comment 6•17 years ago
|
||
Dear friends, The summary is a large issue which should be a report to which many items are related. However I opened the report because of the BiDi mess at https://bugzilla.mozilla.org/show_bug.cgi?id=406398#c1 Please open a more specific report if necessary. Please see also additional mess at a Bugzilla installation using a mailto icon at http://bugzilla.wikimedia.org/show_bug.cgi?id=12244 b u g 12244 BiDi « .css » error at « MediaZilla » see the attachment http://bugzilla.wikimedia.org/attachment.cgi?id=4422 there I recommend also to read http://bugzilla.wikimedia.org/show_bug.cgi?id=12243 b u g 12243 « main.css » ( and « rtl.css » ) should use the directionality « inherit? » for « non-textual entities »
Reporter | ||
Comment 7•17 years ago
|
||
screen dump follows please see the difference in rendering when either dir="foo" or style="direction: rtl;" is used
Reporter | ||
Comment 8•17 years ago
|
||
screen dump for attachment 294153 [details] using
Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070427 Firefox/2.0.0.3
on KDE 3.5.5
Reporter | ||
Comment 9•17 years ago
|
||
screen dump follows please see the difference in rendering when either dir="foo" or style="direction: rtl;" is used
Reporter | ||
Comment 10•17 years ago
|
||
screen dump for attachment 294155 [details] using Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.3) Gecko/20070427 Firefox/2.0.0.3 on KDE 3.5.5 Questions: Is the difference in rendering when either dir="foo" or style="direction: foo;" is used another bug? P.S. Neither did I generated the full code as can be seen at http://yi.wikisource.org/wiki/user_talk:Jiddisch#.D7.9C.D7.A2.D7.A8.D7.99_.D7.A8.D7.99.D7.99.D7.A0.D7.94.D7.90.D7.A8.D7.98 nor did I expect the fact thet the ‎'s are now inside the spans. In the template definition at http://yi.wikisource.org/wiki/template:style/ril?action=edit the ‎'s are outside of the span. I do not know how much css is involved at the rendering of http://yi.wikisource.org/wiki/user_talk:Jiddisch best regards Reinhardt [[user:Gangleri]]
Reporter | ||
Updated•17 years ago
|
Attachment #294153 -
Attachment description: /bug_landfill_bugzilla_003304_·_BiDi_readability_problem_·_03_·_LTR.html → bug_landfill_bugzilla_003304_·_BiDi_readability_problem_·_03_·_LTR.html
Reporter | ||
Comment 11•17 years ago
|
||
note: achiving the goal is not easy because of existing bugs in various browsers The screen dump shows what happens if the window size is changed and where directionality neutral characters are moving. The page used there was http://yi.wiktionary.org/w/index.php?title=project:IRC&oldid=11505 After making the screen dump I made http://yi.wiktionary.org/w/index.php?title=project:IRC&diff=prev&oldid=11508 The new version is http://yi.wiktionary.org/w/index.php?title=project:IRC&oldid=11508 where every directionality neutral character is between an leading and trailink ‎ . This is absurd. Best regards Reinhardt [[user:Gangleri]]
Updated•8 years ago
|
Assignee: general → ui
Status: UNCONFIRMED → NEW
Component: Bugzilla-General → User Interface
Ever confirmed: true
You need to log in
before you can comment on or make changes to this bug.
Description
•