chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] Re: #325: sxml-transforms and Unicode entities


From: Chicken Trac
Subject: [Chicken-janitors] Re: #325: sxml-transforms and Unicode entities
Date: Tue, 10 Aug 2010 15:35:26 -0000

#325: sxml-transforms and Unicode entities
--------------------------+-------------------------------------------------
  Reporter:  iraikov      |       Owner:  sjamaan                       
      Type:  enhancement  |      Status:  new                           
  Priority:  major        |   Milestone:                                
 Component:  extensions   |     Version:  4.5.x                         
Resolution:               |    Keywords:  sxml-transforms unicode entity
--------------------------+-------------------------------------------------
Changes (by zbigniew):

  * milestone:  4.6.0 =>


Comment:

 Ivan,

 integer->char is already unicode aware.

 {{{
 $ csi -e '(write (integer->char #x3bb))'
 \u3bb
 }}}

 What is not unicode aware is converting this character to a string using
 (string c) or (make-string 1 c). However, you can use the system procedure
 ##sys#char->utf8-string:

 {{{
 csi -p '(##sys#char->utf8-string (integer->char #x3bb))'
 λ
 }}}

 It is trivial to modify html-entity-unicode-chars to call this instead of
 core make-string, which will not require the utf8 egg.  In fact I did a
 similar thing in the 'ssax' egg so that numeric entities are parsed into
 utf8 sequences without requiring the utf8 egg.

 Speaking of which, shouldn't this be filed against the ssax egg and not
 against sxml-transforms?

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/325#comment:1>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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