From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Eglen Newsgroups: gmane.emacs.help Subject: Help with unicode diacritics Date: Mon, 28 Dec 2020 07:07:36 +0000 Message-ID: <87eejaxvbb.fsf@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22654"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.13; emacs 27.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 28 11:04:51 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktpOV-0005lm-Nt for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 11:04:51 +0100 Original-Received: from localhost ([::1]:40764 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktpOU-0006fy-Q7 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 05:04:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktmd5-0004gH-Cc for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 02:07:44 -0500 Original-Received: from ppsw-30.csi.cam.ac.uk ([131.111.8.130]:40560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktmd2-0007i9-Oy for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 02:07:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=cam.ac.uk; s=20180806.ppsw; h=Content-Transfer-Encoding:Content-Type:MIME-Version: Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=enRRbZ7JobO2OCtbGqMg4G7e86CFU5tp8ZQPD3CiMKI=; b=Dp0SrLgrMGciDOTcGfiTdHERwB qWx1m2pnr9EMM3V+n0Vep3iypHVTSWmfS9F5Yx9K6I5U1eIUlfCuX4sgkyC+RKg3fTcgK2MjFxHlw AvGGguUQ7fnHsMvx+WzkYvxFPPOuGSWk1sUrzXTVJ75Vr69gIWTbByQnE7V4X++sxup4=; X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Original-Received: from 67.108.200.146.dyn.plus.net ([146.200.108.67]:52222 helo=localhost) by ppsw-30.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (PLAIN:sje30) (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1ktmcy-000A9t-fT (Exim 4.92.3) for help-gnu-emacs@gnu.org (return-path ); Mon, 28 Dec 2020 07:07:36 +0000 Received-SPF: pass client-ip=131.111.8.130; envelope-from=sje30@cam.ac.uk; helo=ppsw-30.csi.cam.ac.uk X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 28 Dec 2020 05:03:54 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126846 Archived-At: Hello, can anyone out here help me with debugging a Unicode font issue? In particular, I'd like to use the COMBINING OVERLINE (x0305) code to make "x" with a bar above it (i.e. x bar, to represent the mean of x). I'm on manjaro arch, with Emacs 27.1. I wrote the following snippet to demonstrate the problem. See the line of a character a with various diacritics under the call to (code) to demonstrate the problem. Out of the three fonts I tested, Monaco does the best, but ideally I'd like to use JuliaMono. If I view this same file in xfce4-terminal, using JuliaMono, all the diacritics appear fine. This makes me suspect Emacs. On the page: https://damtp.cam.ac.uk/user/sje30/temp/accents.png is what I see (using EXWM, with emacs rendering on left and xfce-terminal on the right). How might I debug further? The JuliaMono font was installed using the arch package https://github.com/cormullion/juliamono Alternatively, does anyone recommend a monospace font with good Unicode performance in Emacs? Thanks for any pointers, Stephen (defun code () "Insert a range of unicode diactrics into buffer." (dotimes (i 20) (insert "a") (insert (+ 769 i)) (insert " ") )) ;; x0301 is code point (+ (* 3 256) 1) =3D> 769 ;; (code) ;; a=CC=81 a=CC=82 a=CC=83 a=CC=84 a=CC=85 a=CC=86 a=CC=87 a=CC=88 a=CC=89 = a=CC=8A a=CC=8B a=CC=8C a=CC=8D a=CC=8E a=CC=8F a=CC=90 a=CC=91 a=CC=92 a= =CC=93 a=CC=94=20 ;; Monaco renders ok except a=CC=90 ;; (set-face-attribute 'default nil :font "Monaco") ;; ;; quite a few missing=20 ;; (set-face-attribute 'default nil :font "JuliaMono") ;; ;; quite a few missing ;; (set-face-attribute 'default nil :font "Roboto Mono") (emacs-version) "GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo = version 1.17.3) of 2020-08-28"