Alter Hyphenation-Rules
Posted: Tue Oct 27, 2015 7:56 am
Hi forums,
sorry for the vague title.
Didn't find a better one.
I also had no idea where to post this.
So i start with "General".
My question is about hyphenation and how Flare is processing it.
As far as i understand Flare takes the hyphenation rules and maps it to the words.
So if you have a long word, e.g. "electroencephalographically", you will get a semicolon separated list of possbile hyphenations, which might look like this (linebreaks only for better readability here):
My problem is, whenever it comes to hyphenation, Flare always starts to check for a possible "break point" from the beginning of that list until it finds a matching one. And as soon there is a match it stops. No matter if there would be another one that would still fit. So at the end of the line you might get this one:
As you can see this doesn't look good since the first line is cut off too early. Anyway what are the other hyphenation rules good for, if only the 1st one is used?
So it would be better, if Flare would start from the end of that list - from the last possible hyphenation rule.
So you would get this:
To achieve this i always have to watch out for hyphenations in the preview of the print layout, mark the hyphenated word, add a userdefined hyphenation rule by just reverting the one that is already present:
That will result in this:
This workaround is ... well it is additional work i'd like to avoid and for the Flare project this is additional overhead.
Anyway you never get all hyphenation problems like this fixed if you have several print outputs with different layouts. In one output the word is hyphenated, in another one it is not ... so you would have to check each page in each outputs.
I know there are some stylesheet rules where i can set length of hyphenated words, length of characters to stay in the first line/last line, short lines etc. but setting these rules in the stylesheet would result in words that might never be hyphenated or in words where the 1st/last hyphenation rule will never be applied. Or if you not set this in the stylesheets you will have to apply these rules to each paragraph indiviually - which is additional work again.
So ... how are you dealing with that?
Is there any way to make Flare starting with the last hyphenation rule?
Because when starting with the first rule you'll never know if the word would still fit to the line if you would choose the second rule (and so on). Or you will have to do some additional check "if hyphen matches -> check next one anyway; if next one doesn't fit to the line -> take previous one".
For me it seems to be more logic to start with the last one. And while the first part of the word does not fit to the line -> check previous rule.
Is it worth to file a feature request?
cheers
EDIT: added screenshots
sorry for the vague title.
Didn't find a better one.
I also had no idea where to post this.
So i start with "General".
My question is about hyphenation and how Flare is processing it.
As far as i understand Flare takes the hyphenation rules and maps it to the words.
So if you have a long word, e.g. "electroencephalographically", you will get a semicolon separated list of possbile hyphenations, which might look like this (linebreaks only for better readability here):
Code: Select all
elec-troencephalographically;
electro-encephalographically;
electroen-cephalographically;
electroenceph-alographically;
electroencephal-ographically;
electroencephalo-graphically;
electroencephalograph-ically;
electroencephalographic-ally;
Code: Select all
lorem ipsum ... some blind text ... ELEC-
TROENCEPHALOGRAPHICALLY ... some more lorem ipsum blind text
some other lorem ipsum blind text ... other blind text again
lorem ipsum blind text line ... actually still reading this?So it would be better, if Flare would start from the end of that list - from the last possible hyphenation rule.
So you would get this:
Code: Select all
lorem ipsum ... some blind text ... ELECTROENCEPHALOGRAPHIC-
ALLY ... some more lorem ipsum blind text some other lorem i
psum blind text ... other blind text again lorem ipsum blind
text line ... i think you got the idea.Code: Select all
electroencephalographic-ally;
electroencephalograph-ically;
electroencephalo-graphically;
electroencephal-ographically;
electroenceph-alographically;
electroen-cephalographically;
electro-encephalographically;
elec-troencephalographically;
This workaround is ... well it is additional work i'd like to avoid and for the Flare project this is additional overhead.
Anyway you never get all hyphenation problems like this fixed if you have several print outputs with different layouts. In one output the word is hyphenated, in another one it is not ... so you would have to check each page in each outputs.
I know there are some stylesheet rules where i can set length of hyphenated words, length of characters to stay in the first line/last line, short lines etc. but setting these rules in the stylesheet would result in words that might never be hyphenated or in words where the 1st/last hyphenation rule will never be applied. Or if you not set this in the stylesheets you will have to apply these rules to each paragraph indiviually - which is additional work again.
So ... how are you dealing with that?
Is there any way to make Flare starting with the last hyphenation rule?
Because when starting with the first rule you'll never know if the word would still fit to the line if you would choose the second rule (and so on). Or you will have to do some additional check "if hyphen matches -> check next one anyway; if next one doesn't fit to the line -> take previous one".
For me it seems to be more logic to start with the last one. And while the first part of the word does not fit to the line -> check previous rule.
Is it worth to file a feature request?
cheers
EDIT: added screenshots