all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23934@debbugs.gnu.org
Subject: bug#23934: 25.1.50; Incorrect rendering of cyrillic text on OS X
Date: Sun, 10 Jul 2016 18:09:02 +0100	[thread overview]
Message-ID: <20160710170902.GA51571@breton.holly.idiocy.org> (raw)
In-Reply-To: <83twfxe8pi.fsf@gnu.org>

On Sun, Jul 10, 2016 at 07:52:57PM +0300, Eli Zaretskii wrote:
> > Date: Sun, 10 Jul 2016 17:28:02 +0100
> > From: Alan Third <alan@idiocy.org>
> > Cc: 23934@debbugs.gnu.org
> > 
> > Yes, Emacs seems to think that the composed character takes up no
> > space. This may be no help whatsoever, but I've attached another image
> > showing a cyrillic a with acute alongside the latin version. The latin
> > one is not, afaik, composed, because I don't know how to do that.
> 
> The Latin character is composed, because Emacs knows how to do that.
> You can verify with "C-u C-x =".
> 
> Can you tell what does window-text-pixel-size return for the а́ part of
> the text, both with Menlo and with Monaco?

Using (window-text-pixel-size nil 3 5):

Menlo: (0 . 14)
Monaco: (7 . 16)

> > I don't know how to check whether the font supports it.
> > Here's what describe-char says:
> > 
> >              position: 148 of 234 (63%), column: 2
> >             character: а (displayed as а) (codepoint 1072, #o2060, #x430)
> >     preferred charset: cyrillic-iso8859-5 (Right-Hand Part of ISO/IEC 8859/5 (Latin/Cyrillic): ISO-IR-144)
> > code point in charset: 0x50
> >                script: cyrillic
> >                syntax: w 	which means: word
> >              category: .:Base, L:Left-to-right (strong), Y:2-byte Cyrillic, c:Chinese, h:Korean, j:Japanese, y:Cyrillic
> >              to input: type "C-x 8 RET 430" or "C-x 8 RET CYRILLIC SMALL LETTER A"
> >           buffer code: #xD0 #xB0
> >             file code: #xD0 #xB0 (encoded by coding system utf-8-unix)
> >               display: composed to form "а́" (see below)
> > 
> > Composed with the following character(s) "́" using this font:
> >   mac-ct:-*-Menlo-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1
>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> The above line says that Menlo does have the glyph for the accent.
> Emacs will not compose characters from different fonts.
> 
> > by these glyphs:
> >   [0 1 1072 870 7 0 7 7 1 nil]
> >   [0 1 769 646 7 2 6 10 -7 [-8 -1 -8]]
> 
> Can you show the corresponding data when you use the Monaco font?

             position: 3 of 7 (29%), column: 2
            character: а (displayed as а) (codepoint 1072, #o2060, #x430)
    preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x0430
               script: cyrillic
               syntax: w 	which means: word
             category: .:Base, L:Left-to-right (strong), Y:2-byte Cyrillic, c:Chinese, h:Korean, j:Japanese, y:Cyrillic
             to input: type "C-x 8 RET 430" or "C-x 8 RET CYRILLIC SMALL LETTER A"
          buffer code: #xD0 #xB0
            file code: #xD0 #xB0 (encoded by coding system utf-8-unix)
              display: composed to form "а́" (see below)

Composed with the following character(s) "́" using this font:
  mac-ct:-*-Monaco-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1
by these glyphs:
  [0 1 1072 449 7 0 7 7 1 nil]
  [0 1 769 375 0 -6 -1 10 -7 nil]

Character code properties: customize what to show
  name: CYRILLIC SMALL LETTER A
  general-category: Ll (Letter, Lowercase)
  decomposition: (1072) ('а')

-- 
Alan Third





  reply	other threads:[~2016-07-10 17:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-10 15:45 bug#23934: 25.1.50; Incorrect rendering of cyrillic text on OS X Alan Third
2016-07-10 16:04 ` Eli Zaretskii
2016-07-10 16:28   ` Alan Third
2016-07-10 16:52     ` Eli Zaretskii
2016-07-10 17:09       ` Alan Third [this message]
2016-07-11 14:40         ` Eli Zaretskii
2016-07-11  4:44 ` YAMAMOTO Mitsuharu

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

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

  git send-email \
    --in-reply-to=20160710170902.GA51571@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=23934@debbugs.gnu.org \
    --cc=eliz@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.
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.