From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Changes in mapconv Date: Mon, 15 Jun 2009 15:19:55 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1245046824 15760 80.91.229.12 (15 Jun 2009 06:20:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jun 2009 06:20:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 15 08:20:20 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MG5YI-0003CH-OS for ged-emacs-devel@m.gmane.org; Mon, 15 Jun 2009 08:20:19 +0200 Original-Received: from localhost ([127.0.0.1]:55316 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MG5YI-0003HK-31 for ged-emacs-devel@m.gmane.org; Mon, 15 Jun 2009 02:20:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MG5YC-0003HD-4B for emacs-devel@gnu.org; Mon, 15 Jun 2009 02:20:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MG5Y7-0003Dd-GH for emacs-devel@gnu.org; Mon, 15 Jun 2009 02:20:11 -0400 Original-Received: from [199.232.76.173] (port=39594 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MG5Y7-0003DD-9z for emacs-devel@gnu.org; Mon, 15 Jun 2009 02:20:07 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:44701) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MG5Y0-0003XT-IF; Mon, 15 Jun 2009 02:20:02 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n5F6JuYc029119; Mon, 15 Jun 2009 15:19:56 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n5F6JuHF018253; Mon, 15 Jun 2009 15:19:56 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n5F6Jtn9023000; Mon, 15 Jun 2009 15:19:55 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1MG5Xv-0003k2-RH; Mon, 15 Jun 2009 15:19:55 +0900 In-reply-to: (message from Eli Zaretskii on Fri, 12 Jun 2009 22:58:03 -0400) X-detected-operating-system: by monty-python.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111518 Archived-At: In article , Eli Zaretskii writes: > > Date: Fri, 12 Jun 2009 03:31:00 -0400 > > From: emacs-diffs-request@gnu.org > > Reply-To: emacs-diffs@gnu.org > > > > RCS file: /cvsroot/emacs/emacs/admin/charsets/mapconv,v > > retrieving revision 1.5 > > retrieving revision 1.6 > > diff -u -b -r1.5 -r1.6 > > --- mapconv 8 Jan 2009 04:24:45 -0000 1.5 > > +++ mapconv 12 Jun 2009 07:22:48 -0000 1.6 > > @@ -30,34 +30,42 @@ > > # $1: source map file > > # $2: address pattern for sed (optionally with substitution command) > > # $3: format of source map file > > -# GLIBC-1 GLIBC-2 GLIBC-2-7 CZYBORRA IANA UNICODE YASUOKA MICROSOFT > > +# GLIBC-1 GLIBC-2 GLIBC-2-7 CZYBORRA IANA UNICODE YASUOKA > > [...] > > YASUOKA) > > - SOURCE="http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/.../${BASE}";; > > - MICROSOFT) > > - SOURCE="http://www.microsoft.com/globaldev/reference/oem/${BASE}";; > > + BASE="$BASE.Z"; > > + SOURCE="http://kanji.zinbun.kyoto-u.ac.jp/~yasuoka/ftp/CJKtable/${BASE}";; > > KANJI-DATABASE) > Why were the MICROSOFT parts removed? The log message does not reveal > any reason, nor even tells about the removal. The map files for CP720 and CP858 are now not available in Microsoft's page. So, I made them manually based on the information in Wikipedia as written in admin/charsets/mapfiles/README. As a result, admin/charset/Makefile doesn't call mapconv with MICROSOFT as an arg, so I deleted that path from mapconv. > Btw, is there any documentation on how to add support for character > maps not in the current CVS? The only information I see is this > comment in the Makefile: > # If your system doesn't have the directory /usr/share/i18n/charmaps, > # get the source of the latest glibc, gzip all the charmap files in > # the directory "localedate/charmaps", and set the variable > # GLIBC_CHARMAPS to that directory. > This has two disadvantages: > . You have no way of adding a charmap that is not in the glibc > sources. You can do that by modifying Makefile, and the recent changes don't change that aspect. > . Downloading the humongous glibc distro just to get a small part of > it is not my idea of fun. > Suppose I wanted to add codepage 853 support to Emacs: how would I go > about doing that? (1) The most direct way is to add a define-charset call with a vector as the value of :map property. (2) The 2nd direct way is to add a map file in etc/charsets. (3) Create a file admin/charsets/mapfiles/CP853.map.gz manyally, and modify Makefile as these: Add CP853.map in CODEPAGE. Add these lines: CP853.map: mapfiles/CP853.map.gz # Generating $@... @zcat $< > $@ (4) Store a freely available source file in admin/charset/mapfiles, and modify Makefile somehow to generate CP853.map from that file. And, after any of (2)..(4), add define-charset call in lisp/international/mule-conf to define a charset that use that map file. --- Kenichi Handa handa@m17n.org