-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow Hunspell's way of parsing flags with large Unicode scalar values
Unicode flags that take more than 16 bits to represent are rejected by Nuspell but are accepted by Hunspell. When parsing single flags (like in a PFX rule for example), Hunspell takes the higher of the two code units, discarding the lower. When parsing a flag set (like in a .dic line), Hunspell takes both code units. I haven't updated all parsing. In particular I don't think that compound rules (using wildcards '*' and '?') would work accurately if used with flags with high scalar values. It may be worthwhile to emit an error in those cases instead of silently behavior unpredictably.
- Loading branch information
1 parent
0335a52
commit a3b8e02
Showing
2 changed files
with
58 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters