all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: handa <handa@gnu.org>
To: Stephen Berman <stephen.berman@gmx.net>
Cc: eliz@gnu.org, emacs-devel@gnu.org
Subject: Re: Display of Lao script
Date: Tue, 24 Oct 2017 21:04:21 +0900	[thread overview]
Message-ID: <871slsda62.fsf@gnu.org> (raw)
In-Reply-To: <87k1zk6f01.fsf@gmx.net> (message from Stephen Berman on Tue, 24 Oct 2017 12:01:50 +0200)

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

In article <87k1zk6f01.fsf@gmx.net>, Stephen Berman <stephen.berman@gmx.net> writes:

> > 1. Move LAOO-*.flt (except for LAOO-OTF.flt) from /usr/share/m17n to,
> >    for instance /tmp.
> > 2. Prepare a file that contains the Lao line only.
> > 3. Run emacs as this:
> >    % MDEBUG_DATABASE=1 MDEBUG_FLT=3 emacs
> > 4. Visit the Lao only file.

> I did this and the display of the Lao script is the same as before
> (i.e., with the composed characters not properly aligned).  Here is the
> entire debugging output:
[...]
>  [DB]  <font,layouter,hebr-ff,nil>.
>  [DB]  <font,layouter,thaa-otf,nil>.
>  [DB]  <font,layouter,cham-generic,nil>.

> FWIW, when I change the font to DejaVu Sans (not Mono) and visit that
> file, the display of all but one of the composed characters is correct
> (as I previously mentioned), and the debugging output is exactly the
> same as the above;

Could you please put the attached version of LAOO-OTF.flt under
/usr/share/m17n (without any other LAOO-*.flt), and try again?

---
K. Handa
handa@gnu.org


[-- Attachment #2: LAOO-OTF.flt --]
[-- Type: application/octet-stream, Size: 2023 bytes --]

;; LAOO-OTF.flt -- Font Layout Table for Lao
;; Copyright (C) 2006, 2007  AIST (H15PRO112)
;; See the end for copying conditions.

(font layouter laoo-otf nil
      (font (nil nil unicode-bmp)))

;;; <li> LAOO-OTF.flt

(category
 ;; C: CONSONANT
 ;; S: LAO SEMIVOWEL SIGN LO
 ;; A: VOWEL AM
 ;; V: DEPENDENT VOWEL
 ;; T: TONE
 ;; I: OTHER INDEPENDENT
 (0x0E81 0x0EAE	?C)
 (0x0EAF 0x0EB0	?I)
 (0x0EB1	?V)
 (0x0EB2	?I)
 (0x0EB3	?A)
 (0x0EB4 0x0EBB	?V)
 (0x0EBC	?S)
 (0x0EBD 0x0EC6	?I)
 (0x0EC8 0x0ECC	?T)
 (0x0ECD	?V)
 (0x0ED0 0x0ED9 ?I)
 (0x0EDC 0x0EDD ?C)

 (0x25CC	?I))

;; The only GSUB is the decomposition of AM.  We do it by hand because
;; it requires reordering in addition to decomposition.

(generator
 (0
  (cond
   ("(CS?)(T)?A"
    < | (1 = *) 0x0ECD (2 =) 0x0EB2 | > )
   ("CS?V?T?"
    < | = * | > )
   ("[SVT]"
    < | 0x25CC = | > )
   ("."
    =))
  *))

;; Then apply all GPOS features.

(generator
 (0
  (cond
   (" ([^ ]*) "
    (1 otf:lao\ =))
   ("."
    [ otf:lao\ =+ ]))
  *))

;; Copyright (C) 2006, 2007
;;   National Institute of Advanced Industrial Science and Technology (AIST)
;;   Registration Number H15PRO112

;; This file is part of the m17n database; a sub-part of the m17n
;; library.

;; The m17n library is free software; you can redistribute it and/or
;; modify it under the terms of the GNU Lesser General Public License
;; as published by the Free Software Foundation; either version 2.1 of
;; the License, or (at your option) any later version.

;; The m17n library 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
;; Lesser General Public License for more details.

;; You should have received a copy of the GNU Lesser General Public
;; License along with the m17n library; if not, write to the Free
;; Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;; Local Variables:
;; mode: emacs-lisp
;; End:

  reply	other threads:[~2017-10-24 12:04 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16 23:14 Display of Lao script Stephen Berman
2017-10-17 16:40 ` Eli Zaretskii
2017-10-20 11:48   ` Stephen Berman
2017-10-22  3:37     ` handa
2017-10-22 11:13       ` Stephen Berman
2017-10-24  9:14         ` handa
2017-10-24 10:01           ` Stephen Berman
2017-10-24 12:04             ` handa [this message]
2017-10-24 12:29               ` Stephen Berman
2017-10-24 22:48                 ` handa
2017-11-05  5:26                   ` handa
2017-11-05 12:28                     ` Stephen Berman
2017-11-06 15:26                       ` handa
2017-11-06 16:11                         ` Eli Zaretskii
2017-11-07 11:56                           ` handa
2017-10-20 13:11 ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871slsda62.fsf@gnu.org \
    --to=handa@gnu.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=stephen.berman@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.