Index: branches/apertium-separable/src/lsx_processor.cc =================================================================== --- branches/apertium-separable/src/lsx_processor.cc (revision 80858) +++ branches/apertium-separable/src/lsx_processor.cc (revision 80861) @@ -158,12 +158,9 @@ val = static_cast(alphabet(tag)); in += tag; } - else { + else if(!outOfWord) + { in += (wchar_t) val; - } - - if(!outOfWord) - { new_states.clear(); wstring res = L""; for(vector::const_iterator it = alive_states.begin(); it != alive_states.end(); it++) @@ -213,12 +210,11 @@ } } alive_states.swap(new_states); + } - } // - if(outOfWord) // need to deal with superblank stuff { - fputwc(val, output); + fputwc(val, output); continue; } } @@ -225,11 +221,8 @@ if (!finalFound) { - // fputws(in.c_str(), output); - // fflush(output); - wcout << in; + fputws(in.c_str(), output); } -// fputwc(L'\n', output); return 0; } Index: branches/apertium-separable/examples/new-example.dix =================================================================== --- branches/apertium-separable/examples/new-example.dix (revision 80858) +++ branches/apertium-separable/examples/new-example.dix (revision 80861) @@ -60,6 +60,7 @@ +