Skip to content

Commit 6d8c85d

Browse files
committed
Merge remote-tracking branch 'la-vache/main' into ˈˌ
2 parents 05cdd35 + b4ba46c commit 6d8c85d

File tree

1,608 files changed

+4541851
-1092433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,608 files changed

+4541851
-1092433
lines changed

.github/workflows/build-jsp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Build JSP
22

33
env:
4-
CURRENT_UVERSION: 17.0.0 # FIX_FOR_NEW_VERSION
5-
PREVIOUS_UVERSION: 16.0.0 # not used at present
4+
CURRENT_UVERSION: 18.0.0 # FIX_FOR_NEW_VERSION
5+
PREVIOUS_UVERSION: 17.0.0 # not used at present
66
REGISTRY: ghcr.io
77
IMAGE_NAME: ${{ github.repository }}
88

.github/workflows/cli-build-instructions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ on:
99
- '*'
1010

1111
env:
12-
CURRENT_UVERSION: 17.0.0 # FIX_FOR_NEW_VERSION
13-
PREVIOUS_UVERSION: 16.0.0
12+
CURRENT_UVERSION: 18.0.0 # FIX_FOR_NEW_VERSION
13+
PREVIOUS_UVERSION: 17.0.0
1414

1515
jobs:
1616

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727
uses: actions/checkout@v3
2828

2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@v2
30+
uses: github/codeql-action/init@v3
3131
with:
3232
languages: ${{ matrix.language }}
3333
queries: +security-and-quality
3434

3535
- name: Autobuild
36-
uses: github/codeql-action/autobuild@v2
36+
uses: github/codeql-action/autobuild@v3
3737
if: ${{ matrix.language == 'javascript' || matrix.language == 'python' }}
3838

3939
- name: Perform CodeQL Analysis
40-
uses: github/codeql-action/analyze@v2
40+
uses: github/codeql-action/analyze@v3
4141
with:
4242
category: "/language:${{ matrix.language }}"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ perf-*.xml
4343
test-*.xml
4444

4545
# Directories
46+
.idea/
4647
.settings/
4748
.vs/
4849
.vscode/

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ Some of the documentation still refers to the previous Subversion repository.
1313
This GitHub repo reflects the svn repo up to r1566,
1414
plus a few snapshots up to r1830. (Don’t ask.)
1515

16+
### Online Web Tools
17+
18+
This repository includes the source for the tooling at <https://util.unicode.org> - see [`/UnicodeJsps`](./UnicodeJsps/README.md)
19+
1620
### Bug reports
1721

1822
For feedback on the Unicode Standard and bug reports against the Unicode Character Database,
@@ -23,7 +27,7 @@ The tools maintainers use GH issues for issues with the code in this repo.
2327

2428
### Copyright & Licenses
2529

26-
Copyright © 2001-2024 Unicode, Inc. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the United States and other countries.
30+
Copyright © 2001-2025 Unicode, Inc. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the United States and other countries.
2731

2832
A CLA is required to contribute to this project - please refer to the [CONTRIBUTING.md](https://github.com/unicode-org/.github/blob/main/.github/CONTRIBUTING.md) file (or start a Pull Request) for more information.
2933

UnicodeJsps/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM alpine as cbuild
33
WORKDIR /build
44
RUN apk add --update wget make gcc musl-dev
55
ARG CPATH=https://www.unicode.org/Public/PROGRAMS/BidiReferenceC/
6-
ARG CVERSION=15.1.0
6+
# FIX_FOR_NEW_VERSION
7+
ARG CVERSION=16.0.0
78
RUN wget -np -nv --reject-regex='.*\.(lib|exe)$' --cut-dirs=4 -nH -r ${CPATH}${CVERSION}/
89
RUN cd source && gcc -I ../include/ -static -Os -o3 -o bidiref1 bidiref1.c brutils.c brtest.c brtable.c brrule.c
910
RUN ls -lh /build/source/bidiref1 && (/build/source/bidiref1 || true)

UnicodeJsps/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# UnicodeJsps
2+
3+
This subdirectory includes the source for the tooling at <https://util.unicode.org>
4+
5+
## Building
6+
7+
See [/docs/unicodejsps](../docs/unicodejsps/index.md)
8+
9+
### Copyright & Licenses
10+
11+
Copyright © 2001-2025 Unicode, Inc. Unicode and the Unicode Logo are registered trademarks of Unicode, Inc. in the United States and other countries.
12+
13+
A CLA is required to contribute to this project - please refer to the [CONTRIBUTING.md](https://github.com/unicode-org/.github/blob/main/.github/CONTRIBUTING.md) file (or start a Pull Request) for more information.
14+
15+
The contents of this repository are governed by the Unicode [Terms of Use](https://www.unicode.org/copyright.html) and are released under [LICENSE](../LICENSE).

UnicodeJsps/src/main/java/org/unicode/jsp/BidiCharMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class BidiCharMap {
4848

4949
for (UnicodeSetIterator it =
5050
new UnicodeSetIterator(
51-
new UnicodeSet("[[:ascii:]-[[:cc:]-[:whitespace:]]]"));
51+
new UnicodeSet("[[:Block=ASCII:]-[[:cc:]-[:whitespace:]]]"));
5252
it.next(); ) {
5353
asciiHackMap.put(
5454
it.codepoint,

UnicodeJsps/src/main/java/org/unicode/jsp/Common.java

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
import com.ibm.icu.text.Normalizer2;
88
import com.ibm.icu.text.StringTransform;
99
import com.ibm.icu.text.Transform;
10-
import com.ibm.icu.text.UTF16;
1110
import com.ibm.icu.text.UnicodeSet;
12-
import com.ibm.icu.util.ULocale;
1311
import java.util.Arrays;
1412
import java.util.List;
1513
import org.unicode.jsp.XPropertyFactory.HanType.HanTypeValues;
@@ -47,18 +45,7 @@ public String transform(String source) {
4745
};
4846

4947
static List<String> XPROPERTY_NAMES =
50-
Arrays.asList(
51-
new String[] {
52-
"toNFC",
53-
"toNFD",
54-
"toNFKC",
55-
"toNFKD",
56-
"toCasefold",
57-
"toLowercase",
58-
"toUppercase",
59-
"toTitlecase",
60-
"subhead"
61-
});
48+
Arrays.asList(new String[] {"toNFC", "toNFD", "toNFKC", "toNFKD"});
6249
static final int XSTRING_START = UProperty.STRING_LIMIT;
6350

6451
public static String getXStringPropertyValue(int propertyEnum, int codepoint, int nameChoice) {
@@ -72,16 +59,6 @@ public static String getXStringPropertyValue(int propertyEnum, int codepoint, in
7259
return Common.MyNormalize(codepoint, Normalizer.NFKC);
7360
case Common.TO_NFKD:
7461
return Common.MyNormalize(codepoint, Normalizer.NFKD);
75-
case Common.TO_CASEFOLD:
76-
return UCharacter.foldCase(UTF16.valueOf(codepoint), true);
77-
case Common.TO_LOWERCASE:
78-
return UCharacter.toLowerCase(ULocale.ROOT, UTF16.valueOf(codepoint));
79-
case Common.TO_UPPERCASE:
80-
return UCharacter.toUpperCase(ULocale.ROOT, UTF16.valueOf(codepoint));
81-
case Common.TO_TITLECASE:
82-
return UCharacter.toTitleCase(ULocale.ROOT, UTF16.valueOf(codepoint), null);
83-
case Common.SUBHEAD:
84-
return UnicodeUtilities.getSubheader().getSubheader(codepoint);
8562
}
8663
return UCharacter.getStringPropertyValue(propertyEnum, codepoint, nameChoice);
8764
}
@@ -120,12 +97,7 @@ static String MyNormalize(String string, Mode mode) {
12097
static final int TO_NFD = UProperty.STRING_LIMIT + 1;
12198
static final int TO_NFKC = UProperty.STRING_LIMIT + 2;
12299
static final int TO_NFKD = UProperty.STRING_LIMIT + 3;
123-
static final int TO_CASEFOLD = UProperty.STRING_LIMIT + 4;
124-
static final int TO_LOWERCASE = UProperty.STRING_LIMIT + 5;
125-
static final int TO_UPPERCASE = UProperty.STRING_LIMIT + 6;
126-
static final int TO_TITLECASE = UProperty.STRING_LIMIT + 7;
127-
public static final int SUBHEAD = TO_TITLECASE + 1;
128-
static final int XSTRING_LIMIT = SUBHEAD + 1;
100+
static final int XSTRING_LIMIT = TO_NFKD + 1;
129101
// static UnicodeSet isCaseFolded = new UnicodeSet();
130102
// static UnicodeSet isLowercase = new UnicodeSet();
131103
// static UnicodeSet isUppercase = new UnicodeSet();

UnicodeJsps/src/main/java/org/unicode/jsp/GenerateSubheader.java

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)