Template:MongolUnicode/doc: Difference between revisions

Content deleted Content added
mNo edit summary
Susko3 (talk | contribs)
 
(17 intermediate revisions by 9 users not shown)
Line 1:
{{Documentation subpage}}
{{COinS safe|n}}
{{Uses TemplateStyles|Template:MongolUnicode/fonts.css}}
<!-- Categories and interwikis go at the bottom of this page. -->
 
Line 7 ⟶ 9:
*1st parameter is the Mongolian (Todo, Manchu, Sibe) text to display
*2nd parameter is optional; if it is 'h' then the text is laid out horizontally; if it is any other value (e.g. 'v'), or if it is omitted then the text is laid out vertically (if the browser supports vertical layout)
*<ttcode>lang</ttcode> parameter: defines the language of the text, e.g. <ttcode>mn</ttcode> for Mongolian, <ttcode>mnc</ttcode> for Manchu, and <ttcode>sjo</ttcode> for Sibe; also used for switching font families by language
*<ttcode>style</ttcode> parameter: defines extended style of the text area, e.g. <ttcode>height:50px</ttcode> limits the height as 50px, if the length of text is over than 50px, the rest of contents will align at the next column(s).
*In addition, you can override the defaults for <ttcode>font-size</ttcode>, <ttcode>line-height</ttcode>, and <ttcode>display</ttcode> using likewise named parameters.
 
If you have a long run of vertical Mongolian text (i.e. more than one or two words) embedded in a horizontal English paragraph, it will create a very large gap between lines, so it is best to break long vertical runs of Mongolian text into short word-lengthed chunks. This can be done by wrapping each Mongolian word in a separate MongolUnicode template, and separating each MongolUnicode template by a space character (if you omit the space character the Mongolian text will format correctly, but if a user copies the Mongolian text from the article the individual words will be concatenated into a single word). Do not use <nowiki><br/></nowiki> to break vertical Mongolian runs for unnecessary purpose as this causes problems with browsers which do not support vertical layout.
Line 22 ⟶ 24:
 
=== Issues ===
Currently only Internet Explorer 8 and above, Edge, Firefox 41 and above, and Webkit browsers (Chrome, Safari, Opera 15.0+, Android native browser) support rendering the text in top-to-bottom, left-to-right format. Other browsers will render the text as left-to-right, top-to-bottom or don't connect the characters. See also:
* http://dev.w3.org/csswg/css3-writing-modes/
* https://bugzilla.mozilla.org/show_bug.cgi?id=145503
* https://developer.mozilla.org/en-US/docs/Web/CSS/writing-mode
 
For users of Firefox version 38.0–40.0 and Firefox 38 ESR based browsers, you need to open the <code>about:config</code> page, and set <code>layout.css.vertical-text.enabled</code> as <code>true</code> to enable it.
 
For MediaWiki issues regarding this: [[bugzilla:9436]]
 
==== Non-Font ====
When Daicing font set to be the EUDC,
* ZERO WIDTH JOINER{{unichar|200D}} at the head-place does not work.
* NIRUGU{{unichar|180A}} does not work.
* NARROW NO-BREAK SPACE{{unichar|202F}} does not work.
 
==== Font issues ====
:* <TTcode>MQT</TTcode>=[[Menksoft]]'s <TTcode>Menk Qagan Tig</TTcode>, is a font for Hudum, Todo, Manchu and Sibe, with full Ali-Gali support;
:* <TTcode>MW</TTcode>=[[Almas]]'s <TTcode>Mongolian White</TTcode>, is a font for Hudum and Todo, with some Ali-Gali support;
:* <TTcode>MB</TTcode>=[[Founder Group|Founder]]-[[Microsoft]]'s <TTcode>Mongolian Baiti</TTcode>, is a font for Hudum, Todo, Manchu and Sibe, with some Ali-Gali support;
:* <TTcode>MU</TTcode>=[[Monotype Drawing Office]]'s <TTcode>Mongol Usug</TTcode>, is a font for Hudum and Todo;
:* <TTcode>MS</TTcode>=[[Myatav Erdenechimeg]]'s <TTcode>MongolianScript</TTcode>, is a font for Hudum only;
:* <TTcode>DW</TTcode>=<TTcode>[[Daicing]] White</TTcode>, also known as <TTcode>Abkai Xanyan</TTcode>, is a font for Manchu, Sibe and Daur.
# Little issues are found in <TT>MQT</TT>;
# Final k/g ATR- rendering issues are found in all fonts except <TT>MQT</TT> and <TT>MS</TT>, but Erdenechimeg said her font was an early draft and does not met current Unicode standards;
# <TT>MU</TT> does not follow Unicode Standardized Variants (by ''ad hoc'' rendering FVS1~3) in many cases;
# <TT>MB</TT> 5.00 does not match Unicode Standard, please upgrade it to <TT>MB</TT> 5.01 (KB929763);
# Under certain situations {{MongolUnicode|valign=middle|‍ᠶ‍}} is incorrectly rendered as {{MongolUnicode|valign=middle|‍ᠢ‍}}<!--Middle form--> or {{MongolUnicode|valign=middle|ᠵ‍}}<!--Head form--> in <TT>MB</TT> 5.01 and <TT>MU</TT> 2.37;
# {{MongolUnicode|valign=middle|ᡓ‍}} is incorrectly rendered as {{MongolUnicode|valign=middle|ᠴ‍}} in <TT>MU</TT> 2.37;
# <TT>MB</TT> 5.01 does not render {{MongolUnicode|valign=middle|ᡯᡳ}} correctly (we may use {{MongolUnicode|valign=middle|ᡯᡳ᠌}} instead in <TT>MB</TT>).
 
# Little issues are found in <code>MQT</code>;
=== See also ===
# Final k/g ATR- rendering issues are found in all fonts except <code>MQT</code> and <code>MS</code>, but Erdenechimeg said her font was an early draft and does not met current Unicode standards;
# <code>MU</code> does not follow Unicode Standardized Variants (by ''ad hoc'' rendering FVS1~3) in many cases;
# <code>MB</code> 5.00 does not match Unicode Standard, please upgrade it to <code>MB</code> 5.01 (KB929763);
# Under certain situations {{MongolUnicode|valign=middle|‍ᠶ‍}} is incorrectly rendered as {{MongolUnicode|valign=middle|‍ᠢ‍}}<!--Middle form--> or {{MongolUnicode|valign=middle|ᠵ‍}}<!--Head form--> in <code>MB</code> 5.01 and <code>MU</code> 2.37;
# {{MongolUnicode|valign=middle|ᡓ‍}} is incorrectly rendered as {{MongolUnicode|valign=middle|ᠴ‍}} in <code>MU</code> 2.37;
# <code>MB</code> 5.01 does not render {{MongolUnicode|valign=middle|ᡯᡳ}} correctly (we may use {{MongolUnicode|valign=middle|ᡯᡳ᠌}} instead in <code>MB</code>).
 
==Template data==
{{Template data header}}
<templatedata>
{
"params": {
"1": {
"label": "Text",
"description": "The Mongolian text to display",
"type": "content",
"required": true
},
"2": {
"label": "Direction",
"description": "Whether to display the text horizontal (default) or vertical",
"type": "string",
"suggestedvalues": [
"h",
"v"
],
"default": "h",
"suggested": true
},
"lang": {
"aliases": [
"3"
],
"label": "Language",
"description": "The language of the text as a ISO 639 language code",
"example": "mn",
"type": "string",
"suggestedvalues": [
"mn",
"mnc",
"sjo",
"khk",
"mvf"
],
"suggested": true
},
"display": {
"deprecated": true
},
"font-weight": {},
"font-size": {},
"line-height": {},
"vertical-align": {
"aliases": [
"valign"
]
},
"style": {
"label": "CSS style",
"description": "Defines extended style of the text area, e.g. height:50px limits the height as 50px, if the length of text is over than 50px, the rest of contents will align at the next column(s).",
"type": "string"
}
},
"paramOrder": [
"1",
"2",
"lang",
"display",
"font-weight",
"font-size",
"line-height",
"vertical-align",
"style"
],
"description": "Intended for use with text written in the Unicode \"Mongolian\" script, to improve display of this text in browsers.",
"format": "inline"
}
</templatedata>
 
== See also ==
* [[Mongolian script#Unicode]]
* {{tl|ManchuSibeUnicode}}
 
<includeonly>{{Sandbox other||
<IncludeOnly>
[[Category:Mongolian language|Template]]
<!-- Categories and interwikis go here: -->
[[Category:Script–font templates|MScript/MongolUnicode]]<!-- 'name' for sort purposes only -->
 
}}</includeonly>
</IncludeOnly>