Skip to content

Commit

Permalink
Merge pull request #4 from perseids-tools/iota-subscript-after-upperc…
Browse files Browse the repository at this point in the history
…ase-letter

Place iota subscript after letter for uppercase Beta Code sequences
  • Loading branch information
zfletch authored Apr 30, 2021
2 parents 0af99d6 + e3f2b04 commit 1bdcf3e
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 27 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

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

## Standard

The mappings in this repository aim mostly to conform to the TLG standard
specified [here](http://stephanus.tlg.uci.edu/encoding.php).

Not every application that uses Greek Beta Code follows the TLG standard exactly.
The mappings try to capture these nonstandard uses without breaking Beta Code encoded
according to the standard in the following ways:

* Lowercase Latin letters can be used in the Beta Code (e.g. `a`, `w=`)
* Uppercase Greek letters can be keyed 1. asterisk, 2. breathing, 3. accent, 4. iota subscript, 5. letter (e.g. `*(=|W`)
* Uppercase Greek letters can be keyed 1. asterisk, 2. letter, 3. breathing, 4. accent, 5. iota subscript (e.g. `*W(=|`)

## Example uses

* [https://github.com/perseids-tools/beta-code-js](https://github.com/perseids-tools/beta-code-js)
Expand Down
48 changes: 48 additions & 0 deletions beta_code_to_unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,17 @@
"*(/u": "",
"*(/w": "",
"*(/|A": "",
"*(/A|": "",
"*(/|H": "",
"*(/H|": "",
"*(/|W": "",
"*(/W|": "",
"*(/|a": "",
"*(/a|": "",
"*(/|h": "",
"*(/h|": "",
"*(/|w": "",
"*(/w|": "",
"*(=A": "",
"*(=H": "",
"*(=I": "Ἷ",
Expand All @@ -33,11 +39,17 @@
"*(=u": "",
"*(=w": "",
"*(=|A": "",
"*(=A|": "",
"*(=|H": "",
"*(=H|": "",
"*(=|W": "",
"*(=W|": "",
"*(=|a": "",
"*(=a|": "",
"*(=|h": "",
"*(=h|": "",
"*(=|w": "",
"*(=w|": "",
"*(A": "",
"*(E": "",
"*(H": "",
Expand All @@ -61,11 +73,17 @@
"*(\\u": "",
"*(\\w": "",
"*(\\|A": "",
"*(\\A|": "",
"*(\\|H": "",
"*(\\H|": "",
"*(\\|W": "",
"*(\\W|": "",
"*(\\|a": "",
"*(\\a|": "",
"*(\\|h": "",
"*(\\h|": "",
"*(\\|w": "",
"*(\\w|": "",
"*(a": "",
"*(e": "",
"*(h": "",
Expand All @@ -75,11 +93,17 @@
"*(u": "",
"*(w": "",
"*(|A": "",
"*(A|": "",
"*(|H": "",
"*(H|": "",
"*(|W": "",
"*(W|": "",
"*(|a": "",
"*(a|": "",
"*(|h": "",
"*(h|": "",
"*(|w": "",
"*(w|": "",
"*)/A": "",
"*)/E": "",
"*)/H": "",
Expand All @@ -93,11 +117,17 @@
"*)/o": "",
"*)/w": "",
"*)/|A": "",
"*)/A|": "",
"*)/|H": "",
"*)/H|": "",
"*)/|W": "",
"*)/W|": "",
"*)/|a": "",
"*)/a|": "",
"*)/|h": "",
"*)/h|": "",
"*)/|w": "",
"*)/w|": "",
"*)=A": "",
"*)=H": "",
"*)=I": "",
Expand All @@ -107,11 +137,17 @@
"*)=i": "",
"*)=w": "",
"*)=|A": "",
"*)=A|": "",
"*)=|H": "",
"*)=H|": "",
"*)=|W": "",
"*)=W|": "",
"*)=|a": "",
"*)=a|": "",
"*)=|h": "",
"*)=h|": "",
"*)=|w": "",
"*)=w|": "",
"*)A": "",
"*)E": "",
"*)H": "",
Expand All @@ -131,23 +167,35 @@
"*)\\o": "",
"*)\\w": "",
"*)\\|A": "",
"*)\\A|": "",
"*)\\|H": "",
"*)\\H|": "",
"*)\\|W": "",
"*)\\W|": "",
"*)\\|a": "",
"*)\\a|": "",
"*)\\|h": "",
"*)\\h|": "",
"*)\\|w": "",
"*)\\w|": "",
"*)a": "",
"*)e": "",
"*)h": "",
"*)i": "",
"*)o": "",
"*)w": "",
"*)|A": "",
"*)A|": "",
"*)|H": "",
"*)H|": "",
"*)|W": "",
"*)W|": "",
"*)|a": "",
"*)a|": "",
"*)|h": "",
"*)h|": "",
"*)|w": "",
"*)w|": "",
"*+I": "Ϊ",
"*+U": "Ϋ",
"*+i": "Ϊ",
Expand Down
54 changes: 27 additions & 27 deletions unicode_to_beta_code.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,14 @@
"ᾅ": "a(/|",
"ᾆ": "a)=|",
"ᾇ": "a(=|",
"ᾈ": "*)|a",
"ᾉ": "*(|a",
"ᾊ": "*)\\|a",
"ᾋ": "*(\\|a",
"ᾌ": "*)/|a",
"ᾍ": "*(/|a",
"ᾎ": "*)=|a",
"ᾏ": "*(=|a",
"ᾈ": "*)a|",
"ᾉ": "*(a|",
"ᾊ": "*)\\a|",
"ᾋ": "*(\\a|",
"ᾌ": "*)/a|",
"ᾍ": "*(/a|",
"ᾎ": "*)=a|",
"ᾏ": "*(=a|",
"ᾐ": "h)|",
"ᾑ": "h(|",
"ᾒ": "h)\\|",
Expand All @@ -213,14 +213,14 @@
"ᾕ": "h(/|",
"ᾖ": "h)=|",
"ᾗ": "h(=|",
"ᾘ": "*)|h",
"ᾙ": "*(|h",
"ᾚ": "*)\\|h",
"ᾛ": "*(\\|h",
"ᾜ": "*)/|h",
"ᾝ": "*(/|h",
"ᾞ": "*)=|h",
"ᾟ": "*(=|h",
"ᾘ": "*)h|",
"ᾙ": "*(h|",
"ᾚ": "*)\\h|",
"ᾛ": "*(\\h|",
"ᾜ": "*)/h|",
"ᾝ": "*(/h|",
"ᾞ": "*)=h|",
"ᾟ": "*(=h|",
"ᾠ": "w)|",
"ᾡ": "w(|",
"ᾢ": "w)\\|",
Expand All @@ -229,21 +229,21 @@
"ᾥ": "w(/|",
"ᾦ": "w)=|",
"ᾧ": "w(=|",
"ᾨ": "*)|w",
"ᾩ": "*(|w",
"ᾪ": "*)\\|w",
"ᾫ": "*(\\|w",
"ᾬ": "*)/|w",
"ᾭ": "*(/|w",
"ᾮ": "*)=|w",
"ᾯ": "*(=|w",
"ᾨ": "*)w|",
"ᾩ": "*(w|",
"ᾪ": "*)\\w|",
"ᾫ": "*(\\w|",
"ᾬ": "*)/w|",
"ᾭ": "*(/w|",
"ᾮ": "*)=w|",
"ᾯ": "*(=w|",
"ᾲ": "a\\|",
"ᾳ": "a|",
"ᾴ": "a/|",
"ᾶ": "a=",
"ᾷ": "a=|",
"Ὰ": "*\\a",
"ᾼ": "*|a",
"ᾼ": "*a|",
"᾽": "'",
"ῂ": "h\\|",
"ῃ": "h|",
Expand All @@ -252,7 +252,7 @@
"ῇ": "h=|",
"Ὲ": "*\\e",
"Ὴ": "*\\h",
"ῌ": "*|h",
"ῌ": "*h|",
"ῒ": "i\\+",
"ῖ": "i=",
"ῗ": "i=+",
Expand All @@ -271,6 +271,6 @@
"ῷ": "w=|",
"Ὸ": "*\\o",
"Ὼ": "*\\w",
"ῼ": "*|w",
"ῼ": "*w|",
"—": "_"
}

0 comments on commit 1bdcf3e

Please sign in to comment.