guile-user
[Top][All Lists]
Advanced

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

guile-charset


From: Alex Shinn
Subject: guile-charset
Date: 31 Dec 2001 02:28:24 +0900
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1

I've started some general charset handling utilities, right now just
mapping procedures for going to and from 8-bit character sets and ucs2.

http://synthcode.com/gumm/packages/a/ams/guile-charset-0.01.tar.gz

[the packages.scm is updated for the gumm script to grab this]

Examples:

(string-convert-encoding str from to)
(string-convert-encoding latin1-str 'latin1 'ucs2)

(define 1->15 (encoding-converter 'ISO_8859-1 'ISO_8859-15))
(1->15 str)

It's based on the Perl Unicode::Map8 files and even uses the same data
files, so supports the same mappings (all common 8-bit encodings, plus
ucs2 as the common middle ground).

It's pure Scheme right now, I'll probably re-write the important bits in
C.

I plan to work on CJK charsets next.

-- 
Alex



reply via email to

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