Skip to content

Add configurable hyphen boundary limits - #84

Merged
vanderlee merged 5 commits into
masterfrom
agent/configurable-hyphen-boundaries
Aug 3, 2026
Merged

Add configurable hyphen boundary limits#84
vanderlee merged 5 commits into
masterfrom
agent/configurable-hyphen-boundaries

Conversation

@vanderlee

Copy link
Copy Markdown
Owner

What changed

  • Add runtime setters and getters for minimum characters before and after a hyphenation point.
  • Allow passing null to restore the active language's defaults.
  • Apply overrides after loading language/cache data, keeping generated caches language-specific and reusable.
  • Add regression coverage and regenerate the API documentation.

Why

The engine already reads left_min_hyphen and right_min_hyphen from language data, but applications cannot override those limits without editing generated cache files. This also provides the requested control over how many characters remain after a line break.

Closes #35.
Closes #81.

@vanderlee
vanderlee marked this pull request as ready for review August 3, 2026 18:48
@vanderlee
vanderlee merged commit 071fdb7 into master Aug 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to define left_min_hyphen and right_min_hyphen Min word count after hyphenation

1 participant