BiDi issues related to the "In other language" section should be fixed in Names.php
Closed, ResolvedPublic


Author: gangleri


See how the standard BiDi character rendering of your browser handles
thecharacters "(" and ")" in the Language names *Norsk (nynorsk)* and *Norsk
(bokmål)* at

Please tray the following in *Names.php*:

'nb' => 'Norsk ‭(‬bokmål‭)‬', # Norwegian (Bokmal)
'nn' => 'Norsk ‭(‬nynorsk‭)‬' , # Norwegian (Nynorsk)
'no' => 'Norsk ‭(‬bokmål‭)‬', # Norwegian

and similar fixes for:
'za' => '(Cuengh)', # Zhuang
'zh' => '中文', # (Zhōng Wén) - Chinese
'zh-cfr' => '閩南語', # Min-nan alias (site is at minnan)
'zh-cn' => '中文(简体)', # Simplified
'zh-hk' => '中文(繁體)', # Traditional (Hong Kong)
'zh-min-nan' => 'Bân-lâm-gú', # Min-nan
'zh-sg' => '中文(简体)', # Simplified (Singapore)
'zh-tw' => '中文(繁體)', # Traditiona


Unicode Character LEFT-TO-RIGHT OVERRIDE - U 202D
and similar BiDi
bug 3922: enhancement: adjust BiDi mess in category list

Please note that if other relevant BiDi characters are included in the actual /
future Name.php as ",", ".", "!", "?", ":" which renders depending of RTL / LTR
these shoud be handeled in a similar way:

if the name has to be written as LTR text the use:
&#8237;<BiDi character>&#8236;
if the name has to be written as RTL text the use:
&#8238;<BiDi character>&#8236;

Thanks in advance for your efforts.

best regards reinhardt [[user:gangleri]]

Version: unspecified
Severity: enhancement

bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz3953.
bzimport created this task.Via LegacyNov 13 2005, 6:37 PM
bzimport added a comment.Via ConduitNov 22 2005, 2:13 AM

gangleri wrote:

unified patch for bug 03953 caution: file contains characters coded as &amp;#nnnn;

Thanks to Borgx / Stanley for the help.

Please test the patch in an wikifarm both at a LTR and at a RTL wiki.

regards reinhardt [[user:gangleri]]

Attached: unified_patch_for_bug_03953.txt

bzimport added a comment.Via ConduitNov 25 2005, 10:39 AM

gangleri wrote:

the line
'ks' => 'कश्मीरी - (كشميري)', # Kashmiri
should be changed as well to

'ks' => '&#8234;कश्मीरी &#8237;-&#8236; (كشميري)&#8236;', # Kashmiri

compare with

bzimport added a comment.Via ConduitDec 3 2005, 4:29 PM

gangleri wrote:

removed "need-review, patch"

Problems about the rendering of the general punctuation characters in various
browsers as Konqueror have been reported.

Please wait with the implementation of this bug until an optimal solution is found.

Testcases are available at [[wiktionary:yi:project:bugzilla/03953]]. If you use
other browsers then testes until now please add a comment about the behavior.
Thanks in advance!

bzimport added a comment.Via ConduitDec 3 2005, 4:31 PM

plugwash wrote:

isn't it considered better practice to use html for text direction control on
the web?

bzimport added a comment.Via ConduitDec 3 2005, 4:55 PM

gangleri wrote:

(In reply to comment #5)

isn't it considered better practice to use html for text direction control on
the web?

Thanks Peter for the question. Please see
Bug 2453: [[Special:Allmessages]] should provide information about the type of
the MediaWiki message

Not all MediaWiki messages are rendering HTML, some eaven do *not* render UTF-8
characters coded in &#nnnn; or &#xnnnn; notation.

Hashar will check what is allowed to be used inside the names at Names.php.

Nikerabbit added a comment.Via ConduitFeb 28 2007, 4:38 PM

Added some hints to the problematic cases for the Bidi algorithm in r20081.

brion added a comment.Via ConduitMar 5 2007, 3:43 PM

Manual \xxxx codes seem fragile and ugly here. Might it be nicer to slap these
on programmatically?

Jidanni added a comment.Via ConduitApr 16 2008, 3:24 PM

All I know that I'm using w3m to browse, and see these funny
unprintable LEFT-TO-RIGHT EMBEDDING U+202A etc. characters on the
Norse link.

$ wwwoffle -o |
perl -nlwe '/(>...Norsk.*)</&&print $1' |uni2ascii -wa P

U+202A Norsk (bokmU+00E5 l)U+202C </a>

The other links on that page have no such extra wrapping characters.

OK, I suppose Norse must have special needs, but it looks weird.

Add Comment