Martin J. Dürst | 3 Oct 2011 11:51
Picon
Gravatar

missing fonts for bidi Emacs on cygwin

I have installed Emacs for Windows (GNU Emacs 24.0.50.1 
(i386-mingw-nt6.1.7601) of 2011-09-19) from the alpha directory (Sept. 
2011 version). With very few exceptions (Burmese, Oriya, half-width 
kana), I can see all text, bidi-display-reordering is t by default, and 
bidi reordering works at least for the שלום and السّلام عليكم examples in 
the "Show Multi-lingual Text" page.

I have also compiled Emacs on Cygwin (GNU Emacs 24.0.50.1 
(i686-pc-cygwin, X toolkit, Xaw3d scroll bars) of 2011-09-24) from bzr. 
I have followed the instructions in the INSTALL file, including the 
additions for complex layout, and the intlfonts. Again, 
bidi-display-reordering is t by default, and I get שלום correctly, but 
otherwise, not too many fonts are working, I get a lot of boxes with 
four hex characters, in particular also for Arabic. Any advice?

Regards,   Martin.

_______________________________________________
emacs-bidi mailing list
emacs-bidi <at> gnu.org
https://lists.gnu.org/mailman/listinfo/emacs-bidi
Eli Zaretskii | 3 Oct 2011 12:14
Picon

Re: missing fonts for bidi Emacs on cygwin

> Date: Mon, 03 Oct 2011 18:51:54 +0900
> From: "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp>
> 
> I have also compiled Emacs on Cygwin (GNU Emacs 24.0.50.1 
> (i686-pc-cygwin, X toolkit, Xaw3d scroll bars) of 2011-09-24) from bzr. 
> I have followed the instructions in the INSTALL file, including the 
> additions for complex layout, and the intlfonts. Again, 
> bidi-display-reordering is t by default, and I get שלום correctly, but 
> otherwise, not too many fonts are working, I get a lot of boxes with 
> four hex characters, in particular also for Arabic. Any advice?

I suggest to ask this on emacs-devel and perhaps also on the Cygwin
list.  I don't know how to set up fonts for Cygwin, perhaps it is not
enough to have the fonts installed for native Windows applications.
(Cygwin uses X Windows, which could look for fonts in places other
than where the native apps do.)

_______________________________________________
emacs-bidi mailing list
emacs-bidi <at> gnu.org
https://lists.gnu.org/mailman/listinfo/emacs-bidi
mhibti | 10 Oct 2011 10:26
Picon
Favicon

Re: missing fonts for bidi Emacs on cygwin

Dear All,
 I have tried the binaries on a VM. All the available fonts work for emacs.
May be if you have any example I can try.

Best regads,
Mohamed

----- Mail original -----
De: "Eli Zaretskii" <eliz <at> gnu.org>
À: "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp>
Cc: emacs-bidi <at> gnu.org
Envoyé: Lundi 3 Octobre 2011 12:14:33
Objet: Re: [emacs-bidi] missing fonts for bidi Emacs on cygwin

> Date: Mon, 03 Oct 2011 18:51:54 +0900
> From: "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp>
> 
> I have also compiled Emacs on Cygwin (GNU Emacs 24.0.50.1 
> (i686-pc-cygwin, X toolkit, Xaw3d scroll bars) of 2011-09-24) from bzr. 
> I have followed the instructions in the INSTALL file, including the 
> additions for complex layout, and the intlfonts. Again, 
> bidi-display-reordering is t by default, and I get שלום correctly, but 
> otherwise, not too many fonts are working, I get a lot of boxes with 
> four hex characters, in particular also for Arabic. Any advice?

I suggest to ask this on emacs-devel and perhaps also on the Cygwin
list.  I don't know how to set up fonts for Cygwin, perhaps it is not
enough to have the fonts installed for native Windows applications.
(Cygwin uses X Windows, which could look for fonts in places other
than where the native apps do.)
(Continue reading)

Eli Zaretskii | 10 Oct 2011 11:29
Picon

Re: missing fonts for bidi Emacs on cygwin

> Date: Mon, 10 Oct 2011 10:26:11 +0200 (CEST)
> From: mhibti <at> free.fr
> Cc: emacs-bidi <at> gnu.org, Martin J. Dürst <duerst <at> it.aoyama.ac.jp>
> 
> Dear All,
>  I have tried the binaries on a VM. All the available fonts work for emacs.
> May be if you have any example I can try.

The obvious example is etc/HELLO.

_______________________________________________
emacs-bidi mailing list
emacs-bidi <at> gnu.org
https://lists.gnu.org/mailman/listinfo/emacs-bidi
mhibti | 10 Oct 2011 15:10
Picon
Favicon

Re: missing fonts for bidi Emacs on cygwin


The hello message is OK for me at least for non asian (arabic and hebrew are ok).
Only for those languages I don't have fontsets I got the boxes. It seems to me normal.
For some windows configurations these fonts are not installed by default.

----- Mail original -----
De: "Eli Zaretskii" <eliz <at> gnu.org>
À: mhibti <at> free.fr
Cc: emacs-bidi <at> gnu.org, duerst <at> it.aoyama.ac.jp
Envoyé: Lundi 10 Octobre 2011 11:29:51
Objet: Re: [emacs-bidi] missing fonts for bidi Emacs on cygwin

> Date: Mon, 10 Oct 2011 10:26:11 +0200 (CEST)
> From: mhibti <at> free.fr
> Cc: emacs-bidi <at> gnu.org, Martin J. Dürst <duerst <at> it.aoyama.ac.jp>
> 
> Dear All,
>  I have tried the binaries on a VM. All the available fonts work for emacs.
> May be if you have any example I can try.

The obvious example is etc/HELLO.

_______________________________________________
emacs-bidi mailing list
emacs-bidi <at> gnu.org
https://lists.gnu.org/mailman/listinfo/emacs-bidi
Martin J. Dürst | 11 Oct 2011 03:45
Picon
Gravatar

Re: missing fonts for bidi Emacs on cygwin

In the meantime, I have added all the Cygwin font packages that I 
possibly could. The situation improved. Arabic letters are now shown, in 
the right RTL order. But they are not connected. Hindi (i.e. Devanagari) 
seems to have similar problems.

On the other hand, these work fine in the Windows version. The only 
problem that I found in the Windows version is that U+30FC (Katakana 
length mark) doesn't show (it's just a box with the number 30FC), even 
though the rest of Japanese works well.

Regards,   Martin.

On 2011/10/10 22:10, mhibti <at> free.fr wrote:
>
> The hello message is OK for me at least for non asian (arabic and hebrew are ok).
> Only for those languages I don't have fontsets I got the boxes. It seems to me normal.
> For some windows configurations these fonts are not installed by default.
>
>
> ----- Mail original -----
> De: "Eli Zaretskii"<eliz <at> gnu.org>
> À: mhibti <at> free.fr
> Cc: emacs-bidi <at> gnu.org, duerst <at> it.aoyama.ac.jp
> Envoyé: Lundi 10 Octobre 2011 11:29:51
> Objet: Re: [emacs-bidi] missing fonts for bidi Emacs on cygwin
>
>> Date: Mon, 10 Oct 2011 10:26:11 +0200 (CEST)
>> From: mhibti <at> free.fr
>> Cc: emacs-bidi <at> gnu.org, Martin J. Dürst<duerst <at> it.aoyama.ac.jp>
>>
(Continue reading)

Kenichi Handa | 11 Oct 2011 04:27

Re: missing fonts for bidi Emacs on cygwin

In article <4E939FB3.5020604 <at> it.aoyama.ac.jp>, "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp> writes:

> In the meantime, I have added all the Cygwin font packages that I 
> possibly could. The situation improved. Arabic letters are now shown, in 
> the right RTL order. But they are not connected. Hindi (i.e. Devanagari) 
> seems to have similar problems.

On Cygwin, perhaps you must install m17n-lib, etc.  Please
see the section "* Complex Text Layout support libraries" in
the file INSTALL.

> On the other hand, these work fine in the Windows version. The only 
> problem that I found in the Windows version is that U+30FC (Katakana 
> length mark) doesn't show (it's just a box with the number 30FC), even 
> though the rest of Japanese works well.

That's is a known problem.  Does the situation change when
you do C-x RET L Japanese RET?

---
Kenichi Handa
handa <at> m17n.org
Martin J. Dürst | 11 Oct 2011 06:31
Picon
Gravatar

Re: missing fonts for bidi Emacs on cygwin

Hello Kenichi,

On 2011/10/11 11:27, Kenichi Handa wrote:
> In article<4E939FB3.5020604 <at> it.aoyama.ac.jp>, "Martin J. Dürst"<duerst <at> it.aoyama.ac.jp>  writes:
>
>> In the meantime, I have added all the Cygwin font packages that I
>> possibly could. The situation improved. Arabic letters are now shown, in
>> the right RTL order. But they are not connected. Hindi (i.e. Devanagari)
>> seems to have similar problems.
>
> On Cygwin, perhaps you must install m17n-lib, etc.  Please
> see the section "* Complex Text Layout support libraries" in
> the file INSTALL.

I installed m17n-db, m17n-lib, and libotf, as indicated in the INSTALL 
file. I also installed intlfonts, afterwards. But that didn't help. 
Maybe I should have installed intlfonts before?

There are several details in INSTALL that could make things easier:

- Mention additional distribution files upfront. In particular people 
who are not very good at English will read it slowly, and proceed as 
they read the file.

- If possible, integrate these various packages with Emacs itself. There 
may be copyright problems to not have things in the same repository, but 
I don't see a problem with making them external libraries in the 
repository so that they get downloaded automatically, and automating the 
make process. If we say "Emacs does complex scripts." and "Emacs does 
bidi.", then that should be the default, not some "additional 
(Continue reading)

Kenichi Handa | 11 Oct 2011 07:20

Re: missing fonts for bidi Emacs on cygwin

In article <4E93C6B4.9090206 <at> it.aoyama.ac.jp>, "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp> writes:

> I installed m17n-db, m17n-lib, and libotf, as indicated in the INSTALL 
> file. I also installed intlfonts, afterwards. But that didn't help. 
> Maybe I should have installed intlfonts before?

No, intlfonts is not related to CTL (Complex Text Layout).

> There are several details in INSTALL that could make things easier:

> - Mention additional distribution files upfront. In particular people 
> who are not very good at English will read it slowly, and proceed as 
> they read the file.

> - If possible, integrate these various packages with Emacs itself. There 
> may be copyright problems to not have things in the same repository, but 
> I don't see a problem with making them external libraries in the 
> repository so that they get downloaded automatically, and automating the 
> make process. If we say "Emacs does complex scripts." and "Emacs does 
> bidi.", then that should be the default, not some "additional 
> distribution files" option.

> - For m17n-db, m17n-lib, and libotf, mention that they should be 
> installed in that order. Currently, it looks like they are independent, 
> which they aren't.

Ah, no, libotf should be installed first.  Otherwise,
m17n-lib doesn't utilize libotf, and thus provides very
limitted CTL support.  I'll fix INSTALL soon.

(Continue reading)

Martin J. Dürst | 11 Oct 2011 07:29
Picon
Gravatar

Re: missing fonts for bidi Emacs on cygwin

Hello Kenichi,

On 2011/10/11 14:20, Kenichi Handa wrote:
> In article<4E93C6B4.9090206 <at> it.aoyama.ac.jp>, "Martin J. Dürst"<duerst <at> it.aoyama.ac.jp>  writes:
>
>> I installed m17n-db, m17n-lib, and libotf, as indicated in the INSTALL
>> file. I also installed intlfonts, afterwards. But that didn't help.
>> Maybe I should have installed intlfonts before?
>
> No, intlfonts is not related to CTL (Complex Text Layout).

Good to know, thanks.

>> There are several details in INSTALL that could make things easier:
>
>> - Mention additional distribution files upfront. In particular people
>> who are not very good at English will read it slowly, and proceed as
>> they read the file.
>
>> - If possible, integrate these various packages with Emacs itself. There
>> may be copyright problems to not have things in the same repository, but
>> I don't see a problem with making them external libraries in the
>> repository so that they get downloaded automatically, and automating the
>> make process. If we say "Emacs does complex scripts." and "Emacs does
>> bidi.", then that should be the default, not some "additional
>> distribution files" option.
>
>> - For m17n-db, m17n-lib, and libotf, mention that they should be
>> installed in that order. Currently, it looks like they are independent,
>> which they aren't.
(Continue reading)

Martin J. Dürst | 11 Oct 2011 09:31
Picon
Gravatar

Re: missing fonts for bidi Emacs on cygwin

On 2011/10/11 14:20, Kenichi Handa wrote:
> In article<4E93C6B4.9090206 <at> it.aoyama.ac.jp>, "Martin J. Dürst"<duerst <at> it.aoyama.ac.jp>  writes:

>> - For m17n-db, m17n-lib, and libotf, mention that they should be
>> installed in that order. Currently, it looks like they are independent,
>> which they aren't.
>
> Ah, no, libotf should be installed first.  Otherwise,
> m17n-lib doesn't utilize libotf, and thus provides very
> limitted CTL support.  I'll fix INSTALL soon.

Currently working on this. Here are some additional comments:

- In m17n-db, in README, it talks about ./get-glibc.sh, and separately 
about ./bootstrap.sh and .configure. But when I run ./get-glibc.sh, I 
get told that I can now run make (and it looks as if ./configure is 
already done). So, both for the case of downloading from CVS and 
otherwise, what is the relationship between ./get-glibc.sh and 
./bootstrap.sh and ./configure?

- In m17n-lib, in README, it says "Ubunto" when it probably should say 
"Ubuntu".

- In m17n-lib, in README, many additional libraries are required 
(libxml2, fribidi, freetype,...). It would be good if these were 
mentioned directly in the INSTALL file of Emacs, to get the full picture.

- In m17n-lib, for ./configure, I get the following error:
./configure: line 19740: syntax error near unexpected token `ANTHY,'
./configure: line 19740: `PKG_CHECK_MODULES(ANTHY, anthy, 
(Continue reading)

Kenichi Handa | 11 Oct 2011 10:11

Re: missing fonts for bidi Emacs on cygwin

In article <4E93F0C0.9060603 <at> it.aoyama.ac.jp>, "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp> writes:

> Currently working on this. Here are some additional comments:

Thank you!  I've never tested m17n-lib, etc, on Cygwin and
thus there may be many problems that have not yet been
found.  I'll at first install Cygwin on my Windows machine,
check m17n-lib, etc, and get back to you.

---
Kenichi Handa
handa <at> m17n.org
Martin J. Dürst | 31 Oct 2011 11:26
Picon
Gravatar

Re: missing fonts for bidi Emacs on cygwin

Hello Kenichi,

On 2011/10/11 17:11, Kenichi Handa wrote:
> In article<4E93F0C0.9060603 <at> it.aoyama.ac.jp>, "Martin J. Dürst"<duerst <at> it.aoyama.ac.jp>  writes:
>
>> Currently working on this. Here are some additional comments:
>
> Thank you!  I've never tested m17n-lib, etc, on Cygwin and
> thus there may be many problems that have not yet been
> found.  I'll at first install Cygwin on my Windows machine,
> check m17n-lib, etc, and get back to you.

Have you made any progress on this? Anything I can do to help?

One more point: In the menus, there is some inconsistency between
"Multilingual Environment" (without hyphen) and
"Show Multi-lingual Text" (with hyphen).

Regards,    Martin.

> ---
> Kenichi Handa
> handa <at> m17n.org
>

_______________________________________________
emacs-bidi mailing list
emacs-bidi <at> gnu.org
https://lists.gnu.org/mailman/listinfo/emacs-bidi
(Continue reading)

Kenichi Handa | 1 Nov 2011 03:42

Re: missing fonts for bidi Emacs on cygwin

In article <4EAE77C3.8060803 <at> it.aoyama.ac.jp>, "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp> writes:

> On 2011/10/11 17:11, Kenichi Handa wrote:
> > In article<4E93F0C0.9060603 <at> it.aoyama.ac.jp>, "Martin J. Dürst"<duerst <at> it.aoyama.ac.jp>  writes:
> >
>>> Currently working on this. Here are some additional comments:
> >
> > Thank you!  I've never tested m17n-lib, etc, on Cygwin and
> > thus there may be many problems that have not yet been
> > found.  I'll at first install Cygwin on my Windows machine,
> > check m17n-lib, etc, and get back to you.

> Have you made any progress on this?

No, sorry.  It seems that generating a loadable module on
Cygwin requires some trick on using libtool.  I googled
several pages, but at the moment, no solution presented on
the pages work.  :-(

> Anything I can do to help?

Don't you know any small example source package that uses
libtool to generate a loadable module on Cygwin?

> One more point: In the menus, there is some inconsistency between
> "Multilingual Environment" (without hyphen) and
> "Show Multi-lingual Text" (with hyphen).

Thank you.

(Continue reading)

Eli Zaretskii | 11 Oct 2011 08:32
Picon

Re: missing fonts for bidi Emacs on cygwin

> Date: Tue, 11 Oct 2011 10:45:23 +0900
> From: "Martin J. Dürst" <duerst <at> it.aoyama.ac.jp>
> CC: Eli Zaretskii <eliz <at> gnu.org>, emacs-bidi <at> gnu.org
> 
> Arabic letters are now shown, in the right RTL order. But they are
> not connected.

As Handa-san points out, you need to install additional libraries and
reconfigure and rebuild Emacs with them, to get Arabic shaping to
work.

> On the other hand, these work fine in the Windows version.

The native Windows version uses a different shaping engine, called
Uniscribe.  That engine supports all the features Emacs needs,
including Arabic shaping, in a single DLL which comes with the OS.  I
guess no one made the Cygwin port of X use Uniscribe, which is why you
need those additional libraries that provide an equivalent
functionality on Posix systems.

_______________________________________________
emacs-bidi mailing list
emacs-bidi <at> gnu.org
https://lists.gnu.org/mailman/listinfo/emacs-bidi

Gmane