From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: kbd@lists.altlinux.org
Subject: Re: [kbd] Please support narrow no-break space (U+202F)
Date: Sun, 29 Aug 2010 16:03:46 +0400
Message-ID: <4C7A4CA2.9040803@gmail.com> (raw)
In-Reply-To: <1282773735.2037.32.camel@nicolas-eisti>
26.08.2010 02:02, Nicolas Delvaux wrote:
> Hi,
>
> narrow no-break space chars (lets say nnbsp) are used in French before
> ";?!»" chars and after "«". It is also used in other language, for
> example for the short form of the Czech dates.
>
> Currently, when I switch to a TTY and type a nnbsp, it displays a kind
> of diamond (Ubuntu 10.04).
> (if you can't easily type a nnbsp with your keyboard layout, run
> "/usr/bin/printf '\u202Fx\n'")
>
> I had a look in kbd .uni files, and I didn't found any sign of u+202f
> So I propose to just use nnbsp as U+0020 (white space). The same was
> done for "no-break space" (U+00a0) and it works.
>
> Someone pointed to me that this behavior is consistent with the
> 'wcwidth' function of glibc:
>
> This program:
> =============================================================
> #include <locale.h>
> #include <wctype.h>
> #include <wchar.h>
> #include <stdio.h>
> int main () {
> setlocale (LC_ALL, "fr_FR.UTF-8");
> printf ("wcwidth (0x00A0) = %d\n", wcwidth (0x00A0));
> printf ("wcwidth (0x202F) = %d\n", wcwidth (0x202F));
> return 0;
> }
> =============================================================
> return
> wcwidth (0x00A0) = 1
> wcwidth (0x202F) = 1
>
>
> I don't know if adding this support is just as simple as adding "u+202f"
> at the 0x20 line of each .uni file (if so I can provide a patch if you
> want).
You suggest to replace different types of whitespace symbols with 0x20.
Have I understood you correctly?
--
Rgrds, legion
next parent reply other threads:[~2010-08-29 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-29 12:03 ` Alexey Gladkov [this message]
2010-08-29 21:37 ` Ken Moffat
2010-08-29 22:52 ` Ken Moffat
2010-09-08 21:53 ` Alexey Gladkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C7A4CA2.9040803@gmail.com \
--to=gladkov.alexey@gmail.com \
--cc=kbd@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Linux console tools development discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
public-inbox-index kbd
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.kbd
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git