https://bugs.freedesktop.org/show_bug.cgi?id=38159

--- Comment #17 from Khaled Hosny <[email protected]> ---
Regarding better (i.e. Knuth and Plass) justification in LibreOffice, that is
something I’d really be happy to see and I’m even willing to invest time on it
(to some degree).

But, last I checked this was far from trivial, the text layout code was not
designed with something like this in mind (unlike TeX) and things are scattered
around the code base and communication is done in “interesting” ways, so I
simply gave up. Of course I don’t understand much of the code, so I’d be wrong,
however I’m interested to give a hand if someone can figure out what needs to
be done in terms of specific code modifications.

There is also interesting UI interaction due to the nature of Knuth and Plass
algorithm (e.g. line breaks changing when editing later lines on the paragraph
causing lines to suddenly jump, which can be very annoying to users, so we need
to figure out how to handle this). There is also the issue of warping text
around images, which would require special handling as well.

A potential way to achieve this that might be relatively easier to implement,
is by using extensions, but it depends on the capabilities of our extensions
API (I never used), someone wrote a Knuth and Plass implementation in
JavaScript, so why not! http://www.bramstein.com/projects/typeset/

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to