math_text_transform/variants/
bold_fraktur.rs

1/// Transform a character to it's mathematical bold fraktur
2/// equivalent.
3pub fn math_bold_fraktur(c: char) -> Option<char> {
4    match c {
5        // Latin capital letters.
6        'A' => Some('𝕬'),
7        'B' => Some('𝕭'),
8        'C' => Some('𝕮'),
9        'D' => Some('𝕯'),
10        'E' => Some('𝕰'),
11        'F' => Some('𝕱'),
12        'G' => Some('𝕲'),
13        'H' => Some('𝕳'),
14        'I' => Some('𝕴'),
15        'J' => Some('𝕵'),
16        'K' => Some('𝕶'),
17        'L' => Some('𝕷'),
18        'M' => Some('𝕸'),
19        'N' => Some('𝕹'),
20        'O' => Some('𝕺'),
21        'P' => Some('𝕻'),
22        'Q' => Some('𝕼'),
23        'R' => Some('𝕽'),
24        'S' => Some('𝕾'),
25        'T' => Some('𝕿'),
26        'U' => Some('𝖀'),
27        'V' => Some('𝖁'),
28        'W' => Some('𝖂'),
29        'X' => Some('𝖃'),
30        'Y' => Some('𝖄'),
31        'Z' => Some('𝖅'),
32
33        // Latin small letters.
34        'a' => Some('𝖆'),
35        'b' => Some('𝖇'),
36        'c' => Some('𝖈'),
37        'd' => Some('𝖉'),
38        'e' => Some('𝖊'),
39        'f' => Some('𝖋'),
40        'g' => Some('𝖌'),
41        'h' => Some('𝖍'),
42        'i' => Some('𝖎'),
43        'j' => Some('𝖏'),
44        'k' => Some('𝖐'),
45        'l' => Some('𝖑'),
46        'm' => Some('𝖒'),
47        'n' => Some('𝖓'),
48        'o' => Some('𝖔'),
49        'p' => Some('𝖕'),
50        'q' => Some('𝖖'),
51        'r' => Some('𝖗'),
52        's' => Some('𝖘'),
53        't' => Some('𝖙'),
54        'u' => Some('𝖚'),
55        'v' => Some('𝖛'),
56        'w' => Some('𝖜'),
57        'x' => Some('𝖝'),
58        'y' => Some('𝖞'),
59        'z' => Some('𝖟'),
60
61        // No equivalence.
62        _ => None,
63    }
64}