nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] minibar: when the next character has zero width, show its co


From: Benno Schulenberg
Subject: Re: [PATCH] minibar: when the next character has zero width, show its code too
Date: Thu, 7 Jan 2021 11:38:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

Op 07-01-2021 om 02:34 schreef pepa65@passchier.net:
> Useful to me, mostly when editing Thai files. In Thai, 3 composing
> characters (1 base and 2 zero-width) happen a fair amount. Of course,
> with this patch, only the base and the first zero-width character is
> shown. I was wondering if it would be possible to show all three.

Possible it is, of course.

> Right now, this is an example output: "U+0E14 U+0E35" (missing: U+0E48).
> If it would be displayed like: "U+0E140E350E48" the whole string would
> only be 1 character longer.

That would be unreadable and thus irritating.

> (If 2 more spaces can be spared, perhaps a
> display like "U+0E14_0E35_0E48" would be even cleare[r]!)

Hmm...  Part of me not liking the original patch was apparently the
repetition of "U+".  I don't like the underscore either, because it
makes it seems like a single code.  After trying "+" and ":" and "|",
I think I like "|" best.

See attached patch (to be applied on top of the proposed one).

It will break down when the codes become five or six digits, which is
possible for Unicode.  The original patch (for one zero-width character)
can handle that without getting overwritten by the percentage.

Benno

Attachment: show-second-combining-character-too.patch
Description: Text Data

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]