commit 65cf9ea9485fa011c0e047fc0764a119cc173996 Author: Tanmai Khanna Date: Thu Jul 16 00:14:02 2020 +0530 wordbound blank reading for biltrans diff --git a/lttoolbox/fst_processor.cc b/lttoolbox/fst_processor.cc index ab27e85..5f3f593 100644 --- a/lttoolbox/fst_processor.cc +++ b/lttoolbox/fst_processor.cc @@ -672,7 +672,17 @@ FSTProcessor::readBilingual(FILE *input, FILE *output) } else if(val == L'[') { - fputws_unlocked(readFullBlock(input, L'[', L']').c_str(), output); + val = fgetwc_unlocked(input); + if(val == L'[') + { + fputws_unlocked(readWblank(input).c_str(), output); + } + else + { + ungetc(val, input); + fputws_unlocked(readFullBlock(input, L'[', L']').c_str(), output); + } + return readBilingual(input, output); }