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

I139 #140

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

I139 #140

wants to merge 4 commits into from

Conversation

mnater
Copy link
Owner

@mnater mnater commented Aug 8, 2020

feat: prevent small words and eol

Problem:
Some languages (e.g. polish) require not to have single letter words
at the end of a line.

Solution:
Implement a optional class based setting, find small words and replace
the space after them with a nbsp.
This is easy if we just search for single letter words, but get somehow
complicated when we open to any number of chars because we'll have
handle overlapping regex matches.

fixes #139

mnater added 4 commits August 7, 2020 17:32
Problem:
Some languages (e.g. polish) require not to have single letter words
at the end of a line.

Solution:
Implement a optional class based setting, find small words and replace
the space after them with a nbsp.
This is easy if we just search for single letter words, but get somehow
complicated when we open to any number of chars because we'll have
handle overlapping regex matches.

Notes:
First implementation and test
[skip travis-ci]
[skip travis-ci]
@mnater mnater self-assigned this Aug 8, 2020
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.

Transfer of n-letter words
1 participant