| 1 |
#### The data in these files was originally compiled for the [Fontaine Project](http://www.unifont.org/fontaine/) by Edward H. Trager |
| 2 |
|
| 3 |
|
| 4 |
Please feel free to improve these files and file a pull request but make sure to include a rationale for any edits. |
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
#### Creating a new Orthography file |
| 9 |
|
| 10 |
|
| 11 |
An orthography consists of a simple C structure : |
| 12 |
|
| 13 |
``` |
| 14 |
{ |
| 15 |
"Name", |
| 16 |
"Native Name", |
| 17 |
Key Codepoint, |
| 18 |
"Sample string", |
| 19 |
{ |
| 20 |
"Pangram 1", |
| 21 |
"Pangram 2", |
| 22 |
FONT_MANAGER_END_OF_DATA |
| 23 |
}, |
| 24 |
{ |
| 25 |
Codepoint, |
| 26 |
Another Codepoint, |
| 27 |
FONT_MANAGER_START_RANGE_PAIR, |
| 28 |
Starting Codepoint, Ending Codepoint, |
| 29 |
Some More Codepoints, |
| 30 |
FONT_MANAGER_END_OF_DATA |
| 31 |
} |
| 32 |
}, |
| 33 |
``` |
| 34 |
|
| 35 |
Key Codepoint - the orthography can not be supported without this codepoint. |
| 36 |
|
| 37 |
The array of pangrams can contain up to 9 - they are not currently used anywhere but may be in the future. |
| 38 |
|
| 39 |
The array of codepoints can contain up to 4095 codepoints. |
| 40 |
|
| 41 |
The special value FONT_MANAGER_START_RANGE_PAIR indicates that the next two codepoints represent a range and everything between them should be included in the orthography. |
| 42 |
|
| 43 |
The special value FONT_MANAGER_END_OF_DATA marks the end of an array. |
| 44 |
|
| 45 |
The filename should match Name with spaces removed. |
| 46 |
|
| 47 |
An empty string "" can be used in place of a sample or pangram. |
| 48 |
|
| 49 |
|
| 50 |
|