all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* utf-8 thai character display issue?
@ 2020-06-05 18:05 scole_mail
  2020-06-05 20:34 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: scole_mail @ 2020-06-05 18:05 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-06-06 18:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-05 18:05 utf-8 thai character display issue? scole_mail
2020-06-05 20:34 ` Eli Zaretskii
2020-06-06 16:24   ` scole_mail
2020-06-06 18:29     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.