[Fink-devel] m17n-{db,lib}? (really, emacs arabic)
hi. i'm trying to get emacs to display contextual forms of Arabic letters correctly [1]. out of the box, the fink emacs didn't do the right thing for me with any of the fonts i tried. problems of this sort are known [2]. one suggestion on the net is to make sure that libotf is installed (it is, by Fink, in my case), and that m17n-{db,lib} are installed. i can't find those last two, though they appear to have been, at one time, part of the fink distribution. (and, i notice that emacs24 in fink is configured with --without-m17n-flt.) after, or during, a fair amount of flailing, i eventually downloaded 24.4.4 from gnu and built it with Fink's libotf and with m17n-{db,lib} i had downloaded and built from the m17n site. two'ish questions: 1. is anyone *not* having my problem? i.e., is there anyone using Fink's emacs and has contextual forms in Arabic working? if so, how did you build your Fink/emacs to get that nice state? 2. (in case it may be important) where have the m17n-{db,lib} gone? cheers, Greg Minshall [1] letters in the Arabic alphabet, like those in the Hebrew and some (unknown, to me) number of other alphabets, vary in shape depending on whether they are printed separate of any word, or at the beginning, at the middle, or at the end of a word (where, for ease of explanation, the word word is here used slightly incorrectly). see http://en.wikipedia.org/wiki/Arabic_script_in_Unicode#Contextual_forms if you would like more information. [2] http://stackoverflow.com/questions/23924306/arabic-glyphs-in-emacs is a discussion on stackoverflow. to really understand (and reproduce) the problem, you might look at http://www.persoarabic.org/content/generated/doc.free/mohsen/PLPC/120036/current/accessPage and search for Hala,. type that in to M-x set-input-method farsi-transliterate-banan (as it were); if the right-most 4 letters look as they do in that document, you are working. if, instead, they look *something* like IJIz -- i.e., each letter separated from the others by a space -- then you've the same problem i have. one complicating feature of this problem is that it can be caused by the font itself (fonts are apparently not such passive creatures as i would have thought). even after getting things working with emacs, only the open type fonts did the right thing (not the fonts which were only true type; this was the cause of a substantial amount of my flailing). -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] m17n-{db,lib}? (really, emacs arabic)
On Feb 15, 2015, at 4:01 AM, Greg Minshall minsh...@acm.org wrote: hi. i'm trying to get emacs to display contextual forms of Arabic letters correctly [1]. out of the box, the fink emacs didn't do the right thing for me with any of the fonts i tried. problems of this sort are known [2]. one suggestion on the net is to make sure that libotf is installed (it is, by Fink, in my case), and that m17n-{db,lib} are installed. i can't find those last two, though they appear to have been, at one time, part of the fink distribution. (and, i notice that emacs24 in fink is configured with --without-m17n-flt.) after, or during, a fair amount of flailing, i eventually downloaded 24.4.4 from gnu and built it with Fink's libotf and with m17n-{db,lib} i had downloaded and built from the m17n site. two'ish questions: 1. is anyone *not* having my problem? i.e., is there anyone using Fink's emacs and has contextual forms in Arabic working? if so, how did you build your Fink/emacs to get that nice state? 2. (in case it may be important) where have the m17n-{db,lib} gone? cheers, Greg Minshall [1] letters in the Arabic alphabet, like those in the Hebrew and some (unknown, to me) number of other alphabets, vary in shape depending on whether they are printed separate of any word, or at the beginning, at the middle, or at the end of a word (where, for ease of explanation, the word word is here used slightly incorrectly). see http://en.wikipedia.org/wiki/Arabic_script_in_Unicode#Contextual_forms if you would like more information. [2] http://stackoverflow.com/questions/23924306/arabic-glyphs-in-emacs is a discussion on stackoverflow. to really understand (and reproduce) the problem, you might look at http://www.persoarabic.org/content/generated/doc.free/mohsen/PLPC/120036/current/accessPage and search for Hala,. type that in to M-x set-input-method farsi-transliterate-banan (as it were); if the right-most 4 letters look as they do in that document, you are working. if, instead, they look *something* like IJIz -- i.e., each letter separated from the others by a space -- then you've the same problem i have. one complicating feature of this problem is that it can be caused by the font itself (fonts are apparently not such passive creatures as i would have thought). even after getting things working with emacs, only the open type fonts did the right thing (not the fonts which were only true type; this was the cause of a substantial amount of my flailing). The answer for (2) is that they weren’t carried over in the 10.6/10.7 transition: http://pdb.finkproject.org/pdb/package.php/m17n-db http://pdb.finkproject.org/pdb/package.php/m17n-db We didn’t automatically move packages over, instead relying on maintainers to move the packages or user requests to remind us about them. :-) I just added the m17n* packages to 10.7-10.10, at the same version as above but with some dependency modernization in the -libs. I’ll look at adding m17n support to our emacs24. Do you happen to know if this would apply to the non-X11 (-nox) variant as well? - Alexander Hansen, Ph.D. Fink User Liaison -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] m17n-{db,lib}? (really, emacs arabic)
Alexander, thanks for the reply and action. i'm afraid, though, that i don't know if this would apply to the non-x version of emacs. cheers, Greg The answer for (2) is that they weren’t carried over in the 10.6/10.7 transition: http://pdb.finkproject.org/pdb/package.php/m17n-db http://pdb.finkproject.org/pdb/package.php/m17n-db We didn’t automatically move packages over, instead relying on maintainers to move the packages or user requests to remind us about them. :-) I just added the m17n* packages to 10.7-10.10, at the same version as above but with some dependency modernization in the -libs. I’ll look at adding m17n support to our emacs24. Do you happen to know if this would apply to the non-X11 (-nox) variant as well? - Alexander Hansen, Ph.D. Fink User Liaison -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ ___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel
Re: [Fink-devel] m17n-{db,lib}? (really, emacs arabic)
I've attached updated files for m17n-*. Then modify emacs24.info as necessary to activate m17n*. This file updates m17n-lib to the latest upstream, as well as adding some missing dependencies. You can put them in to /sw/fink/dists/local/main/finkinfo and Fink will see them. I've CC'd the Todai team since they're the named maintainers for the m17n packages if they'd like to weigh in. Hanspeter Package: m17n-db Version: 1.7.0 Revision: 1 Source: http://download.savannah.gnu.org/releases/m17n/m17n-db-%v.tar.gz Source-MD5: 0a320d3cf955abba459e51161fc91236 Source2: mirror:gnu:glibc/glibc-2.9.tar.bz2 Source2-MD5: fc62e989cf31d015f31628609fc3757a ConfigureParams: --with-charmaps=../glibc-2.9/localedata/charmaps InstallScript: make install DESTDIR=%d DocFiles: AUTHORS COPYING NEWS README Description: Database for the m17n library DescPackaging: Originally packaged by Etsushi Kato ek...@ees.hokudai.ac.jp License: LGPL Maintainer: Todai Fink Team f...@sodan.ecc.u-tokyo.ac.jp Package: m17n-lib Version: 1.7.0 Revision: 1 BuildDepends: anthy-dev, fink-package-precedence, fontconfig2-dev, freetype219 (= 2.5.5-1), fribidi-dev (= 0.19.2-2), gd3, ispell, libiconv-dev, libiconv-bin, libgettext8-dev, libjpeg9, libotf, libpng16, libthai-dev, libxml2, pkgconfig, x11-dev, xft2-dev (= 2.2.0-4) Depends: %N-shlibs BuildDependsOnly: true Source: http://download.savannah.gnu.org/releases/m17n/m17n-lib-%v.tar.gz Source-MD5: 9769e12770483c203c6b304ce406495e #PatchFile: %n.patch #PatchFile-MD5: 87be57e59517b5893977cc8d93cbdae1 #PatchScript: sed 's|@PREFIX@|%p|' %{PatchFile} | patch -p1 UseMaxBuildJobs: false ConfigureParams: --enable-dependency-tracking CompileScript: %{default_script} fink-package-precedence . iconv -f euc-jp -t utf-8 example/M17NEdit.ja | sed 1s/euc-jp/utf-8/ example/M17NEdit.ja.utf8 InstallScript: make install DESTDIR=%d mkdir -p %i/share/%n/examples install -m 644 example/HELLO* %i/share/%N/examples mkdir -p %i/etc/app-defaults/ja_JP.eucJP %i/etc/app-defaults/ja_JP.UTF-8 install -m 644 example/M17NEdit.ja %i/etc/app-defaults/ja_JP.eucJP/M17NEdit install -m 644 example/M17NEdit.ja.utf8 %i/etc/app-defaults/ja_JP.UTF-8/M17NEdit # Before the anthy and wordcut packages are completed, don't include mimx rm -f %i/lib/m17n/1.0/libmimx* SplitOff: Package: %N-shlibs Depends: libiconv, libthai-shlibs, libxml2-shlibs, m17n-db Files: lib/libm17n-core.*.dylib lib/libm17n.*.dylib lib/libm17n-flt.*.dylib Shlibs: %p/lib/libm17n-core.0.dylib 5.0.0 %n (= 1.6.2-1) %p/lib/libm17n.0.dylib 5.0.0 %n (= 1.6.2-1) %p/lib/libm17n-flt.0.dylib 5.0.0 %n (= 1.6.2-1) DocFiles: AUTHORS COPYING NEWS README SplitOff2: Package: %N-gui Depends: %N-gui-shlibs BuildDependsOnly: true Files: lib/libm17n-gui.{dylib,a,la} lib/m17n/1.0/libm17n-{gd,X}.{a,la} lib/pkgconfig/m17n-gui.pc include/m17n-{gui,X}.h DocFiles: AUTHORS COPYING NEWS README SplitOff3: Package: %N-gui-shlibs Depends: %N-shlibs, fontconfig2-shlibs, freetype219-shlibs (= 2.5.5-1), fribidi-shlibs (= 0.19.2-2), gd3-shlibs, libotf-shlibs, gd2-shlibs, xft2-shlibs (= 2.2.0-4), x11-shlibs Files: lib/libm17n-gui.*.dylib lib/m17n/1.0/libm17n-*.so Shlibs: %p/lib/libm17n-gui.0.dylib 5.0.0 %n (= 1.6.2-1) DocFiles: AUTHORS COPYING NEWS README SplitOff4: Package: %N-examples Depends: %N-gui-shlibs, app-defaults, fontconfig2-shlibs, freetype219-shlibs (= 2.5.5-1), fribidi-shlibs (= 0.19.2-2), gd3-shlibs, libiconv, libotf-shlibs, libthai-shlibs, libxml2-shlibs, m17n-lib-gui-shlibs, x11-shlibs Files: bin/m17n-conv bin/m17n-date bin/m17n-dump bin/m17n-edit bin/m17n-view share/%N etc # add lib/libmimx* to Files later DocFiles: AUTHORS COPYING NEWS README DocFiles: AUTHORS COPYING NEWS README Description: Multilingual text processing library for C DescPackaging: TODO: anthy and wordcut support for -examples Originally packaged by Etsushi Kato ek...@ees.hokudai.ac.jp License: LGPL Maintainer: Todai Fink Team f...@sodan.ecc.u-tokyo.ac.jp Homepage: http://www.nongnu.org/m17n/ -- Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/___ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel