emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#36923: closed (Combining Diacritical Marks are not


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#36923: closed (Combining Diacritical Marks are not Latin only)
Date: Wed, 07 Aug 2019 22:03:03 +0000

Your message dated Thu, 08 Aug 2019 00:44:49 +0300
with message-id <address@hidden>
and subject line Re: bug#36923: Combining Diacritical Marks are not Latin only
has caused the debbugs.gnu.org bug report #36923,
regarding Combining Diacritical Marks are not Latin only
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
36923: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=36923
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Combining Diacritical Marks are not Latin only Date: Sun, 04 Aug 2019 23:40:38 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
The generated file lisp/international/charscript.el
assigns the block “Combining Diacritical Marks” to the ‘latin’ script
on the assumption that these characters are used only in Latin.

But in fact according to e.g. https://en.wikipedia.org/wiki/Acute_accent
the acute accent marks the stressed vowel of a word in several languages
with alphabets based on the Latin, Cyrillic, and Greek scripts.
In particular https://en.wikipedia.org/wiki/Cyrillic_script_in_Unicode
mentions how characters from other blocks are used in Cyrillic script.
Moreover, the Combining Diacritical Marks block also
contains several characters from the Greek script:
COMBINING GREEK PERISPOMENI, COMBINING GREEK KORONIS
COMBINING GREEK DIALYTIKA TONOS, COMBINING GREEK YPOGEGRAMMENI

I noticed this problem recently while helping to develop char-fold where
GREEK SMALL LETTER IOTA combined with COMBINING GREEK DIALYTIKA TONOS was
alarmingly highlighted as “mixed scripts” by markchars-mode from GNU ELPA.

Of course, it's possible to add exceptions for characters in this block
in markchars-mode.  But before doing this, I'm asking a confirmation
whether Unicode data should be fixed in ‘char-script-table’, so e.g.

  (aref char-script-table ?\N{COMBINING ACUTE ACCENT})

could return

  (latin greek cyrillic)

instead of the current

  latin



--- End Message ---
--- Begin Message --- Subject: Re: bug#36923: Combining Diacritical Marks are not Latin only Date: Thu, 08 Aug 2019 00:44:49 +0300 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
> Each base character has its canonical combining class attribute as
> zero, so you could use
>
>    (get-char-code-property CHAR 'canonical-combining-class)
>
> to filter out those CHARs for which the value is non-zero.
>
> Alternatively, you could go by categories: base characters have the
> ?. category set, combining characters have the ?^ category set.
>
> My recommendation is to use the canonical-combining-class property, as
> it is a more direct way of doing this.

Thanks, I fixed markchars-mode by using canonical-combining-class.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]