You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
We pull the unicode properties we need from `third_party/web_unicode`. See `third_party/web_unicode/README.md` for more details on how we generate Dart code from unicode properties.
To generate code for line/word break properties, follow these steps:
4
+
5
+
### 1. **<u>Download the unicode files:</u>**
6
+
7
+
The properties files can be found on the unicode.org website, for example [LineBreak.txt](https://www.unicode.org/Public/13.0.0/ucd/LineBreak.txt) and [WordBreakProperty.txt](https://www.unicode.org/Public/13.0.0/ucd/auxiliary/WordBreakProperty.txt). The codegen script expects the files to be located at `third_party/web_unicode/properties/`.
8
+
9
+
### 2. **<u>Run the codegen script:</u>**
10
+
11
+
Inside the `third_party/web_unicode` directory:
12
+
```
13
+
dart tool/unicode_sync_script.dart
14
+
```
15
+
16
+
## Check Mode ##
17
+
18
+
If you don't want to generate code, but you want to make sure that the properties files and the codegen files are still in sync, you can run the codegen script in "check mode".
19
+
20
+
Inside the `third_party/web_unicode` directory:
21
+
```
22
+
dart tool/unicode_sync_script.dart --check
23
+
```
24
+
25
+
This command won't overwite the existing codegen files. It only checks whether they are still in sync with the properties files or not. If not, it exits with a non-zero exit code.
0 commit comments