<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Arial,Helvetica,sans-serif'>
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">ale rimoldi schreef op 12 jul '15: <br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">hi<br /> <br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">The line breaking und justification should work like this:<br /> <br /> 0. Assume natural glyph width and normal word spacing<br /> 1. Fill the line with words until a word spills over the end of the<br /> line. 2. If hyphenation is on, hyphenate that word<br /> 3. Remember the difference D between the length of the words<br /> collected for this line so far and the regular line length.<br /> 4. Remember the difference D' between the regular line length and the<br /> length of all collected words but the last on (D' > 0)<br /> 3. Test if after applying minimal word spacing and minimal glyph<br /> stretch the line is shorter or equal to the regular line length<br /> 4. If yes and D < D', apply min. glyph stretch and minimal word<br /> spacing such that the words fit the line.<br /> 5. Otherwise, apply max. glyph stretch and increase word spacing so<br /> that the word fit the line.<br /> <br /> Of course 5. only happens if justification is on.</blockquote>
<br /> can we have this description in the relevant file?<br /> if possible (if the file is small enough...) at the top of the file?</blockquote>
<br />Yes please! A technical description in the sources which would end up in the doxygen documentation would be great! And possibly also implement the Knuth-Plass algortihm so one can select which one to use and get a different (better??) result? I have ordered the book <em>Digital Typography</em> which contains the original paper describing this algorithm. I would be willing to implement it but I have not enough knowledge on how to merge this into the Scribus sources. Also some design decisions need to be taken whether or not we need a global setting or a new align option in the text properties. I'm hoping I can team up with a core developer on this and discuss the details a bit more.<br /><br />Regards, Darius </div>
</body></html>