help-gnu-emacs
[Top][All Lists]
Advanced

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

utf-8 thai character display issue?


From: scole_mail
Subject: utf-8 thai character display issue?
Date: Fri, 05 Jun 2020 11:05:18 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix)

I am sometimes having trouble with displaying and entering a specific
thai character ำ "THAI CHARACTER SARA AM".

If that character follows some other thai characters or I try to type it
in directly following some other thai character it won't display
properly in the buffer.  It looks like there is no character there.

I know actually it is in the buffer because I can get the properties of
it even though it is not being displayed.  Here are 2 example words that
have issues on my system

กำลัง    (ing)
น้ำ      (water)

The 2nd word is always not displayed correctly. The first word is
sometimes displayed correctly depending on what other thai text files I
may have visited early.  I have tried using and switching various thai
fonts and sizes, but it seems like once the issue appears changing or
resizing the fonts never helps.

My emacs version is
GNU Emacs 26.3 (build 1, x86_64--netbsd, GTK+ Version 3.24.14) of
2020-05-31
I also use this version of emacs built on macos and it doesn't have the
problem.

Here is the char info for it when it didn't display:

C-x C-u = gives this:
             position: 285 of 365 (78%), restriction: <36-366>, column: 10
            character: ำ (displayed as ำ) (codepoint 3635, #o7063, #xe33)
              charset: unicode (Unicode (ISO10646))
code point in charset: 0x0E33
               script: thai
               syntax: w        which means: word
             category: .:Base, 1:base vowel, L:Left-to-right (strong), t:Thai
             to input: type "e" with thai-kesmanee input method
          buffer code: #xE0 #xB8 #xB3
            file code: #xE0 #xB8 #xB3 (encoded by coding system utf-8-emacs)
              display: by this font (glyph code)
    xft:-PfEd-Garuda-normal-normal-normal-*-13-*-*-*-*-0-iso10646-1 (#x104)

Character code properties: customize what to show
  name: THAI CHARACTER SARA AM
  old-name: THAI VOWEL SIGN SARA AM
  general-category: Lo (Letter, Other)
  decomposition: (compat 3661 3634) (compat 'ํ' 'า')

There are text properties here:
  fontified            t

[back]

Here's for one time it was being display correctly:

             position: 50 of 83 (59%), column: 7
            character: ำ (displayed as ำ) (codepoint 3635, #o7063, #xe33)
              charset: unicode (Unicode (ISO10646))
code point in charset: 0x0E33
               script: thai
               syntax: w        which means: word
             category: .:Base, 1:base vowel, L:Left-to-right (strong), t:Thai
             to input: type "C-x 8 RET e33" or "C-x 8 RET THAI CHARACTER SARA 
AM"
          buffer code: #xE0 #xB8 #xB3
            file code: #xE0 #xB8 #xB3 (encoded by coding system utf-8-unix)
              display: composed to form "ำ" (see below)

Composed using this font:
  xft:-PfEd-Garuda-normal-normal-normal-*-13-*-*-*-*-0-iso10646-1
by these glyphs:
  [1 1 3634 259 6 0 5 8 0 nil]

Character code properties: customize what to show
  name: THAI CHARACTER SARA AM
  old-name: THAI VOWEL SIGN SARA AM
  general-category: Lo (Letter, Other)
  decomposition: (compat 3661 3634) (compat 'ํ' 'า')

There are text properties here:
  field                output
  fontified            t
  front-sticky         (field inhibit-line-move-field-capture)
  inhibit-line-move-field-capture t
  rear-nonsticky       t

Thank you for any suggestions



reply via email to

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