Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hyphenation package instead of providing own rules #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aszlig
Copy link

@aszlig aszlig commented Dec 4, 2017

Using the hyphenation package we not only have access to a bunch of hyphenation rules which we don't need to maintain in HPDF but it also allows to actually easily switch the hyphenator away from the English one, particularly when using Typesetting.

This also gets rid of Graphics.PDF.Hyphenate, because its functionality is already existing in hyphenation.

The hyphenation package already has a large set of different hyphenation
rules included for different languages, so it's really a bit redudant if
we duplicate the effort for HPDF.

Right now this implementation doesn't use the hyphenation package to its
full extent, because we still have a hardcoded language list, which in
this case is German (which I added) and English.

Signed-off-by: aszlig <aszlig@nix.build>
This gets rid of the hardcoded language and instead uses the Hyphenator
type from the hyphenation package, which not only brings one variant of
a specific language to the table but different variations, like for
example english_US and english_GB.

Signed-off-by: aszlig <aszlig@nix.build>
@hsyl20
Copy link

hsyl20 commented Jun 11, 2020

Fixed in 1.5.0

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.

None yet

2 participants