translit/
bulgarian.rs

1use super::CharsMapping;
2
3/// Official system for transliterating Bulgarian
4///
5/// more details:
6/// [Romanization of Bulgarian #Streamlined system](https://en.wikipedia.org/wiki/Romanization_of_Bulgarian#Streamlined_System)
7///
8/// Attention: Converting back from romanized cyrillic to cyrillic is ambiguous, thus not supported
9pub fn streamlined_system() -> CharsMapping {
10    [
11        ("А", "A"),
12        ("Б", "B"),
13        ("В", "V"),
14        ("Г", "G"),
15        ("Д", "D"),
16        ("Е", "E"),
17        ("Ж", "Zh"),
18        ("З", "Z"),
19        ("И", "I"),
20        ("Й", "Y"),
21        ("К", "K"),
22        ("Л", "L"),
23        ("М", "M"),
24        ("Н", "N"),
25        ("О", "O"),
26        ("П", "P"),
27        ("Р", "R"),
28        ("С", "S"),
29        ("Т", "T"),
30        ("У", "U"),
31        ("Ф", "F"),
32        ("Х", "H"),
33        ("Ц", "Ts"),
34        ("Ч", "Ch"),
35        ("Ш", "Sh"),
36        ("Щ", "Sht"),
37        ("Ъ", "A"),
38        ("Ь", "Y"),
39        ("Ю", "Yu"),
40        ("Я", "Ya"),
41        ("а", "a"),
42        ("б", "b"),
43        ("в", "v"),
44        ("г", "g"),
45        ("д", "d"),
46        ("е", "e"),
47        ("ж", "zh"),
48        ("з", "z"),
49        ("и", "i"),
50        ("й", "y"),
51        ("к", "k"),
52        ("л", "l"),
53        ("м", "m"),
54        ("н", "n"),
55        ("о", "o"),
56        ("п", "p"),
57        ("р", "r"),
58        ("с", "s"),
59        ("т", "t"),
60        ("у", "u"),
61        ("ф", "f"),
62        ("х", "h"),
63        ("ц", "ts"),
64        ("ч", "ch"),
65        ("ш", "sh"),
66        ("щ", "sht"),
67        ("ъ", "a"),
68        ("ь", "y"),
69        ("ю", "yu"),
70        ("я", "ya"),
71        ("№", "#"),
72    ]
73    .iter()
74    .cloned()
75    .collect()
76}