From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Maftei Newsgroups: gmane.emacs.help Subject: Re: Cocoa emacs renders Unicode combining diacritics improperly Date: Mon, 16 Jul 2012 23:15:18 +0100 Message-ID: References: <89CCB64C-8963-45D5-866C-A6B208F007E2@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec51b9d0112ac0d04c4f9c556 X-Trace: dough.gmane.org 1342476951 3027 80.91.229.3 (16 Jul 2012 22:15:51 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 16 Jul 2012 22:15:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 17 00:15:50 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sqta1-0000d5-PT for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jul 2012 00:15:50 +0200 Original-Received: from localhost ([::1]:43421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sqta0-0001o1-Jn for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jul 2012 18:15:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqtZu-0001nk-IL for help-gnu-emacs@gnu.org; Mon, 16 Jul 2012 18:15:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqtZr-0002qR-Ns for help-gnu-emacs@gnu.org; Mon, 16 Jul 2012 18:15:42 -0400 Original-Received: from mail-vb0-f41.google.com ([209.85.212.41]:47461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqtZr-0002qL-I6 for help-gnu-emacs@gnu.org; Mon, 16 Jul 2012 18:15:39 -0400 Original-Received: by vbkv13 with SMTP id v13so4777378vbk.0 for ; Mon, 16 Jul 2012 15:15:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=fkMzEnv+EM7RHIOOODnW6L/zXifHrbSFWTEbY0SKjGQ=; b=WjMI/sdcbNlRHN+kjWsip9s08KUNZOQdNiNi5BcmQ/3WVs7elg2MScqAEOOjfWOKWX /j7+lVYBmLyRFaXTPrFeAxQZb1CN/kf0+LjtXtV7ahoIPQ0jUBDPiZZeyd/mV7YSg43I 2OVJ9hxBWjArD/XAZUYweIjujurF66N2x88xIVNGiQ0xoZoqRSC+FT53piX3SvAajknE X+nsGIDRnCPx3l3BuCSH/Gnx/Hd9G+Ogrlr/t8qRJ4BgU+3iHI4L2tKqTkHVwOLDMUPg qeIuEGNyo0F/XVZ8oARxySM2Z3p/QCWrIf5iHIUItc+cC4bEtVdyvbPJZhEyY/gPs0zb rRSA== Original-Received: by 10.52.173.39 with SMTP id bh7mr1254vdc.101.1342476939078; Mon, 16 Jul 2012 15:15:39 -0700 (PDT) Original-Received: by 10.58.187.197 with HTTP; Mon, 16 Jul 2012 15:15:18 -0700 (PDT) In-Reply-To: <89CCB64C-8963-45D5-866C-A6B208F007E2@Web.DE> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.212.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85891 Archived-At: --bcaec51b9d0112ac0d04c4f9c556 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Jul 16, 2012 at 9:16 PM, Peter Dyballa wrote= : > > Am 16.07.2012 um 19:09 schrieb Dan Maftei: > > > Pre-composed characters (e.g. 0xf1, =C3=B1) render perfectly, but combi= ning > > diacritics (e.g. n\x303) render the character oddly. Namely, the > diacritic > > very miniscule, and is not placed directly above the main character (bu= t > > not entirely to the left or right either). However, a single glyph IS > > created, since C-f and C-b skip over the entire rendered character. > > Try again with a font having the COMBINING accents! You probably used an > inadequate font so that GNU Emacs had to use two different fonts. Which y= ou > can check yourself by putting the text cursor on the basic character or o= n > the accent and typing each time C-u C-x =3D. > I was not clear enough. It is not possible to "put the text cursor on the basic character or on the accent" because the two are combined. My font is apple-monaco for both pre-composed and compositional characters. I have uploaded images of both compositional (http://i.imgur.com/yWPmv.png) and pre-composed (http://i.imgur.com/5Kfy2.png) characters. I've included describe-char output as well. Notice: the combining diacritic is rendered extremely small, and off-center. It doesn't even look like a tilde in the final glyph. > > For tests you could try to use Lucida Grande, a quite rich font. A good > mono-spaced font is DejaVu Sans Mono. Lucida Sans Typewriter from Java is > also a pretty good candidate. (Create a library in Font Book and populate > it with the TT fonts!) > np > The default Cocoa emacs font (apple-monaco) properly renders combining characters in TextEdit. Nevertheless, I tried Lucida Grande, and it did not fix the issue. Cheers, Dan --bcaec51b9d0112ac0d04c4f9c556 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Jul 16, 2012 at 9:16 PM, Peter D= yballa <Peter_Dyballa@web.de> wrote:

Am 16.07.2012 um 19:09 schrieb Dan Maftei:

> Pre-composed characters (e.g. 0xf1, =C3=B1) render perfectly, but comb= ining
> diacritics (e.g. n\x303) render the character oddly. Namely, the diacr= itic
> very miniscule, and is not placed directly above the main character (b= ut
> not entirely to the left or right either). However, a single glyph IS<= br> > created, since C-f and C-b skip over the entire rendered character.
Try again with a font having the COMBINING accents! You probably used= an inadequate font so that GNU Emacs had to use two different fonts. Which= you can check yourself by putting the text cursor on the basic character o= r on the accent and typing each time C-u C-x =3D.

I was not clear enough.

It is not possible to "put the text cursor on the basic charact= er or on the accent" because the two are combined.

My font is apple-monaco for both pre-composed and compositional charac= ters.

I have uploaded images of both compositional= (http://i.imgur.com/yWPmv.png= ) and pre-composed (http://i.imgur= .com/5Kfy2.png) characters. I've included describe-char output as w= ell.

Notice: the combining diacritic is rendered extremely s= mall, and off-center. It doesn't even look like a tilde in the final gl= yph.
=C2=A0

For tests you could try to use Lucida Grande, a quite rich font. A good mon= o-spaced font is DejaVu Sans Mono. Lucida Sans Typewriter from Java is also= a pretty good candidate. (Create a library in Font Book and populate it wi= th the TT fonts!)
np

The default Cocoa emacs font (apple-= monaco) properly renders combining characters in TextEdit. Nevertheless, I = tried Lucida Grande, and it did not fix the issue.

Cheers,
Dan
--bcaec51b9d0112ac0d04c4f9c556--