Jump to content

Template talk:MongolUnicode

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Vertical text works in Chrome

[edit]

So, apparently there are at least two major web browsers that more or less support vertical writing: Microsoft Internet Explorer and Google Chrome. I updated the template to make it work in Chrome; it's experimental, but to the best of my understanding it works (my version is 17.0.963.65 (Developer Build 124586 Linux) Ubuntu 11.10).

There is a problem, though: Now that it works, Mongolian text embedded in English creates very large line spacing. See the opening paragraph of Nambaryn Enkhbayar for an example. I don't really have anything clever to say about this except that it probably needs some kind of a solution. On IE it worked like that for a while now, but i use IE too rarely to notice. I don't use Chrome very often either, but a lot of people do. And it will work in Firefox one day, too. --Amir E. Aharoni (talk) 16:34, 9 March 2012 (UTC)[reply]

Just tested on latest version of Chrome under Windows 7 and vertical layout is indeed working correctly. One way of dealing with overlong vertical Mongolian is to put a <br/> tag in place of spaces, for example ᠨᠠᠮᠪᠠᠷ
ᠣᠨ
ᠡᠩᠬᠡᠪᠠᠶᠠᠷ
(is this spelled correctly?). This breaks the Mongolian into left-to-right sections in Chrome, but under IE9 it breaks into right-to-left sections, which is wrong. BabelStone (talk) 23:07, 9 March 2012 (UTC)[reply]
I did that on Om mani padme hum and i think that it's nice. I don't know about other articles with longer words, however. Hey, this may finally start serious discussion about the combination of horizontal and vertical text... --Amir E. Aharoni (talk) 14:14, 10 March 2012 (UTC)[reply]
I like that as well, and have tried the same on Yongning Temple Stele, although it runs off the side of the info box on my system. BabelStone (talk) 19:58, 10 March 2012 (UTC)[reply]
I've fixed the template so that break-segmented vertical text now displays correctly in IE as well as Chrome. I have also fixed the Phagspa template so that vertical 'Phags-pa text displays correctly in Chrome (e.g. see Stele of Sulaiman). BabelStone (talk) 21:10, 10 March 2012 (UTC)[reply]
Using <br/> causes problems with browsers such as Firefox that don't support vertical layout, so the best solution is to wrap each Mongolian word in a separate MongolUnicode template separated by a space character. I have updated the documentation accordingly. BabelStone (talk) 10:27, 19 January 2014 (UTC)[reply]
Now Firefox started providing support for vertical layout, but you must enable it to get proper rending, I have updated the documentation accordingly, and I have improved typesetting for 'Phags-pa text.--Great Brightstar (talk) 23:18, 15 May 2015 (UTC)[reply]

Adding Mongolian Script to Articles

[edit]

Dear contributors, Mongolian script in unicode still has a long, long way to go before it can render everything accurately. I dont know if this is the right place to say this, but please stop adding script to articles (the majority of them are wrong, or the rendering is not per the grammar/rules). Also, cyrillic to script is not a one-to-one transcription. --chinneeb-talk 06:30, 25 March 2012 (UTC)[reply]

Cross platform compatibility

[edit]

I tried in Template:MongolUnicode/sandbox to make it cross platform compatible. Right now it can be displayed vertically but there are some layout issues in browsers other than IE. See User:Quest for Truth/anchor for demonstration. It seems that the width and height is not swapped when it is rotated 90deg. --Quest for Truth (talk) 19:09, 11 June 2012 (UTC)[reply]

Under IE9 the sandbox version does not seems to be an improvement (no difference in layout except that the line progression is now incorrectly rtl instead ltr), and under Chrome the sandbox version is much much worse. For me the current template works fine for both IE9 and Chrome, so I wonder what layout issues you are trying to fix with other browsers. BabelStone (talk) 23:31, 11 June 2012 (UTC)[reply]
I have improved the compatibility since Firefox got support in 38 (even if it has disabled by default at that time). --Great Brightstar (talk) 14:23, 25 January 2016 (UTC)[reply]

Chrome.

[edit]

So is there any way to fix this in Chrome? The current sandbox version uses webkit's rotate, resulting in overlap. Its especially noticable when the text is long. And “-webkit-writing-mode: vertical-lr” just seems to be ineffective at rotating Mongol Script. See: http://i.imgur.com/4wKowXP.jpg . Any suggestions? I'm gonna remove the webkit attributes for now, horizontal text is better than the garbled mess right now. --chinneeb-talk 16:22, 28 February 2014 (UTC)[reply]

There are some problems with Chrome, although it should be noted that the vertical layout works fine in IE. The current sandbox example of long text is not realistic as words of this extreme length do not occur naturally, and breaking multi-word Mongolian text into individual vertical words, as in the bottom example usually produces acceptable display. I think it is OK to remove the webkit attributes as they are obsolete, but I would oppose removing the ability of render text vertically on systems that support vertical layout. BabelStone (talk) 19:39, 28 February 2014 (UTC)[reply]
Oh of course, I know it works perfectly on FF & IE, but do you have any ideas on what to do with Chrome? -webkit-transform:rotate(90deg) + -webkit-transform-origin + a bunch of padding or margins enough for any actual word in Mongol Script? --chinneeb-talk 04:23, 1 March 2014 (UTC)[reply]
Now Chrome porformanced pretty good in this sequence, so I have dropped -webkit-text-orientation.--Great Brightstar (talk) 22:55, 12 May 2015 (UTC)[reply]

Semi-protected edit request on 26 February 2016

[edit]

Could Almas' Mongolian White font be added to the list of font choices. It is the only one that works on Macintosh computers and is the only one that will let the text properly display on an Apple. Freeelf (talk) 02:54, 26 February 2016 (UTC)[reply]

Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format.  B E C K Y S A Y L E 05:44, 15 March 2016 (UTC)[reply]
Done: OK, I added it. You can also try Oyun Qagan Tig font, which performanced better if you are browsing certain articles with Chrome or Firefox on OS X. --Great Brightstar (talk) 15:19, 24 March 2016 (UTC)[reply]

Appears as one long line of horizontal text

[edit]

iOS 14.2 Safari unknown version. Don’t need to trouble shoot this, am told it displays correctly on other platforms and am happy to click away if so. Just fyi in case it is helpful, see Inner Mongolia University of Finance and Economics. Elinruby (talk) 15:38, 13 December 2020 (UTC)[reply]

Welp, on iOS 15.4.1 it becomes something worse: a vertical layout of horizontal glyphs, so that the whole thing is disconnected. Honestly not using this template and keeping the native Unicode RTL rendering is better. Artoria2e5 🌉 02:25, 15 May 2022 (UTC)[reply]

Template parameters

[edit]

Why are there so many overridable parameters to this template ? Are they even in use ? —TheDJ (talkcontribs) 20:30, 25 May 2023 (UTC)[reply]

To clarify, most of these style settings can be inherited from a higher level. It's a really bad idea to mix multiple functionalities into such a basic single purpose template and makes it a lot less maintainable. —TheDJ (talkcontribs) 20:36, 25 May 2023 (UTC)[reply]
@TheDJ: The main problem is that vertical scripts like Mongolian have their own styling requirements, especially when embedded in horizontal text, but MediaWiki doesn't provide any styles for vertical scripts. I made T340268 earlier this year for that, in fact. It's difficult to make the template automatically work for everything, so I can understand why people would want to adjust values for the page they're editing without having to risk breaking things on other pages.
By the way, how did you generate the statistics below?
- Nikki (talk) 01:13, 9 October 2023 (UTC)[reply]
It is from https://bambots.brucemyers.com/TemplateParam.phpTheDJ (talkcontribs) 13:28, 9 October 2023 (UTC)[reply]

Yikes.. this templates' usage really needs some cleanup.

Template: MongolUnicode
Page count: 1044
Transclusion count: 5663
Monthly data as of: 2023-05-01

Parameter name Valid name? Value count Unique values (count)
1 Y 5663 > 50 unique values
2 Y 123 Qaγan  (1)
evn  (32)
h  (63)
kwn dw jii  (1)
mn  (2)
mnc  (1)
v  (23)
display Y 1 mn  (1)
font-size Y 1980 1.5em  (7)
1.6em  (1441)
1.8em  (3)
1em  (86)
200%  (184)
2em  (259)
lang Y 1588 Mn  (1)
bua  (1)
cmg  (1)
mn  (1168)
mnc  (164)
mong  (1)
mvf  (4)
sa  (2)
sjo  (42)
xal  (4)
xng  (4)
xwo  (195)
ти  (1)
style Y 438 > 50 unique values
height: 3em; word-wrap: normal  
height:2.1em; word-wrap:not normal;  
height:2.1em;word-wrap:normal  
height:2.1em;word-wrap:normal;  
height:2.1em;word-wrap:not normal  
height:2.5em  
height:3.2em; word-wrap:normal  
height:3em  
max-height:1.2em;word-break:normal  
max-height:1.3em; word-wrap:normal  
max-height:1.3em;text-align:left;word-break:normal  
max-height:1.5em; word-wrap:normal  
max-height:1.5em;word-break:normal  
max-height:1.5em;word-wrap: normal  
max-height:1.5em;word-wrap:normal  
max-height:1.6em;text-align:left;word-wrap:normal  
max-height:1.6em;word-wrap:normal  
max-height:1.7em; word-wrap:normal  
max-height:1.7em;text-align:left;word-break:normal  
max-height:1.7em;text-align:left;word-wrap: normal  
max-height:1.7em;word-wrap:normal  
max-height:1.8em; word-wrap:normal  
max-height:1.8em;word-break:normal  
max-height:1.8em;word-wrap:normal  
max-height:1.9em;text-align:left;word-break:normal  
max-height:12em;text-align:justify  
max-height:2.1em; word-wrap:normal  
max-height:2.1em;text-align:left;word-wrap:normal  
max-height:2.2em;text-align:left;word-break:normal  
max-height:2.2em;word-break:normal  
max-height:2.3em;word-wrap:normal  
max-height:2.4em;word-wrap:normal  
max-height:2.5em; word-wrap:normal  
max-height:2.5em;text-align:left;word-break:normal  
max-height:2.5em;text-align:left;word-wrap:normal  
max-height:2.5em;word-break:normal  
max-height:2.9em; word-wrap:normal  
max-height:2em;text-align:left;word-break:normal  
max-height:2em;word-break:normal  
max-height:2em;word-wrap:normal  
max-height:3.5em;word-wrap:normal  
max-height:3em;text-align:left;word-wrap:normal  
max-height:55px  
max-height:5em; word-wrap:normal  
middle  
text-align: left  
text-align:left  
text-align:left; height:150px  
text-align:left; height:60px  
text-align:left;word-wrap:normal  
valign Y 1685 bottom  (2)
middle  (1683)

Valid name key: Y = Yes, N = No, D = Deprecated, R = Required, S = Suggested