Skip to content

Commit 18a9715

Browse files
committed
Squashed 'vendor/beta-code-json/' changes from 0af99d6..1bdcf3e
1bdcf3e Merge pull request #4 from perseids-tools/iota-subscript-after-uppercase-letter e3f2b04 include tlg spec and exceptions in readme f8de775 use standard diacritic order for uppercase letters c18cdb6 support aditional order for beta code to unicode git-subtree-dir: vendor/beta-code-json git-subtree-split: 1bdcf3e99d9161a1ed4ef77c2d7f834cda11a45c
1 parent ece1fb3 commit 18a9715

File tree

3 files changed

+88
-27
lines changed

3 files changed

+88
-27
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
Map of Greek Beta Code characters to Unicode and from Unicode to Beta Code.
44

5+
## Standard
6+
7+
The mappings in this repository aim mostly to conform to the TLG standard
8+
specified [here](http://stephanus.tlg.uci.edu/encoding.php).
9+
10+
Not every application that uses Greek Beta Code follows the TLG standard exactly.
11+
The mappings try to capture these nonstandard uses without breaking Beta Code encoded
12+
according to the standard in the following ways:
13+
14+
* Lowercase Latin letters can be used in the Beta Code (e.g. `a`, `w=`)
15+
* Uppercase Greek letters can be keyed 1. asterisk, 2. breathing, 3. accent, 4. iota subscript, 5. letter (e.g. `*(=|W`)
16+
* Uppercase Greek letters can be keyed 1. asterisk, 2. letter, 3. breathing, 4. accent, 5. iota subscript (e.g. `*W(=|`)
17+
518
## Example uses
619

720
* [https://github.com/perseids-tools/beta-code-js](https://github.com/perseids-tools/beta-code-js)

beta_code_to_unicode.json

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,17 @@
1717
"*(/u": "",
1818
"*(/w": "",
1919
"*(/|A": "",
20+
"*(/A|": "",
2021
"*(/|H": "",
22+
"*(/H|": "",
2123
"*(/|W": "",
24+
"*(/W|": "",
2225
"*(/|a": "",
26+
"*(/a|": "",
2327
"*(/|h": "",
28+
"*(/h|": "",
2429
"*(/|w": "",
30+
"*(/w|": "",
2531
"*(=A": "",
2632
"*(=H": "",
2733
"*(=I": "Ἷ",
@@ -33,11 +39,17 @@
3339
"*(=u": "",
3440
"*(=w": "",
3541
"*(=|A": "",
42+
"*(=A|": "",
3643
"*(=|H": "",
44+
"*(=H|": "",
3745
"*(=|W": "",
46+
"*(=W|": "",
3847
"*(=|a": "",
48+
"*(=a|": "",
3949
"*(=|h": "",
50+
"*(=h|": "",
4051
"*(=|w": "",
52+
"*(=w|": "",
4153
"*(A": "",
4254
"*(E": "",
4355
"*(H": "",
@@ -61,11 +73,17 @@
6173
"*(\\u": "",
6274
"*(\\w": "",
6375
"*(\\|A": "",
76+
"*(\\A|": "",
6477
"*(\\|H": "",
78+
"*(\\H|": "",
6579
"*(\\|W": "",
80+
"*(\\W|": "",
6681
"*(\\|a": "",
82+
"*(\\a|": "",
6783
"*(\\|h": "",
84+
"*(\\h|": "",
6885
"*(\\|w": "",
86+
"*(\\w|": "",
6987
"*(a": "",
7088
"*(e": "",
7189
"*(h": "",
@@ -75,11 +93,17 @@
7593
"*(u": "",
7694
"*(w": "",
7795
"*(|A": "",
96+
"*(A|": "",
7897
"*(|H": "",
98+
"*(H|": "",
7999
"*(|W": "",
100+
"*(W|": "",
80101
"*(|a": "",
102+
"*(a|": "",
81103
"*(|h": "",
104+
"*(h|": "",
82105
"*(|w": "",
106+
"*(w|": "",
83107
"*)/A": "",
84108
"*)/E": "",
85109
"*)/H": "",
@@ -93,11 +117,17 @@
93117
"*)/o": "",
94118
"*)/w": "",
95119
"*)/|A": "",
120+
"*)/A|": "",
96121
"*)/|H": "",
122+
"*)/H|": "",
97123
"*)/|W": "",
124+
"*)/W|": "",
98125
"*)/|a": "",
126+
"*)/a|": "",
99127
"*)/|h": "",
128+
"*)/h|": "",
100129
"*)/|w": "",
130+
"*)/w|": "",
101131
"*)=A": "",
102132
"*)=H": "",
103133
"*)=I": "",
@@ -107,11 +137,17 @@
107137
"*)=i": "",
108138
"*)=w": "",
109139
"*)=|A": "",
140+
"*)=A|": "",
110141
"*)=|H": "",
142+
"*)=H|": "",
111143
"*)=|W": "",
144+
"*)=W|": "",
112145
"*)=|a": "",
146+
"*)=a|": "",
113147
"*)=|h": "",
148+
"*)=h|": "",
114149
"*)=|w": "",
150+
"*)=w|": "",
115151
"*)A": "",
116152
"*)E": "",
117153
"*)H": "",
@@ -131,23 +167,35 @@
131167
"*)\\o": "",
132168
"*)\\w": "",
133169
"*)\\|A": "",
170+
"*)\\A|": "",
134171
"*)\\|H": "",
172+
"*)\\H|": "",
135173
"*)\\|W": "",
174+
"*)\\W|": "",
136175
"*)\\|a": "",
176+
"*)\\a|": "",
137177
"*)\\|h": "",
178+
"*)\\h|": "",
138179
"*)\\|w": "",
180+
"*)\\w|": "",
139181
"*)a": "",
140182
"*)e": "",
141183
"*)h": "",
142184
"*)i": "",
143185
"*)o": "",
144186
"*)w": "",
145187
"*)|A": "",
188+
"*)A|": "",
146189
"*)|H": "",
190+
"*)H|": "",
147191
"*)|W": "",
192+
"*)W|": "",
148193
"*)|a": "",
194+
"*)a|": "",
149195
"*)|h": "",
196+
"*)h|": "",
150197
"*)|w": "",
198+
"*)w|": "",
151199
"*+I": "Ϊ",
152200
"*+U": "Ϋ",
153201
"*+i": "Ϊ",

unicode_to_beta_code.json

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -197,14 +197,14 @@
197197
"ᾅ": "a(/|",
198198
"ᾆ": "a)=|",
199199
"ᾇ": "a(=|",
200-
"ᾈ": "*)|a",
201-
"ᾉ": "*(|a",
202-
"ᾊ": "*)\\|a",
203-
"ᾋ": "*(\\|a",
204-
"ᾌ": "*)/|a",
205-
"ᾍ": "*(/|a",
206-
"ᾎ": "*)=|a",
207-
"ᾏ": "*(=|a",
200+
"ᾈ": "*)a|",
201+
"ᾉ": "*(a|",
202+
"ᾊ": "*)\\a|",
203+
"ᾋ": "*(\\a|",
204+
"ᾌ": "*)/a|",
205+
"ᾍ": "*(/a|",
206+
"ᾎ": "*)=a|",
207+
"ᾏ": "*(=a|",
208208
"ᾐ": "h)|",
209209
"ᾑ": "h(|",
210210
"ᾒ": "h)\\|",
@@ -213,14 +213,14 @@
213213
"ᾕ": "h(/|",
214214
"ᾖ": "h)=|",
215215
"ᾗ": "h(=|",
216-
"ᾘ": "*)|h",
217-
"ᾙ": "*(|h",
218-
"ᾚ": "*)\\|h",
219-
"ᾛ": "*(\\|h",
220-
"ᾜ": "*)/|h",
221-
"ᾝ": "*(/|h",
222-
"ᾞ": "*)=|h",
223-
"ᾟ": "*(=|h",
216+
"ᾘ": "*)h|",
217+
"ᾙ": "*(h|",
218+
"ᾚ": "*)\\h|",
219+
"ᾛ": "*(\\h|",
220+
"ᾜ": "*)/h|",
221+
"ᾝ": "*(/h|",
222+
"ᾞ": "*)=h|",
223+
"ᾟ": "*(=h|",
224224
"ᾠ": "w)|",
225225
"ᾡ": "w(|",
226226
"ᾢ": "w)\\|",
@@ -229,21 +229,21 @@
229229
"ᾥ": "w(/|",
230230
"ᾦ": "w)=|",
231231
"ᾧ": "w(=|",
232-
"ᾨ": "*)|w",
233-
"ᾩ": "*(|w",
234-
"ᾪ": "*)\\|w",
235-
"ᾫ": "*(\\|w",
236-
"ᾬ": "*)/|w",
237-
"ᾭ": "*(/|w",
238-
"ᾮ": "*)=|w",
239-
"ᾯ": "*(=|w",
232+
"ᾨ": "*)w|",
233+
"ᾩ": "*(w|",
234+
"ᾪ": "*)\\w|",
235+
"ᾫ": "*(\\w|",
236+
"ᾬ": "*)/w|",
237+
"ᾭ": "*(/w|",
238+
"ᾮ": "*)=w|",
239+
"ᾯ": "*(=w|",
240240
"ᾲ": "a\\|",
241241
"ᾳ": "a|",
242242
"ᾴ": "a/|",
243243
"ᾶ": "a=",
244244
"ᾷ": "a=|",
245245
"Ὰ": "*\\a",
246-
"ᾼ": "*|a",
246+
"ᾼ": "*a|",
247247
"᾽": "'",
248248
"ῂ": "h\\|",
249249
"ῃ": "h|",
@@ -252,7 +252,7 @@
252252
"ῇ": "h=|",
253253
"Ὲ": "*\\e",
254254
"Ὴ": "*\\h",
255-
"ῌ": "*|h",
255+
"ῌ": "*h|",
256256
"ῒ": "i\\+",
257257
"ῖ": "i=",
258258
"ῗ": "i=+",
@@ -271,6 +271,6 @@
271271
"ῷ": "w=|",
272272
"Ὸ": "*\\o",
273273
"Ὼ": "*\\w",
274-
"ῼ": "*|w",
274+
"ῼ": "*w|",
275275
"—": "_"
276276
}

0 commit comments

Comments
 (0)