All of lore.kernel.org
 help / color / mirror / Atom feed
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	[thread overview]
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



       reply	other threads:[~2010-08-29 12:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1282773735.2037.32.camel@nicolas-eisti>
2010-08-29 12:03 ` Alexey Gladkov [this message]
     [not found]   ` <1283104206.2052.42.camel@nicolas-home>
2010-08-29 21:37     ` [kbd] Please support narrow no-break space (U+202F) Ken Moffat
     [not found]       ` <1283121148.6204.15.camel@nicolas-home>
2010-08-29 22:52         ` Ken Moffat
     [not found]           ` <1283471403.10528.22.camel@nicolas-home>
     [not found]             ` <1283715553.2881.40.camel@nicolas-home>
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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.