Page MenuHomePhabricator

BiDi: please assure a high degree of fexibility / maintainability of the template syntax with respect to RTL
Closed, DeclinedPublic

Description

Author: gangleri

Description:
original / first URL:
http://yi.wiktionary.org/w/index.php?title=template:sample&action=edit

Hallo!

Sorry for this title!

What is this bug report about?:

Many of you may have tried to edit BiDi text (text where LTR and RTL characters
are mixed together). You must be very patient and exercise a lot to understand
how wiki source text looks like, about the "amaising" "WHAT YOU TYPE IS WHAT YOU
GET" etc. etc.

To keep it simple:
normal LTR syntax is like
{{tempaltename|NAMED_PARAMETER=foo|3=bar|this is the value of parameter
1|TRANSFER_PARAMETER={{{TRANSFER_PARAMETER}}}|continued|with|other|parameters|...}}

At the mentioned URL this syntax would look like
{{tempaltename

NAMED_PARAMETER=foo
3=bar
this is the value of parameter 1
TRANSFER_PARAMETER={{{TRANSFER_PARAMETER}}}
continued
with
other
parameters
...}}

It does not make much sense except that
a) it might be easier to read
b) it allows line by line edits which is much easier in a BiDi environment

In the mentioned URL you will see the lines

...

IPA=
SAMPA=
VARIANTS=
SLANG=
SLANG_YIVO=
AR={{tradarكلب3=<span dir="ltr" ></span>}}
BG={{tradbgкуче(kuče) {{n}}}}, {{tradbgпес(pes) {{m}}}}
CS={{trad-cspes{{m}}}}
DA={{traddahund}}
DE={{traddeHund{{m}}}}
EL={{trad-elσκύλος(skýlos) {{m}}}}
EN={{tradendog}}
EO={{tradeohundo}}
ES={{tradesperro{{m}}}}
ET={{tradetkoer}}
FI={{tradfikoira}}
FR={{tradfrchien{{m}}}}
HE={{trad--heכלב3=<span dir="ltr" >(kélev) {{m}}</span>}}
HU={{tradhukutya}}, {{tradhueb}}
IS={{tradishundur{{m}}}}
IT={{traditcane{{m}}}}
JA={{trad-ja(いぬ, inú)}}
LA={{tradlacanis}}
LT={{trad--lt???}}
LV={{trad--lv???}}
NB={{tradnbhund{{m}}}}
NL={{tradnlhond{{m}}}}
NN={{trad-nnhund{{m}}}}
PL={{trad--pl???}}
PT={{tradptcão{{m}}}}, {{trad-ptcadela{{f}}}},

{{trad|pt|cachorro|{{m}}}}, {{trad-|pt|cachorra|{{f}}}}

RO={{tradrocâine(1990s orthography) {{m}}}}, {{trad-rocîine(1950s

orthography) {{m}}}}

RU={{tradruсобака{{f}}}}, {{trad-ruпёс(pjos) {{m}}}}, {{tradruпсина

(psína) {{f}}}}

SK={{trad--sk???}}
SL={{tradslpes{{m}}}}, {{trad-slpsica{{f}}}}
SR={{trad-srпас(pas) {{m}}}}
SV={{tradsvhund}}
TR={{tradtrköpek}}
ZH={{tradzh(gǒu)}}; {{tradzh(quǎn)}}

...

*benefits*
Contributors can add translations line by line. In the sample template to be
used with <inputbox> the lines for RTL languages are

AR={{trad--arARABIC3=<span dir="ltr" >(LATIN)</span>}}
HE={{trad--heHEBREW3=<span dir="ltr" >(LATIN)</span>}}

*requirement*
Please do not break this (?) not documented freature (?) when modifying template
syntax / when changing the code. Thanks in advance !!!

best regards reinhardt [[user:gangleri]]


Version: unspecified
Severity: enhancement
URL: http://yi.wiktionary.org/w/index.php?title=%D7%94%D7%95%D7%A0%D7%98&action=edit

Details

Reference
bz3983

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:54 PM
bzimport set Reference to bz3983.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

removing direct dependency from bug 745
bug 745: RTL/bidirectional issues (tracking)

This report / request relates to the handling of new lines in a parameter list
where new lines should be "ignored".

*Actions for this request:*
similar to
bug 4356: keep ignoring new line in [[MediaWiki:Ipboptions]]

  1. "Please insert a *comment* in the source code that this behaviour (using new

lines) should not be broken."

  1. Please generate some "testcases".

Thanks in advance!

gangleri wrote:

Please read bug 2248 comment 1
Bug 2248: Wrong treating of the first line of a long template parameter

Bug 2248 identifies the source in the MediaWiki code where the note mentioned at
comment 2 should be added.

Later after generating some testcases this bug / report / request can be closed
as FIXED.

best regards reinhardt [[user:gangleri]]

It already works this way, right? Closing WORKSFORME.

gangleri wrote:

(In reply to comment #4)

It already works this way, right? Closing WORKSFORME.

Yes Brion. But changing this as requested at bug 2248 would break templates like
http://en.wikinews.org/w/index.php?title=Template:Lead_article&action=edit

gangleri wrote:

(In reply to comment #4)

... Closing WORKSFORME.

The 'final' request was not about changing functionality but:

  1. "Please insert a *comment* in the source code that this behaviour (using new

lines) should not be broken."

  1. Please generate some "test cases".

The comment and the test cases should assure that this does not break. Maybe
there is such a comment already in the right place. I would prefer to have this
FIXED.

best regards reinhardt [[user:gangleri]]