Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

May swallow last lexical unit if no final newline #104

Closed
unhammer opened this issue Aug 31, 2020 · 1 comment · Fixed by #105
Closed

May swallow last lexical unit if no final newline #104

unhammer opened this issue Aug 31, 2020 · 1 comment · Fixed by #105

Comments

@unhammer
Copy link
Member

$ printf  ".\n"|apertium-destxt -n|lt-proc -we nob.automorf.bin
^./.<sent><clb>$[][
]

$ printf  "."|apertium-destxt -n|lt-proc -we nob.automorf.bin
[]

$ printf  "r."|apertium-destxt -n|lt-proc -we nob.automorf.bin
^r/ralphabet<n><m><sg><ind>$[]

$ printf  "9"|apertium-destxt -n|lt-proc -we nob.automorf.bin
[]

$ printf  "9\n"|apertium-destxt -n|lt-proc -we nob.automorf.bin
^9/9<det><qnt><un><pl>$[][
]

$ printf  "r"|apertium-destxt -n|lt-proc -we nob.automorf.bin
^r/ralphabet<n><m><sg><ind>$[]

9 and . are in inconditional sections, while r is standard, might have something to do with this.

@TinoDidriksen
Copy link
Member

TinoDidriksen commented Oct 16, 2020

Probably the same issue: echo -e 'États-Unis\0' | lt-proc -w fra.automorf.bin (see apertium/apertium#108)

(Note that -z is not needed to trigger this behavior, and adding -z doesn't change the lack of output.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants