tetrak_translit.ru.fold¶
The Russian fold: one index form for every spelling of a word.
For what a fold is for, see tetrak_translit.fold. Russian names
reach a catalogue in more Latin spellings than any other script here:
ALA-LC in libraries (Chaĭkovskiĭ), BGN/PCGN on maps (Yekaterinburg),
ISO 9 and the scholarly transliteration in European libraries
(Čajkovskij), and the popular English, German and French forms
(Tchaikovsky, Tschaikowski). And the Cyrillic itself comes in two
spellings, before and after the 1918 reform.
So the rules are: Cyrillic is rendered through ALA-LC – the 2012 table,
frozen here as the other folds freeze theirs, so that a new edition of
the display table never moves a key – which takes the pre-reform letters
to their modern values on the way (ѣ and е both reach e, і
and и both i). Latin is lowercased; the scholarly letters become
their ALA-LC digraphs (č ch, ŝ and šč shch) and ISO 9’s
â and û become ia and iu; diacritics, ties, the signs and the
apostrophes go. Then the German and French digraphs are collapsed
(schtsch, tsch, tch, sch, ou), x becomes ks, w v,
j and y i, a c that does not start ch becomes ts, and an
h that is not part of a digraph becomes kh. The glide before e is
dropped (Yevgeniy, Vasilyev to evgenii, vasilev), because ALA-LC
writes none; yo and io after a consonant become e, because ALA-LC’s
ё is ë; a closing ff becomes v. Doubled letters are collapsed
and anything that is not a letter or digit is removed.
Known gaps: the German and French spellings that use a letter for
another sound (German ch for х and z for ц, French ch for
ш and j for ж), the English Rachmaninoff, and translated
names (Peter for Пётр). The test set in
tests/data/ru_fold_cases.tsv is the published claim.
Functions
|
Fold one whitespace-free token, Cyrillic or Latin, to its key. |