Skip to content

Commit df2f835

Browse files
committed
+mong-mn, replaces mongolian
1 parent ba066fc commit df2f835

File tree

265 files changed

+1568
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+1568
-0
lines changed

mong-mn/defaults.js

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
var defaults = {}
2+
var factoryDefaults = {}
3+
factoryDefaults.font = 'Noto Sans Mongolian WF' // text area font name (a single font, no quotes)
4+
factoryDefaults.size = "28"; // text area font size, number of pixels (just the number)
5+
factoryDefaults.rows = "400"; // number representing number of times 100px for height of text area
6+
factoryDefaults.lineheight = "1.5"; // number representing line height of text area in pixels/100
7+
factoryDefaults.language = 'mn' // language to use for examples
8+
factoryDefaults.uifont = 'Noto Sans Mongolian WF'; // font name for selection area (a single font, no quotes)
9+
factoryDefaults.uisize = "24"; // selection area font size, number of pixels (just the number)
10+
factoryDefaults.ccbase = ""; // default base for combining characters
11+
factoryDefaults.uidir = "ltr" // indicates the base direction for the selection area
12+
factoryDefaults.contrast = "low" // contrast for UI text colours
13+
factoryDefaults.hints = "none" // type of hint to show alongside characters in the grids
14+
15+
16+
var thisPicker = 'mongolianPicker'
17+
18+
if (localStorage.pickersStore && localStorage[thisPicker]) defaults = JSON.parse(localStorage[thisPicker])
19+
else defaults = factoryDefaults
20+
21+
var webFonts = [ "Noto Sans Mongolian WF" ]
22+
23+
24+
var template = {}
25+
template.title = 'Mongolian character app'
26+
template.sample = "ᠣᠩᠭᠤᠯ ᠦᠰᠦᠭ ᠦᠨ ᠵᠥᠪ ᠪᠢᠴᠢᠯᠭᠡ ᠶᠢᠨ ᠳᠦᠷᠢᠮ ᠳᠦ᠂ ᠦᠭᠡ ᠶᠢᠨ ᠦᠨᠳᠦᠰᠦᠨ ᠳᠦ ᠳᠠᠭᠠᠪᠤᠷᠢ ᠵᠠᠯᠭᠠᠬᠤ ᠳᠤ ᠵᠠᠷᠢᠮ ᠦᠭᠡ ᠶᠢᠨ ᠡᠴᠦᠰ ᠦᠨ ᠠᠪᠢᠶ᠎ᠠ ᠨᠢ ᠭᠡᠭᠡᠭᠳᠡᠳᠡᠭ᠂ ᠡᠭᠦᠨ ᠢ ᠠᠪᠢᠶ᠎ᠠ ᠭᠡᠭᠡᠭᠳᠡᠬᠦ ᠦᠵᠡᠭᠳᠡᠯ ᠭᠡᠨ᠎ᠡ᠃ "
27+
template.blocklocation= '/scripts/mongolian/block' // blocklocation to use for examples
28+
template.direction = "ltr" // indicates whether this is a picker for a RTL script
29+
template.github = 'mongolian'
30+
template.scriptcode = 'Mong'
31+
template.fontLocale = 'mong'
32+
template.hints = true
33+
34+
35+
36+
37+
var controls = [
38+
{"title":"Trans-<br/>literate", "alt":"Convert Mongolian text to a Latin transliteration.", "code":"doTranscription('transliterate')"},
39+
]
40+
41+
42+
43+
var pulldown = [
44+
{"title":"Mongolian<br/>to JSM", "alt":"Convert Mongolian text to a Joint Sino-Mongolian transcription.", "code":"doTranscription('toJSM')"},
45+
46+
{"title":"Toggle<br/>direction", "alt":"Switch direction of input area between vertical &amp; horizontal.", "code":"toggleDirectionality()"},
47+
48+
//{"title":"Cyrillic<br/>to Mongolian", "alt":"Convert Mongolian text in Cyrillic to Traditional Mongolian.", "code":"doTranscription('cyrlToMong')"},
49+
]
50+
51+
52+
53+
var inputAids = [
54+
//{"title":"Shape-based lookup", "dataVar":"showShapeLookup", "dataLocn":"shapelist", "dataShortTitle":"S", "type":"shape", "desc":"Click on a panel of shapes to find similar characters."},
55+
56+
//{"title":"Hint at similar shapes", "dataVar":"showShapeHints", "dataLocn":"", "dataShortTitle":"H", "type":"hint", "desc":"Show similar shapes as you mouse over a character."},
57+
58+
{"title":"Type assist", "dataVar":"typeAssist", "dataLocn":"transcriptionPalette", "dataShortTitle":"T", "type":"palette", "initialCode":"setUpTypeAssist(false, '', typeAssistMap)", "desc":"Use ASCII characters to type Mongolian from the keyboard."},
59+
60+
{"title":"Latin type-assist", "dataVar":"showLatinTrans", "dataLocn":"transcriptionPalette", "dataShortTitle":"L", "type":"palette", "initialCode":"setUpTypeAssist(true, latinTypeAssistMap, latinTypeAssistMap)", "desc":"Show characters needed for IPA or other transcriptions and transliterations."},
61+
62+
{"title":"JSM to Mongolian", "dataVar":"showJSMCharMap", "dataLocn":"transcriptionPalette", "dataShortTitle":"J", "type":"palette", "initialCode":"setUpTypeAssist(false, jsmCharacterMap, jsmCharacterMap)", "desc":"Produce Mongolian text from a JSM transcription."},
63+
64+
{"title":"Reverse transliteration", "dataVar":"showTranslit", "dataLocn":"transcriptionPalette", "dataShortTitle":"R", "type":"palette", "initialCode":"setUpTypeAssist(false, typeAssistMap, typeAssistMap)", "desc":"Use ASCII characters to type Mongolian from the keyboard via reverse transliteration."},
65+
66+
{"title":"Keyboard", "dataVar":"showKeyboard", "dataLocn":"keyboard", "dataShortTitle":"K", "type":"keyboard", "desc":"Select characters from a keyboard layout."},
67+
68+
//{"title":"Variants show on hover", "dataVar":"showVariantsOnMouseover", "dataLocn":"", "dataShortTitle":"V", "type":"keyboard"},
69+
70+
]
71+

mong-mn/help/index.html

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<!DOCTYPE html>
2+
<html lang="en-gb">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<title>Help for Mongolian character app 25</title>
6+
<link rel="stylesheet" href="../../../shared/style/docs.css" type="text/css" />
7+
<link rel="stylesheet" type="text/css" href="../../shared25/style.css" />
8+
<link rel="stylesheet" type="text/css" href="../localstyle.css" />
9+
<script src="/shared/code/boilerplate.js" type="text/javascript"></script>
10+
<script type="text/javascript" src="/shared/code/toc_2016.js"></script>
11+
<script type="text/javascript" src="../../shared25/helptemplate.js"></script>
12+
<script>var direction = 'ltr'</script>
13+
</head>
14+
15+
<body class="app notes">
16+
<header>
17+
<div id="header-boilerplate"></div>
18+
<script>document.getElementById('header-boilerplate').innerHTML = bp_appHeader('/shared/images/world.gif','Mongolian character app','');</script>
19+
</header>
20+
21+
22+
<h1>Mongolian character app notes/help</h1>
23+
24+
25+
<aside class="sidebar">
26+
<h2 class="notoc flush"><a id="tochead">Contents</a></h2>
27+
<div id="toc"><!-- placeholder --></div>
28+
<div class="noprint">
29+
<h2 class="notoc"><a id="links" tabindex="5">Related links</a></h2>
30+
<p><a href="../index.html">Mongolian character app</a></p>
31+
<p><a href="/scripts/links?script=mongolian">Mongolian script links</a></p>
32+
<p><a href="/pickers/">List of character apps </a></p>
33+
</div>
34+
</aside>
35+
36+
<p id="status">Updated <!-- #BeginDate format:En2 -->28-Nov-2019<!-- #EndDate --> • tags <a href="https://r12a.github.io/blog/?tag=apps" title="Show all blog posts tagged with 'apps'">apps</a>, <a href="https://r12a.github.io/blog/?tag=pickers" title="Show all blog posts tagged with 'pickers'">pickers</a>, <a href="https://r12a.github.io/blog/?tag=mongolian" title="Show all blog posts tagged with 'mongolian'">mongolian</a></p>
37+
38+
<p>This Unicode character app allows you to produce or analyse runs of Mongolian text. character apps are especially useful for people who don't know a script well, as characters are displayed in ways that aid identification.</p>
39+
<p>If something is broken or missing <a target="_blank" style="font-size:110%;" href="https://github.com/r12a/pickers/issues/new?title=[mongolian%20picker]%20%20ADD%20TITLE%20HERE">raise an issue</a>. For version information see <a target="_blank" style="font-size:110%;" href="https://github.com/r12a/pickers/commits/gh-pages/mongolian">the Github commit list</a>. The pictures of the UI used in this page are taken from a variety of character apps.</p>
40+
41+
42+
<section id="basics">
43+
</section>
44+
<script>
45+
document.getElementById('basics').innerHTML = addBasicUse(direction)
46+
</script>
47+
48+
49+
<section id="about">
50+
<h2 href="#about">About the selection area</h2>
51+
<p>Includes characters in the Unicode <a href="/uniview/?block=mongolian" target="_blank">Mongolian</a> block typically used for writing the Mongolian language.</p>
52+
<p>There are display issues when using certain browsers, such as Safari and iOS-based browsers, but Chrome also fails to display text in a text area vertically. Firefox tends to produce the best results. Differences in approach between fonts also makes it sometimes difficult to produce Mongolian. This is partly due to a lack of standardisation around which shapes are produced with which variation selectors, but also Mongolian has several features, such as word gender affecting glyph choice, that are not universally supported well by fonts. On the whole, Microsoft Baiti is a good font, if you have access to it.</p>
53+
54+
<div id="aboutBP">
55+
</div>
56+
<script>document.getElementById('aboutBP').innerHTML = addAboutBP()
57+
</script>
58+
<p><b class="leadin" id="variant_selector_box_description">Variant selector box.</b> When you select a character in the selection area, the box to the left of that area displays the alternate glyph forms that are appropriate for that character. By default, this only happens when you click on a character, but you can make it happen on hover by clicking on the <samp>V</samp> in the gray selection bar to the right.</p>
59+
<p>The list includes the default positional forms as well as the forms produced by following the character with a Free Variation Selector (FVS). The latter forms are derived from work which has been taking place since 2015 to standardise the forms produced by using FVS. At the moment, not all fonts will produce the expected shapes for all possible combinations. (For more information, see <a href="http://r12a.github.io/scripts/mongolian/variants">Notes on Mongolian variant forms</a>.)</p>
60+
<p> If the variant list is displayed when you click on a character, you can add an appropriate FVS character to the output area by clicking in the list on the shape that you want to see in the output.&nbsp;</p>
61+
62+
</section>
63+
64+
65+
66+
<section id="top_controls">
67+
<h2 href="#top_controls">Controls above the text area</h2>
68+
<div id="controlsAbove1"></div>
69+
<script>document.getElementById('controlsAbove1').innerHTML = addControlsAbove1()</script>
70+
71+
<p><b class="leadin">Transliterate.</b> Converts the contents of the text area to a Latin transliteration that provides a one-to-one correspondence between Mongolian and Latin symbols.</p>
72+
<p>The transliteration scheme was developed for this character app, and, where possible, uses symbols that represent sounds typically associated with their Mongolian equivalents, rather than the sometimes fairly arbitrary selection of diacritics found in other systems. Of course, the complexities of mapping graphemes to sounds means that this is far from a real phonetic transcription, but the process is reversible (unlike most transcriptions).</p>
73+
74+
<div id="controlsAbove2"></div>
75+
<script>document.getElementById('controlsAbove2').innerHTML = addControlsAbove2()</script>
76+
77+
78+
<p><b class="leadin">Mongolian to JSM.</b> Converts Mongolian text to a transcription using the Joint Sino-Mongolian scheme. This transcription may not be reversible.</p>
79+
80+
</section>
81+
82+
<section id="secondaryText">
83+
</section>
84+
<script>document.getElementById('secondaryText').innerHTML = addSecondaryText()</script>
85+
86+
87+
88+
<section id="input_aids">
89+
<h2 href="#input_aids">Input aids</h2>
90+
91+
<div id="inputAids1"></div>
92+
<script>document.getElementById('inputAids1').innerHTML = addInputAids('intro, hinting, typeAssist, latin')</script>
93+
94+
95+
<p><b class="leadin">JSM to Mongolian.</b> Allows you to generate Mongolian text from an Joint Sino-Mongolian transcription. It works as described in the section just above about <samp>Reverse transliteration</samp>, but uses a different panel to set up the <strong>transcription type-in mode</strong>.</p>
96+
<p><b class="leadin">Variants show on hover.</b> Makes the list of variant forms appear as you hover over the selector area, rather than when you click on a character. See <a href="#variant_selector_box_description">Variant selector box</a> above.</p>
97+
98+
99+
<div id="inputAids2"></div>
100+
<script>document.getElementById('inputAids2').innerHTML = addInputAids('translit, keyboard, keys, close')</script>
101+
102+
</section>
103+
104+
105+
106+
<section id="yellow_controls">
107+
</section>
108+
<script>document.getElementById('yellow_controls').innerHTML = addYellowControls()</script>
109+
110+
111+
112+
<section id="more_controls">
113+
</section>
114+
<script>document.getElementById('more_controls').innerHTML = addMoreControls(direction)</script>
115+
116+
<div class="smallprint">Copyright <a href="mailto:[email protected]">[email protected]</a>. Licence <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">CC-By</a>.</div>
117+
</body>
118+
<script type="text/javascript">
119+
createtoc(3);
120+
</script>
121+
</html>

mong-mn/images/180B.png

319 Bytes
Loading

mong-mn/images/180C.png

336 Bytes
Loading

mong-mn/images/180D.png

334 Bytes
Loading

0 commit comments

Comments
 (0)