Skip to content

Commit 57c2943

Browse files
committed
feat: release v1.0.0
* chore: add table data * chore: update executables * refactor: split UnicodeData * rename: UnicodeTool to lookup * feat: use table lookup * feat: add canonical decomposition mapping * feat: add table lookup * feat: add Noncharacter_Code_Point * feat: add table generator * feat: add `PG` and `PQ` derived categories * feat: add Hangul syllable decomposition functions * feat: add testTables utility to test lookup tables * feat: add expanded table for `Canonical_Decomposition_Mapping` * feat: add table for `Decomposition_Mapping` * feat: add UnicodeDataStream to UnicodeData * feat: add `getCanonicalCombiningClass` * chore: test and update lookup tables * chore: update lakefile * chore: documentation
1 parent 6c260d5 commit 57c2943

29 files changed

Lines changed: 52057 additions & 236 deletions

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
- uses: actions/checkout@v4
1616
- uses: leanprover/lean-action@v1.0.0
1717
with:
18-
test: false
18+
test: true
1919
use-mathlib-cache: false

README.md

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,45 @@
11
# Lean 4 / Unicode Basic
22

3-
Lightweight Unicode support for Lean 4.
3+
Unicode support for Lean 4.
44

5-
Unicode properties that are currently supported are:
5+
Unicode properties that are currently supported by `UnicodeBasic` include:
66

77
* `Alphabetic`
8-
* `Bidi_Class`, `Bidi_Control`, and `Bidi_Mirrored`
8+
* `Bidi_Class`
9+
* `Bidi_Control`
10+
* `Bidi_Mirrored`
911
* `Canonical_Combining_Class`
10-
* `Uppercase`, `Lowercase`, `Cased` and `Case_Ignorable`
11-
* `Decomposition_Type` and `Decomposition_Mapping`
12+
* `Case_Ignorable`
13+
* `Cased`
14+
* `Decomposition_Mapping`
15+
* `Decomposition_Type`
1216
* `General_Category`
1317
* `Hex_Digit`
1418
* `Math`
1519
* `Name`
16-
* `Numeric_Type` and `Numeric_Value`
17-
* `Simple_Lowercase_Mapping`, `Simple_Uppercase_Mapping`, and `Simple_Titlecase_Mapping`
20+
* `Numeric_Type`
21+
* `Numeric_Value`
22+
* `Simple_Lowercase_Mapping`
23+
* `Simple_Uppercase_Mapping`
24+
* `Simple_Titlecase_Mapping`
25+
* `Lowercase`
26+
* `Uppercase`
1827
* `White_Space`
1928

20-
To keep the library lightweight, only properties that can be derived exclusively from `UnicodeData.txt` and `PropList.txt` can be supported.
21-
If you need a property not yet in the list above, please submit a feature request!
29+
To keep the `UnicodeLibrary` library lightweight, only commonly used properties can be supported. If you need a property not yet in the list above, please submit a feature request!
2230

2331
## Installation
2432

25-
Add the following dependency to your project's `lakefile.lean`:
33+
Add the following dependency to your project's `lakefile.toml`:
34+
35+
```toml
36+
[[require]]
37+
name = "UnicodeBasic"
38+
git = "https://github.com/fgdorais/lean4-unicode-basic.git"
39+
rev = "main"
40+
```
41+
42+
Or your project's `lakefile.lean`:
2643

2744
```lean
2845
require UnicodeBasic from git
@@ -43,5 +60,5 @@ The remaining files are implementation details. Some of these may be of interest
4360

4461
-----
4562

46-
* The `Lean 4 / Unicode Basic` library is copyright © 2023 François G. Dorais. The library is released under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0). See the file LICENSE for additional details.
47-
* The `UnicodeData.txt` and `PropList.txt` files are copyright © 1991-2023 Unicode, Inc. The files are distributed under the [Unicode® Copyright and Terms of Use](https://www.unicode.org/copyright.html). See the file LICENSE-UNICODE for additional details.
63+
* The `Lean 4 / Unicode Basic` library is copyright © 2023-2024 François G. Dorais. The library is released under the [Apache 2.0 license](http://www.apache.org/licenses/LICENSE-2.0). See the file LICENSE for additional details.
64+
* The `UnicodeData.txt` and `PropList.txt` files are copyright © 1991-2024 Unicode, Inc. The files are distributed under the [Unicode® Copyright and Terms of Use](https://www.unicode.org/copyright.html). See the file LICENSE-UNICODE for additional details.

0 commit comments

Comments
 (0)