[pluma] text autohyphenated on word wrap with pango >1.43

Bug #1909806 reported by thom
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pluma (Ubuntu)
New
Wishlist
Unassigned

Bug Description

pluma - Version 1.24.0
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"

Expected behaviour:

Word wrap never adds anything to text, even when a string of characters with no whitespace must be split to enable wrap, and no matter what the line of characters contains

Actual behaviour:

If a line of text does not contain enough whitespace to respect "do not split words across two lines" and is split at a sequence a hyphen is inserted at the end of that line of text. Even if there is enough whitespace there will be stray hyphens every now and then. This can seriously confusing coding, a common use case for pluma. If you disable "do not split words across two lines" you will now see autohyphenation at the end of ANY wrapped line of text

Workaround is to resize the window large enough to display the entire line of text, or disable word wrap.

Core of the problem:

This is more fallout from Pango's auto-hyphenation "feature" which is enabled by default and has to be explicitly turned off:
https://gitlab.gnome.org/GNOME/nautilus/merge_requests/482/diffs

This also has been a problem in caja, fixed by
https://github.com/mate-desktop/caja/issues/1284
and
https://github.com/mate-desktop/caja/pull/1334

Autohyphenation does not belong in a code-editor and should at least be optional, not mandatory.

Tags: focal
thom (tsk)
description: updated
thom (tsk)
description: updated
description: updated
Norbert (nrbrtx)
tags: added: focal
removed: pluma
Revision history for this message
thom (tsk) wrote :
Revision history for this message
thom (tsk) wrote :

This bug, it seems, has been willfully created by Matthias Clasen and Behdad Esfahbod
who, driven by linguistic purism, seem to be blissfully unaware of the effect on unimportant minor usecases like e.g. code editors, filemanagers, scientific software etc. They call this bug a 'feature'.

https://gitlab.gnome.org/GNOME/pango/-/issues/401

This 'feature' broke already Caja, Pluma, Nautilus, Gedit and probably some more.

Is it possible to disable this 'feature' at the source ?
or better:
Is there a pango patch to change this 'feature' from opt-out to opt-in ?
(i.e. default 'off' instead of default 'on' )

Revision history for this message
Norbert (nrbrtx) wrote :
no longer affects: ubuntu-mate
Changed in pluma (Ubuntu):
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.