Jump to content

Ontology talk:9k/RD/Q56,84/rtl: Difference between revisions

Page contents not supported in other languages.
From LithoGraphica
Reversedragon (talk | contribs)
m dummy text - old-style machine translation was used
Reversedragon (talk | contribs)
explanation
 
Line 12: Line 12:


{{/هيو,Hue/}}
{{/هيو,Hue/}}
== Source text ==
<pre>
{{NextNineThousand|E=Q618|User=RD|Contents=y|اسم=توايلايت سباركل}}
== المقال الرئيسي ==
{{Hue|style=HueCSS/v1|ff1=ML|ff2=DFy}}
{{li|start=y|I=S1/DFy|Q=618|Q2=618}}توايلايت سباركل  ->  بعد الموسم الخامس من البرنامج
{{/هيو,Hue/}}
</pre>
<p dir="ltr">This is a page created purely for testing right-to-left text, and not for anything else. I was rewriting Hue list CSS, having finally decided to overhaul both the HTML markup and CSS of Hue lists after putting that off for a while, and decided that part of doing that properly was taking out the hardcoded assumption Hue lists would go left-to-right. So, I threw together this page full of 'fake' Arabic text (well, it's made of real Arabic words, but the phrases are either taken from Wikipedia headings or machine translated), tried to make sure that the source text for the page flowed well with the new right-to-left strings in it, and called it good. I thought this would be more authentic-looking than just turning English into a right-to-left script or something; it at least contains non-English fonts if nothing else. But, I had to change the sample entry I was testing my CSS on from "Starlight Glimmer" to "Twilight Sparkle" to easily find a translation. Hence the different Item number.</p>
<p dir="ltr">Overall, I think Hue markup looks pretty good in right-to-left text. The right-to-left editor took some getting used to, and the way text direction changes interact with brackets and tags is still really obnoxious. (Every time I wanted a Template to not end up garbled by text typing into the wrong place I had to retype the whole thing manually from the beginning! Monitoring it all carefully to make sure the braces went here and then the Latin went here and the pasted Arabic went there.)<br/>
Compared with English pages, there is one major change needed to make right-to-left text and Templates play well together: the "Item alias" parameter (here called «اسم» or "ism") needs to be in a script that is unambiguously right-to-left; if the alias parameter goes RTL, then the LTR parts of the Template can stream out the beginning of the line while the RTL parts stream out the end. I will figure out a way to turn "ism" back into a cryptic abbreviation like "PPPA" later so it would apply equally well to other languages like Persian. For a proof of concept I only created for rewriting Hue list CSS to be able to point left, this is good enough for now.</p>


[[Category:Text pages for testing HueCSS]]
[[Category:Text pages for testing HueCSS]]

Latest revision as of 08:05, 1 October 2026

Content warnings

  • Potentially bad translation — I don't actually speak Arabic, so the text below is dummy text faking what a page in Arabic looks like

المقال الرئيسي

  1. توايلايت سباركل (اي ليتل بوني: فرندشيب إز ماجيك) [١] [٢]
  2. توايلايت سباركل -> بعد الموسم الخامس من البرنامج

Source text

{{NextNineThousand|E=Q618|User=RD|Contents=y|اسم=توايلايت سباركل}}
== المقال الرئيسي ==
{{Hue|style=HueCSS/v1|ff1=ML|ff2=DFy}}

{{li|start=y|I=S1/DFy|Q=618|Q2=618}}توايلايت سباركل  ->  بعد الموسم الخامس من البرنامج

{{/هيو,Hue/}}

This is a page created purely for testing right-to-left text, and not for anything else. I was rewriting Hue list CSS, having finally decided to overhaul both the HTML markup and CSS of Hue lists after putting that off for a while, and decided that part of doing that properly was taking out the hardcoded assumption Hue lists would go left-to-right. So, I threw together this page full of 'fake' Arabic text (well, it's made of real Arabic words, but the phrases are either taken from Wikipedia headings or machine translated), tried to make sure that the source text for the page flowed well with the new right-to-left strings in it, and called it good. I thought this would be more authentic-looking than just turning English into a right-to-left script or something; it at least contains non-English fonts if nothing else. But, I had to change the sample entry I was testing my CSS on from "Starlight Glimmer" to "Twilight Sparkle" to easily find a translation. Hence the different Item number.

Overall, I think Hue markup looks pretty good in right-to-left text. The right-to-left editor took some getting used to, and the way text direction changes interact with brackets and tags is still really obnoxious. (Every time I wanted a Template to not end up garbled by text typing into the wrong place I had to retype the whole thing manually from the beginning! Monitoring it all carefully to make sure the braces went here and then the Latin went here and the pasted Arabic went there.)
Compared with English pages, there is one major change needed to make right-to-left text and Templates play well together: the "Item alias" parameter (here called «اسم» or "ism") needs to be in a script that is unambiguously right-to-left; if the alias parameter goes RTL, then the LTR parts of the Template can stream out the beginning of the line while the RTL parts stream out the end. I will figure out a way to turn "ism" back into a cryptic abbreviation like "PPPA" later so it would apply equally well to other languages like Persian. For a proof of concept I only created for rewriting Hue list CSS to be able to point left, this is good enough for now.