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

Use IndexUnicodeProperties in the JSPs #659

Merged
merged 68 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
ec3107e
Surprisingly mostly works
eggrobin Jan 12, 2024
3087a56
No more CachedProps
eggrobin Jan 12, 2024
87eb66b
Remove dead code
eggrobin Jan 13, 2024
eaa4e06
Move VersionedProperty to its own file.
eggrobin Jan 13, 2024
bf009a9
spotless
eggrobin Jan 13, 2024
99edf9f
Move VersionedProperty to its own file.
eggrobin Jan 13, 2024
b0c0b1b
Merge branch 'split-versioned-property' into ucd-not-icu
eggrobin Jan 13, 2024
7812bae
version aliasing
eggrobin Jan 13, 2024
6c69325
VersionedProperty in the JSPs
eggrobin Jan 13, 2024
93c642a
versioned gc and sc
eggrobin Jan 13, 2024
70601ff
Multivalued IndexUnicodeProperties
eggrobin Jan 13, 2024
566d212
spots
eggrobin Jan 13, 2024
117cc5f
Failing tests
eggrobin Jan 13, 2024
215422f
Multivalued IndexUnicodeProperties
eggrobin Jan 13, 2024
2a27ec4
Ever newer parsers
eggrobin Jan 14, 2024
d1a4767
Add aliases in such a way that we can use them
eggrobin Jan 14, 2024
2dc7fe6
Transpose @macchiati’s array
eggrobin Jan 14, 2024
ac4fb4d
No null aliases
eggrobin Jan 14, 2024
03a65cb
Swap once, and dedupe in UnicodeMapProperty
eggrobin Jan 14, 2024
535de19
Revert "Ever newer parsers"
eggrobin Jan 14, 2024
8bce993
Embrace the | since we need it for Unihan.
eggrobin Jan 14, 2024
1b44c58
spotless
eggrobin Jan 14, 2024
ed79308
Merge commit '215422f' into ucd-not-icu
eggrobin Jan 14, 2024
7227a25
Merge branch 'multivalued-iup' into ucd-not-icu
eggrobin Jan 14, 2024
78103d7
\|
eggrobin Jan 14, 2024
c32882a
Merge branch 'multivalued-iup' into ucd-not-icu
eggrobin Jan 14, 2024
9021146
Merge remote-tracking branch 'la-vache/main' into multivalued-iup
eggrobin Jan 15, 2024
e104d39
Merge remote-tracking branch 'la-vache/main' into split-versioned-pro…
eggrobin Jan 15, 2024
aca89a8
Merge branch 'split-versioned-property' into ucd-not-icu
eggrobin Jan 15, 2024
b2b719e
Merge branch 'multivalued-iup' into ucd-not-icu
eggrobin Jan 15, 2024
ba21066
Remove dead code
eggrobin Jan 13, 2024
4e23a66
Merge branch 'bring-out-your-dead' into ucd-not-icu
eggrobin Jan 15, 2024
83919da
Obsolete TODO
eggrobin Jan 15, 2024
c7ee5b1
scx is not special anymore
eggrobin Jan 15, 2024
e0571f9
Remove more special handling
eggrobin Jan 15, 2024
52ca911
remove random trace
eggrobin Jan 15, 2024
4e4d79d
works, in a sense
eggrobin Jan 16, 2024
ac4d79f
Starting to look vaguely usable
eggrobin Jan 16, 2024
191e90b
start from the age
eggrobin Jan 16, 2024
d66a7ce
URL parameters
eggrobin Jan 16, 2024
fe25e87
multivalued unihan
eggrobin Jan 16, 2024
5069ba5
Fix the handling of multivalued Unihan properties
eggrobin Jan 16, 2024
db8a88e
A test
eggrobin Jan 16, 2024
5fac2fa
blarg
eggrobin Jan 16, 2024
a983948
indent
eggrobin Jan 16, 2024
bea49ff
Merge branch 'multivalued-unihan' into ucd-not-icu
eggrobin Jan 16, 2024
347e999
showDevProperties everywhere
eggrobin Jan 17, 2024
528b18f
:
eggrobin Jan 17, 2024
6aef6f9
spotless and allow U16dev
eggrobin Jan 17, 2024
df4b5a9
version-dependent specials
eggrobin Jan 17, 2024
616a948
a failing test
eggrobin Jan 18, 2024
d1d4f24
Other_Joining_Type
eggrobin Jan 18, 2024
018541f
GenerateEnums
eggrobin Jan 18, 2024
578b552
Derivation
eggrobin Jan 18, 2024
fcb1e59
Remove the Java test now that we have it in the invariants
eggrobin Jan 18, 2024
67ba90f
Merge branch 'other-joining-type' into ucd-not-icu
eggrobin Jan 18, 2024
d485056
Load the UCD in the background
eggrobin Jan 18, 2024
8fe764c
Wait until we have latest and dev
eggrobin Jan 18, 2024
cfc1419
log exceptions and create the BIN dir if absent
eggrobin Jan 18, 2024
1a99d21
no ICU here
eggrobin Jan 18, 2024
0a389d7
not null
eggrobin Jan 18, 2024
80377e3
eggsceptions
eggrobin Jan 18, 2024
1f0e84d
Coarse GC
eggrobin Jan 18, 2024
72598b2
expect the same UCD we test
eggrobin Jan 18, 2024
ff1a2d9
preserve showDevProperties in some places (should do it more)
eggrobin Jan 18, 2024
8007355
dev name and script🐈
eggrobin Jan 18, 2024
3d64547
spotted scriptCat
eggrobin Jan 19, 2024
e3fa1ba
Merge remote-tracking branch 'la-vache/main' into ucd-not-icu
eggrobin Jan 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
288 changes: 0 additions & 288 deletions UnicodeJsps/src/main/java/org/unicode/jsp/CachedProps.java

This file was deleted.

7 changes: 4 additions & 3 deletions UnicodeJsps/src/main/java/org/unicode/jsp/ScriptTester2.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.SortedMap;
import java.util.TreeMap;
import java.util.TreeSet;
import org.unicode.props.IndexUnicodeProperties;

public class ScriptTester2 {
private final UnicodeMap<UnicodeSet> toEquivalents;
Expand All @@ -48,7 +49,7 @@ private ScriptTester2(

public static ScriptTester2 getInstance(VersionInfo version, UnicodeSet allowed) {
allowed = allowed.isFrozen() ? allowed : new UnicodeSet(allowed).freeze();
CachedProps props = CachedProps.getInstance(version);
var props = IndexUnicodeProperties.make(version);
// System.out.println(new TreeSet(props.getAvailable()));
UnicodeMap<String> confusables = props.getProperty("Confusable_MA").getUnicodeMap();
UnicodeMap<UnicodeSet> equiv = new UnicodeMap();
Expand Down Expand Up @@ -114,12 +115,12 @@ public static ScriptTester2 getInstance(VersionInfo version, UnicodeSet allowed)
}

public static UnicodeSet getAllowedStatus(VersionInfo version) {
CachedProps props = CachedProps.getInstance(version);
var props = IndexUnicodeProperties.make(version);
return props.getProperty("Identifier_Status").getUnicodeMap().getSet("Allowed").freeze();
}

public static UnicodeSet getNFKD_Quick_CheckNo(VersionInfo version) {
CachedProps props = CachedProps.getInstance(version);
var props = IndexUnicodeProperties.make(version);
return props.getProperty("NFKD_Quick_Check").getUnicodeMap().getSet("No").freeze();
}

Expand Down
Loading
Loading