David Lawrence Ramsey | 13 Jan 2005 22:48

massive updates: UTF-8 support, etc.

Sorry for the silence lately, but I've made major progress in terms of 
UTF-8 support in 1.3.5-cvs, and it's taken a while to get it to an 
easily maintainable state.  It's still not completely finished, but the 
basics (moving around, typing, deleting, backspacing, displaying the 
shortcut list at the bottom of the screen, etc.) should be working in 
the edit window and at the statusbar prompt.

As many operations as possible use multibyte strings now, so as to keep 
the most code in common between the wide and non-wide versions of nano.  
In some cases, I've used parts of David Benbennick's old UTF-8 patch, 
and in other cases I've modified parts of it or written parts of my own.  
The operations that have been converted to do this are now in their own 
source file, chars.c.  During testing, I've discovered that the non-wide 
ncurses will not display multibyte UTF-8 strings properly in UTF-8 
locales using e.g.  display_string(), and the UTF-8-enabled prereleases 
of slang 2.0 won't either under the same conditions.  In the former 
case, we can just check for and link with the wide version of ncurses, 
but I can't figure out what to do in the latter case.  (Maybe slang's 
UTF-8 support doesn't extend to its curses emulation?)

Other changes include an overhaul of the high-level statusbar input 
routines so that verbatim input works at the statusbar prompt; changes 
to verbatim input's character input mode to accept four-digit 
hexadecimal numbers instead of three-digit decimal numbers so as to 
allow input of Unicode characters; and the addition of the ability to 
cut all text from the current cursor position to the end of the file 
with one keystroke (duplicating the same functionality as in a patch for 
Pico, although I call the shortcut CutTillEnd instead of DelToEnd and 
add the alias M-T in the main list for ^X at the search prompt).
(Continue reading)

Jordi Mallach | 14 Jan 2005 01:26
Picon

Re: massive updates: UTF-8 support, etc.

On Thu, Jan 13, 2005 at 10:48:05PM +0100, David Lawrence Ramsey wrote:
> Sorry for the silence lately, but I've made major progress in terms of 
> UTF-8 support in 1.3.5-cvs, and it's taken a while to get it to an 
> easily maintainable state.  It's still not completely finished, but the 

Hi David!

This is great news, half of Debian was waiting for this mail. :)

Do you think the current code is packageable, or should I wait for
1.3.6? I'm concerned about the 8bit nasty bugs in vanilla 1.3.5 which I
have in experimental.

Jordi
--

-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
jordi <at> sindominio.net     jordi <at> debian.org     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/
_______________________________________________
Nano-devel mailing list
Nano-devel <at> gnu.org
http://lists.gnu.org/mailman/listinfo/nano-devel
Mike Frysinger | 14 Jan 2005 02:02
Picon
Favicon
Gravatar

Re: massive updates: UTF-8 support, etc.

On Thursday 13 January 2005 07:26 pm, Jordi Mallach wrote:
> This is great news, half of Debian was waiting for this mail. :)

i would say there's some users of Gentoo also wanting this fix too :)

not quite sure how big our UTF8 user base is, i avoid UTF8 when i can
-mike
Jordi Mallach | 14 Jan 2005 08:38
Picon

Re: massive updates: UTF-8 support, etc.

On Thu, Jan 13, 2005 at 08:02:50PM -0500, Mike Frysinger wrote:
> not quite sure how big our UTF8 user base is, i avoid UTF8 when i can

... says the English speaker :)

At least in the Debian developer community, I think most of us are using
UTF-8 locales by now. They aren't the default yet, but Ubuntu, for
example, will be UTF-8 by default with their next release.

UTF-8 is the way to go, anyway. :)

--

-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
jordi <at> sindominio.net     jordi <at> debian.org     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/
_______________________________________________
Nano-devel mailing list
Nano-devel <at> gnu.org
http://lists.gnu.org/mailman/listinfo/nano-devel

Gmane