Each language break words at different points. These point can be calculated faily accurately by using hyphenation patterns.
Full list of available hyphenation languages found here.
hyphenLeftMin
Words can hyphenate after a single letter. We can define a minimum number of characters before words are allowed to hyphenate.
Example "hyphenate" breaks at these points: "hy-phen-ate".
If there is too much hyphenation, this can reduced by increasing the value.
Increasing the value to 3 would update "hyphenate" to break at these points: "hyphen-ate".
hyphenRightMin
Words can hyphenate after a single letter. We can define a minimum number of characters before words are allowed to hyphenate.
Example "hyphenate" breaks at these points: "hy-phen-ation".
If there is too much hyphenation, this can reduced by increasing the value.
Increasing the value to 4 would update "hyphenate" to break at these points: "hy-phenate".
Algorithm
alignment
Alignment defines how text is presented.
This is not purely style as the rate of hyphenation is more acceptable with certain alignment.
hyphenPenalty and hyphenPenaltyRagged
Penalty is the algorithmic discouragement of a certain behavior.
Increaing the hyphenPenalty makes it less like for hyphenation to occur on justified text.
Increaing the hyphenPenaltyRagged makes it less like for hyphenation to occur on left, right and center aligned text.
flagPenalty
Penalty is the algorithmic discouragement of a certain behavior.
Increaing the flagPenalty makes it less like for hyphenation to occur 2 lines in a row.
fitnessClassDemerit
Demerit is the algorithmic discouragement of a certain behavior.
Increaing the flagPenalty makes it less like for lines to have different length.
fitnessClasses
Fitness class is a definition of how much word-spacing there is on a given line.
The purpose is to limit how much the text goes from: a lot of word-spacing, to very little word-spacing.
demeritOffset
The demerit offset is added to help differentiate between multiple good solutions, by increasing the penalty of all solutions.
Increaing the demeritOffset will possibly help differentiate good solutions. Increase it too much and it's harder to differentiate good from bad solutions.
maxRatio
Adjustment ratio is a value to represent how much word-spacing there is compared to length of line and number of words in line.
The maxRatio adjustment ratio defines when there is too much word-spacing on a line that it is not a valid solution.
Increase the value will negatively affect performance, decrease value can possibly make performance better or worse.
minRatio
Adjustment ratio is a value to represent how much word-spacing there is compared to length of line and number of words in line.
The minRatio adjustment ratio defines when there is too little word-spacing on a line that it is not a valid solution.
Increase the value if the text appears with too little word-spacing.
absoluteMaxRatio
If no valid solution is found the algorithm will rerun with an increased maxRatio.
The absoluteMaxRatio defines when the algorithm should stop looking for solutions.
If the text is very narrow this value can be increased to allow more spacing between words for the final solution.
unsupportedTags
List of HTML tags that is not supported by TypesetBot.
If you experience problems will a certain HTML tag, add it to the list and it will be remove before the typesetting is run.
Tag names should be written in uppercase.
Font
spaceWidth
Ideal word-spacing based on the font size in.
Increase value to prefer more word-spacing.
Decrease value to prefer less word-spacing.
spaceStretchability
How much should the word-spacing be able to stretch from the ideal space width.
Increase value to allow more word-spacing.
spaceShrinkability
How much should the word-spacing be able to shrink from the ideal space width.
Increase value to allow less word-spacing.
Debug properties
debug
Debug mode to print performance statistics of TypesetBot.
Set to true to enable mode.
noRun
Set this setting to true, so avoid running TypesetBot as soon as the instance is created.
logs
Define how many logs levels should be printed in the console.