apertium / lttoolbox

Finite state compiler, processor and helper tools used by apertium
http://wiki.apertium.org/wiki/Lttoolbox
GNU General Public License v2.0
18 stars 22 forks source link

postgenerator doesn't work inside word blanks like [[t:text…]] #107

Closed unhammer closed 3 years ago

unhammer commented 3 years ago

nob-nno.autopgen.bin.zip without [[ works

$ echo 'pla~ssar'|lt-proc -p nob-nno.autopgen.bin
plassar

as expected, but:

$ echo '[[t:text:NaNaNa]]pla~ssar[[/]]'|lt-proc -p nob-nno.autopgen.bin
[[t:text:NaNaNa]]pla~ssar[[/]]

(original example from a big docx where there were many words inside the [[)

khannatanmai commented 3 years ago

@unhammer sorry I've been incredibly busy with my masters thesis and plus there was some talk about post generator being rewritten so I never got around to this. Hope it wasn't too annoying to deal with my wblanks code. Thanks!

unhammer commented 3 years ago

no problem, wasn't too big of a change after I put some time into understanding how it worked