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

Improved line breaking by allowing abbreviations or replacements for certain words #7

Open
bennyboer opened this issue Jul 2, 2022 · 0 comments

Comments

@bennyboer
Copy link
Owner

The line breaking algorithm could be improved by allowing abbreviations or replacements for words that lead to a better line fit.
For example the word "abbreviation" when found could have a substitute like "abbr.".
Similarly the word "and" could be nicely substituted by "&".
It should be left to the user to decide what word should be able to be substituted.
We would need a dictionary of possible default substitutions where the user would be able to blacklist words they wouldn't like replaced.
Maybe an element like [no-sub]abbreviation and[/no-sub] could be introduced to prevent substitution.

Source: "Review of Automatic Document Formatting" (2009) p. 101 - https://dl.acm.org/doi/pdf/10.1145/1600193.1600217

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

No branches or pull requests

1 participant