From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DNS_FROM_OPENWHOIS, SPF_NEUTRAL autolearn=no version=3.2.5 Message-ID: <4C7A4CA2.9040803@gmail.com> Date: Sun, 29 Aug 2010 16:03:46 +0400 From: Alexey Gladkov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9pre) Gecko/20100815 Lightning/1.0b2pre Thunderbird/3.1.3pre MIME-Version: 1.0 To: kbd@lists.altlinux.org References: <1282773735.2037.32.camel@nicolas-eisti> In-Reply-To: <1282773735.2037.32.camel@nicolas-eisti> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [kbd] Please support narrow no-break space (U+202F) X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 12:03:59 -0000 Archived-At: List-Archive: 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 > #include > #include > #include > 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