bountonw / translate-tooling

MIT License
2 stars 0 forks source link

Fix forbidden word breaks #26

Closed mattleff closed 4 months ago

mattleff commented 4 months ago
  1. Lint that forbidden word breaks are sorted alphabetically
  2. Apply them in the Lua filter from longest to shortest. This ensures that 1 เปโตร is wrapped before เปโตร matches, etc. Refs https://github.com/bountonw/translate/issues/268#issuecomment-2087875441
mattleff commented 4 months ago

@bountonw Ok, I'm fine keep พระ. I'll let you keep the words sorted with vim, since the order in that file doesn't really matter anymore for the filter.