all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#55745: [PATCH] Add support for the Hanifi Rohingya script
@ 2022-06-01  2:40 समीर सिंह Sameer Singh
  2022-06-01 12:12 ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-01  2:40 UTC (permalink / raw)
  To: 55745


[-- Attachment #1.1: Type: text/plain, Size: 93 bytes --]

This time the hanifi rohingya script is added to Emacs.

Please review the patch.
Thank You.

[-- Attachment #1.2: Type: text/html, Size: 163 bytes --]

[-- Attachment #2: 0001-Add-support-for-the-Hanifi-Rohingya-script.patch --]
[-- Type: text/x-patch, Size: 6549 bytes --]

From b1960eaeae25aa198c5ce62bd3bd9b479a3a2abc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E0=A4=B8=E0=A4=AE=E0=A5=80=E0=A4=B0=20=E0=A4=B8=E0=A4=BF?=
 =?UTF-8?q?=E0=A4=82=E0=A4=B9=20Sameer=20Singh?= <lumarzeli30@gmail.com>
Date: Tue, 31 May 2022 19:37:34 +0530
Subject: [PATCH] Add support for the Hanifi Rohingya script

* lisp/language/misc-lang.el ("Hanifi Rohingya"):
New language environment.
Add composition rules for Hanifi Rohingya.
Add sample text and input method.
* lisp/international/fontset.el (script-representative-chars)
(setup-default-fontset): Support Hanifi Rohingya.
* lisp/leim/quail/misc-lang.el ("hanifi-rohingya"):
New input method.

* etc/HELLO: Add a Hanifi Rohingya greeting.
* etc/NEWS: Announce the new language environment.
---
 etc/HELLO                     |   1 +
 etc/NEWS                      |   1 +
 lisp/international/fontset.el |   3 +-
 lisp/language/misc-lang.el    |  22 ++++++++
 lisp/leim/quail/misc-lang.el  | 101 ++++++++++++++++++++++++++++++++++
 5 files changed, 127 insertions(+), 1 deletion(-)
 create mode 100644 lisp/leim/quail/misc-lang.el

diff --git a/etc/HELLO b/etc/HELLO
index f63f65ff7d..4148183949 100644
--- a/etc/HELLO
+++ b/etc/HELLO
@@ -60,6 +60,7 @@ Greek (ελληνικά)	Γειά σας
 Greek, ancient (ἑλληνική)	Οὖλέ τε καὶ μέγα χαῖρε
 Gujarati (ગુજરાતી)	નમસ્તે
 Gurmukhi (ਗੁਰਮੁਖੀ)	ਸਤ ਸ੍ਰੀ ਅਕਾਲ
+Hanifi Rohingya (𐴌𐴟𐴇𐴥𐴝𐴚𐴒𐴙𐴝 𐴇𐴝𐴕𐴞𐴉𐴞 𐴓𐴠𐴑𐴤𐴝)	𐴀𐴝𐴏𐴓𐴝𐴀𐴡𐴤𐴛𐴝𐴓𐴝𐴙𐴑𐴟𐴔
 Hanunoo (ᜱᜨᜳᜨᜳᜢ)	ᜫᜬᜧ᜴ ᜣᜭᜯᜥ᜴ ᜰᜲᜭᜥ᜴
 Hebrew (עִבְרִית)	שָׁלוֹם
 Hindi (हिन्दी)	प्रणाम / पाय लागू
diff --git a/etc/NEWS b/etc/NEWS
index 166e991c49..1ae80755e3 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -840,6 +840,7 @@ corresponding language environments are:
 **** Rejang script and language environment
 **** Makasar script and language environment
 **** Lontara script and language environment
+**** Hanifi Rohingya script and language environment
 
 ---
 *** The "Oriya" language environment was renamed to "Odia".
diff --git a/lisp/international/fontset.el b/lisp/international/fontset.el
index 425e9dcb41..2c54c86ab7 100644
--- a/lisp/international/fontset.el
+++ b/lisp/international/fontset.el
@@ -237,7 +237,7 @@ font-encoding-charset-alist
 	(lydian #x10920)
 	(kharoshthi #x10A00)
 	(manichaean #x10AC0)
-	(hanifi-rohingya #x10D00)
+	(hanifi-rohingya #x10D00 #x10D24 #x10D39)
 	(yezidi #x10E80)
 	(old-sogdian #x10F00)
 	(sogdian #x10F30)
@@ -791,6 +791,7 @@ setup-default-fontset
 		    cypriot-syllabary
 		    phoenician
 		    lydian
+                    hanifi-rohingya
                     yezidi
 		    kharoshthi
 		    manichaean
diff --git a/lisp/language/misc-lang.el b/lisp/language/misc-lang.el
index c8a4821abf..46429a4380 100644
--- a/lisp/language/misc-lang.el
+++ b/lisp/language/misc-lang.el
@@ -212,6 +212,28 @@ egyptian-shape-grouping
    (list (vector "[\U00013000-\U0001342E]+"
                  0 #'font-shape-gstring))))
 
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Hanifi Rohingya
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(set-language-info-alist
+ "Hanifi Rohingya" '((charset unicode)
+                     (coding-system utf-8)
+                     (coding-priority utf-8)
+                     (input-method . "hanifi-rohingya")
+                     (sample-text . "Hanifi Rohingya (𐴌𐴟𐴇𐴥𐴝𐴚𐴒𐴙𐴝 𐴇𐴝𐴕𐴞𐴉𐴞 𐴓𐴠𐴑𐴤𐴝)	𐴀𐴝𐴏𐴓𐴝𐴀𐴡𐴤𐴛𐴝𐴓𐴝𐴙𐴑𐴟𐴔")
+                     (documentation . "\
+Rohingya language and its script Hanifi Rohingya are supported
+in this language environment.")))
+
+;; Hanifi Rohingya composition rules
+(set-char-table-range
+ composition-function-table
+ '(#x10D1D . #x10D27)
+ (list (vector
+        "[\x10D00-\x10D27]+"
+        1 'font-shape-gstring)))
+
 (provide 'misc-lang)
 
 ;;; misc-lang.el ends here
diff --git a/lisp/leim/quail/misc-lang.el b/lisp/leim/quail/misc-lang.el
new file mode 100644
index 0000000000..bdb86ab528
--- /dev/null
+++ b/lisp/leim/quail/misc-lang.el
@@ -0,0 +1,101 @@
+;;; misc-lang.el --- Quail package for inputting Miscellaneous characters  -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2022 Free Software Foundation, Inc.
+
+;; Author: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
+;; Keywords: multilingual, input method, i18n, Miscellaneous
+
+;; This file is part of GNU Emacs.
+
+;; GNU Emacs is free software: you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; GNU Emacs is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;; Input methods for Miscellaneous languages.
+
+;;; Code:
+
+(require 'quail)
+
+(quail-define-package
+ "hanifi-rohingya" "Hanifi Rohingya" "𐴌𐴟" t "Hanifi Rohingya phonetic input method.
+
+ `\\=`' is used to switch levels instead of Alt-Gr.
+" nil t t t t nil nil nil nil nil t)
+
+(quail-define-rules
+ ("1"  ?𐴱)
+ ("`1" ?1)
+ ("2"  ?𐴲)
+ ("`2" ?2)
+ ("3"  ?𐴳)
+ ("`3" ?3)
+ ("4"  ?𐴴)
+ ("`4" ?4)
+ ("5"  ?𐴵)
+ ("`5" ?5)
+ ("6"  ?𐴶)
+ ("`6" ?6)
+ ("7"  ?𐴷)
+ ("`7" ?7)
+ ("8"  ?𐴸)
+ ("`8" ?8)
+ ("9"  ?𐴹)
+ ("`9" ?9)
+ ("0"  ?𐴰)
+ ("`0" ?0)
+ ("q"  ?𐴄)
+ ("w"  ?𐴋)
+ ("W"  ?𐴍)
+ ("e"  ?𐴠)
+ ("E"  ?𐴤)
+ ("r"  ?𐴌)
+ ("R"  ?𐴥)
+ ("t"  ?𐴃)
+ ("T"  ?𐴦)
+ ("y"  ?𐴘)
+ ("Y"  ?𐴙)
+ ("u"  ?𐴟)
+ ("U"  ?𐴧)
+ ("i"  ?𐴞)
+ ("o"  ?𐴡)
+ ("p"  ?𐴂)
+ ("a"  ?𐴀)
+ ("A"  ?𐴝)
+ ("s"  ?𐴏)
+ ("S"  ?𐴐)
+ ("d"  ?𐴊)
+ ("f"  ?𐴉)
+ ("F"  ?𐴢)
+ ("g"  ?𐴒)
+ ("h"  ?𐴇)
+ ("j"  ?𐴅)
+ ("k"  ?𐴑)
+ ("K"  ?𐴈)
+ ("l"  ?𐴓)
+ ("z"  ?𐴎)
+ ("c"  ?𐴆)
+ ("C"  #x200C) ; ZWNJ
+ ("v"  ?𐴖)
+ ("V"  ?𐴗)
+ ("`v" ?𐴜)
+ ("b"  ?𐴁)
+ ("n"  ?𐴕)
+ ("N"  ?𐴚)
+ ("`n" ?𐴛)
+ ("`N" ?𐴣)
+ ("m"  ?𐴔))
+
+(provide 'misc-lang)
+;;; misc-lang.el ends here
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 26+ messages in thread

* bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01  2:40 bug#55745: [PATCH] Add support for the Hanifi Rohingya script समीर सिंह Sameer Singh
@ 2022-06-01 12:12 ` Eli Zaretskii
  2022-06-01 12:24   ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-01 12:12 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: 55745-done

> From: समीर सिंह Sameer Singh
>  <lumarzeli30@gmail.com>
> Date: Wed, 1 Jun 2022 08:10:39 +0530
> 
> This time the hanifi rohingya script is added to Emacs.

Thanks, installed.





^ permalink raw reply	[flat|nested] 26+ messages in thread

* bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01 12:12 ` Eli Zaretskii
@ 2022-06-01 12:24   ` समीर सिंह Sameer Singh
  2022-06-01 12:54     ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-01 12:24 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 55745-done

[-- Attachment #1: Type: text/plain, Size: 930 bytes --]

>
> Thanks, installed.
>

Thank You!

Also, please help me with another problem, I cannot get Emacs to display
tamil supplement characters.

I have tried adding tamil supplement codepoints to the (tamil) script of
(script-representative-chars) function in lisp/international/fontset.el
I also added the tamil supplement codepoints to the tamil composition rules.
I even added a separate tamil-supplement script to
(script-representative-chars) but nothing worked.

How can I fix this?

Here are some tamil-supplement characters:
𑿀 𑿁 𑿂 𑿃 𑿄 𑿅 𑿆 (\x11FC0 \x11FC1 \x11FC2 \x11FC3 \x11FC4 \x11FC5
\x11FC6)

On Wed, Jun 1, 2022 at 5:42 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: समीर सिंह Sameer Singh
> >  <lumarzeli30@gmail.com>
> > Date: Wed, 1 Jun 2022 08:10:39 +0530
> >
> > This time the hanifi rohingya script is added to Emacs.
>
> Thanks, installed.
>

[-- Attachment #2: Type: text/html, Size: 1606 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01 12:24   ` समीर सिंह Sameer Singh
@ 2022-06-01 12:54     ` Eli Zaretskii
  2022-06-01 13:25       ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-01 12:54 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: emacs-devel

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Wed, 1 Jun 2022 17:54:24 +0530
> 
> Also, please help me with another problem, I cannot get Emacs to display tamil supplement characters.

With which font?  And what do you mean by "I cannot"? what happens if
you try?

> I have tried adding tamil supplement codepoints to the (tamil) script of (script-representative-chars) function
> in lisp/international/fontset.el

Does the font you use support those characters?  Does it support Tamil
in general?

> I also added the tamil supplement codepoints to the tamil composition rules.

Composition rules have no effect on whether a character is displayed
as a glyph or as "tofu".

> I even added a separate tamil-supplement script to (script-representative-chars) but nothing worked.

There's no tamil-supplement script, though.

  (aref char-script-table #x11fc0) => tamil

See lisp/international/charscript.el, a generated file.

> How can I fix this?

We need first to understand the problem.

P.S. I've moved this discussion out of the bug report to emacs-devel.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01 12:54     ` Eli Zaretskii
@ 2022-06-01 13:25       ` समीर सिंह Sameer Singh
  2022-06-01 13:32         ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-01 13:25 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 2254 bytes --]

>
> > Also, please help me with another problem, I cannot get Emacs to display
> tamil supplement characters.
>
> With which font?
>

Thank you for asking the question, I had assumed that it was the Noto Sans
Tamil font, which displayed the supplement characters, but it was actually
Noto Sans Tamil Supplement.

And what do you mean by "I cannot"? what happens if
> you try?
>

When typed in Emacs they are displayed as "Tofu" characters i.e.
Rectangular Boxes with codepoint inside.

Does the font you use support those characters?  Does it support Tamil
> in general?
>

Yes the font supports the supplement characters, but does not support Tamil
in general.

> I even added a separate tamil-supplement script to
> (script-representative-chars) but nothing worked.
>
> There's no tamil-supplement script, though.


Unicode defines one, but AFAIK Emacs removes the "supplement" word from
these characters. I think it is defined in admin/unidata/blocks.awk

On Wed, Jun 1, 2022 at 6:24 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> > Date: Wed, 1 Jun 2022 17:54:24 +0530
> >
> > Also, please help me with another problem, I cannot get Emacs to display
> tamil supplement characters.
>
> With which font?  And what do you mean by "I cannot"? what happens if
> you try?
>
> > I have tried adding tamil supplement codepoints to the (tamil) script of
> (script-representative-chars) function
> > in lisp/international/fontset.el
>
> Does the font you use support those characters?  Does it support Tamil
> in general?
>
> > I also added the tamil supplement codepoints to the tamil composition
> rules.
>
> Composition rules have no effect on whether a character is displayed
> as a glyph or as "tofu".
>
> > I even added a separate tamil-supplement script to
> (script-representative-chars) but nothing worked.
>
> There's no tamil-supplement script, though.
>
>   (aref char-script-table #x11fc0) => tamil
>
> See lisp/international/charscript.el, a generated file.
>
> > How can I fix this?
>
> We need first to understand the problem.
>
> P.S. I've moved this discussion out of the bug report to emacs-devel.
>

[-- Attachment #2: Type: text/html, Size: 3638 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01 13:25       ` समीर सिंह Sameer Singh
@ 2022-06-01 13:32         ` Eli Zaretskii
  2022-06-01 13:54           ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-01 13:32 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: emacs-devel

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Wed, 1 Jun 2022 18:55:17 +0530
> Cc: emacs-devel@gnu.org
> 
>  Does the font you use support those characters?  Does it support Tamil
>  in general?
> 
> Yes the font supports the supplement characters, but does not support Tamil in general.

Then I think this is the problem.  Tamil requires special support from
the font, as evidenced by this snippet from fontset.el:

     (tamil ,(font-spec :registry "iso10646-1" :otf '(tml2 nil (akhn)))
            ,(font-spec :registry "iso10646-1" :otf '(taml nil (akhn))))

As you see, we request special OTF features, and thus by default will
not accept a font that doesn't have them.  You can override that by
customizing the fontset via set-fontset-font.

Are you aware of any good Tamil fonts that support the Tamil
Supplemental block?  I don't seem to be able to find any such fonts.

>  > I even added a separate tamil-supplement script to (script-representative-chars) but nothing worked.
> 
>  There's no tamil-supplement script, though.
> 
> Unicode defines one, but AFAIK Emacs removes the "supplement" word from these characters. I think it is
> defined in admin/unidata/blocks.awk 

Yes, that's what produces charscript.el.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01 13:32         ` Eli Zaretskii
@ 2022-06-01 13:54           ` समीर सिंह Sameer Singh
  2022-06-01 14:30             ` Werner LEMBERG
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-01 13:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel


[-- Attachment #1.1: Type: text/plain, Size: 1831 bytes --]

>
> Are you aware of any good Tamil fonts that support the Tamil
> Supplemental block?  I don't seem to be able to find any such fonts.


After merging Noto Sans Tamil and Noto Sans Tamil Supplement font files and
adding some Tamil supplement codepoints to tamil in
(script-representative-chars).
Emacs is now able to  display these characters.

I have attached the font file for anyone interested.

On Wed, Jun 1, 2022 at 7:02 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> > Date: Wed, 1 Jun 2022 18:55:17 +0530
> > Cc: emacs-devel@gnu.org
> >
> >  Does the font you use support those characters?  Does it support Tamil
> >  in general?
> >
> > Yes the font supports the supplement characters, but does not support
> Tamil in general.
>
> Then I think this is the problem.  Tamil requires special support from
> the font, as evidenced by this snippet from fontset.el:
>
>      (tamil ,(font-spec :registry "iso10646-1" :otf '(tml2 nil (akhn)))
>             ,(font-spec :registry "iso10646-1" :otf '(taml nil (akhn))))
>
> As you see, we request special OTF features, and thus by default will
> not accept a font that doesn't have them.  You can override that by
> customizing the fontset via set-fontset-font.
>
> Are you aware of any good Tamil fonts that support the Tamil
> Supplemental block?  I don't seem to be able to find any such fonts.
>
> >  > I even added a separate tamil-supplement script to
> (script-representative-chars) but nothing worked.
> >
> >  There's no tamil-supplement script, though.
> >
> > Unicode defines one, but AFAIK Emacs removes the "supplement" word from
> these characters. I think it is
> > defined in admin/unidata/blocks.awk
>
> Yes, that's what produces charscript.el.
>

[-- Attachment #1.2: Type: text/html, Size: 2586 bytes --]

[-- Attachment #2: NotoSansTamil-Regular.ttf --]
[-- Type: font/ttf, Size: 628152 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01 13:54           ` समीर सिंह Sameer Singh
@ 2022-06-01 14:30             ` Werner LEMBERG
  2022-06-01 16:55               ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Werner LEMBERG @ 2022-06-01 14:30 UTC (permalink / raw)
  To: lumarzeli30; +Cc: eliz, emacs-devel


>> Are you aware of any good Tamil fonts that support the Tamil
>> Supplemental block?  I don't seem to be able to find any such
>> fonts.
>
> After merging Noto Sans Tamil and Noto Sans Tamil Supplement font
> files and adding some Tamil supplement codepoints to tamil in
> (script-representative-chars).  Emacs is now able to display these
> characters.

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 :-)


    Werner



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: bug#55745: [PATCH] Add support for the Hanifi Rohingya script
  2022-06-01 14:30             ` Werner LEMBERG
@ 2022-06-01 16:55               ` समीर सिंह Sameer Singh
  2022-06-01 17:39                 ` Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-01 16:55 UTC (permalink / raw)
  To: Werner LEMBERG; +Cc: Eli Zaretskii, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1534 bytes --]

>
> 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.
There also seems to be no font which supports both Tamil and its supplement
characters OOTB.

On Wed, Jun 1, 2022 at 8:00 PM Werner LEMBERG <wl@gnu.org> wrote:

>
> >> Are you aware of any good Tamil fonts that support the Tamil
> >> Supplemental block?  I don't seem to be able to find any such
> >> fonts.
> >
> > After merging Noto Sans Tamil and Noto Sans Tamil Supplement font
> > files and adding some Tamil supplement codepoints to tamil in
> > (script-representative-chars).  Emacs is now able to display these
> > characters.
>
> 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 :-)
>
>
>     Werner
>

[-- Attachment #2: Type: text/html, Size: 2109 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script)
  2022-06-01 16:55               ` समीर सिंह Sameer Singh
@ 2022-06-01 17:39                 ` Eli Zaretskii
  2022-06-02  2:55                   ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-01 17:39 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: wl, emacs-devel

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Wed, 1 Jun 2022 22:25:52 +0530
> Cc: Eli Zaretskii <eliz@gnu.org>, 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.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script)
  2022-06-01 17:39                 ` Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) Eli Zaretskii
@ 2022-06-02  2:55                   ` समीर सिंह Sameer Singh
  2022-06-02  5:38                     ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-02  2:55 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Werner LEMBERG, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]

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 <eliz@gnu.org> wrote:

> > From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> > Date: Wed, 1 Jun 2022 22:25:52 +0530
> > Cc: Eli Zaretskii <eliz@gnu.org>, 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.
>

[-- Attachment #2: Type: text/html, Size: 2317 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script)
  2022-06-02  2:55                   ` समीर सिंह Sameer Singh
@ 2022-06-02  5:38                     ` Eli Zaretskii
  2022-06-02  6:27                       ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-02  5:38 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: wl, emacs-devel

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Thu, 2 Jun 2022 08:25:41 +0530
> Cc: Werner LEMBERG <wl@gnu.org>, emacs-devel@gnu.org
> 
> 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.

First, you omitted the OTF features we request for Tamil -- aren't
they needed for the Supplement block? if not, why not?

Next, we should consider what the main supported platforms do with
this block -- don't they come with other fonts configured for this
block? if they do, we should at least use 'append', not 'prepend'.

And finally, is the license of Noto Sans Tamil Supplement free enough
for us to include it in our sources?



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script)
  2022-06-02  5:38                     ` Eli Zaretskii
@ 2022-06-02  6:27                       ` Eli Zaretskii
  2022-06-02  6:42                         ` Tamil fonts Visuwesh
  2022-06-02 12:14                         ` Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) समीर सिंह Sameer Singh
  0 siblings, 2 replies; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-02  6:27 UTC (permalink / raw)
  To: lumarzeli30; +Cc: wl, emacs-devel

> Date: Thu, 02 Jun 2022 08:38:32 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: wl@gnu.org, emacs-devel@gnu.org
> 
> And finally, is the license of Noto Sans Tamil Supplement free enough
> for us to include it in our sources?
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I meant "to include its reference", of course, not the font itself.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-02  6:27                       ` Eli Zaretskii
@ 2022-06-02  6:42                         ` Visuwesh
  2022-06-02 12:14                         ` Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) समीर सिंह Sameer Singh
  1 sibling, 0 replies; 26+ messages in thread
From: Visuwesh @ 2022-06-02  6:42 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: lumarzeli30, wl, emacs-devel

[வியாழன் ஜூன் 02, 2022] Eli Zaretskii wrote:

>> Date: Thu, 02 Jun 2022 08:38:32 +0300
>> From: Eli Zaretskii <eliz@gnu.org>
>> Cc: wl@gnu.org, emacs-devel@gnu.org
>> 
>> And finally, is the license of Noto Sans Tamil Supplement free enough
>> for us to include it in our sources?
>          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I meant "to include its reference", of course, not the font itself.

According to https://fonts.google.com/noto/specimen/Noto+Sans+Tamil+Supplement/about,
it is licensed under Open Font License.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script)
  2022-06-02  6:27                       ` Eli Zaretskii
  2022-06-02  6:42                         ` Tamil fonts Visuwesh
@ 2022-06-02 12:14                         ` समीर सिंह Sameer Singh
  2022-06-02 12:45                           ` Eli Zaretskii
  1 sibling, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-02 12:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Werner LEMBERG, emacs-devel, Visuwesh

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]

>
> First, you omitted the OTF features we request for Tamil -- aren't
> they needed for the Supplement block? if not, why not?
>

Tamil supplement does not need the akhn OTF feature because it does not
form any conjuncts, they are mostly accounting or agricultural symbols.

Next, we should consider what the main supported platforms do with
> this block -- don't they come with other fonts configured for this
> block? if they do, we should at least use 'append', not 'prepend'.
>

There does not seem to be any font in MS windows which supports these
characters.
I am not sure about MacOS.
but still I will use append.

And finally, is the license of Noto Sans Tamil Supplement free enough
> for us to include it in our sources?
>

The Noto Sans Tamil Supplement font file is under the SIL Open Font License
v1.1
The Noto Color Emoji font is also under the same license and is referenced
in the Emacs source code.


On Thu, Jun 2, 2022 at 11:56 AM Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Thu, 02 Jun 2022 08:38:32 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: wl@gnu.org, emacs-devel@gnu.org
> >
> > And finally, is the license of Noto Sans Tamil Supplement free enough
> > for us to include it in our sources?
>          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> I meant "to include its reference", of course, not the font itself.
>

[-- Attachment #2: Type: text/html, Size: 2463 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script)
  2022-06-02 12:14                         ` Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) समीर सिंह Sameer Singh
@ 2022-06-02 12:45                           ` Eli Zaretskii
  2022-06-02 12:50                             ` Tamil fonts Werner LEMBERG
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-02 12:45 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: wl, emacs-devel, visuweshm

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Thu, 2 Jun 2022 17:44:47 +0530
> Cc: Werner LEMBERG <wl@gnu.org>, emacs-devel@gnu.org, Visuwesh <visuweshm@gmail.com>
> 
>  First, you omitted the OTF features we request for Tamil -- aren't
>  they needed for the Supplement block? if not, why not?
> 
> Tamil supplement does not need the akhn OTF feature because it does not form any conjuncts, they are
> mostly accounting or agricultural symbols.

What about the tml2 feature, which means OTF-specific support for the
Tamil script?



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-02 12:45                           ` Eli Zaretskii
@ 2022-06-02 12:50                             ` Werner LEMBERG
  2022-06-03 11:37                               ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Werner LEMBERG @ 2022-06-02 12:50 UTC (permalink / raw)
  To: eliz; +Cc: lumarzeli30, emacs-devel, visuweshm


>> Tamil supplement does not need the akhn OTF feature because it does
>> not form any conjuncts, they are mostly accounting or agricultural
>> symbols.
> 
> What about the tml2 feature, which means OTF-specific support for
> the Tamil script?

The Tamil supplement font (at least from Noto) has neither a GPOS nor
a GSUB table.  In other words, no OpenType-specific stuff at all.
It's a simple font with simple glyphs.


    Werner



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-02 12:50                             ` Tamil fonts Werner LEMBERG
@ 2022-06-03 11:37                               ` समीर सिंह Sameer Singh
  2022-06-03 11:49                                 ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-03 11:37 UTC (permalink / raw)
  To: Werner LEMBERG; +Cc: Eli Zaretskii, emacs-devel, Visuwesh

[-- Attachment #1: Type: text/plain, Size: 697 bytes --]

>
> It's a simple font with simple glyphs.
>

Yes, Tamil supplement characters do not need reordering, vowel signs,
virama, etc.
so the tml2 tag has no use in this case.

On Thu, Jun 2, 2022 at 6:20 PM Werner LEMBERG <wl@gnu.org> wrote:

>
> >> Tamil supplement does not need the akhn OTF feature because it does
> >> not form any conjuncts, they are mostly accounting or agricultural
> >> symbols.
> >
> > What about the tml2 feature, which means OTF-specific support for
> > the Tamil script?
>
> The Tamil supplement font (at least from Noto) has neither a GPOS nor
> a GSUB table.  In other words, no OpenType-specific stuff at all.
> It's a simple font with simple glyphs.
>
>
>     Werner
>

[-- Attachment #2: Type: text/html, Size: 1222 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 11:37                               ` समीर सिंह Sameer Singh
@ 2022-06-03 11:49                                 ` Eli Zaretskii
  2022-06-03 11:51                                   ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-03 11:49 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: wl, emacs-devel, visuweshm

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Fri, 3 Jun 2022 17:07:57 +0530
> Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org, Visuwesh <visuweshm@gmail.com>
> 
>  It's a simple font with simple glyphs.
> 
> Yes, Tamil supplement characters do not need reordering, vowel signs, virama, etc.
> so the tml2 tag has no use in this case.

This should be in the comments to the corresponding setup of the
default fontset.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 11:49                                 ` Eli Zaretskii
@ 2022-06-03 11:51                                   ` समीर सिंह Sameer Singh
  2022-06-03 12:10                                     ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-03 11:51 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Werner LEMBERG, emacs-devel, Visuwesh

[-- Attachment #1: Type: text/plain, Size: 667 bytes --]

So should I send the patch? I also have the next script ready should I send
it along with this?

On Fri, Jun 3, 2022 at 5:19 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> > Date: Fri, 3 Jun 2022 17:07:57 +0530
> > Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org, Visuwesh <
> visuweshm@gmail.com>
> >
> >  It's a simple font with simple glyphs.
> >
> > Yes, Tamil supplement characters do not need reordering, vowel signs,
> virama, etc.
> > so the tml2 tag has no use in this case.
>
> This should be in the comments to the corresponding setup of the
> default fontset.
>

[-- Attachment #2: Type: text/html, Size: 1223 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 11:51                                   ` समीर सिंह Sameer Singh
@ 2022-06-03 12:10                                     ` Eli Zaretskii
  2022-06-03 12:16                                       ` समीर सिंह Sameer Singh
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-03 12:10 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: wl, emacs-devel, visuweshm

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Fri, 3 Jun 2022 17:21:42 +0530
> Cc: Werner LEMBERG <wl@gnu.org>, emacs-devel@gnu.org, Visuwesh <visuweshm@gmail.com>
> 
> So should I send the patch?

Yes, please.

> I also have the next script ready should I send it along with this?

Separately, please.

Thanks.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 12:10                                     ` Eli Zaretskii
@ 2022-06-03 12:16                                       ` समीर सिंह Sameer Singh
  2022-06-03 13:00                                         ` Eli Zaretskii
  0 siblings, 1 reply; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-03 12:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Werner LEMBERG, emacs-devel, Visuwesh

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

Great! I will send them in two different bug reports.

I think we should also warn users that if they are trying to change the
tamil font in their init.el, they should use codepoints instead of the
script name,
in the (set-fontset-font) function, because if their font does not support
the supplement characters, they will once more be displayed as "tofu".

Where should I write this warning?

On Fri, Jun 3, 2022 at 5:40 PM Eli Zaretskii <eliz@gnu.org> wrote:

> > From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> > Date: Fri, 3 Jun 2022 17:21:42 +0530
> > Cc: Werner LEMBERG <wl@gnu.org>, emacs-devel@gnu.org, Visuwesh <
> visuweshm@gmail.com>
> >
> > So should I send the patch?
>
> Yes, please.
>
> > I also have the next script ready should I send it along with this?
>
> Separately, please.
>
> Thanks.
>

[-- Attachment #2: Type: text/html, Size: 1484 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 12:16                                       ` समीर सिंह Sameer Singh
@ 2022-06-03 13:00                                         ` Eli Zaretskii
  2022-06-03 13:14                                           ` Visuwesh
  0 siblings, 1 reply; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-03 13:00 UTC (permalink / raw)
  To: समीर सिंह Sameer Singh
  Cc: wl, emacs-devel, visuweshm

> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> Date: Fri, 3 Jun 2022 17:46:10 +0530
> Cc: Werner LEMBERG <wl@gnu.org>, emacs-devel@gnu.org, Visuwesh <visuweshm@gmail.com>
> 
> Great! I will send them in two different bug reports.

Thanks.

> I think we should also warn users that if they are trying to change the tamil font in their init.el, they should use
> codepoints instead of the script name,
> in the (set-fontset-font) function, because if their font does not support the supplement characters, they will
> once more be displayed as "tofu".

How is this different from any other font that supports only part of
the script's characters?  Many Unicode blocks have "supplement" parts,
and there's nothing to assure a user that a font which supports the
representative characters will necessarily support all of the others.
Users should be prepared to deal with such problems when they happen,
and there's no way Emacs could warn them about every possible case,
since there are too many fonts out there.

(Personally, I find it strange that a Tamil font doesn't support the
Supplement block, and even more strange that Google created a separate
font instead of extending an existing one.  Perhaps this is because
the Tamil Supplement block is relatively new.)



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 13:00                                         ` Eli Zaretskii
@ 2022-06-03 13:14                                           ` Visuwesh
  2022-06-03 13:19                                             ` समीर सिंह Sameer Singh
  2022-06-03 13:38                                             ` Eli Zaretskii
  0 siblings, 2 replies; 26+ messages in thread
From: Visuwesh @ 2022-06-03 13:14 UTC (permalink / raw)
  To: Eli Zaretskii
  Cc: समीर सिंह Sameer Singh,
	wl, emacs-devel

[வெள்ளி ஜூன் 03, 2022] Eli Zaretskii wrote:

>> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
>> Date: Fri, 3 Jun 2022 17:46:10 +0530
>> Cc: Werner LEMBERG <wl@gnu.org>, emacs-devel@gnu.org, Visuwesh <visuweshm@gmail.com>
>> 
>> Great! I will send them in two different bug reports.
>
> Thanks.
>
>> I think we should also warn users that if they are trying to change the tamil font in their init.el, they should use
>> codepoints instead of the script name,
>> in the (set-fontset-font) function, because if their font does not support the supplement characters, they will
>> once more be displayed as "tofu".
>
> [...]
>
> (Personally, I find it strange that a Tamil font doesn't support the
> Supplement block, and even more strange that Google created a separate
> font instead of extending an existing one.  Perhaps this is because
> the Tamil Supplement block is relatively new.)

Probably because most of the characters added are historic, for a lack
of a better word.  I have never seen them used in practise and I doubt
most Tamil speakers know about them either: maybe if you were old, you
might have used it and/or heard about it [1].  Considering this, I don't
think most font maintainers/creators would have the supplement
characters in high priority list.

Also, these characters were added in Unicode 12.0.

[1] FWIW, even my mother did not know about it.



^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 13:14                                           ` Visuwesh
@ 2022-06-03 13:19                                             ` समीर सिंह Sameer Singh
  2022-06-03 13:38                                             ` Eli Zaretskii
  1 sibling, 0 replies; 26+ messages in thread
From: समीर सिंह Sameer Singh @ 2022-06-03 13:19 UTC (permalink / raw)
  To: Eli Zaretskii,
	समीर सिंह Sameer Singh,
	Werner LEMBERG, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 2579 bytes --]

>
> How is this different from any other font that supports only part of
> the script's characters?  Many Unicode blocks have "supplement" parts,
> and there's nothing to assure a user that a font which supports the
> representative characters will necessarily support all of the others.
> Users should be prepared to deal with such problems when they happen,
> and there's no way Emacs could warn them about every possible case,
> since there are too many fonts out there.
>

Ok, so I will not mention that.

(Personally, I find it strange that a Tamil font doesn't support the
> Supplement block, and even more strange that Google created a separate
> font instead of extending an existing one.  Perhaps this is because
> the Tamil Supplement block is relatively new.)
>

I think the noto guys are planning to provide merged fonts to users either
as all the scripts in one font, or on a per-region basis.
See: https://github.com/googlefonts/noto-fonts/issues/2257

On Fri, Jun 3, 2022 at 6:44 PM Visuwesh <visuweshm@gmail.com> wrote:

> [வெள்ளி ஜூன் 03, 2022] Eli Zaretskii wrote:
>
> >> From: समीर सिंह Sameer Singh <lumarzeli30@gmail.com>
> >> Date: Fri, 3 Jun 2022 17:46:10 +0530
> >> Cc: Werner LEMBERG <wl@gnu.org>, emacs-devel@gnu.org, Visuwesh <
> visuweshm@gmail.com>
> >>
> >> Great! I will send them in two different bug reports.
> >
> > Thanks.
> >
> >> I think we should also warn users that if they are trying to change the
> tamil font in their init.el, they should use
> >> codepoints instead of the script name,
> >> in the (set-fontset-font) function, because if their font does not
> support the supplement characters, they will
> >> once more be displayed as "tofu".
> >
> > [...]
> >
> > (Personally, I find it strange that a Tamil font doesn't support the
> > Supplement block, and even more strange that Google created a separate
> > font instead of extending an existing one.  Perhaps this is because
> > the Tamil Supplement block is relatively new.)
>
> Probably because most of the characters added are historic, for a lack
> of a better word.  I have never seen them used in practise and I doubt
> most Tamil speakers know about them either: maybe if you were old, you
> might have used it and/or heard about it [1].  Considering this, I don't
> think most font maintainers/creators would have the supplement
> characters in high priority list.
>
> Also, these characters were added in Unicode 12.0.
>
> [1] FWIW, even my mother did not know about it.
>

[-- Attachment #2: Type: text/html, Size: 3706 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread

* Re: Tamil fonts
  2022-06-03 13:14                                           ` Visuwesh
  2022-06-03 13:19                                             ` समीर सिंह Sameer Singh
@ 2022-06-03 13:38                                             ` Eli Zaretskii
  1 sibling, 0 replies; 26+ messages in thread
From: Eli Zaretskii @ 2022-06-03 13:38 UTC (permalink / raw)
  To: Visuwesh; +Cc: lumarzeli30, wl, emacs-devel

> From: Visuwesh <visuweshm@gmail.com>
> Cc: समीर सिंह Sameer Singh
>  <lumarzeli30@gmail.com>,  wl@gnu.org,
>   emacs-devel@gnu.org
> Date: Fri, 03 Jun 2022 18:44:44 +0530
> 
> > (Personally, I find it strange that a Tamil font doesn't support the
> > Supplement block, and even more strange that Google created a separate
> > font instead of extending an existing one.  Perhaps this is because
> > the Tamil Supplement block is relatively new.)
> 
> Probably because most of the characters added are historic, for a lack
> of a better word.  I have never seen them used in practise and I doubt
> most Tamil speakers know about them either: maybe if you were old, you
> might have used it and/or heard about it [1].  Considering this, I don't
> think most font maintainers/creators would have the supplement
> characters in high priority list.

Thanks, I think this makes treating them as a separate setting in the
fontset even more reasonable.

> Also, these characters were added in Unicode 12.0.

Yes, thus "relatively new" above.



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2022-06-03 13:38 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-01  2:40 bug#55745: [PATCH] Add support for the Hanifi Rohingya script समीर सिंह Sameer Singh
2022-06-01 12:12 ` Eli Zaretskii
2022-06-01 12:24   ` समीर सिंह Sameer Singh
2022-06-01 12:54     ` Eli Zaretskii
2022-06-01 13:25       ` समीर सिंह Sameer Singh
2022-06-01 13:32         ` Eli Zaretskii
2022-06-01 13:54           ` समीर सिंह Sameer Singh
2022-06-01 14:30             ` Werner LEMBERG
2022-06-01 16:55               ` समीर सिंह Sameer Singh
2022-06-01 17:39                 ` Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) Eli Zaretskii
2022-06-02  2:55                   ` समीर सिंह Sameer Singh
2022-06-02  5:38                     ` Eli Zaretskii
2022-06-02  6:27                       ` Eli Zaretskii
2022-06-02  6:42                         ` Tamil fonts Visuwesh
2022-06-02 12:14                         ` Tamil fonts (Was: bug#55745: [PATCH] Add support for the Hanifi Rohingya script) समीर सिंह Sameer Singh
2022-06-02 12:45                           ` Eli Zaretskii
2022-06-02 12:50                             ` Tamil fonts Werner LEMBERG
2022-06-03 11:37                               ` समीर सिंह Sameer Singh
2022-06-03 11:49                                 ` Eli Zaretskii
2022-06-03 11:51                                   ` समीर सिंह Sameer Singh
2022-06-03 12:10                                     ` Eli Zaretskii
2022-06-03 12:16                                       ` समीर सिंह Sameer Singh
2022-06-03 13:00                                         ` Eli Zaretskii
2022-06-03 13:14                                           ` Visuwesh
2022-06-03 13:19                                             ` समीर सिंह Sameer Singh
2022-06-03 13:38                                             ` Eli Zaretskii

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.