[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers)
From: |
Eli Zaretskii |
Subject: |
bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers) |
Date: |
Wed, 18 Feb 2015 05:43:51 +0200 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: sva-news@mygooglest.com, 19872@debbugs.gnu.org
> Date: Wed, 18 Feb 2015 11:43:26 +1100
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > I don't see why would you need to do all that. First, you already do
> > these calculations, to know how many blanks to insert, right? So you
> > already know whether a string is too long, at least in terms of
> > characters, right? And :align-to can work in character units as well
> > as in pixels.
>
> Well, the problem here is that some fonts are wider than others. If
> Gnus says "this should be 20 characters wide", then if some of the
> glyphs are wider than the normal 20 characters, then things won't line
> up any more.
AFAIR, :align-to works in units of canonical character width, so this
problem does not exist.
> > And second, AFAIU you are talking about an additional feature. The OP
> > presented a use case where no string is too long, AFAICT. So it would
> > get you bonus points to handle long strings as well, but that's not
> > what this bug report is about: the same problem exists with the
> > current "alignment" using whitespace, right?
>
> Gnus truncates the strings if they're too long and inserts spaces if
> they're too short.
Then I think you already have everything in place, just replace
insertion of blanks with a :align-to display property.
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Sebastien Vauban, 2015/02/15
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Eli Zaretskii, 2015/02/15
- Message not available
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Sebastien Vauban, 2015/02/16
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Eli Zaretskii, 2015/02/16
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Stefan Monnier, 2015/02/16
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Lars Ingebrigtsen, 2015/02/16
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Eli Zaretskii, 2015/02/17
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Lars Ingebrigtsen, 2015/02/17
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers),
Eli Zaretskii <=
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Lars Ingebrigtsen, 2015/02/19
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Eli Zaretskii, 2015/02/19
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Stefan Monnier, 2015/02/19
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Eli Zaretskii, 2015/02/19
- bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers), Stefan Monnier, 2015/02/17