kinsoku 0.3.3
kinsoku: ^0.3.3 copied to clipboard
Japanese text processing library for kinsoku (line breaking rules), character classification, yakumono adjustment, and kerning. Supports JIS X 4051:2004 with ICU.
example/README.md
kinsoku Examples #
This directory contains example code demonstrating the usage of the kinsoku package.
Examples #
icu_example.dart #
Comprehensive examples of ICU-based kinsoku processing with JIS X 4051:2004 compliance.
Prerequisites:
- ICU library must be installed on your system
- macOS:
brew install icu4c - Linux:
sudo apt install libicu-dev - Windows: Download ICU binaries from https://github.com/unicode-org/icu/releases
Run:
dart run icu_example.dart
Includes:
- Default UAX #14 rules
- JIS X 4051:2004 complete compliance
- Custom break iterator rules
- Configuration-based rules
- Finding all break positions
- Comparing different rule sets
Pure Dart Usage #
For Pure Dart usage without ICU dependency, see the main README.md examples.
More Information #
- Main README: ../README.md
- Integration Guide: ../INTEGRATION_GUIDE.md
- API Documentation: https://pub.dev/documentation/kinsoku/