From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?B?4KS44KSu4KWA4KSwIOCkuOCkv+CkguCkuSBTYW1lZXIgU2luZ2g=?= Newsgroups: gmane.emacs.devel Subject: Re: Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) Date: Thu, 2 Jun 2022 08:25:41 +0530 Message-ID: References: <8335goh5l4.fsf@gnu.org> <20220601.163031.1579691423197747832.wl@gnu.org> <83tu94ffkx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000d13b1805e06e2482" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14066"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Werner LEMBERG , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 02 04:58:13 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nwb2K-0003R5-OZ for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Jun 2022 04:58:12 +0200 Original-Received: from localhost ([::1]:43856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwb2J-0000QT-Fw for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Jun 2022 22:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37750) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwb08-00081U-4P for emacs-devel@gnu.org; Wed, 01 Jun 2022 22:55:56 -0400 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:41622) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwb06-0002Ti-6w; Wed, 01 Jun 2022 22:55:55 -0400 Original-Received: by mail-qt1-x82d.google.com with SMTP id x20so2581799qtp.8; Wed, 01 Jun 2022 19:55:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nP/B7cvrV0R+/doGgW0G37Qxjo5vGFDFjK935KVN0AM=; b=UtG+gE/Hk6I3AqOQPsci+W1gQ55c+yaTKIBQ3nw6uwPs9w2+28coNcqHeRi4sCskzv vRA8NTtEEF64aKcYDsUMCGRA37hGC5J4yjIq87NWwFlke4BWkSL/ULS6FcqhekfarSlz qVhG72htTdB1Ry3qWwR+96tPf57O/JAIC0isx5inK/br66qxCltvicRrcVuole+EZic5 IArwSVgyE0TkI8l9Rv9dIwpgE34SK0/EfXBZF1oq2Q/XfZDk5reJIy37nO68iqW2uB7s bNvrjPLjlSyqnjBUvpJlaJro6ZZHAyczAypzmLZjIqrxSRYTkAdrexgMvnkSbjMNbgIZ EgOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nP/B7cvrV0R+/doGgW0G37Qxjo5vGFDFjK935KVN0AM=; b=C4ycb+MzNZ9plJQAArxQOB6iZ3DIfuf6LNexbLA0VV3PpvhkrHRTbRdzwTQzHqQFXC M/xygVcof4nqkoe+rq1p41VWnftmAQ9WeqlWaZ3AhZQvveTHAbMxFX5ZDnbJGA18bOn8 0Afv4guLbkPScoLDWbDdFB1/pux54LMmptNYYLCCBqZIGdgyBjzPM7lq5uU+fBf8DVof Q/uIJu9Ea/osWXdaLzcxgs+zIjv9/NnTySsxzz+aGmyg4jpnUmUM9LJu2VPQOh+xf9Op q21iyqRk/luSQhubWgtV6dktmGClMDRadH0nwPHUQPR51iQWY892RW1USPa1LdClXl3E JHyA== X-Gm-Message-State: AOAM533pXipOVmv7QnknU5Q6b87Ap/Kazlc3eBIPBE7CJtWe9QBBx2vD rXScVpAov1k8v8EfYt3YzZLpdPtmNFQTwkO5xAA8ddCEHObIqA== X-Google-Smtp-Source: ABdhPJxplbF4SBdVUHVB1qtal06Y6y1FWtoHNvN7hVQigdxPEyTp8RHnBM6z4zdwWuXmJfvPDspmQ8qubSt++PyWouE= X-Received: by 2002:a05:622a:1010:b0:2f3:d8f4:6cb4 with SMTP id d16-20020a05622a101000b002f3d8f46cb4mr2255845qte.180.1654138552268; Wed, 01 Jun 2022 19:55:52 -0700 (PDT) In-Reply-To: <83tu94ffkx.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=lumarzeli30@gmail.com; helo=mail-qt1-x82d.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:290538 Archived-At: --000000000000d13b1805e06e2482 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Then can we do something like (set-fontset-font "fontset-default" '(#x11FC0 . #x11FFF) '("Noto Sans Tamil Supplement" . "iso10646-1") nil 'prepend) in lisp/international/fontset.el? After doing this both the "base" and supplement characters are being displayed correctly. On Wed, Jun 1, 2022 at 11:09 PM Eli Zaretskii wrote: > > From: =E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82= =E0=A4=B9 Sameer Singh > > Date: Wed, 1 Jun 2022 22:25:52 +0530 > > Cc: Eli Zaretskii , emacs-devel@gnu.org > > > > This is a sub-optimal solution IMHO. There will always be cases where > > a script is split into multiple Unicode blocks, probably mapped to > > different fonts. AFAICS, the Tamil supplement characters don't > > interact typographically with normal Tamil characters, so a two-font > > solution in this case is valid. In case my assumption is invalid you > > should submit a bug to the Noto project :-) > > > > I agree it is somewhat sub optimal, but Emacs does not differentiate > between supplement and "base" > > characters, so setting different fonts for both of them does not seem > possible. > > Of course, it's possible: set-fontset-font can accept ranges of > codepoints and use different font for each range. It doesn't have to > accept only script names. > > > There also seems to be no font which supports both Tamil and its > supplement characters OOTB. > > That part is indeed sub-optimal, but not a catastrophe if they are > displayed independently, i.e. there are no composition rules that > cross the boundary between the blocks. > --000000000000d13b1805e06e2482 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Then can we do something like
=C2=A0 (set-f= ontset-font "fontset-default" '(#x11FC0 . #x11FFF)
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '("= Noto Sans Tamil Supplement" . "iso10646-1") nil 'prepend= )

in lisp/international/fontset.el?
Afte= r doing this both the "base" and supplement characters are being = displayed correctly.

On Wed, Jun 1, 2022 at 11:09 PM Eli Zaretskii= <eliz@gnu.org> wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">> From: =E0=A4=B8=E0=A4= =AE=E0=A5=80=E0=A4=B0 =E0=A4=B8=E0=A4=BF=E0=A4=82=E0=A4=B9 Sameer Singh <= ;lumarzeli30@gma= il.com>
> Date: Wed, 1 Jun 2022 22:25:52 +0530
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
>
>=C2=A0 This is a sub-optimal solution IMHO.=C2=A0 There will always be = cases where
>=C2=A0 a script is split into multiple Unicode blocks, probably mapped = to
>=C2=A0 different fonts.=C2=A0 AFAICS, the Tamil supplement characters d= on't
>=C2=A0 interact typographically with normal Tamil characters, so a two-= font
>=C2=A0 solution in this case is valid.=C2=A0 In case my assumption is i= nvalid you
>=C2=A0 should submit a bug to the Noto project :-)
>
> I agree it is somewhat sub optimal, but Emacs does not differentiate b= etween supplement and "base"
> characters, so setting different fonts for both of them does not seem = possible.

Of course, it's possible: set-fontset-font can accept ranges of
codepoints and use different font for each range.=C2=A0 It doesn't have= to
accept only script names.

> There also seems to be no font which supports both Tamil and its suppl= ement characters OOTB.

That part is indeed sub-optimal, but not a catastrophe if they are
displayed independently, i.e. there are no composition rules that
cross the boundary between the blocks.
--000000000000d13b1805e06e2482--