[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Transcoder library
From: |
Mike Gran |
Subject: |
Transcoder library |
Date: |
Sun, 29 Mar 2009 20:02:24 -0700 (PDT) |
Hi-
R6RS describes a transcoder library that converts locale strings to
codepoints and back. I put together something that is like the
library described in R6RS.
Basically, one would create a transcoder like this...
(define TC (make-transcoder "UTF-8"))
... and then use it either to read codepoints from encoded files ...
(read-codepoint PORT TC)
(write-codepoint CODEPOINT PORT TC)
... or convert to/from vectors of codepoints ...
(locale-string->u32vector STRING TC)
(u32vector->locale-string U32VECTOR TC)
Not very useful on its own, but, perhaps will have more utility in the
future if someone implements R6RS ports and Unicode-enable
Guile. ;-)
There's more info about it at http://lonelycactus.com/transcoder.html
-Mike Gran
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Transcoder library,
Mike Gran <=