Skip to content

Commit

Permalink
fix: include the single quote as the first character in the character…
Browse files Browse the repository at this point in the history
… map
  • Loading branch information
CicadaCinema committed Aug 7, 2023
1 parent fc2afb3 commit 71e70e8
Showing 1 changed file with 87 additions and 86 deletions.
173 changes: 87 additions & 86 deletions lib/src/data_structures/data_structures.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,92 +16,93 @@ import '../linkedlist_word_converter.dart';
part 'data_structures.g.dart';

const characterMap = {
'A': 1,
'a': 2,
'Ā': 3,
'ā': 4,
'Á': 5,
'á': 6,
'Ǎ': 7,
'ǎ': 8,
'À': 9,
'à': 10,
'B': 11,
'b': 12,
'C': 13,
'c': 14,
'D': 15,
'd': 16,
'E': 17,
'e': 18,
'Ē': 19,
'ē': 20,
'É': 21,
'é': 22,
'Ě': 23,
'ě': 24,
'È': 25,
'è': 26,
'F': 27,
'f': 28,
'G': 29,
'g': 30,
'H': 31,
'h': 32,
'I': 33,
'i': 34,
'ī': 35,
'í': 36,
'ǐ': 37,
'ì': 38,
'J': 39,
'j': 40,
'K': 41,
'k': 42,
'L': 43,
'l': 44,
'M': 45,
'm': 46,
'N': 47,
'n': 48,
'O': 49,
'o': 50,
'ō': 51,
'ó': 52,
'ǒ': 53,
'ò': 54,
'P': 55,
'p': 56,
'Q': 57,
'q': 58,
'R': 59,
'r': 60,
'S': 61,
's': 62,
'T': 63,
't': 64,
'U': 65,
'u': 66,
'ū': 67,
'ú': 68,
'ǔ': 69,
'ù': 70,
'Ü': 71,
'ü': 72,
'ǖ': 73,
'ǘ': 74,
'ǚ': 75,
'ǜ': 76,
'V': 77,
'v': 78,
'W': 79,
'w': 80,
'X': 81,
'x': 82,
'Y': 83,
'y': 84,
'Z': 85,
'z': 86,
"'": 1,
'A': 2,
'a': 3,
'Ā': 4,
'ā': 5,
'Á': 6,
'á': 7,
'Ǎ': 8,
'ǎ': 9,
'À': 10,
'à': 11,
'B': 12,
'b': 13,
'C': 14,
'c': 15,
'D': 16,
'd': 17,
'E': 18,
'e': 19,
'Ē': 20,
'ē': 21,
'É': 22,
'é': 23,
'Ě': 24,
'ě': 25,
'È': 26,
'è': 27,
'F': 28,
'f': 29,
'G': 30,
'g': 31,
'H': 32,
'h': 33,
'I': 34,
'i': 35,
'ī': 36,
'í': 37,
'ǐ': 38,
'ì': 39,
'J': 40,
'j': 41,
'K': 42,
'k': 43,
'L': 44,
'l': 45,
'M': 46,
'm': 47,
'N': 48,
'n': 49,
'O': 50,
'o': 51,
'ō': 52,
'ó': 53,
'ǒ': 54,
'ò': 55,
'P': 56,
'p': 57,
'Q': 58,
'q': 59,
'R': 60,
'r': 61,
'S': 62,
's': 63,
'T': 64,
't': 65,
'U': 66,
'u': 67,
'ū': 68,
'ú': 69,
'ǔ': 70,
'ù': 71,
'Ü': 72,
'ü': 73,
'ǖ': 74,
'ǘ': 75,
'ǚ': 76,
'ǜ': 77,
'V': 78,
'v': 79,
'W': 80,
'w': 81,
'X': 82,
'x': 83,
'Y': 84,
'y': 85,
'Z': 86,
'z': 87,
};

// TODO: get rid of this and use the enum below instead, like in the settings page
Expand Down

0 comments on commit 71e70e8

Please sign in to comment.