pango issueshttps://gitlab.gnome.org/GNOME/pango/-/issues2019-08-14T17:30:04Zhttps://gitlab.gnome.org/GNOME/pango/-/issues/19Preserve normalization for backspace-deletes-character2019-08-14T17:30:04ZBugzillaPreserve normalization for backspace-deletes-character## Submitted by Owen Taylor
Assigned to **Behdad Esfahbod**
**[Link to original bug (#155948)](https://bugzilla.gnome.org/show_bug.cgi?id=155948)**
## Description
In the mythical lost original backspace-deletes-character patch
for...## Submitted by Owen Taylor
Assigned to **Behdad Esfahbod**
**[Link to original bug (#155948)](https://bugzilla.gnome.org/show_bug.cgi?id=155948)**
## Description
In the mythical lost original backspace-deletes-character patch
for GtkTextView and GtkEntry, what I did was:
normalized_text = g_utf8_normalize (cluster_text, -1, G_NORMALIZE_NFD);
gboolean recompose = strcmp (normalized_text, cluster_text) != 0;
len = g_utf8_strlen (cluster_text, -1);
if (len > 1)
{
int bytelen = g_utf8_offset_to_pointer (normalized_text, len - 1) -
normalized_text;
char *to_insert;
if (recompose)
to_insert = g_utf8_normalize (cluster_text, bytelen, G_NORMALIZE_NFC);
else
to_insert = g_strndup (cluster_text, bytelen);
/* insert text */
g_free (to_insert);
}
g_free (normalized_text);
This avoids a bug where deleting one accent off a precomposed form
with two accents will give a decomposed form.Medium APIhttps://gitlab.gnome.org/GNOME/pango/-/issues/16Customizing ellipsization behavior2021-01-23T22:22:27ZBugzillaCustomizing ellipsization behavior## Submitted by Owen Taylor
**[Link to original bug (#147608)](https://bugzilla.gnome.org/show_bug.cgi?id=147608)**
## Description
There is likely a need to allow the exact details of
pango_layout_set_ellipsize() to be customized by...## Submitted by Owen Taylor
**[Link to original bug (#147608)](https://bugzilla.gnome.org/show_bug.cgi?id=147608)**
## Description
There is likely a need to allow the exact details of
pango_layout_set_ellipsize() to be customized by the application.
For example, when ellipsizing a filename we might want to ellipsize
before the basename rather than at the very end.
- Add another PangoLogAttr for "allowed ellipsization position"
to replace the
- Add whatever framework we need to add anyways to allow customizing
break positions.
- Change the ellipsization algorithm to deal with the case where
no ellipsization is allowed at the very start/end.
(find_initial_span() and remove_one_span() need to be made a bit
more complex)
Version: 1.5.xMedium APIhttps://gitlab.gnome.org/GNOME/pango/-/issues/11PangoMarkup should support paragraph control2021-08-22T21:12:49ZBugzillaPangoMarkup should support paragraph control## Submitted by Dov Grobgeld
**[Link to original bug (#124546)](https://bugzilla.gnome.org/show_bug.cgi?id=124546)**
## Description
Currently PangoMarkup supports changing fonts and colors, but there is no
support for paragraph layo...## Submitted by Dov Grobgeld
**[Link to original bug (#124546)](https://bugzilla.gnome.org/show_bug.cgi?id=124546)**
## Description
Currently PangoMarkup supports changing fonts and colors, but there is no
support for paragraph layout control, even though PangoLayout supports
multiple lines and paragraphs. I believe the following controls should be
added:
<p align="LEFT|CENTER|RIGHT">`</p>` Set paragraph alignment
`<p prespace=999>``</p>` Set paragraph prespace
<p postspace=999`</p>` Set paragraph postspace
`<p linespace=999>``<p>` Additional inter line space.
`<p handindent=999>``</p>` Set first line indent
Possibly span could be used instead of p and the last span parameter set in
the paragraph will be used for the entire paragraph.
Once this is in place the GtkTextViewer should be enhanced with two methods
for importing and exporting a PangoMarkup string. But that is probably
another enhancement request.Medium API