Skip to content

Hyphens Control #28

Description

@peirantan

I’m bringing up the possibility for this plugin to support ladder suppression, i.e. the ability to detect consecutive line-end hyphens and choose to not hyphenate certain lines. This could be set to only hyphenate one line, or to stop hyphenating after a certain number of consecutive hyphens.

For a graphical example:
ladder-example

For reference, Mathias Nater’s hyphenator.js (https://github.com/mnater/Hyphenator) explicitly does not support ladder suppression, since

There’s no way for Javascript to influence the algorithm for laying out text in the browser. Thus we can’t control how many hyphens occur on subsequent lines nor can we know which words have actually been hyphenated. Hyphenator.js just hyphenates all of them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions