commit 622e6e484b3ebb4b95a48f088e2848d1455bc693 Author: Tanmai Khanna Date: Fri May 15 05:47:50 2020 +0530 escape characters in secondary tags | deal with multiwords that have an invariable part diff --git a/lttoolbox/fst_processor.cc b/lttoolbox/fst_processor.cc index 29374c4..fe2f98e 100644 --- a/lttoolbox/fst_processor.cc +++ b/lttoolbox/fst_processor.cc @@ -542,6 +542,16 @@ FSTProcessor::readGeneration(FILE *input, FILE *output) { streamError(); } + + if(val == L'\\') + { + val = fgetwc_unlocked(input); + continue; + } + else if(val == L'#') + { + return static_cast(L'#'); + } } outOfWord = true;