tree: ab9a56e013741dcae581ec8f6de6d02939d37a20 [path history] [tgz]
  1. lib/
  2. properties/
  3. tool/
  4. LICENSE
  5. pubspec.yaml
  6. README.md
third_party/web_unicode/README.md

Usage

To generate code for line/word break properties, follow these steps:

1. Download the unicode files:

The properties files can be found on the unicode.org website, for example LineBreak.txt and WordBreakProperty.txt. The codegen script expects the files to be located at third_party/web_unicode/properties/.

2. Run the codegen script:

Inside the third_party/web_unicode directory:

dart tool/unicode_sync_script.dart

Check Mode

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”.

Inside the third_party/web_unicode directory:

dart tool/unicode_sync_script.dart --check

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.