-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1,375 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
var defaults = {} | ||
var factoryDefaults = {} | ||
factoryDefaults.font = 'Noto Serif Tai Yo WF' // text area font name (a single font, no quotes) | ||
factoryDefaults.size = "40"; // text area font size, number of pixels (just the number) | ||
factoryDefaults.rows = "30"; // vh height of text area | ||
factoryDefaults.lineheight = "1.4"; // line height of text area | ||
factoryDefaults.language = 'tyj' // language to use for examples | ||
factoryDefaults.uifont = 'Noto Serif Tai Yo WF'; // font name for selection area (a single font, no quotes) | ||
factoryDefaults.uisize = "28"; // selection area font size, number of pixels (just the number) | ||
factoryDefaults.ccbase = "◌"; // default base for combining characters | ||
factoryDefaults.uidir = "ltr" // indicates the base direction for the selection area | ||
factoryDefaults.contrast = "low" // contrast for UI text colours | ||
factoryDefaults.hints = "none" // type of hint to show alongside characters in the grids | ||
|
||
|
||
var thisPicker = 'tyjPicker' | ||
|
||
if (localStorage.pickersStore && localStorage[thisPicker]) defaults = JSON.parse(localStorage[thisPicker]) | ||
else defaults = factoryDefaults | ||
|
||
var webFonts = [ "Noto Serif Tai Yo WF" ] | ||
|
||
// list of fonts to add to the standard selection | ||
window.fontsuggestions = | ||
`Noto Serif Tai Yo` | ||
|
||
|
||
var template = {} | ||
template.title = 'Tai Yo (draft)' | ||
template.sample = " " | ||
template.sampleSource = 'https://www.unicode.org/L2/L2022/22152-yo-lai-tay-script.pdf fig 11' | ||
template.blocklocation= 'tayo' // block directory | ||
template.noteslocation = 'tayo/tyj' // location of script notes | ||
template.vocablocation = 'tayo/tyj_vocab' // location of term database | ||
template.direction = "ltr" // indicates whether this is a picker for a RTL script | ||
template.github = 'template' | ||
template.scriptcode = 'Tayo' | ||
template.fontLocale = "tayo" | ||
template.hints = true | ||
template.bicameral = false | ||
|
||
|
||
template.defaultSpace = ' ' | ||
template.spaces = [['SP', ' '], ['ZWSP', '\u200B'], ['NBSP','\u00A0'], | ||
['NNBSP','\u202F'], ['EMSP','\u2003']] | ||
template.defaultInvisible = '' | ||
template.invisibles = [['ZWJ','\u200D'], ['ZWNJ','\u200C'], ['WJ','\u2060'], | ||
['SHY','\u00AD'], ['NBHY','\u2011'], ['CGJ','\u034F']] | ||
|
||
|
||
|
||
var controls = [ | ||
{"title":"Trans-<br/>literate", "alt":"Convert Tai Yo text to a one-to-one Latin transliteration.", "code":"doTranscription('transliterate')"}, | ||
] | ||
|
||
|
||
|
||
|
||
|
||
var pulldown = [ | ||
/* | ||
{"title":"Inuktitut to IPA", "alt":"Convert Inuktitut text to an <em>approximate</em> IPA transcription.", "code":"doTranscription('toIPA')", "warning":"This only produces an <em>approximation</em> to an IPA transcription. Use it as a base and refine it by hand." }, | ||
{"title":"Inuktitut to Latin", "alt":"Convert Inuktitut script text to the Latin orthography.", "code":"doTranscription('transcription')", "warning":"The result of this conversion needs to be checked for accuracy."}, | ||
*/ | ||
] | ||
|
||
|
||
|
||
|
||
|
||
|
||
var show = {} // indicates which inputAids to use | ||
show.shape = true | ||
show.hints = false | ||
show.default = true | ||
show.latin = true | ||
show.ipa = true | ||
show.transc = 'Latin' | ||
show.kbd = "" | ||
show.language = "Tai Yo" | ||
|
||
|
||
var inputAids = [] | ||
|
||
|
||
|
Oops, something went wrong.