Skip to content

Commit

Permalink
Generate our own unicode block constants
Browse files Browse the repository at this point in the history
Add a script to generate a custom unicode_block module with constants
representing unicode blocks. This replaces the blocks from
unic-ucd-blocks.

Also refactor CharacterType::Range to use a RangeInclusive so we can
also remove the dependency on unic-char-range.
  • Loading branch information
gregoire-mullvad committed Aug 30, 2024
1 parent d133394 commit c80dcd2
Show file tree
Hide file tree
Showing 10 changed files with 1,098 additions and 41 deletions.
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ issues are raised.

Please follow the guidelines at https://cbea.ms/git-commit/ for git commit message style. There is a CI
job that will enforce this.

## Updating unicode blocks

Use the `generate-unicode-blocks-consts` script to update character blocks constants from Unicode Consortium data:
13 changes: 0 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ tree-sitter = "0.22.6"
tree-sitter-javascript = "0.21.2"
tree-sitter-python = "0.21.0"
unic-ucd-name = "0.9.0"
unic-ucd-block = "0.9.0"
unic-char-range = "0.9.0"
toml = "0.8.14"
serde = { version = "1.0.203", features = ["derive"] }
walkdir = "2.5.0"
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,3 @@ default = {
[language.python]
paths = ["./build", "run-tests", "*.py"]
```

Loading

0 comments on commit c80dcd2

Please sign in to comment.