Skip to content

Commit 4a44694

Browse files
committed
+geor-all, replaces georgian
1 parent 2491cfe commit 4a44694

File tree

6 files changed

+775
-0
lines changed

6 files changed

+775
-0
lines changed

geor-all/defaults.js

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
var defaults = {}
2+
var factoryDefaults = {}
3+
factoryDefaults.font = 'BGP 2017 DejaVu Serif WF' // text area font name (a single font, no quotes)
4+
factoryDefaults.size = "30"; // text area font size, number of pixels (just the number)
5+
factoryDefaults.rows = "150"; // px height of text area
6+
factoryDefaults.lineheight = "1.5"; // line height of text area
7+
factoryDefaults.language = 'ka' // language to use for examples
8+
factoryDefaults.uifont = 'BGP 2017 DejaVu Sans 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 = "" // type of hint to show alongside characters in the grids
14+
15+
16+
var thisPicker = 'allgeorgian'
17+
18+
if (localStorage.pickersStore && localStorage[thisPicker]) defaults = JSON.parse(localStorage[thisPicker])
19+
else defaults = factoryDefaults
20+
21+
var webFonts = [ "Noto Sans Georgian WF", "Noto Serif Georgian WF", "BGP 2017 DejaVu Serif WF", "BGP 2017 DejaVu Sans WF" ]
22+
23+
24+
var template = {}
25+
template.title = 'All Georgian character app'
26+
template.sample = "მუხლი 1. ყველა ადამიანი იბადება თავისუფალი და თანასწორი თავისი ღირსებითა და უფლებებით. მათ მინიჭებული აქვთ გონება და სინდისი და ერთმანეთის მიმართ უნდა იქცეოდნენ ძმობის სულისკვეთებით."
27+
// source: https://unicode.org/udhr/d/udhr_kat.html
28+
template.blocklocation= '/scripts/georgian/block' // blocklocation to use for examples
29+
template.direction = "ltr" // indicates whether this is a picker for a RTL script
30+
template.github = 'georgian'
31+
template.scriptcode = 'Geor'
32+
template.fontLocale = 'geor'
33+
template.hints = false
34+
35+
36+
37+
var controls = [
38+
{"title":"Trans-<br/>literate", "alt":"Convert Georgian text to a Latin transliteration.", "code":"doTranscription('transliterate')"},
39+
]
40+
41+
42+
43+
var pulldown = [
44+
{"title":"Reverse<br/>transliterate", "alt":"Convert a Latin transliteration to Georgian text.", "code":"doTranscription('revTransliterate')"},
45+
46+
{"title":"Georgian to<br/>National Tr", "alt":"Convert Georgian text to a national Georgian transcription.", "code":"doTranscription('toNational')"},
47+
]
48+
49+
50+
51+
var inputAids = [
52+
//{"title":"Shape-based lookup", "dataVar":"showShapeLookup", "dataLocn":"shapelist", "dataShortTitle":"S", "type":"shape", "desc":"Click on a panel of shapes to find similar characters."},
53+
54+
//{"title":"Hint at similar shapes", "dataVar":"showShapeHints", "dataLocn":"", "dataShortTitle":"H", "type":"hint", "desc":"Show similar shapes as you mouse over a character."},
55+
56+
{"title":"Type assist", "dataVar":"typeAssist", "dataLocn":"transcriptionPalette", "dataShortTitle":"T", "type":"palette", "initialCode":"setUpTypeAssist(false, '', typeAssistMap)", "desc":"Use ASCII characters to type Georgian from the keyboard."},
57+
58+
{"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."},
59+
60+
{"title":"Georgian Natl transliteration", "dataVar":"showNationalTrans", "dataLocn":"transcriptionPalette", "dataShortTitle":"G", "type":"palette", "initialCode":"setUpTypeAssist(false, nationalCharacterMap, nationalCharacterMap)", "desc":"Create Georgian text from characters in the Georgian National transcription."},
61+
62+
{"title":"Reverse transliteration", "dataVar":"showTranslit", "dataLocn":"transcriptionPalette", "dataShortTitle":"R", "type":"palette", "initialCode":"setUpTypeAssist(false, typeAssistMap, typeAssistMap)", "desc":"Use ASCII characters to type Georgian from the keyboard via reverse transliteration."},
63+
64+
{"title":"Keyboard", "dataVar":"showKeyboard", "dataLocn":"keyboard", "dataShortTitle":"K", "type":"keyboard", "desc":"Select characters from a keyboard layout."}
65+
]
66+

0 commit comments

Comments
 (0)