| 1 | <!DOCTYPE html> |
| 2 | <html lang="en-us"> |
| 3 | <head> |
| 4 | <meta charset="utf-8"> |
| 5 | <title>Gentium - Greek Encoding Details</title> |
| 6 | <meta name="author" content="SIL Writing Systems Technology"> |
| 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> |
| 8 | <link rel="stylesheet" href="./assets/css/theme.css"> |
| 9 | <link rel="stylesheet" href="./assets/css/webfonts.css"> |
| 10 | </head> |
| 11 | <body> |
| 12 | <div class="container"> |
| 13 | <article class="article"> |
| 14 | <header> |
| 15 | <h1 class="title">Gentium - Greek Encoding Details</h1> |
| 16 | </header> |
| 17 | <p>Common ancient Greek letter+diacritic combinations have been |
| 18 | supported in Gentium since its first release. Version 7 extends this |
| 19 | support to less-common and even very rare combinations with much |
| 20 | more robust OpenType handling.</p> |
| 21 | <p>Most OS and application environments handle common combinations |
| 22 | well, as the text often uses the large set of precomposed character |
| 23 | clusters included in Unicode (e.g. ᾃ U+1F83 GREEK SMALL LETTER ALPHA |
| 24 | WITH DASIA AND VARIA AND YPOGEGRAMMENI). Complex combinations that |
| 25 | do not have corresponding precomposed characters (e.g. alpha + |
| 26 | macron + dasia) can cause more difficulty. These require that the |
| 27 | characters are in a precise order that follows Unicode ordering - |
| 28 | see section 2.11 of <a |
| 29 | href="https://www.unicode.org/versions/Unicode15.0.0/ch02.pdf">The |
| 30 | Unicode Standard</a>.</p> |
| 31 | <h3 id="required-order">Required order</h3> |
| 32 | <p>Each cluster must consist of a base letter followed by one or |
| 33 | more diacritics and an optional iota. The order is important and is |
| 34 | not necessarily the order in which they are commonly written from |
| 35 | left to right, especially in the case of capitals.</p> |
| 36 | <blockquote> |
| 37 | <p>base + [length] + [breathing|diaeresis] + [accent] + [circ] + |
| 38 | [iota]</p> |
| 39 | </blockquote> |
| 40 | <p>Groups:</p> |
| 41 | <ul> |
| 42 | <li>base: all alphabetic characters with no additional |
| 43 | diacritics</li> |
| 44 | <li>length: U+0304 macron; U+0306 vrachy (breve)</li> |
| 45 | <li>breathing|diaeresis: U+0313 psili (smooth, comma above); U+0314 |
| 46 | dasia (rough, reversed comma above); U+0308 dialytika (diaeresis) |
| 47 | <ul> |
| 48 | <li>U+0343 koronis is also in this group but is not recommended</li> |
| 49 | </ul></li> |
| 50 | <li>accent: U+0300 varia (grave); U+0301 oxia, tonos (acute) |
| 51 | <ul> |
| 52 | <li>U+0344 dial+tonos is also in this group but is not |
| 53 | recommended</li> |
| 54 | </ul></li> |
| 55 | <li>circumflex: U+0342 perispomeni</li> |
| 56 | <li>iota: U+0345 ypogegrammeni</li> |
| 57 | </ul> |
| 58 | <p>This order also assumes that the clusters are fully decomposed |
| 59 | (separated) into their individual characters. You cannot assume that |
| 60 | you can add a diacritic to a precomposed cluster. For example, you |
| 61 | cannot reliably construct U+1F04 GREEK SMALL LETTER ALPHA WITH PSILI |
| 62 | AND OXIA with the sequence U+1F00 GREEK SMALL LETTER ALPHA WITH |
| 63 | PSILI + U+0301 COMBINING ACUTE ACCENT. This may work in some |
| 64 | environments but not others.</p> |
| 65 | <p>Gentium version 7 does, however, provide specific support for |
| 66 | hybrid precomposed+diacritic combinations that include U+0304 |
| 67 | COMBINING MACRON. This increases the likelihood that these |
| 68 | combinations will render properly:</p> |
| 69 | <blockquote> |
| 70 | <p>(precomposed base with length) + [breathing|diaeresis] + |
| 71 | [accent]</p> |
| 72 | </blockquote> |
| 73 | <p>Example:</p> |
| 74 | <p>U+1FD1 GREEK SMALL LETTER IOTA WITH MACRON + U+0314 COMBINING |
| 75 | REVERSED COMMA ABOVE + U+0301 COMBINING ACUTE</p> |
| 76 | <p>We still strongly recommend using the normal decomposed sequence |
| 77 | for this cluster:</p> |
| 78 | <p>U+03B9 GREEK SMALL LETTER IOTA + U+0304 COMBINING MACRON + U+0314 |
| 79 | COMBINING REVERSED COMMA ABOVE + U+0301 COMBINING ACUTE</p> |
| 80 | <h3 id="keyboard-and-application-support">Keyboard and application |
| 81 | support</h3> |
| 82 | <p>Properly encoding and rendering complex sequences depends on many |
| 83 | factors: the software keyboard that turns keystrokes into |
| 84 | characters, internal operating system routines that handle Unicode |
| 85 | composition and decomposition, OpenType rules in the font, and the |
| 86 | rendering engine used by the application. If a sequence is not |
| 87 | rendering well, the problem could be with any one or more of these |
| 88 | factors.</p> |
| 89 | <p>Contact us if you have problems, and tell us details of the |
| 90 | operating system, application, keyboard, and font version. Please |
| 91 | also include the exact character sequence you're using and a |
| 92 | screenshot of the problem.</p> |
| 93 | <footer class="footer"> |
| 94 | <p>This guide is from the <a href="https://software.sil.org/gentium/" title="" class="active">Gentium project</a> version 7 and is copyright © 2003-2025 SIL Global.</p> |
| 95 | </footer> |
| 96 | </article> |
| 97 | </div> |
| 98 | </body> |
| 99 | </html> |