hyphenation for flowed text

Bug #171140 reported by Irisson
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Inkscape
Wishlist
Unassigned

Bug Description

together with justifed text
http://sourceforge.net/tracker/index.php?func=detail&aid=1429027&group_id=9
3438&atid=604309
http://sourceforge.net/tracker/index.php?func=detail&aid=1429025&group_id=9
3438&atid=604309
in flowed text objects it would be great to have
hyphenation.
based on open office engine? latex hyphenation lists?

Revision history for this message
Irisson (irisson) wrote :
Revision history for this message
dcberg (david-sipsolutions) wrote :

Originator: NO

very good request! Can Pango maybe take over the job? I mean, how do we
decide, what to hyphen is one question and how do we impelent the hyphens
the other. About impelenting, I guess we can add some tag (I guess there is
some standard OOo uses) before and after the hyphen, so that we know it is
only optional.

nightrow (jb-benoit)
Changed in inkscape:
importance: Low → Wishlist
status: New → Confirmed
Revision history for this message
su_v (suv-lp) wrote :

removing 'Remote bug watches' for old sf bug tracker items, which have moved to these Launchpad reports:

Bug #171069 “Justify option when edit text”:
<https://bugs.launchpad.net/inkscape/+bug/171069>
Bug #170762 “full justification for flowted text”:
<https://bugs.launchpad.net/inkscape/+bug/170762>

Revision history for this message
Pander (pander) wrote :

TeX Live offers hyphenation patters which could be used. Please see ..../texmf-dist/tex/generic/hyph-utf8/patterns/* from the latest TeX Live distribution and read also the licences that apply.

LibreOffice (OpenOffice) has also code for hyphenation which uses for most languages the same hyphenation patterns. It also uses the same file format. See licences and files of openoffice.org-hyphenation-en-us or libreoffice.org-hyphenation-en-us et al. Please see /usr/share/hyphen/*

Best would be to detect which is installed and reuse those files. Please also find out which files have priority as some have newer versions. This van differ per language between TeX Live and LibreOffice (OpenOffice).

It is also possible (for Windows e.g.) to ship the hyphenations patterns in Inkscape. Please comment the original authors of teh hyphenations files to subscribe to their broadcasts/RSS/mailing list on new releases.

Implementation can be done with also UTF-8 soft hyphens. If this is to be done by a library such as Pango or Cairo, please file a request there and provide additional information from this bug. Can someone please give some advise on this?

Inkscape should also provide an easy way to enable and disable hyphenation for text objects.

Revision history for this message
Pander (pander) wrote :

A more generic way of using the files mentioned above is via libhyphen.

Revision history for this message
Pander (pander) wrote :

~suv, does this need a change in Inkscape and in Pango? I assume Inkscape has to tell Pango which hyphenation patterns to use for which language and at least be able to deal with returning soft hyphens too. Correct?

Revision history for this message
su_v (suv-lp) wrote :

@pander - I have no idea.

Maybe this thread
 <http://thread.gmane.org/gmane.comp.graphics.inkscape.devel/31497>
on the developers' mailing list does provided more information (for coders, not users).

Revision history for this message
su_v (suv-lp) wrote :

Related blueprint (?):
Text Rework - <https://blueprints.launchpad.net/inkscape/+spec/text-redo>

(changes or feature enhancements to Inkscape's current 'Flowed text implementation' are unlikely to happen until it has been reworked to produce SVG output which conforms to a standard defined in the (current or next) SVG specification, see also <http://wiki.inkscape.org/wiki/index.php/TextRework#Motivation>)

Revision history for this message
Darko Nikolić (darko-p) wrote :

Hi!

I was suggested not to open new bug, but to place my observation(s) here.

I am wandering how to achieve hyphenation in Inkscape "object" flowPara

In attached file you can see that i put "&#xAD;" and that is rendered OK in Inkscape, but, the dash "-" is missing on the end of line.

<flowPara id="flowParaHyphen">Lo­rem ipsum dolor sit amet, consectetur adi&#xAD;piscing elit. Phasellus dignissim, magna eget efficitur feugiat, mauris magna tincidunt an&#xAD;te, sit amet rhoncus justo eros pulvinar nisl.</flowPara>

My question: is it possible to get desired bahavior ? Namely, to get dash "-" character on end of the line where word is broken by hyphen ?

Many thx and best regards!
Darko Nikolić

Revision history for this message
Darko Nikolić (darko-p) wrote :

Please, see also soft-hyphen-example.svg.png

as soft-hyphen-example.svg can not be seen in any browser, as flowPara is not in SVG specification.

File soft-hyphen-example.svg can only be seen in Inkscape.

Oh, i forget to mention that i use Inkscape 0.91 on Linux.

Best regards,
Darko Nikolić

Revision history for this message
Daniel Fancsali (fancsali) wrote :

As a first step it'd be nice to have proper display of soft-hyphen characters. The actual hyphenation could be even done with an extension then. (Example: https://github.com/santhoshtr/inkscape-hyphenation)

Not a complete solution, but could add some momentum to the issue.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers