commit e8a5741af3f95daebcce0b270f7875501cb8955e Author: Tanmai Khanna Date: Wed Jul 15 23:25:30 2020 +0530 remove code for secondary tags diff --git a/lttoolbox/fst_processor.cc b/lttoolbox/fst_processor.cc index 84d9f79..d47870a 100644 --- a/lttoolbox/fst_processor.cc +++ b/lttoolbox/fst_processor.cc @@ -517,72 +517,17 @@ FSTProcessor::readGeneration(FILE *input, FILE *output) wstring cad = L""; cad += static_cast(val); - bool isSecondaryTag = false; - while((val = fgetwc_unlocked(input)) != L'>') { if(feof(input)) { streamError(); } - if(val == L':') - { - isSecondaryTag = true; - break; - } cad += static_cast(val); } cad += static_cast(val); - if(isSecondaryTag) - { - while(true) - { - val = fgetwc_unlocked(input); - - if(feof(input)) - { - streamError(); - } - - if(val == L'\\') - { - val = fgetwc_unlocked(input); - continue; - } - - if(isSecondaryTag) - { - if(val == L'>') - { - isSecondaryTag = false; - } - } - else - { - if(val == L'<') - { - isSecondaryTag = true; - } - else if(val == L'$') - { - break; - } - else - { - return static_cast(val); - } - } - } - - outOfWord = true; - return static_cast(L'$'); - } - else - { - return alphabet(cad); - } - + return alphabet(cad); } else if(val == L'[') {