-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hunspell: disallow hidden title-case entries from compound middle/end (…
…#12220) if we only have custom-case uART and capitalized UART, we shouldn't accept StandUart as a compound (although we keep hidden "Uart" dictionary entries for internal purposes)
- Loading branch information
1 parent
56e6591
commit 56aef72
Showing
6 changed files
with
68 additions
and
2 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
51 changes: 51 additions & 0 deletions
51
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/germanManualCase.aff
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# no CHECKCOMPOUNDCASE | ||
|
||
# compound flags | ||
|
||
COMPOUNDBEGIN U | ||
COMPOUNDMIDDLE V | ||
COMPOUNDEND W | ||
|
||
ONLYINCOMPOUND X | ||
COMPOUNDPERMITFLAG P | ||
|
||
COMPOUNDMIN 1 | ||
WORDCHARS - | ||
|
||
# dash prefix for compounds with dash (Arbeits-Computer) | ||
|
||
PFX - Y 1 | ||
PFX - 0 -/P . | ||
|
||
# decapitalizing prefix | ||
|
||
PFX D Y 29 | ||
PFX D A a/PX A | ||
PFX D � �/PX � | ||
PFX D B b/PX B | ||
PFX D C c/PX C | ||
PFX D D d/PX D | ||
PFX D E e/PX E | ||
PFX D F f/PX F | ||
PFX D G g/PX G | ||
PFX D H h/PX H | ||
PFX D I i/PX I | ||
PFX D J j/PX J | ||
PFX D K k/PX K | ||
PFX D L l/PX L | ||
PFX D M m/PX M | ||
PFX D N n/PX N | ||
PFX D O o/PX O | ||
PFX D � �/PX � | ||
PFX D P p/PX P | ||
PFX D Q q/PX Q | ||
PFX D R r/PX R | ||
PFX D S s/PX S | ||
PFX D T t/PX T | ||
PFX D U u/PX U | ||
PFX D � �/PX � | ||
PFX D V v/PX V | ||
PFX D W w/PX W | ||
PFX D X x/PX X | ||
PFX D Y y/PX Y | ||
PFX D Z z/PX Z |
5 changes: 5 additions & 0 deletions
5
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/germanManualCase.dic
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
4 | ||
uART/XW- | ||
bein/XW- | ||
Stand/UX | ||
UART/- |
3 changes: 3 additions & 0 deletions
3
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/germanManualCase.good
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UART | ||
Standbein | ||
Stand-uART |
3 changes: 3 additions & 0 deletions
3
lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/germanManualCase.wrong
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
StandUart | ||
uART | ||
Uart |