Page MenuHomePhabricator

influencing the BiDi algorithm to clearly distinguish between the signature and the date and time
Open, LowPublic

Description

Author: gangleri

Description:
Dear friends,

wiki syntax allows three constructs

« ~~~ » a shortcut for the signature
« ~~~~~ » a shortcut for the date

and

« ~~~~ » a shortcut for signature and date

One would expect that the rendering of « ~~~~ » would be

in a LTR wiki:

at the left « ~~~ » folowed by « ~~~~~ » at the right

in a RTL wiki

at the right « ~~~ » folowed by « ~~~~~ » at the left

This is mostly *not* the case because

a) of the arbitraty content od the signatures,
b) of the fact that the characters « o » to « 9 » , « . » , « : » are regarded by the bidirectional algorithm as « neutral » regarding their directionality;
c) in some wikis not all month names are translated / have the same directionality as the content language;

bug fix request:

please embed all relevant parts of the date in blocks as specified at

  1. https://bugzilla.mozilla.org/show_bug.cgi?id=406406 BugZilla Mozilla b u g 406406 – remedy against BiDi interference caused by the (arbitrary) content of various fields
  2. [[commons:template:style/ril]] see also [[commons:template talk:style/ril#explanations]] = the url of this bug

note:
Originaly I planed to name the summary of this bug report « safe embedding of signatures in wiki pages » .

The implementation should take care about the *embedding* of the result / the code generated by « ~~~~ » in the wiki pages. Normaly it is supposed that the contributors contribute in the content language.

This means that in a RTL wiki « ~~~~ » should have RTL directionality while in a LTR wiki « ~~~~ » should have LTR directionality. It might confuse contributors writing in languages with another directionality but this would be an exception. If these contributors are able to contribute there they should be aware about directionality issues.

Please do not hesitate to contact me if there are any questions.

Best regards Reinhardt [[user:gangleri]]


Version: unspecified
Severity: normal
URL: http://commons.wikimedia.org/wiki/Template_talk:Style/ril#explanations

Details

Reference
bz12225

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:56 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz12225.

gangleri wrote:

an example is available at [[commons:user:לערי ריינהארט#bugzilla_012225]]

gangleri wrote:

re: comment #c1

an example is available at [[commons:user:לערי
ריינהארט#bugzilla_012225]]

an example is available at
[[commons:user:לערי ריינהארט#bugzilla_012225]]

gangleri wrote:

see the behaviour and worarounds at
[[wik:yi:template talk:style/ril]]

gangleri wrote:

(In reply to comment #3)

see the behaviour and worarounds at
[[wik:yi:template talk:style/ril]]

should read [[wikt:yi:template talk:style/ril]]

gangleri wrote:

Hi! Sorry for reopening this.
Please see http://en.wikipedia.org/?curid=1003506#bugzilla:012225

My signature was always interfearing with the digis ( being of directionality nutral).

I repeat what is written at the url from above:

~~~~ should be equivalent in a LTR wiki to:
<span dir="ltr" /><span dir="ltr">~~~<span /><span dir="ltr" /> <span dir="ltr">~~~~~<span />

the technique is similar as described at bug 36803

Best regards Reinhardt

gangleri wrote:

reposting without escaping "<" and ">"

~~~~ should be equivalent in a LTR wiki to:
<span dir="ltr" /><span dir="ltr">~~~<span /><span dir="ltr" /> <span dir="ltr">~~~~~<span />