hyphenatorx 1.0.1 copy "hyphenatorx: ^1.0.1" to clipboard
hyphenatorx: ^1.0.1 copied to clipboard

Implementation of an hyphenation algorithm, based on TeX definitions.

Hyphenator #

Implementation of an hyphenation algorithm.

The patterns used in the algorithm can be found here.

Install #

flutter pub add hyphenatorx

Usage #


final resource = await DefaultResourceLoader.load(
    DefaultResourceLoaderLanguage.enUs
  );

final hyphenator = Hyphenator(
    resource: resource,
    hyphenateSymbol:'_'
  );

expect(
  hyphenator.hyphenate('subdivision subdivision'), 
  'sub_di_vi_sion sub_di_vi_sion');

expect(
  hyphenator.hyphenateWord('subdivision'),
  'sub_di_vi_sion');

expect(
  hyphenator.hyphenateWordToList('subdivision'),
  ['sub', 'di', 'vi', 'sion']);

Source #

This package is a copy of hyphenator.

This package has been updated to Dart 3.

I will have a look at a possible performance improvement and general refactoring.

4
likes
0
pub points
83%
popularity

Publisher

verified publishernovelplotter.com

Implementation of an hyphenation algorithm, based on TeX definitions.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on hyphenatorx