Fwd: LibreOffice text justification

Kohei Yoshida kohei.yoshida at gmail.com
Wed Mar 6 08:07:27 PST 2013


Hi all,

With Chris' permission, I'm forwarding his question to the developer's list.

He would like some code pointers to Writer core where it handle
line-to-line inter-word spacing.  Anyway, I've included the full text
of his question below.

Thanks, guys.

Kohei

---------- Forwarded message ----------
From: Chris Tapp <opensource at keylevel.com>
Date: Tue, Mar 5, 2013 at 6:17 PM
Subject: LibreOffice text justification
To: kohei.yoshida at gmail.com


Dear Kohei-san,

I manage a wiki which is being used to produce the text for a book
that is due to be published shortly. We can currently produce an ODT
document that is about 95% print-ready, but there are a few
typesetting features missing from LibreOffice which mean we will have
to use something like InDesign to complete our work flow.

One of these features relates to the justification of text. Word
processors like Writer tend to produce lines with uneven line-to-line
inter-word spacing as they do not generally consider reducing the
spaces and/or micro-spacing the characters themselves. I thought it
would be worth looking at the code-base of LibreOffice to see if it
would be possible to add this functionality. This search lead me to
your blog page at
http://kohei.us/2010/01/21/distributed-text-justification/.

It seems as if the code you modified when adding the 'Distributed
Justification' mode would be very similar to what I think is needed.
Could you please point me to the files / classes that were involved?

Any pointers would be much appreciated! Thank you for your time.

Chris Tapp

opensource at keylevel.com
www.keylevel.com


More information about the LibreOffice mailing list