unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: scole_mail <scole_mail@gmx.com>
To: help-gnu-emacs@gnu.org
Subject: utf-8 thai character display issue?
Date: Fri, 05 Jun 2020 11:05:18 -0700	[thread overview]
Message-ID: <873679v15t.fsf@dstar.dstar.net> (raw)

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	other threads:[~2020-06-05 18:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-05 18:05 scole_mail [this message]
2020-06-05 20:34 ` utf-8 thai character display issue? Eli Zaretskii
2020-06-06 16:24   ` scole_mail
2020-06-06 18:29     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873679v15t.fsf@dstar.dstar.net \
    --to=scole_mail@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).