ODNZSL / nzsl-dictionary-scripts

Scripts needed to support the NZSL mobile applications
MIT License
3 stars 2 forks source link

Export of 'hot' (8034) includes newlines, breaking Android app parsing #14

Open joshmcarthur opened 1 year ago

joshmcarthur commented 1 year ago

The word 'hot' has a trailing newline, causing the Android app to fail to parse that line, since it reads line-by-line and splits on tab. It expects to see a line with 7 fields, and instead sees a line with 1 field, followed by a line with 6 fields.

We should make sure we strip surrounding whitespace, ideally from all fields.

joshmcarthur commented 1 year ago

For now, this file can be manually patched as part of the Android build process.

joshmcarthur commented 1 year ago

We've updated the Signbank data to remove the newline as a workaround for now, since this was the only sign with this problem