From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Display certain glyphs with paddings on the side Date: Tue, 03 Dec 2019 20:42:09 +0200 Message-ID: <83blspjloe.fsf@gnu.org> References: <87CA0401-1087-45C1-A952-DB8624C04D32@gmail.com> <83immylmpu.fsf@gnu.org> <83d0d5jom5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181168"; mail-complaints-to="usenet@blaine.gmane.org" Cc: cpitclaudel@gmail.com, emacs-devel@gnu.org To: Yuri Khan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 03 20:35:04 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1icDwt-000kzE-QW for ged-emacs-devel@m.gmane.org; Tue, 03 Dec 2019 20:35:03 +0100 Original-Received: from localhost ([::1]:57826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icDwr-00048L-NO for ged-emacs-devel@m.gmane.org; Tue, 03 Dec 2019 14:35:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44882) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icD81-0004b7-Ay for emacs-devel@gnu.org; Tue, 03 Dec 2019 13:42:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1icD7u-0006PZ-Q1; Tue, 03 Dec 2019 13:42:23 -0500 Original-Received: from [176.228.60.248] (port=1307 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1icD7r-0004nr-Ub; Tue, 03 Dec 2019 13:42:20 -0500 In-reply-to: (message from Yuri Khan on Wed, 4 Dec 2019 01:36:05 +0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:243082 Archived-At: > From: Yuri Khan > Date: Wed, 4 Dec 2019 01:36:05 +0700 > Cc: Clément Pit-Claudel , > Emacs developers > > On Wed, 4 Dec 2019 at 01:13, Eli Zaretskii wrote: > > I use composition in prettify-symbols-mode to render a symbol in a > two-space field, e.g. to visualize a ‘!=’ sequence as a '(?\s (Br . > Bl) ?\s (Bc . Bc) ?≠) composition. Pretty sure that any CJK glyph, if > its width is less than two spaces, can also be padded that way. No > idea how to arrange for the compositions to be used for all CJK > characters though. That's easy, but how do you know which glyphs need to be padded and by how much? And anyway, doing layout from Lisp is generally not a good idea: at best you will have slow and fragile layout.