Skip to content

Commit

Permalink
extract tables
Browse files Browse the repository at this point in the history
  • Loading branch information
paiv committed Oct 31, 2024
1 parent 4ab0194 commit cbeb25e
Show file tree
Hide file tree
Showing 10 changed files with 812 additions and 300 deletions.
359 changes: 359 additions & 0 deletions c/_tables.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,359 @@
/* Generated by srcgen.py, do not edit. */

static const UChar _TableName_DSTU_9112_A_uk[] = u"uk_DSTU9112A-uk";

static char _Table_DSTU_9112_A_uk[] =
"::[[BCČDFGĞKLMNPRSŜŠTVXZŽbcčdfgğklmnprsŝštvxzžAEIÏOUYaeiïouyJjĴĵÁáÉéÍíÓóÚúÝýḮḯ'ÖŬǑȲĒöŭǒȳē] [\\u0301\\u0302\\u0304\\u0306\\u0308\\u030C]];"
"::NFC;"
"$quote = \\u0027;"
"$acute = \\u0301;"
"$cyrcons = [БВГҐДЖЗКЛМНПРСТФХЦЧШЩбвгґджзклмнпрстфхцчшщ];"
"Á > A $acute;"
"á > a $acute;"
"É > E $acute;"
"é > e $acute;"
"Í > I $acute;"
"í > i $acute;"
"Ó > O $acute;"
"ó > o $acute;"
"Ú > U $acute;"
"ú > u $acute;"
"Ý > Y $acute;"
"ý > y $acute;"
"Ḯ > Ï $acute;"
"ḯ > ï $acute;"
"::Null;"
"A > А; a > а;"
"B > Б; b > б;"
"V > В; v > в;"
"Ğ > Г; ğ > г;"
"G > Ґ; g > ґ;"
"D > Д; d > д;"
"E > Е; e > е;"
"JE > Є; Je > Є;"
"je > є; jE > є;"
"Ž > Ж; ž > ж;"
"Z > З; z > з;"
"Y > И; y > и;"
"I > І; i > і;"
"Ï > Ї; ï > ї;"
"K > К; k > к;"
"L > Л; l > л;"
"M > М; m > м;"
"N > Н; n > н;"
"O > О; o > о;"
"P > П; p > п;"
"R > Р; r > р;"
"S > С; s > с;"
"T > Т; t > т;"
"U > У; u > у;"
"F > Ф; f > ф;"
"X > Х; x > х;"
"C > Ц; c > ц;"
"Č > Ч; č > ч;"
"Š > Ш; š > ш;"
"Ŝ > Щ; ŝ > щ;"
"JU > Ю; jU > ю;"
"ju > ю; Ju > Ю;"
"JA > Я; jA > я;"
"ja > я; Ja > Я;"
"Ĵ > Ь; ĵ > ь;"
"$cyrcons {J > Ь;"
"$cyrcons {j > ь;"
"$cyrcons [Ьь] {$quote} [AEUaeu] > ;"
"$quote J} [^AEIUaeiu] > Й;"
"$quote j} [^AEIUaeiu] > й;"
"J > Й; j > й;"
"$quote} [Jj] > ’;"
"Ö > Ё; ö > ё;"
"Ŭ > Ў; ŭ > ў;"
"Ǒ > Ъ; ǒ > ъ;"
"Ȳ > Ы; ȳ > ы;"
"Ē > Э; ē > э;"
"::NFC;"
;

static const UChar _TableName_uk_KMU_55[] = u"uk-uk_KMU55";

static char _Table_uk_KMU_55[] =
":: [[АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЮЯЬабвгґдеєжзиіїйклмнопрстуфхцчшщюяь’'] [\\u0301]];"
"::NFC;"
"$quote = \\u0027;"
"$acute = \\u0301;"
"$cyrlow = [бвгґджзйклмнпрстфхцчшщьаеєиіїоуюя’];"
"$wordBoundary = [^[:L:][:M:][:N:]];"
"А > A; а > a;"
"Б > B; б > b;"
"В > V; в > v;"
"Г > H; г > h;"
"Ґ > G; ґ > g;"
"Д > D; д > d;"
"Е > E; е > e;"
"$wordBoundary {Є} $acute? $cyrlow > Ye;"
"$wordBoundary {Є > YE;"
"$wordBoundary {є > ye;"
"Є} $acute? $cyrlow > Ie;"
"Є > IE; є > ie;"
"Ж} $cyrlow > Zh;"
"Ж > ZH; ж > zh;"
"зГ} $cyrlow > zGh;"
"ЗГ > ZGH; Зг > Zgh;"
"зГ > zGH; зг > zgh;"
"З > Z; з > z;"
"И > Y; и > y;"
"І > I; і > i;"
"$wordBoundary {Ї} $acute? $cyrlow > Yi;"
"$wordBoundary {Ї > YI;"
"$wordBoundary {ї > yi;"
"Ї > I; ї > i;"
"$wordBoundary {Й > Y;"
"$wordBoundary {й > y;"
"Й > I; й > i;"
"К > K; к > k;"
"Л > L; л > l;"
"М > M; м > m;"
"Н > N; н > n;"
"О > O; о > o;"
"П > P; п > p;"
"Р > R; р > r;"
"С > S; с > s;"
"Т > T; т > t;"
"У > U; у > u;"
"Ф > F; ф > f;"
"Х} $cyrlow > Kh;"
"Х > KH; х > kh;"
"Ц} $cyrlow > Ts;"
"Ц > TS; ц > ts;"
"Ч} $cyrlow > Ch;"
"Ч > CH; ч > ch;"
"Ш} $cyrlow > Sh;"
"Ш > SH; ш > sh;"
"Щ} $cyrlow > Shch;"
"Щ > SHCH; щ > shch;"
"$wordBoundary {Ю} $acute? $cyrlow > Yu;"
"$wordBoundary {Ю > YU;"
"$wordBoundary {ю > yu;"
"Ю} $acute? $cyrlow > Iu;"
"Ю > IU; ю > iu;"
"$wordBoundary {Я} $acute? $cyrlow > Ya;"
"$wordBoundary {Я > YA;"
"$wordBoundary {я > ya;"
"Я} $acute? $cyrlow > Ia;"
"Я > IA; я > ia;"
"[Ьь] > ;"
"’ > ;"
"$quote > ;"
"::NFC;"
;

static const UChar _TableName_uk_DSTU_9112_B[] = u"uk-uk_DSTU9112B";

static char _Table_uk_DSTU_9112_B[] =
":: [[АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЮЯЬабвгґдеєжзиіїйклмнопрстуфхцчшщюяь’ЁЎЪЫЭёўъыэ] [\\u0301\\u0306\\u0308]];"
"::NFC;"
"$quote = \\u0027;"
"$acute = \\u0301;"
"$cyrcons = [БВГҐДЖЗКЛМНПРСТФХЦЧШЩбвгґджзклмнпрстфхцчшщ];"
"$cyrlow = [бвгґджзйклмнпрстфхцчшщьаеєиіїоуюя’];"
"$wordBoundary = [^[:L:][:M:][:N:]];"
"($cyrcons) } [Йй] > | $1 $quote ;"
"А > A; а > a;"
"Б > B; б > b;"
"В > V; в > v;"
"Г} $cyrlow > Gh;"
"Г > GH; г > gh;"
"Ґ > G; ґ > g;"
"Д > D; д > d;"
"Е > E; е > e;"
"Є} $acute? $cyrlow > Je;"
"Є > JE; є > je;"
"Ж} $cyrlow > Zh;"
"Ж > ZH; ж > zh;"
"З > Z; з > z;"
"И > Y; и > y;"
"І > I; і > i;"
"Ї} $acute? $cyrlow > Ji;"
"Ї > JI; ї > ji;"
"Х} $cyrlow > Kh;"
"Х > KH; х > kh;"
"К > K; к > k;"
"Л > L; л > l;"
"М > M; м > m;"
"Н > N; н > n;"
"О > O; о > o;"
"П > P; п > p;"
"Р > R; р > r;"
"Щ} $cyrlow > Shch;"
"Щ > SHCH; щ > shch;"
"Ш} $cyrlow > Sh;"
"Ш > SH; ш > sh;"
"С > S; с > s;"
"Т > T; т > t;"
"У > U; у > u;"
"Ф > F; ф > f;"
"Ч} $cyrlow > Ch;"
"Ч > CH; ч > ch;"
"Ц > C; ц > c;"
"Ю} $acute? $cyrlow > Ju;"
"Ю > JU; ю > ju;"
"Я} $acute? $cyrlow > Ja;"
"Я > JA; я > ja;"
"Й > J; й > j;"
"$wordBoundary {Ь > Hj;"
"$wordBoundary {ь > hj;"
"Ь} [АаЕеІіУу] > J $quote;"
"ь} [АаЕеІіУу] > j $quote;"
"Ь > J; ь > j;"
"’ > $quote;"
"Ё} $cyrlow > Jow;"
"Ё > JOW; ё > jow;"
"Ў} $cyrlow > Uh;"
"Ў > UH; ў > uh;"
"Ъ} $cyrlow > Oh;"
"Ъ > OH; ъ > oh;"
"Ы} $cyrlow > Yw;"
"Ы > YW; ы > yw;"
"Э} $cyrlow > Ehw;"
"Э > EHW; э > ehw;"
"::NFC;"
;

static const UChar _TableName_DSTU_9112_B_uk[] = u"uk_DSTU9112B-uk";

static char _Table_DSTU_9112_B_uk[] =
":: ([[BCDFGHKLMNPRSTVWXZbcdfghklmnprstvwxzAEIOUYaeiouyJj'ÁáÉéÍíÓóÚúÝý] [\\u0301]]);"
"::NFC;"
"$quote = \\u0027;"
"$acute = \\u0301;"
"$cyrcons = [БВГҐДЖЗКЛМНПРСТФХЦЧШЩбвгґджзклмнпрстфхцчшщ];"
"Á > A $acute; á > a $acute;"
"É > E $acute; é > e $acute;"
"Í > I $acute; í > i $acute;"
"Ó > O $acute; ó > o $acute;"
"Ú > U $acute; ú > u $acute;"
"Ý > Y $acute; ý > y $acute;"
"::Null;"
"J[Oo][Ww] > Ё; j[Oo][Ww] > ё;"
"U[Hh] > Ў; u[Hh] > ў;"
"O[Hh] > Ъ; o[Hh] > ъ;"
"Y[Ww] > Ы; y[Ww] > ы;"
"E[Hh][Ww] > Э; e[Hh][Ww] > э;"
"A > А; a > а;"
"B > Б; b > б;"
"V > В; v > в;"
"G[Hh] > Г; g[Hh] > г;"
"G > Ґ; g > ґ;"
"D > Д; d > д;"
"E > Е; e > е;"
"J[Ee] > Є; j[Ee] > є;"
"Z[Hh] > Ж; z[Hh] > ж;"
"Z > З; z > з;"
"Y > И; y > и;"
"I > І; i > і;"
"J[Ii] > Ї; j[Ii] > ї;"
"K[Hh] > Х; k[Hh] > х;"
"K > К; k > к;"
"L > Л; l > л;"
"M > М; m > м;"
"N > Н; n > н;"
"O > О; o > о;"
"P > П; p > п;"
"R > Р; r > р;"
"S[Hh][Cc][Hh] > Щ;"
"s[Hh][Cc][Hh] > щ;"
"S[Hh] > Ш; s[Hh] > ш;"
"S > С; s > с;"
"T > Т; t > т;"
"U > У; u > у;"
"F > Ф; f > ф;"
"C[Hh] > Ч; c[Hh] > ч;"
"C > Ц; c > ц;"
"J[Uu] > Ю; j[Uu] > ю;"
"J[Aa] > Я; j[Aa] > я;"
"H[Jj] > Ь; h[Jj] > ь;"
"$cyrcons {J > Ь;"
"$cyrcons {j > ь;"
"$cyrcons [Ьь] {$quote} [AEIUaeiu] > ;"
"$quote J} [^AEIUaeiu] > Й;"
"$quote j} [^AEIUaeiu] > й;"
"J > Й; j > й;"
"$quote} [Jj] > ’;"
"::NFC;"
;

static const UChar _TableName_uk_DSTU_9112_A[] = u"uk-uk_DSTU9112A";

static char _Table_uk_DSTU_9112_A[] =
"::[[АБВГҐДЕЄЖЗИІЇЙКЛМНОПРСТУФХЦЧШЩЮЯЬабвгґдеєжзиіїйклмнопрстуфхцчшщюяь’ЁЎЪЫЭёўъыэ] [\\u0301\\u0306\\u0308]];"
"::NFC;"
"$quote = \\u0027;"
"$acute = \\u0301;"
"$cyrcons = [БВГҐДЖЗКЛМНПРСТФХЦЧШЩбвгґджзклмнпрстфхцчшщ];"
"$cyrlow = [бвгґджзйклмнпрстфхцчшщьаеєиіїоуюя’];"
"$wordBoundary = [^[:L:][:M:][:N:]];"
"($cyrcons)} [Йй] > | $1 $quote;"
"А > A; а > a;"
"Б > B; б > b;"
"В > V; в > v;"
"Г > Ğ; г > ğ;"
"Ґ > G; ґ > g;"
"Д > D; д > d;"
"Е > E; е > e;"
"Є} $acute? $cyrlow > Je;"
"Є > JE; є > je;"
"Ж > Ž; ж > ž;"
"З > Z; з > z;"
"И > Y; и > y;"
"І > I; і > i;"
"Ї > Ï; ї > ï;"
"К > K; к > k;"
"Л > L; л > l;"
"М > M; м > m;"
"Н > N; н > n;"
"О > O; о > o;"
"П > P; п > p;"
"Р > R; р > r;"
"С > S; с > s;"
"Т > T; т > t;"
"У > U; у > u;"
"Ф > F; ф > f;"
"Х > X; х > x;"
"Ц > C; ц > c;"
"Ч > Č; ч > č;"
"Ш > Š; ш > š;"
"Щ > Ŝ; щ > ŝ;"
"Ю} $acute? $cyrlow > Ju;"
"Ю > JU; ю > ju;"
"Я} $acute? $cyrlow > Ja;"
"Я > JA; я > ja;"
"$wordBoundary {Ь > Ĵ;"
"$wordBoundary {ь > ĵ;"
"Ь} [АЕУаеу] > J $quote;"
"ь} [АЕУаеу] > j $quote;"
"Ь > J; ь > j;"
"Й > J; й > j;"
"’ > $quote;"
"Ё > Ö; ё > ö;"
"Ў > Ŭ; ў > ŭ;"
"Ъ > Ǒ; ъ > ǒ;"
"Ы > Ȳ; ы > ȳ;"
"Э > Ē; э > ē;"
"::NFC;"
;

static int
_uklatn_register_tables(void) {
int err = 0;
err = _uklatn_register_table(_TableName_DSTU_9112_A_uk, _Table_DSTU_9112_A_uk);
if (err != 0) { return err; }
err = _uklatn_register_table(_TableName_uk_KMU_55, _Table_uk_KMU_55);
if (err != 0) { return err; }
err = _uklatn_register_table(_TableName_uk_DSTU_9112_B, _Table_uk_DSTU_9112_B);
if (err != 0) { return err; }
err = _uklatn_register_table(_TableName_DSTU_9112_B_uk, _Table_DSTU_9112_B_uk);
if (err != 0) { return err; }
err = _uklatn_register_table(_TableName_uk_DSTU_9112_A, _Table_uk_DSTU_9112_A);
if (err != 0) { return err; }
return 0;
}

Loading

0 comments on commit cbeb25e

Please sign in to comment.