auto_hyphenating_text icon indicating copy to clipboard operation
auto_hyphenating_text copied to clipboard

[Proposal] Split the package into multiple small language packs

Open fondoger opened this issue 10 months ago • 1 comments

Currently, all language files under /assets/ folder from package hyphenator_impure will be included. This will significantly increase the bundle size if we only want to use one or two languages.

We can split hyphenator_impure into multiple packages:

  • auto_hyphenating_text
  • hyphenator_language_enUS
  • hyphenator_language_enGB
  • hyphenator_language_de1996
  • ...

fondoger avatar Jun 15 '25 07:06 fondoger

hyphenator_impure was only supposed to be a temporary fork until the latest version of hyphenator got published to pub.dev. But as it still hasn't happened yet I guess I could do that. I'm not exactly sure how this would work though. Does it mean the user would have to specify which hyphenator package they want to use manually?

impure avatar Jun 15 '25 19:06 impure