Skip to content

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

2 participants