plint

French poetry validator
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit f5bfaa1b3f39db027387b09048c603463ce1a09d
parent 67c93dd8b5710b6afacfbdf581cbbbd5c156c4fe
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 27 Jul 2014 11:40:22 +0200

diaeresis_cyrano file

Diffstat:
.gitignore | 2+-
README | 6+++++-
additions_cyrano | 4++++
diaeresis_cyrano.json | 1+
test.sh | 11++++++++++-
5 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -16,6 +16,6 @@ contextsm messages.mo messages.pot res/*.mo -diaeresis*.json +diaeresis?.json Lexique*.zip haspirater diff --git a/README b/README @@ -81,7 +81,11 @@ simple test suite, run python3 versetest.py; they should all pass. The diaeresis pattern "diaeresis.json" is trained by calling - ./train_diaeresis.sh + ./train_diaeresis.sh > diaeresis.json + +You can also train a specific pattern for _Cyrano de Bergerac_ with: + + ./train_diaeresis.sh _full ../additions_cyrano > diaeresis_cyrano.json This is currently undocumented. The plint folder should contain a copy of the haspirater code (possibly as a symlink) in "haspirater/". diff --git a/additions_cyrano b/additions_cyrano @@ -0,0 +1,4 @@ +tatata tatata tat artificiel +tatata tatata tata vénitien +tatata tatata tatata tatat aï +tatata tatata tatata tatat Aï diff --git a/diaeresis_cyrano.json b/diaeresis_cyrano.json @@ -0,0 +1 @@ +[{"1": 33037, "2": 2928}, {"o\u00fcoi": [{"2": 5}, {}], "i\u00e9e": [{"2": 16}, {}], "ee": [{"1": 10}, {}], "\u00e9u": [{"2": 21}, {}], "ye": [{"1": 5}, {}], "oo": [{"1": 5, "2": 5}, {"t": [{"1": 5}, {}], "r": [{"2": 5}, {}]}], "au": [{"1": 2293}, {}], "\u0153u": [{"1": 191}, {}], "ue": [{"1": 201, "2": 181}, {"l": [{"2": 65}, {}], "s": [{"1": 19}, {}], "r": [{"1": 40, "2": 67}, {"l": [{"2": 13}, {}], "c": [{"2": 4}, {}], "b": [{"2": 4}, {}], "t": [{"1": 35, "2": 16}, {"a": [{"1": 15}, {}], "o": [{"1": 10}, {}], "-": [{"2": 16}, {}], "i": [{"1": 10}, {}]}], "m": [{"1": 5, "2": 12}, {"a": [{"1": 5, "2": 4}, {"e": [{"1": 5, "2": 4}, {"i": [{"1": 5, "2": 4}, {"r": [{"1": 5, "2": 4}, {"t": [{"1": 5, "2": 4}, {"/": [{"1": 5, "2": 4}, {"i": [{"1": 5}, {}], "-": [{"2": 4}, {}]}]}]}]}]}]}], "/": [{"2": 8}, {}]}], "n": [{"2": 13}, {}], "h": [{"2": 5}, {}]}], "t": [{"1": 5, "2": 27}, {"l": [{"2": 5}, {}], "n": [{"2": 4}, {}], "t": [{"1": 5}, {}], "m": [{"2": 18}, {}]}], "/": [{"1": 122}, {}], "n": [{"1": 15, "2": 9}, {"l": [{"2": 9}, {}], "p": [{"1": 10}, {}], "m": [{"1": 5}, {}]}], "z": [{"2": 13}, {}]}], "uo": [{"1": 5, "2": 22}, {"s": [{"2": 9}, {}], "n": [{"1": 5, "2": 13}, {"l": [{"2": 13}, {}], "g": [{"1": 5}, {}]}]}], "a\u00ee": [{"1": 269}, {}], "iou": [{"1": 16, "2": 5}, {"s": [{"1": 16}, {}], "l": [{"2": 5}, {}]}], "io": [{"1": 126, "2": 485}, {"l": [{"1": 10, "2": 45}, {"v": [{"1": 5, "2": 33}, {"a": [{"2": 4}, {}], "o": [{"2": 8}, {}], "e": [{"1": 5, "2": 21}, {"/": [{"1": 5, "2": 21}, {"n": [{"2": 13}, {}], "r": [{"1": 5}, {}], "t": [{"2": 4}, {}], "-": [{"2": 4}, {}]}]}]}], "r": [{"2": 12}, {}], "f": [{"1": 5}, {}]}], "r": [{"2": 13}, {}], "d": [{"2": 4}, {}], "c": [{"2": 17}, {}], "g": [{"2": 4}, {}], "t": [{"1": 5, "2": 9}, {"l": [{"2": 4}, {}], "d": [{"2": 5}, {}], "b": [{"1": 5}, {}]}], "m": [{"1": 5, "2": 34}, {"l": [{"2": 5}, {}], "g": [{"1": 5}, {}], "r": [{"2": 29}, {}]}], "s": [{"2": 9}, {}], "p": [{"2": 4}, {}], "n": [{"1": 106, "2": 346}, {"s": [{"1": 31, "2": 90}, {"s": [{"1": 31, "2": 64}, {"s": [{"1": 26, "2": 30}, {"/": [{"1": 26, "2": 30}, {"a": [{"1": 16, "2": 16}, {"/": [{"1": 16, "2": 16}, {"p": [{"2": 16}, {}], "f": [{"1": 16}, {}]}]}], "e": [{"2": 14}, {}], "i": [{"1": 10}, {}]}]}], "i": [{"1": 5, "2": 22}, {"/": [{"1": 5, "2": 22}, {"c": [{"2": 4}, {}], "d": [{"1": 5}, {}], "u": [{"2": 4}, {}], "v": [{"2": 14}, {}]}]}], "n": [{"2": 4}, {}], "u": [{"2": 8}, {}]}], "/": [{"2": 13}, {}], "-": [{"2": 4}, {}], "n": [{"2": 9}, {}]}], "l": [{"1": 10, "2": 58}, {"s": [{"1": 10, "2": 23}, {"l": [{"1": 5}, {}], "/": [{"2": 15}, {}], "b": [{"2": 4}, {}], "r": [{"1": 5}, {}], "p": [{"2": 4}, {}]}], "i": [{"2": 5}, {}], "/": [{"2": 13}, {}], "-": [{"2": 13}, {}], "n": [{"2": 4}, {}]}], "d": [{"2": 9}, {}], "v": [{"1": 5, "2": 5}, {"s": [{"1": 5, "2": 5}, {"a": [{"1": 5}, {}], "n": [{"2": 5}, {}]}]}], "t": [{"1": 15, "2": 77}, {"s": [{"1": 15, "2": 59}, {"a": [{"2": 13}, {}], "c": [{"2": 17}, {}], "n": [{"1": 5, "2": 20}, {"/": [{"1": 5, "2": 20}, {"e": [{"1": 5, "2": 20}, {"/": [{"1": 5, "2": 20}, {"v": [{"2": 5}, {}], "t": [{"2": 15}, {}], "m": [{"1": 5}, {}]}]}]}]}], "i": [{"2": 4}, {}], "o": [{"1": 5}, {}], "p": [{"2": 5}, {}], "u": [{"1": 5}, {}]}], "/": [{"2": 18}, {}]}], "m": [{"1": 10, "2": 45}, {"s": [{"1": 5}, {}], "e": [{"1": 5, "2": 45}, {"\u00e9": [{"1": 5}, {}], "r": [{"2": 45}, {}]}]}], "p": [{"2": 14}, {}], "r": [{"1": 35, "2": 13}, {"s": [{"1": 35, "2": 4}, {"d": [{"2": 4}, {}], "u": [{"1": 15}, {}], "r": [{"1": 15}, {}], "e": [{"1": 5}, {}]}], "a": [{"2": 4}, {}], "/": [{"2": 5}, {}]}], "x": [{"2": 4}, {}], "g": [{"2": 9}, {}], "f": [{"2": 4}, {}], "n": [{"2": 16}, {}], "h": [{"2": 2}, {}]}]}], "ouo": [{"2": 4}, {}], "e": [{"1": 42}, {}], "\u00e9i": [{"2": 43}, {}], "oue": [{"1": 95, "2": 120}, {"s": [{"1": 12, "2": 10}, {"r": [{"2": 10}, {}], "j": [{"1": 12}, {}]}], "r": [{"1": 25, "2": 64}, {"l": [{"2": 16}, {}], "v": [{"1": 10, "2": 21}, {"a": [{"1": 10}, {}], "/": [{"2": 17}, {}], "-": [{"2": 4}, {}]}], "n": [{"2": 4}, {}], "r": [{"2": 8}, {}], "j": [{"1": 15, "2": 15}, {"a": [{"1": 5}, {}], "o": [{"1": 5}, {}], "-": [{"2": 15}, {}], "e": [{"1": 5}, {}]}]}], "t": [{"1": 5, "2": 27}, {"l": [{"2": 9}, {}], "j": [{"2": 14}, {}], "r": [{"2": 4}, {}], "f": [{"1": 5}, {}]}], "m": [{"1": 10}, {}], "/": [{"1": 38}, {}], "n": [{"1": 5, "2": 5}, {"r": [{"1": 5, "2": 5}, {"-": [{"1": 5, "2": 5}, {"-": [{"1": 5, "2": 5}, {}]}]}]}], "z": [{"2": 14}, {}]}], "ae": [{"1": 15}, {}], "\u00e9e": [{"1": 80, "2": 27}, {"s": [{"2": 12}, {}], "x": [{"2": 5}, {}], "l": [{"2": 5}, {}], "/": [{"1": 80}, {}], "n": [{"2": 5}, {}]}], "aei": [{"2": 5}, {}], "oeu": [{"1": 125}, {}], "e\u00fci": [{"1": 5}, {}], "a\u00e9": [{"2": 5}, {}], "ouaie": [{"2": 4}, {}], "oie": [{"1": 133}, {}], "u\u00ef": [{"2": 5}, {}], "iu": [{"2": 13}, {}], "\u00e9\u00e2": [{"2": 17}, {}], "a\u00efeu": [{"2": 36}, {}], "ui\u00e8": [{"1": 5}, {}], "o\u00fb": [{"1": 56}, {}], "\u00e9au": [{"2": 9}, {}], "u\u00e9": [{"2": 8}, {}], "\u00e9o": [{"2": 30}, {}], "u\u00e9e": [{"2": 13}, {}], "ou\u00ef": [{"2": 18}, {}], "iei": [{"1": 31}, {}], "i\u00e8": [{"1": 343, "2": 64}, {"c": [{"1": 32}, {}], "r": [{"1": 231, "2": 29}, {"s": [{"1": 18}, {}], "l": [{"1": 13}, {}], "c": [{"1": 5}, {}], "v": [{"1": 15}, {}], "t": [{"1": 30}, {}], "m": [{"1": 44}, {}], "p": [{"1": 5}, {}], "r": [{"1": 31, "2": 29}, {"e": [{"1": 31, "2": 29}, {"t": [{"2": 8}, {}], "c": [{"2": 5}, {}], "u": [{"1": 5}, {}], "r": [{"1": 26}, {}], "p": [{"2": 16}, {}]}]}], "d": [{"1": 10}, {}], "f": [{"1": 15}, {}], "q": [{"1": 10}, {}], "n": [{"1": 35}, {}]}], "t": [{"1": 5, "2": 18}, {"q": [{"2": 18}, {}], "p": [{"1": 5}, {}]}], "m": [{"1": 35, "2": 17}, {"s": [{"1": 10, "2": 4}, {"e": [{"1": 10, "2": 4}, {"i": [{"1": 10, "2": 4}, {"/": [{"1": 10, "2": 4}, {"o": [{"1": 10, "2": 4}, {"/": [{"1": 10, "2": 4}, {"r": [{"1": 10, "2": 4}, {"/": [{"1": 10, "2": 4}, {"t": [{"1": 10, "2": 4}, {"-": [{"1": 10, "2": 4}, {"-": [{"1": 10, "2": 4}, {}]}]}]}]}]}]}]}]}]}]}], "x": [{"1": 15}, {}], "v": [{"1": 5}, {}], "t": [{"2": 4}, {}], "q": [{"1": 5}, {}], "r": [{"2": 9}, {}]}], "g": [{"1": 20}, {}], "v": [{"1": 20}, {}]}], "oei": [{"1": 18}, {}], "u\u00ea": [{"1": 10}, {}], "i\u00e2ou": [{"2": 4}, {}], "a\u00ef": [{"1": 10, "2": 74}, {"s": [{"2": 14}, {}], "-": [{"1": 10}, {}], "t": [{"2": 4}, {}], "f": [{"2": 13}, {}], "/": [{"2": 8}, {}], "r": [{"2": 20}, {}], "v": [{"2": 15}, {}]}], "ya": [{"2": 12}, {}], "oa": [{"2": 16}, {}], "aie": [{"1": 129}, {}], "u\u00ee": [{"1": 15, "2": 4}, {"t": [{"1": 15, "2": 4}, {"h": [{"1": 15, "2": 4}, {"r": [{"1": 15, "2": 4}, {"l": [{"1": 10}, {}], "/": [{"1": 5, "2": 4}, {"i": [{"2": 4}, {}], "e": [{"1": 5}, {}]}]}]}]}]}], "ou\u00fc": [{"1": 10}, {}], "a\u00efe": [{"1": 5, "2": 14}, {"-": [{"1": 5}, {}], "n": [{"2": 14}, {}]}], "uei": [{"1": 23}, {}], "ouai": [{"2": 15}, {}], "e\u00fb": [{"1": 56}, {}], "eu": [{"1": 3738}, {}], "eui": [{"1": 52}, {}], "oua": [{"1": 15, "2": 43}, {"/": [{"2": 12}, {}], "n": [{"2": 27}, {}], "t": [{"2": 4}, {}], "h": [{"1": 15}, {}]}], "oueu": [{"2": 13}, {}], "oi": [{"1": 3859}, {}], "yeu": [{"1": 219}, {}], "oe": [{"1": 40, "2": 5}, {"l": [{"1": 10}, {}], "m": [{"1": 5}, {}], "d": [{"1": 20}, {}], "r": [{"2": 5}, {}], "f": [{"1": 5}, {}]}], "iau": [{"1": 5, "2": 5}, {"l": [{"1": 5, "2": 5}, {"m": [{"1": 5, "2": 5}, {"e": [{"1": 5, "2": 5}, {"/": [{"1": 5, "2": 5}, {"-": [{"1": 5, "2": 5}, {"-": [{"1": 5, "2": 5}, {}]}]}]}]}]}]}], "\u00e9ie": [{"2": 5}, {}], "ua": [{"2": 19}, {}], "\u00ea\u00ea": [{"1": 5}, {}], "\u00e9\u00e9": [{"2": 15}, {}], "euoe": [{"2": 4}, {}], "yau": [{"2": 4}, {}], "iai": [{"2": 15}, {}], "eau": [{"1": 450}, {}], "ui": [{"1": 1478, "2": 58}, {"s": [{"1": 429}, {}], "l": [{"1": 14}, {}], "c": [{"1": 18}, {}], "v": [{"1": 76}, {}], "t": [{"1": 315, "2": 5}, {"s": [{"1": 43}, {}], "l": [{"2": 5}, {}], "d": [{"1": 55}, {}], "c": [{"1": 5}, {}], "g": [{"1": 10}, {}], "f": [{"1": 35}, {}], "n": [{"1": 49}, {}], "p": [{"1": 10}, {}], "r": [{"1": 92}, {}], "h": [{"1": 16}, {}]}], "m": [{"1": 46}, {}], "/": [{"1": 468}, {}], "p": [{"1": 5}, {}], "r": [{"1": 49}, {}], "d": [{"1": 20}, {}], "g": [{"1": 13}, {}], "n": [{"1": 25, "2": 53}, {"g": [{"1": 10}, {}], "r": [{"1": 10, "2": 53}, {"\u00e9": [{"1": 5, "2": 9}, {"/": [{"1": 5, "2": 9}, {"s": [{"2": 5}, {}], "-": [{"1": 5, "2": 4}, {"-": [{"1": 5, "2": 4}, {}]}]}]}], "e": [{"1": 5, "2": 44}, {"/": [{"1": 5, "2": 44}, {"s": [{"2": 5}, {}], "-": [{"1": 5, "2": 35}, {"-": [{"1": 5, "2": 35}, {}]}], "u": [{"2": 4}, {}]}]}]}], "j": [{"1": 5}, {}]}]}], "ea": [{"1": 51}, {}], "ao\u00fb": [{"1": 5}, {}], "o\u00fc\u00e9": [{"2": 4}, {}], "you": [{"1": 5}, {}], "uaie": [{"2": 4}, {}], "eoie": [{"1": 5}, {}], "ou": [{"1": 8130}, {}], "o\u00e8": [{"2": 16}, {}], "aouie": [{"2": 5}, {}], "o\u00ef": [{"2": 19}, {}], "u\u00e8": [{"2": 8}, {}], "yu": [{"1": 5}, {}], "ouie": [{"2": 4}, {}], "o\u00ea": [{"1": 5}, {}], "\u00e9ai": [{"2": 5}, {}], "a\u00efa": [{"2": 4}, {}], "e\u00ee": [{"1": 5}, {}], "uie": [{"1": 15}, {}], "u\u00eb": [{"1": 16}, {}], "ieu": [{"1": 609, "2": 260}, {"s": [{"2": 34}, {}], "x": [{"1": 269, "2": 210}, {"l": [{"1": 74}, {}], "d": [{"1": 74, "2": 44}, {"/": [{"1": 23, "2": 44}, {"a": [{"1": 18, "2": 10}, {"/": [{"2": 10}, {}], "-": [{"1": 18}, {}]}], "o": [{"2": 30}, {}], "u": [{"2": 4}, {}], "i": [{"1": 5}, {}]}], "-": [{"1": 51}, {}]}], "c": [{"1": 22, "2": 46}, {"/": [{"2": 46}, {}], "-": [{"1": 22}, {}]}], "r": [{"2": 51}, {}], "t": [{"2": 15}, {}], "m": [{"1": 75}, {}], "g": [{"2": 9}, {}], "p": [{"2": 15}, {}], "n": [{"2": 14}, {}], "v": [{"1": 24, "2": 16}, {"/": [{"2": 16}, {}], "-": [{"1": 24}, {}]}]}], "/": [{"1": 229}, {}], "r": [{"1": 111, "2": 16}, {"s": [{"1": 111}, {}], "r": [{"2": 16}, {}]}]}], "ia": [{"1": 85, "2": 205}, {"l": [{"2": 16}, {}], "r": [{"1": 5, "2": 5}, {"l": [{"1": 5}, {}], "t": [{"2": 5}, {}]}], "d": [{"2": 15}, {}], "g": [{"2": 16}, {}], "t": [{"2": 17}, {}], "m": [{"2": 17}, {}], "s": [{"2": 13}, {}], "/": [{"2": 13}, {}], "p": [{"2": 4}, {}], "n": [{"1": 63, "2": 75}, {"l": [{"2": 18}, {}], "d": [{"1": 30, "2": 5}, {"e": [{"1": 15}, {}], "t": [{"1": 15, "2": 5}, {"o": [{"2": 5}, {}], "/": [{"1": 15}, {}]}]}], "c": [{"2": 4}, {}], "v": [{"1": 5, "2": 4}, {"d": [{"1": 5}, {}], "t": [{"2": 4}, {}]}], "t": [{"1": 28, "2": 9}, {"i": [{"2": 4}, {}], "/": [{"1": 28}, {}], "t": [{"2": 5}, {}]}], "f": [{"2": 13}, {}], "r": [{"2": 22}, {}]}], "b": [{"1": 17, "2": 14}, {"k": [{"2": 5}, {}], "c": [{"2": 9}, {}], "d": [{"1": 17}, {}]}]}], "ie": [{"1": 2714, "2": 550}, {"l": [{"1": 114, "2": 18}, {"m": [{"1": 10}, {}], "c": [{"1": 91, "2": 9}, {"/": [{"2": 9}, {}], "-": [{"1": 91}, {}]}], "t": [{"2": 9}, {}], "f": [{"1": 13}, {}]}], "s": [{"1": 74, "2": 9}, {"s": [{"1": 10}, {}], "d": [{"2": 9}, {}], "c": [{"1": 10}, {}], "t": [{"1": 10}, {}], "f": [{"1": 10}, {}], "m": [{"1": 10}, {}], "r": [{"1": 14}, {}], "h": [{"1": 10}, {}]}], "d": [{"1": 61}, {}], "r": [{"1": 887, "2": 240}, {"s": [{"1": 59, "2": 9}, {"s": [{"1": 24}, {}], "/": [{"1": 35, "2": 9}, {"s": [{"1": 15}, {}], "a": [{"1": 5, "2": 9}, {"/": [{"1": 5, "2": 9}, {"r": [{"1": 5}, {}], "t": [{"2": 9}, {}]}]}], "u": [{"1": 5}, {}], "r": [{"1": 10}, {}]}]}], "l": [{"1": 104, "2": 44}, {"s": [{"1": 16}, {}], "/": [{"1": 73, "2": 35}, {"l": [{"1": 5, "2": 4}, {"/": [{"1": 5, "2": 4}, {"a": [{"2": 4}, {}], "i": [{"1": 5}, {}]}]}], "a": [{"1": 17}, {}], "\u00e9": [{"1": 5, "2": 5}, {"/": [{"1": 5, "2": 5}, {"d": [{"2": 5}, {}], "b": [{"1": 5}, {}]}]}], "g": [{"2": 5}, {}], "e": [{"1": 10}, {}], "i": [{"1": 16}, {}], "o": [{"1": 15}, {}], "p": [{"2": 5}, {}], "u": [{"1": 5}, {}], "b": [{"2": 16}, {}]}], "r": [{"1": 10}, {}], "e": [{"1": 5}, {}], "-": [{"2": 9}, {}]}], "c": [{"1": 59, "2": 27}, {"s": [{"1": 16}, {}], "/": [{"1": 33, "2": 27}, {"s": [{"2": 9}, {}], "a": [{"1": 5}, {}], "n": [{"1": 8}, {}], "r": [{"2": 9}, {}], "i": [{"1": 15}, {}], "o": [{"2": 9}, {}], "e": [{"1": 5}, {}]}], "g": [{"1": 10}, {}]}], "v": [{"1": 25, "2": 8}, {"/": [{"1": 10, "2": 8}, {"a": [{"1": 5}, {}], "n": [{"1": 5, "2": 8}, {"/": [{"1": 5, "2": 8}, {"a": [{"1": 5}, {}], "e": [{"2": 8}, {}]}]}]}], "g": [{"1": 15}, {}]}], "t": [{"1": 137, "2": 9}, {"s": [{"1": 18}, {}], "/": [{"1": 114, "2": 9}, {"\u00ee": [{"1": 5}, {}], "r": [{"1": 14}, {}], "\u00e9": [{"1": 16}, {}], "e": [{"1": 18}, {}], "i": [{"1": 18}, {}], "u": [{"1": 5}, {}], "l": [{"1": 18}, {}], "n": [{"1": 20}, {}], "\u00e2": [{"2": 9}, {}]}], "\u00e7": [{"1": 5}, {}]}], "m": [{"1": 51}, {}], "b": [{"1": 16}, {}], "p": [{"1": 48, "2": 21}, {"s": [{"1": 14}, {}], "/": [{"1": 20, "2": 21}, {"a": [{"1": 15}, {}], "o": [{"2": 8}, {}], "r": [{"1": 5}, {}], "x": [{"2": 13}, {}]}], "r": [{"1": 14}, {}]}], "r": [{"1": 73, "2": 46}, {"s": [{"1": 19}, {}], "/": [{"1": 54, "2": 46}, {"a": [{"1": 5}, {}], "c": [{"2": 22}, {}], "r": [{"1": 24}, {}], "o": [{"1": 10, "2": 5}, {"/": [{"1": 10, "2": 5}, {"s": [{"1": 10}, {}], "m": [{"2": 5}, {}]}]}], "p": [{"2": 15}, {}], "u": [{"1": 15}, {}], "v": [{"2": 4}, {}]}]}], "d": [{"1": 10, "2": 8}, {"s": [{"1": 5}, {}], "/": [{"1": 5, "2": 8}, {"\u00e9": [{"2": 4}, {}], "o": [{"2": 4}, {}], "u": [{"1": 5}, {}]}]}], "f": [{"1": 148, "2": 36}, {"s": [{"1": 18}, {}], "/": [{"1": 15, "2": 31}, {"i": [{"2": 18}, {}], "\u00e9": [{"2": 8}, {}], "n": [{"2": 5}, {}], "f": [{"1": 15}, {}]}], "-": [{"1": 97, "2": 5}, {"-": [{"1": 97, "2": 5}, {}]}], "t": [{"1": 18}, {}]}], "h": [{"1": 51, "2": 12}, {"/": [{"1": 5}, {}], "-": [{"1": 41, "2": 12}, {"-": [{"1": 41, "2": 12}, {}]}], "r": [{"1": 5}, {}]}], "q": [{"1": 18}, {}], "n": [{"1": 75, "2": 20}, {"s": [{"1": 14}, {}], "/": [{"1": 61, "2": 5}, {"r": [{"1": 20}, {}], "e": [{"1": 15}, {}], "a": [{"2": 5}, {}], "g": [{"1": 16}, {}], "\u00f4": [{"1": 5}, {}], "u": [{"1": 5}, {}]}], "-": [{"2": 15}, {}]}], "z": [{"1": 13}, {}]}], "t": [{"1": 24, "2": 21}, {"s": [{"1": 14}, {}], "q": [{"2": 17}, {}], "v": [{"1": 5}, {}], "m": [{"1": 5, "2": 4}, {"t": [{"1": 5, "2": 4}, {"/": [{"1": 5, "2": 4}, {"e": [{"1": 5, "2": 4}, {"/": [{"1": 5, "2": 4}, {"-": [{"1": 5, "2": 4}, {"-": [{"1": 5, "2": 4}, {}]}]}]}]}]}]}]}], "f": [{"1": 5}, {}], "/": [{"1": 130}, {}], "n": [{"1": 1121, "2": 177}, {"s": [{"1": 35, "2": 9}, {"s": [{"1": 18, "2": 9}, {"i": [{"2": 9}, {}], "/": [{"1": 18}, {}]}], "-": [{"1": 15}, {}], "n": [{"1": 2}, {}]}], "l": [{"2": 18}, {}], "c": [{"1": 10, "2": 32}, {"c": [{"2": 20}, {}], "/": [{"1": 5, "2": 12}, {"i": [{"2": 12}, {}], "n": [{"1": 5}, {}]}], "n": [{"1": 5}, {}]}], "v": [{"1": 257}, {}], "t": [{"1": 218, "2": 40}, {"s": [{"1": 38}, {}], "c": [{"2": 13}, {}], "-": [{"1": 13}, {}], "t": [{"1": 78, "2": 18}, {"n": [{"1": 15}, {}], "a": [{"2": 18}, {}], "/": [{"1": 24}, {}], "u": [{"1": 19}, {}], "e": [{"1": 20}, {}]}], "/": [{"1": 51, "2": 9}, {"n": [{"1": 14}, {}], "\u00e9": [{"1": 16}, {}], "e": [{"1": 16}, {}], "u": [{"1": 5}, {}], "i": [{"2": 9}, {}]}], "d": [{"1": 14}, {}], "n": [{"1": 24}, {}]}], "m": [{"1": 23}, {}], "r": [{"1": 150, "2": 49}, {"s": [{"1": 10, "2": 8}, {"i": [{"2": 4}, {}], "/": [{"1": 10}, {}], "o": [{"2": 4}, {}]}], "c": [{"2": 15}, {}], "-": [{"1": 140}, {}], "t": [{"2": 14}, {}], "/": [{"2": 8}, {}], "n": [{"2": 4}, {}]}], "d": [{"1": 9, "2": 12}, {"s": [{"1": 4}, {}], "c": [{"2": 8}, {}], "/": [{"1": 5, "2": 4}, {"\u00e9": [{"1": 5, "2": 4}, {"/": [{"1": 5, "2": 4}, {"g": [{"2": 4}, {}], "m": [{"1": 5}, {}]}]}]}]}], "g": [{"2": 13}, {}], "h": [{"1": 14}, {}], "n": [{"2": 4}, {}], "b": [{"1": 405}, {}]}], "z": [{"1": 298, "2": 85}, {"s": [{"1": 20}, {}], "l": [{"1": 41, "2": 16}, {"/": [{"1": 36, "2": 16}, {"l": [{"1": 10}, {}], "u": [{"1": 16}, {}], "e": [{"1": 5}, {}], "b": [{"2": 16}, {}], "r": [{"1": 5}, {}]}], "-": [{"1": 5}, {}]}], "c": [{"2": 15}, {}], "v": [{"1": 14}, {}], "t": [{"1": 16}, {}], "m": [{"1": 15}, {}], "Y": [{"1": 5}, {}], "p": [{"1": 5}, {}], "r": [{"1": 114, "2": 33}, {"/": [{"1": 69, "2": 17}, {"a": [{"1": 5, "2": 4}, {"/": [{"1": 5, "2": 4}, {"v": [{"1": 5, "2": 4}, {"-": [{"1": 5, "2": 4}, {"-": [{"1": 5, "2": 4}, {}]}]}]}]}], "d": [{"2": 13}, {}], "r": [{"1": 18}, {}], "i": [{"1": 10}, {}], "u": [{"1": 14}, {}], "o": [{"1": 5}, {}], "e": [{"1": 17}, {}]}], "-": [{"1": 45, "2": 16}, {"r": [{"1": 10}, {}], "d": [{"2": 12}, {}], "e": [{"1": 15}, {}], "i": [{"1": 10}, {}], "u": [{"1": 10}, {}], "-": [{"2": 4}, {}]}]}], "d": [{"1": 36, "2": 8}, {"/": [{"1": 26, "2": 8}, {"\u00e9": [{"1": 5}, {}], "n": [{"1": 16}, {}], "u": [{"1": 5, "2": 8}, {"/": [{"1": 5, "2": 8}, {"t": [{"1": 5, "2": 8}, {"/": [{"1": 5, "2": 8}, {"\u00e9": [{"1": 5, "2": 8}, {"-": [{"1": 5, "2": 8}, {"-": [{"1": 5, "2": 8}, {}]}]}]}]}]}]}]}], "-": [{"1": 10}, {}]}], "f": [{"2": 13}, {}], "n": [{"1": 16}, {}], "h": [{"1": 16}, {}]}]}], "eue": [{"1": 10, "2": 5}, {"/": [{"1": 10}, {}], "t": [{"2": 5}, {}]}], "a\u00e8": [{"2": 4}, {}], "uau": [{"2": 20}, {}], "ou\u00e9": [{"2": 15}, {}], "\u00e2i": [{"1": 16}, {}], "ai": [{"1": 5798}, {}], "uia": [{"2": 4}, {}], "oui": [{"1": 185, "2": 72}, {"s": [{"2": 25}, {}], "l": [{"1": 51}, {}], "-": [{"1": 134}, {}], "t": [{"2": 14}, {}], "/": [{"2": 17}, {}], "r": [{"2": 16}, {}]}], "eai": [{"1": 22}, {}], "ao": [{"1": 15, "2": 12}, {"s": [{"2": 4}, {}], "n": [{"1": 15, "2": 4}, {"p": [{"1": 15}, {}], "r": [{"2": 4}, {}]}], "t": [{"2": 4}, {}]}], "i\u00e9": [{"1": 77, "2": 125}, {"s": [{"1": 10, "2": 39}, {"l": [{"2": 14}, {}], "v": [{"2": 13}, {}], "r": [{"2": 4}, {}], "t": [{"1": 10}, {}], "f": [{"2": 8}, {}]}], "d": [{"1": 15}, {}], "r": [{"1": 5}, {}], "t": [{"2": 29}, {}], "/": [{"1": 34, "2": 57}, {"s": [{"2": 5}, {}], "l": [{"2": 13}, {}], "d": [{"2": 4}, {}], "t": [{"1": 34}, {}], "f": [{"2": 12}, {}], "p": [{"2": 5}, {}], "r": [{"2": 18}, {}]}], "g": [{"1": 13}, {}]}], "\u0153i": [{"1": 22}, {}], "o\u00e9": [{"2": 16}, {}], "o\u00ee": [{"1": 26}, {}], "eaie": [{"1": 15}, {}], "eoi": [{"1": 22}, {}], "eu\u00e2": [{"2": 4}, {}], "\u00e9a": [{"2": 48}, {}], "eo": [{"1": 17}, {}], "ueu": [{"2": 14}, {}], "o\u00f9": [{"1": 213}, {}], "aeu": [{"2": 5}, {}], "ei": [{"1": 751}, {}], "aou": [{"2": 5}, {}], "yo": [{"1": 10, "2": 9}, {"l": [{"1": 5}, {}], "n": [{"2": 5}, {}], "t": [{"2": 4}, {}], "r": [{"1": 5}, {}]}]}] diff --git a/test.sh b/test.sh @@ -1,2 +1,11 @@ +#!/bin/bash echo "It is normal that some errors occur when running this script" -for a in test/*.tpl; do echo "$a"; ./plint.py $a < ${a%.tpl}; done +for a in test/*.tpl; do + echo "$a" + if [[ $a == *cyrano_full* ]] + then + ./plint.py $a diaeresis_cyrano.json < ${a%.tpl} + else + ./plint.py $a < ${a%.tpl} + fi +done