Hi
Stephen J. Turnbull wrote:
>>>>>"Stefan" == Stefan Holst
<holst(a)mathematik.uni-mainz.de> writes:
>>>>>            
>>>>>
    Stefan> Hi, how could you treat mathematical operators that are
    Stefan> not part of any lang with the charset_reporter??? Is there
    Stefan> a lang abbreviation?
All characters in a buffer are implicitly tagged with a charset.  Many
of the large Oriental charsets like Japanese come with some operator
characters; if so, they will be used automatically.
If the characters are supplied by a 3rd-party library like x-symbol
which also supplies bitmap fonts, there is currently no way to support
them.  
 
Ok I understood that I have to add my own tables for new charsyms, in 
order ot get truetype fonts in use. And made some experiments
(defvar x-symbol-myfont-table
  '((longarrownortheast 33 (arrow) (size big . arrownortheast))
    (Xso 968 (symbol) nil nil ("xso") )
    (mus 8719  (symbol) nil nil ("mus") )
    )
  )
Initialized a font set,...
And substituted
x-symbol-mule-make-char with
(defun x-symbol-unicode-make-char (cset encoding charsym face coding)
  "THis is a journey into sound. I don't know anything. But let's try 
everything"
  (if (> encoding 256) (warn "encoding of character %s is %s " charsym 
encoding))
  (unless (char-table-p x-symbol-mule-char-table)
    (setq x-symbol-mule-char-table (make-char-table 'generic))
    (put-char-table t nil x-symbol-mule-char-table))
  (let* ((char (if (> encoding 265)
           (unicode-to-char encoding)          
         (if  (< encoding 128)
           (make-char (caadr cset) encoding)
           (make-char (caddr cset) (- encoding 128)))
         )))
    (put-char-table char charsym x-symbol-mule-char-table)
    (x-symbol-set-cstrings charsym coding char
               (and coding (>= encoding 160)
                (make-char x-symbol-mule-default-charset
                       (- encoding 128)))
               face)
))
The "greek" characters get displayed nicely in the chosen tt-font, 
wheras the mathematical operator leads to the warning:
 (12) (font/notice) Unable to instantiate font for charset 
chinese-gb2312, face default
The font pattern of the default font is sans-serif. At the moment I 
don't have any complete chinese or japanese font on my system, maybe 
that is the reason. But it should not be necessary for that mathematical 
operators.
What do you think about the unicode version of x-symbol-make-char? 
Should I start do redefine the charsyms of symbols and operators
Yours
Stefan
-- 
Stefan Holst            
http://numerik.mathematik.uni-mainz.de/~juengel
FB Mathematik u. Informatik       Email:  holst(a)mathematik.uni-mainz.de
Joh. Gutenberg Univ. Mainz        Telefon:         ++49(0)6131/39-20172
D - 55099 Mainz                   Fax:             ++49(0)6131/39-23331