From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kai Ma Newsgroups: gmane.emacs.bugs Subject: bug#55319: 28.1.50; Abugida not rendered correctly (MacOS) Date: Wed, 11 May 2022 23:43:36 +0800 Message-ID: <052FC289-9179-4B2D-AE52-2D688410162C@gmail.com> References: <83ilqgufm3.fsf@gnu.org> <83czgnv3ak.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_FE3AA369-9036-4252-8783-8B7186C99644" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32182"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 55319@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 11 19:35:16 2022 Return-path: Envelope-to: geb-bug-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 1noqF1-0008DO-Bx for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 19:35:15 +0200 Original-Received: from localhost ([::1]:43352 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noqF0-0002yk-5J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 May 2022 13:35:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noqEp-0002yE-34 for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:35:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noqEo-0001hB-QH for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noqEo-0002G5-JD for bug-gnu-emacs@gnu.org; Wed, 11 May 2022 13:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kai Ma Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 May 2022 17:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55319 X-GNU-PR-Package: emacs Original-Received: via spool by 55319-submit@debbugs.gnu.org id=B55319.16522904518592 (code B ref 55319); Wed, 11 May 2022 17:35:02 +0000 Original-Received: (at 55319) by debbugs.gnu.org; 11 May 2022 17:34:11 +0000 Original-Received: from localhost ([127.0.0.1]:38370 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noqDy-0002EV-Vw for submit@debbugs.gnu.org; Wed, 11 May 2022 13:34:11 -0400 Original-Received: from mail-pf1-f196.google.com ([209.85.210.196]:44828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nooW7-000516-Sp for 55319@debbugs.gnu.org; Wed, 11 May 2022 11:44:48 -0400 Original-Received: by mail-pf1-f196.google.com with SMTP id x52so2305706pfu.11 for <55319@debbugs.gnu.org>; Wed, 11 May 2022 08:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=XXKsSQalSDwNo3etWb59rIUAXY8PTvcicwmqYeSBUkw=; b=bwptzL59wKrN64hSN6Ev+aLPBWuDTZx+cPOcqVl1daKGhoUaSyE/b+yZN2rOP+uyHH 6P6cPyjTmWjMJ7svpCln4pJudpr6EhYSC8Sykeku9WLh4gmTJslHCmnYQeF2MUxbaRIG iQou/FeoZSoSBbeIZWGNSeErl/IMDMTx+nHiTB/xXEtOgLhf74oDN1L1l7k92eByp+M/ HxC+2pI+gRdbFZR9aH0GVssKCMROjXebnCKc6mTIJUxAWLl8HHJV0bvjvdPtfywi2oHc yW70ylLf12vKIymCqI95ZyYLfmwo5lJ3BVXbdTndvcenHct8oDqzocw1jU9A8EnIqdqK 6jPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=XXKsSQalSDwNo3etWb59rIUAXY8PTvcicwmqYeSBUkw=; b=zmVXKQbDrvxdsyix1mLxN+NR69i+42XuLGnKLMvU/1wqJAjeqSGk6ihj2yZtL1WhOW mk83r48b+leeoLCMANeYpUz0q/jEB1wZflfAfzE6pqFEJlg8JwEG6bL9s3lWpTszpinf BIqIVQPq4nnnsf9x+dggiAFibt13weYC/xa76RsZTTAe0pZuo46wmD7UglgwRekMKMRJ briZ2kB36w19IkWlDtGhq1MKd//fvkwz/fdqpNgsypCDy1kJd/odHazZSVGstiVduiCx 5UBf8HD9eicDgQDYEaCc1GC5uD9lK09hygrUo2bEJIRXQ1Ce0gPTHimZKRgD/M5lUWri o4oA== X-Gm-Message-State: AOAM531w8+IcNojZma3eIJ1Tm6zEcU/mPA6In43irZphFW/69eP4sAky ExS4qc2V6h8Y43lkFxZhguM= X-Google-Smtp-Source: ABdhPJz0hBToPng0SlaTaPbQ5x8MvE9Mbmyj5inxLkUtY76pULywdw0rhWe8OnocE1lSHMCwn5L/0A== X-Received: by 2002:a05:6a00:ad0:b0:50a:51b3:1e3d with SMTP id c16-20020a056a000ad000b0050a51b31e3dmr25872272pfl.18.1652283881840; Wed, 11 May 2022 08:44:41 -0700 (PDT) Original-Received: from smtpclient.apple ([134.209.106.31]) by smtp.gmail.com with ESMTPSA id q11-20020a170902bd8b00b0015e8d4eb1f1sm2067621pls.59.2022.05.11.08.43.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 May 2022 08:44:00 -0700 (PDT) In-Reply-To: <83czgnv3ak.fsf@gnu.org> X-Mailer: Apple Mail (2.3696.80.82.1.1) X-Mailman-Approved-At: Wed, 11 May 2022 13:34:10 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:231975 Archived-At: --Apple-Mail=_FE3AA369-9036-4252-8783-8B7186C99644 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On May 9, 2022, at 10:38, Eli Zaretskii > wrote: >=20 > Emacs doesn't discover composition rules. The composition rules are > part of the Emacs code, see the various *.el files in lisp/language/ > directory. Some of these composition rules are derived automatically > from character properties, see composite.el and characters.el (which > cannot happen without Emacs knowing up-front about the properties). Thanks for this. I didn=E2=80=99t know Emacs needed to manually compose = characters. Feel free to close this report, since it is due to my misunderstanding, = not a real problem nor a real =E2=80=9Cwishlist=E2=80=9D. BTW, I did try to follow language/*.el, and come with up the following code: (let* ((c "[\uED80-\uED9F]\\|\uEDAA\\|\uEDAB=E2=80=9D) ; constant (v "[\uEDA0-\uEDA9]=E2=80=9D) ; vowel (cv (concat v c))) (set-char-table-range composition-function-table '(#xeda0 . #xeda9) (list=20 (vector cv 1 #'zbalermorna-shape-gstring) [nil 0 font-shape-gstring]))) (defun zbalermorna-shape-gstring (gstring direction) (message "shape %s" gstring) ; debugging gstring) But it doesn=E2=80=99t work as expected. For example, =E2=80=9Cka=E2=80=9D= should be composed, but the behavior here is =E2=80=9Ca=E2=80=9D itself = is composed, and when the first rule is matched, only the consonant = =E2=80=9Ck=E2=80=9D is sent to font-shape-gstring: only =E2=80=9Ck=E2=80=9D= is in the header. Have you any pointers? Thanks!= --Apple-Mail=_FE3AA369-9036-4252-8783-8B7186C99644 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8


On May 9, 2022, at 10:38, Eli Zaretskii <eliz@gnu.org> = wrote:

Emacs doesn't = discover composition rules. The composition rules are
part of the Emacs code, see the = various *.el files in lisp/language/
directory. Some of these composition rules are derived = automatically
from = character properties, see composite.el and characters.el = (which
cannot happen = without Emacs knowing up-front about the properties).

Thanks for this. I didn=E2=80=99t know Emacs needed to = manually compose characters.

Feel free to close this report, since = it is due to my misunderstanding, not a real problem nor a real = =E2=80=9Cwishlist=E2=80=9D.

BTW,

I did try to follow language/*.el, and come with up the = following code:

(let* ((c = "[\uED80-\uED9F]\\|\uEDAA\\|\uEDAB=E2=80=9D) ; constant
       (v "[\uEDA0-\uEDA9]=E2=80=9D) ; = vowel
       (cv (concat v = c)))
  (set-char-table-range
   composition-function-table '(#xeda0 . = #xeda9)
   (list 
    (vector cv 1 = #'zbalermorna-shape-gstring)
    [nil 0 = font-shape-gstring])))

(defun zbalermorna-shape-gstring (gstring = direction)
  (message "shape %s" gstring) ; = debugging
  gstring)

But it = doesn=E2=80=99t work as expected. For example, =E2=80=9Cka=E2=80=9D = should be composed, but the behavior here is =E2=80=9Ca=E2=80=9D itself = is composed, and when the first rule is matched, only the consonant = =E2=80=9Ck=E2=80=9D is sent to font-shape-gstring: only =E2=80=9Ck=E2=80=9D= is in the header.

Have you any pointers? Thanks!
= --Apple-Mail=_FE3AA369-9036-4252-8783-8B7186C99644--