Skip to content

Commit

Permalink
Only connect initial vowel in “il-”, “is-”, etc.
Browse files Browse the repository at this point in the history
The initial vowel is connected in e.g. “ilihi”, “ilip”, and “isik” but
not in “ala” or “ina”. “Ana” is attested both ways. “Inatai” is
consistently written fully connected so it is not evidence one way or
the other.
  • Loading branch information
dscorbett committed Mar 2, 2024
1 parent dcc10e8 commit db18af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/keyboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ function transliterate(inputValue, autotransliterate = true, autosyllabify = tru
const consonant = `(?:(?:${lineObstruent}|${lConsonant}|${curveConsonant}|${consonantalI})\\p{M}*)`;
const consonantOrH = `(?:${consonant}|${hConsonant}\\p{M}*)`;
const bigVowel = `(?:${wVowel}|[\u{1BC44}\u{1BC51}-\u{1BC53}\u{1BC5A}\u{1BC5B}][PR]?\\p{M}*)`;
const noSmallInitialVowel = `(?<!(?:^|\\P{L})\\p{M}*(?:[\u{1BC41}\u{1BC42}\u{1BC61}-\u{1BC64}][PR]?\\p{M}*|${iVowel})(?!${hConsonant})(?!${consonantOrH}{2}))`;
const noSmallInitialVowel = `(?<!(?:^|\\P{L})\\p{M}*(?:[\u{1BC61}-\u{1BC64}][PR]?\\p{M}*|${iVowel})(?=${lConsonant}|${jConsonant}|${sConsonant}))`;
const noConsonantLiquidOnset = `(?!(?:${pConsonant}|\u{1BC03}|${fConsonant}|${kConsonant})\\p{M}*[\u{1BC06}\u{1BC0B}])`;
const onset = `(?:${consonantOrH}|\u{1BC1C}\\p{M}*(?:${lConsonant}|${mConsonant}|${nConsonant})\\p{M}*|(?:\u{1BC1C}\\p{M}*)?${lineObstruent}\\p{M}*(?:${lConsonant}\\p{M}*)?)`;
if (autosyllabify && !word.startsWith('\u200C')) {
Expand Down

0 comments on commit db18af8

Please sign in to comment.