Lisp HUG Maillist Archive

How to define new external formats?

Hi, Lispworks

I'm a Chinese Lisper, and just purchase a Entriprise Edition today. The 
first thing for me is to define a new external format for the GBK 
encoding (Windows Code Page 936) which used in Simplify Chinese 
language. I have some business in processing Chinese texts.

I see LispWorks now support full japanese encodings like: :jis, :euc-jp 
and :sjis. The SBCL project used to support no chinese encodings but 
euc-jp and sjis, and I commited a patch to support the GBK encoding, 
which merged in SBCL 1.0.2.

So who can tell me some LispWorks API for this work, and I think I can 
add this support myself.

Thanks very much.

Chun Tian (binghe)


Re: How to define new external formats?

"Chun Tian (binghe)" <binghe.lisp@gmail.com> writes:

No one help me?

There's a external symbol INSTALL-CHARSET in EXTERNAL-FORMAT package,
but no documentation. Should I try to use this?

CL-USER 12 > (describe 'ef:install-charset)

EXTERNAL-FORMAT:INSTALL-CHARSET is a SYMBOL
NAME          "INSTALL-CHARSET"
VALUE         #<unbound value>
FUNCTION      #<Function EXTERNAL-FORMAT:INSTALL-CHARSET 41E08C6524>
PLIST         NIL
PACKAGE       #<The EXTERNAL-FORMAT package, 225/256 internal, 41/64 external>

> Hi, Lispworks
>
> I'm a Chinese Lisper, and just purchase a Entriprise Edition
> today. The first thing for me is to define a new external format for
> the GBK encoding (Windows Code Page 936) which used in Simplify
> Chinese language. I have some business in processing Chinese texts.
>
> I see LispWorks now support full japanese encodings like: :jis,
> :euc-jp and :sjis. The SBCL project used to support no chinese
> encodings but euc-jp and sjis, and I commited a patch to support the
> GBK encoding, which merged in SBCL 1.0.2.
>
> So who can tell me some LispWorks API for this work, and I think I can
> add this support myself.
>
> Thanks very much.
>
> Chun Tian (binghe)
>
>

-- 
LispWorks


Updated at: 2020-12-10 08:46 UTC