User: aidan
Date: 05/03/01 00:36:34
Modified: xemacs/src ChangeLog unicode.c
Log:
Add details about losing data to the unicode-to-char docstring.
The Mule character encoding model means that extant Unicode coding systems
will lose data. Make this clear in the docstring of unicode-to-char, give
sample code to implement support for some desired code points should our
distributors want to do that.
Revision Changes Path
1.797 +8 -0 XEmacs/xemacs/src/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/ChangeLog,v
retrieving revision 1.796
retrieving revision 1.797
diff -u -r1.796 -r1.797
--- ChangeLog 2005/02/28 20:21:48 1.796
+++ ChangeLog 2005/02/28 23:36:30 1.797
@@ -1,3 +1,11 @@
+2005-03-01 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * unicode.c: The Mule character encoding model means that extant
+ Unicode coding systems will lose data. Make this clear in the
+ docstring of unicode-to-char, give sample code to implement
+ support for some desired code points should our distributors want
+ to do that.
+
2005-02-28 Aidan Kehoe <kehoea(a)parhasard.net>
* select-gtk.c (emacs_gtk_selection_handle):
1.26 +32 -0 XEmacs/xemacs/src/unicode.c
Index: unicode.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/unicode.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- unicode.c 2005/02/03 16:14:08 1.25
+++ unicode.c 2005/02/28 23:36:32 1.26
@@ -1281,6 +1281,38 @@
When there is no international support (i.e. the 'mule feature is not
present), this function simply does `int-to-char' and ignores the CHARSETS
argument.
+
+Note that the current XEmacs internal encoding has no mapping for many
+Unicode code points, and if you use characters that are vaguely obscure with
+XEmacs' Unicode coding systems, you will lose data.
+
+To add support for some desired code point in the short term--note that our
+intention is to move to a Unicode-compatible internal encoding soon, for
+some value of soon--if you are a distributor, add something like the
+following to `site-start.el.'
+
+(make-charset 'distro-name-private
+ "Private character set for DISTRO"
+ '(dimension 1
+ chars 96
+ columns 1
+ final ?5 ;; Change this--see docs for make-charset
+ long-name "Private charset for some Unicode char support."
+ short-name "Distro-Private"))
+
+(set-unicode-conversion
+ (make-char 'distro-name-private #x20) #x263A) ;; WHITE SMILING FACE
+
+(set-unicode-conversion
+ (make-char 'distro-name-private #x21) #x3030) ;; WAVY DASH
+
+;; ...
+;;; Repeat as necessary.
+
+Redisplay will work on the sjt-xft branch, but not with server-side X11
+fonts as is the default. However, data read in will be preserved when they
+are written out again.
+
*/
(code, USED_IF_MULE (charsets)))
{
Show replies by date