From: Reuben Thomas Date: Sat, 13 Jan 2018 21:55:12 +0000 (+0000) Subject: Remove most of the contrib/ directory X-Git-Tag: v3.7~150 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f08b16c8869b840a1c551a1bcee9f884ec5e339d;p=recode Remove most of the contrib/ directory Specifically, the Amiga and DJGPP ports, the RPM specfiles, and utf8.el, all of which are obsolete. recode.el looks like it still contains some useful bits. --- diff --git a/contrib/Amiga/lib-Makefile b/contrib/Amiga/lib-Makefile deleted file mode 100644 index fce966e..0000000 --- a/contrib/Amiga/lib-Makefile +++ /dev/null @@ -1,31 +0,0 @@ -# -# Makefile automatically generated by MKMK V6.55 -# Fri Nov 06 23:05:56 1998 -# - -CFLAGS= DEF HAVE_DONE_WORKING_MALLOC_CHECK DEF HAVE_DONE_WORKING_REALLOC_CHECK \ - DEF STDC_HEADERS=1 DEF __GNU_LIBRARY__ DEF HAVE_STRERROR=1 \ - DEF HAVE_VPRINTF=1 IDIR "" DATA f PARM b OPT -OBJS= xstrdup.o xmalloc.o hash.o getopt1.o getopt.o error.o argmatch.o# utime.o - -reco.lib: $(OBJS) - oml -v $@ r $(OBJS) - -xstrdup.o: xstrdup.c - -xmalloc.o: xmalloc.c error.h xalloc.h - -hash.o: hash.c hash.h - -getopt1.o: getopt1.c getopt.h - -getopt.o: getopt.c getopt.h - -error.o: error.c error.h - -argmatch.o: argmatch.c - -utime.o: utime.c# amiga.h timeconvert.h - -clean: - delete $(OBJS) diff --git a/contrib/Amiga/src-Makefile b/contrib/Amiga/src-Makefile deleted file mode 100644 index b23b3de..0000000 --- a/contrib/Amiga/src-Makefile +++ /dev/null @@ -1,85 +0,0 @@ -# -# Makefile automatically generated by MKMK V6.55 -# Thu Oct 29 16:46:42 1998 -# - -CFLAGS= DEF DEFAULT_CHARSET="Latin-1" DEF PACKAGE="recode" DEF VERSION="3.4k" \ - DEF STDC_HEADERS=1 DEF HAVE_STRING_H=1 DEF HAVE_RENAME=1 \ - DEF HAVE_VPRINTF=1 DEF getpid=rand IGN 80 IDIR /lib DATA f PARM r OPT -OBJS= dynamic.o main.o pool.o merged.o quoted.o permut.o endline.o dump.o \ - base64.o utf8.o utf7.o utf16.o ucs2html.o ucs.o tables.o rfc1345.o \ - mule.o lat1txte.o lat1texi.o lat1ltex.o lat1asci.o iconqnx.o ibmpc.o \ - flat.o ebcdic.o cdcnos.o bangbang.o atarist.o applemac.o african.o \ - charset.o charname.o recode.o - -recode: $(OBJS) /lib/reco.lib - sc link to recode /lib/reco.lib MATH=s $(OBJS) - -dynamic.o: dynamic.c common.h recode.h - -main.o: main.c common.h recode.h - -pool.o: pool.c common.h recode.h - -merged.o: merged.c common.h recode.h - -quoted.o: quoted.c common.h recode.h - -permut.o: permut.c common.h recode.h - -endline.o: endline.c common.h recode.h - -dump.o: dump.c common.h recode.h - -base64.o: base64.c common.h base64.h recode.h - -utf8.o: utf8.c common.h recode.h - -utf7.o: utf7.c common.h base64.h recode.h - -utf16.o: utf16.c common.h recode.h - -ucs2html.o: ucs2html.c common.h recode.h - -ucs.o: ucs.c common.h recode.h - -tables.o: tables.c common.h recode.h - -rfc1345.o: rfc1345.c common.h rfc1345.h recode.h - -mule.o: mule.c common.h recode.h - -lat1txte.o: lat1txte.c common.h recode.h - -lat1texi.o: lat1texi.c common.h recode.h - -lat1ltex.o: lat1ltex.c common.h recode.h - -lat1asci.o: lat1asci.c common.h recode.h - -iconqnx.o: iconqnx.c common.h recode.h - -ibmpc.o: ibmpc.c common.h recode.h - -flat.o: flat.c common.h recode.h - -ebcdic.o: ebcdic.c common.h recode.h - -cdcnos.o: cdcnos.c common.h recode.h - -bangbang.o: bangbang.c common.h recode.h - -atarist.o: atarist.c common.h recode.h - -applemac.o: applemac.c common.h recode.h - -african.o: african.c common.h african.h recode.h - -charset.o: charset.c common.h recode.h - -charname.o: charname.c common.h charname.h recode.h - -recode.o: recode.c common.h decsteps.h inisteps.h recode.h - -clean: - delete $(OBJS) recode.lnk diff --git a/contrib/DJGPP/README b/contrib/DJGPP/README deleted file mode 100644 index 0d378b3..0000000 --- a/contrib/DJGPP/README +++ /dev/null @@ -1,305 +0,0 @@ -.. role:: code(strong) -.. role:: file(literal) - -======================================== -README file for the DJGPP port of Recode -======================================== - -.. contents:: -.. sectnum:: - -:Porter: Juan Manuel Guerrero -:Email: juan.guerrero@gmx.de - -This is a port of Recode to MSDOS/DJGPP. The instructions given here, -and the port itself, were produced for a pretest yielding to Recode 3.6. -They might need revision or undusting for later Recode versions. - -DJGPP specific changes -====================== - -There are no DJGPP specific changes. The original distribution should -configure and compile out-of-the-box. If there are last minute DJGPP -specific changes, then they will be documented in the diffs file placed -in the :file:`contrib/DJGPP` subdirectory. This DJGPP port of recode -3.7-beta2 offers NLS out-of-the-box. - -Installing the binary package -============================= - -+ If you are installing Recode on dual DOS/WINDOWS 9X systems, you - should first turn off the generation of numeric tails for 8.3 aliases - Windows creates for long file names. For information about how to do - this, please read the DJGPP FAQ List V 2.30, chapter 22.19: "How to Set - Up a Dual DOS/Windows Installation." - - Please note that you *must* turn off the numeric tail generation - for short file names during installation of the binary package if you - want to use the recode program on both DOS box on Win9X *and* plain - DOS. If this is not done recode will *not* be able to find the - :file:`.mo` files (the catalogs containing the translated strings). - After the installation has been finished you can turn on numeric tail - generation again if you like. - -+ Copy the binary distribution into the top DJGPP installation directory. - Unzip the binary distribution running *one* of the following commands:: - - unzip32 rcode37-beta2b.zip or - djtarx rcode37-beta2b.zip or - pkunzip -d rcode37-beta2b.zip - -+ Edit the :file:`djgpp.env` file which is located in the top - DJGPP installation directory. Move to the global part of your - :file:`djgpp.env` and add the following lines:: - - LANG=xx - LANGUAGE=yy:zz - - The line must be completely shifted to the left in your - :file:`djgpp.env` file. Please note the plus sign at the beginning of - the line. This plus sign should *not* be omitted or a lot of shell - scripts, in this and in other packages, that try to reset this value - will stop working. The LANG entry is obligatory, the LANGUAGE entry - is may be omitted. The LANGUAGE variable allows you to select an - alternative catalog than the one stipulated by LANG. Replace ``xx``, - ``yy`` and ``zz`` by the language code of the catalogs you want to - use. - - Some examples: - - If you only want to use the catalog containing the translations for - your mother tongue (in my case the Spanish translations) the above - lines will only use the LANG variable and will look like:: - - LANG=es - - If you want to use the Spanish (``es``) and German (``de``) catalogs - the above lines will look like:: - - LANG=es - LANGUAGE=es:de - - In this case a DJGPP binary that has been compiled with NLS support - will first search for the Spanish translations. If this translations - can not be found it will search for the German translations and if - this can also not been found it will default to the build-in English - messages. If you want to reverse this search order the above lines - would look like this one:: - - LANG=es - LANGUAGE=de:es - - Please note that if you omit the LANG environment variable, the - LANGUAGE variable will not be honored at all. The LANG variable must - always be set to your default catalog. With the aid of LANGUAGE you - can select other catalogs apart of the default one. If for some - reason you want to disable NLS, then you should comment out the LANG - variable or select ``C`` as your catalog:: - - LANG=C - -+ To create an entry for the recode info docs in your :file:`dir` file, - run from the top DJGPP installation directory the command:: - - install-info --info-dir=./info ./info/recode.info - -+ The binaries distributed in this package have NLS support. - i.e. run the command:: - - recode - - and the binary should talk to you in your mother tongue, if supported. - For further information about Recode please read the info docs. - -Building the binaries from sources. -=================================== - -+ To build the binaries you will need the following binary packages: - :file:`djdev203.zip` (*not* a prior version), - :file:`bsh203b.zip` (*not* a prior version), - :file:`gcc2952b.zip`, :file:`bnu2951b.zip`, - :file:`mak3791b.zip`, :file:`fil316b.zip`, :file:`shl112b.zip`, - :file:`txt20b.zip`, :file:`txi40b.zip`, :file:`grep24b.zip`, - :file:`sed302b.zip`, and :file:`gtxt035b.zip`. - - If you want to run the check you will need also - :file:`dif272b.zip`, :file:`m4-14b.zip`, and - :file:`perl552b.zip`, - - All these packages can be found in the :file:`v2gnu` directory of any - Simtel.NET mirror. - - You will need :file:`bsh203b.zip` and *not* a prior version or - the build will fail. The same applies to :file:`djdev203.zip`. - You *must* use the updated version of :file:`fil316b.zip` - (date: 2000-05-30) and :file:`shl112b.zip` (date: 2000-08-11). - - These updated versions have been recompiled with - :file:`djdev203.zip` and know about the file:`/dev/env` - functionality introduced with :file:`djdev203.zip`. All the - other packages are the ones I have used to build the binaries - from this sources. Previous versions of this packages may do - the job as well but I have not tested this. - -+ Create a temporary directory and copy the source package into the dir. - If you download the source distribution from one of the DJGPP archives, - just unzip it preserving the directory structure running *ONE* of the - following commands:: - - unzip32 rcode37-beta2s.zip or - djtarx rcode37-beta2s.zip or - pkunzip -d rcode37-beta2s.zip - - Source distributions downloaded from one of the GNU FTP sites need - some more work to unpack. First, you *must* use the :code:`djtar` - program to unzip the package. That's because some file names in the - official distributions need to be changed to avoid problems on the - various platforms supported by DJGPP. :code:`djtar` can rename files - on the fly given a file with name mappings. The distribution includes - a file :file:`djgpp/fnchange.lst` with the necessary mappings. So you - need first to retrieve that file, and then invoke :code:`djtar` to - unpack the distribution. Here's how:: - - djtar -x -p -o recode-3.7-beta2/djgpp/fnchange.lst recode-3.7-beta2.tar.gz > lst - djtar -x -n lst recode-3.7-beta2.tar.gz - - (The name of the distribution archive and the top-level directory will - be different for versions other than 3.7-beta2.) - -+ This package is preconfigured for NLS support and :code:`djdev203`. - This implies that you *must* install the GNU gettext library - (:file:`gtxt035b.zip`) if you want to recompile this package. Of - course, this must be done *before* you start recompiling the - package. The configuration batch file of this package, located in the - :file:`contrib/DJGPP` directory, allows you to enable or disable NLS - support and to compile from a different partition than from where the - sources are located. :file:`configdj.bat` always configures the package - for NLS support enabled and for in-place compilation if *no* options are - given at all. The available NLS options are:: - - NLS - no-NLS - - If for some reason you want a binary with no NLS support you will have - to reconfigure the package. For this purpose cd into the top srcdir - (:file:`recode-3.7-beta2/`) and run the following commands:: - - make distclean - contrib\DJGPP\configdj no-NLS - - Please note that you *must* use the ``distclean`` option or the - :file:`config.cache` file will *not* be deleted. In this case you - are *not* reconfiguring because the configuration informations - is read from the cache file instead of being newly computed. You - *must* specify ``no-NLS`` or :file:`configdj.bat` will default to - the ``NLS`` option. To build the programs in a directory other than - where the sources are, you must add the parameter that specifies the - source directory, e.g:: - - x:\src\gnu\recode-3.7-beta2\contrib\DJGPP\configdj x:/src/gnu/recode-3.7-beta2 no-NLS - - Lets assume you want to build the binaries in a directory placed on a - different drive (:file:`z:\build` in this case) from where the sources - are, then you will run the following commands:: - - z: - md \build - cd \build - x:\src\gnu\recode-3.7-beta2/\contrib\DJGPP\configdj x:/src/gnu/recode-3.7-beta2/ no-NLS - - If you want NLS support, just omit the ``no-NLS`` option or replace - it by the ``NLS`` option in the above examples. The order of the NLS - option and the srcdir option does *not* matter. You *must* use - forward slashes to specify the source directory. - - This batch file will set same environment variables, make MSDOS - specific modifications to the :file:`Makefile.in`\ s and supply all - other needed options to the :file:`configure` script. - -+ To compile the package run from the top srcdir the command:: - - make - -+ Now you can run the tests if you like. From the top srcdir run - the command:: - - make check - - No test should fail. - -+ To install the binaries, header, library, catalogs, and info docs - run the following command from the top srcdir:: - - make install CATALOGS="xx.gmo yy.gmo zz.gmo" - - This will install the products into your DJGPP installation tree given - by the default prefix ``/dev/env/DJDIR``. If you prefer to install - them into some other directory you will have to set prefix to the - appropriate value. Replace ``xx``, ``yy`` and ``zz`` by the language - codes of the catalogs you want to install. Example:: - - make install CATALOGS="xx.gmo yy.gmo zz.gmo" prefix=z:/some/other/dir - -+ Now you have to set the LANG environment variable. Please refer to - the third point in section 2. - -Recoding the :file:`.po` files -============================== - -As told above, the :file:`.po` files of this package have already been -recoded. The recoding of the :file:`.po` files is one step more of -the configuration process of the package and does usually not need -to be repeated by the user. This step is performed automatically by -:file:`configdj.bat` running the :file:`recodepo.sh` shell script. This -shell scripts uses two arguments: - -+ the name of the Unix charset that have been used to write the - :file:`.po` file. This information is extracted from the :file:`.po` - file by the shell script itself. - -+ The number of the MSDOS code page corresponding to that particular - :file:`.po` file. This information is stored in the DosCodePage array - of the shell script. The code page numbers have been taken from MS-DOS - 6.22 :file:`COUNTRY.TXT` file and this code pages are the ones installed - during a standard MSDOS installation process. - -Because this standard code pages have been used to recode the -:file:`.po` files, the distributed ones should fit the requirements of -the majority of the users. If for some reason this is not true for you, -you will have to recode the :file:`.po` files manually. This packages -supplies the original (not recoded) :file:`.po` files in the po/po.orig -directory. Cd into :file:`po/po.orig` and edit the :file:`.po` file you -want to use. Search for a line that looks like:: - - "Content-Type: text/plain; charset=ISO-8859-1\n" - -The Unix charset used in this particular :file:`.po` file is ISO-8859-1. -If you are using the MSDOS code page 437 you will recode the :file:`.po` -file running the command:: - - recode -Spo ISO-8859-1..cp437 xx.po - -where ``xx`` stands for the language code. - -If you want to recode all :file:`.po` files you will proceed as follows: - -+ Cd into the :file:`po` directory. - -+ Delete all :file:`.po` files and :file:`stamp-po`. - -+ Copy the original :file:`.po` files from :file:`po.orig` directory into the - :file:`po` directory. - -+ Edit :file:`recodepo.sh`. Search for the DosCodePage array and make the - appropriate changes. - -+ Run the command:: - - sh recodepo.sh - -Send recode specific bug reports to . -Send suggestions and bug reports concerning the DJGPP port to -``comp.os.msdos.djgpp`` or . - -Enjoy. - diff --git a/contrib/DJGPP/README.in b/contrib/DJGPP/README.in deleted file mode 100644 index c900571..0000000 --- a/contrib/DJGPP/README.in +++ /dev/null @@ -1,305 +0,0 @@ -.. role:: code(strong) -.. role:: file(literal) - -======================================== -README file for the DJGPP port of Recode -======================================== - -.. contents:: -.. sectnum:: - -:Porter: Juan Manuel Guerrero -:Email: juan.guerrero@gmx.de - -This is a port of Recode to MSDOS/DJGPP. The instructions given here, -and the port itself, were produced for a pretest yielding to Recode 3.6. -They might need revision or undusting for later Recode versions. - -DJGPP specific changes -====================== - -There are no DJGPP specific changes. The original distribution should -configure and compile out-of-the-box. If there are last minute DJGPP -specific changes, then they will be documented in the diffs file placed -in the :file:`contrib/DJGPP` subdirectory. This DJGPP port of recode -@VER@ offers NLS out-of-the-box. - -Installing the binary package -============================= - -+ If you are installing Recode on dual DOS/WINDOWS 9X systems, you - should first turn off the generation of numeric tails for 8.3 aliases - Windows creates for long file names. For information about how to do - this, please read the DJGPP FAQ List V 2.30, chapter 22.19: "How to Set - Up a Dual DOS/Windows Installation." - - Please note that you *must* turn off the numeric tail generation - for short file names during installation of the binary package if you - want to use the recode program on both DOS box on Win9X *and* plain - DOS. If this is not done recode will *not* be able to find the - :file:`.mo` files (the catalogs containing the translated strings). - After the installation has been finished you can turn on numeric tail - generation again if you like. - -+ Copy the binary distribution into the top DJGPP installation directory. - Unzip the binary distribution running *one* of the following commands:: - - unzip32 rcode@packageversion@b.zip or - djtarx rcode@packageversion@b.zip or - pkunzip -d rcode@packageversion@b.zip - -+ Edit the :file:`djgpp.env` file which is located in the top - DJGPP installation directory. Move to the global part of your - :file:`djgpp.env` and add the following lines:: - - LANG=xx - LANGUAGE=yy:zz - - The line must be completely shifted to the left in your - :file:`djgpp.env` file. Please note the plus sign at the beginning of - the line. This plus sign should *not* be omitted or a lot of shell - scripts, in this and in other packages, that try to reset this value - will stop working. The LANG entry is obligatory, the LANGUAGE entry - is may be omitted. The LANGUAGE variable allows you to select an - alternative catalog than the one stipulated by LANG. Replace ``xx``, - ``yy`` and ``zz`` by the language code of the catalogs you want to - use. - - Some examples: - - If you only want to use the catalog containing the translations for - your mother tongue (in my case the Spanish translations) the above - lines will only use the LANG variable and will look like:: - - LANG=es - - If you want to use the Spanish (``es``) and German (``de``) catalogs - the above lines will look like:: - - LANG=es - LANGUAGE=es:de - - In this case a DJGPP binary that has been compiled with NLS support - will first search for the Spanish translations. If this translations - can not be found it will search for the German translations and if - this can also not been found it will default to the build-in English - messages. If you want to reverse this search order the above lines - would look like this one:: - - LANG=es - LANGUAGE=de:es - - Please note that if you omit the LANG environment variable, the - LANGUAGE variable will not be honored at all. The LANG variable must - always be set to your default catalog. With the aid of LANGUAGE you - can select other catalogs apart of the default one. If for some - reason you want to disable NLS, then you should comment out the LANG - variable or select ``C`` as your catalog:: - - LANG=C - -+ To create an entry for the recode info docs in your :file:`dir` file, - run from the top DJGPP installation directory the command:: - - install-info --info-dir=./info ./info/recode.info - -+ The binaries distributed in this package have NLS support. - i.e. run the command:: - - recode - - and the binary should talk to you in your mother tongue, if supported. - For further information about Recode please read the info docs. - -Building the binaries from sources. -=================================== - -+ To build the binaries you will need the following binary packages: - :file:`djdev203.zip` (*not* a prior version), - :file:`bsh203b.zip` (*not* a prior version), - :file:`gcc2952b.zip`, :file:`bnu2951b.zip`, - :file:`mak3791b.zip`, :file:`fil316b.zip`, :file:`shl112b.zip`, - :file:`txt20b.zip`, :file:`txi40b.zip`, :file:`grep24b.zip`, - :file:`sed302b.zip`, and :file:`gtxt035b.zip`. - - If you want to run the check you will need also - :file:`dif272b.zip`, :file:`m4-14b.zip`, and - :file:`perl552b.zip`, - - All these packages can be found in the :file:`v2gnu` directory of any - Simtel.NET mirror. - - You will need :file:`bsh203b.zip` and *not* a prior version or - the build will fail. The same applies to :file:`djdev203.zip`. - You *must* use the updated version of :file:`fil316b.zip` - (date: 2000-05-30) and :file:`shl112b.zip` (date: 2000-08-11). - - These updated versions have been recompiled with - :file:`djdev203.zip` and know about the file:`/dev/env` - functionality introduced with :file:`djdev203.zip`. All the - other packages are the ones I have used to build the binaries - from this sources. Previous versions of this packages may do - the job as well but I have not tested this. - -+ Create a temporary directory and copy the source package into the dir. - If you download the source distribution from one of the DJGPP archives, - just unzip it preserving the directory structure running *ONE* of the - following commands:: - - unzip32 rcode@packageversion@s.zip or - djtarx rcode@packageversion@s.zip or - pkunzip -d rcode@packageversion@s.zip - - Source distributions downloaded from one of the GNU FTP sites need - some more work to unpack. First, you *must* use the :code:`djtar` - program to unzip the package. That's because some file names in the - official distributions need to be changed to avoid problems on the - various platforms supported by DJGPP. :code:`djtar` can rename files - on the fly given a file with name mappings. The distribution includes - a file :file:`djgpp/fnchange.lst` with the necessary mappings. So you - need first to retrieve that file, and then invoke :code:`djtar` to - unpack the distribution. Here's how:: - - djtar -x -p -o @V@/djgpp/fnchange.lst @V@.tar.gz > lst - djtar -x -n lst @V@.tar.gz - - (The name of the distribution archive and the top-level directory will - be different for versions other than @VER@.) - -+ This package is preconfigured for NLS support and :code:`djdev203`. - This implies that you *must* install the GNU gettext library - (:file:`gtxt035b.zip`) if you want to recompile this package. Of - course, this must be done *before* you start recompiling the - package. The configuration batch file of this package, located in the - :file:`contrib/DJGPP` directory, allows you to enable or disable NLS - support and to compile from a different partition than from where the - sources are located. :file:`configdj.bat` always configures the package - for NLS support enabled and for in-place compilation if *no* options are - given at all. The available NLS options are:: - - NLS - no-NLS - - If for some reason you want a binary with no NLS support you will have - to reconfigure the package. For this purpose cd into the top srcdir - (:file:`recode-@treeversion@/`) and run the following commands:: - - make distclean - contrib\DJGPP\configdj no-NLS - - Please note that you *must* use the ``distclean`` option or the - :file:`config.cache` file will *not* be deleted. In this case you - are *not* reconfiguring because the configuration informations - is read from the cache file instead of being newly computed. You - *must* specify ``no-NLS`` or :file:`configdj.bat` will default to - the ``NLS`` option. To build the programs in a directory other than - where the sources are, you must add the parameter that specifies the - source directory, e.g:: - - x:\src\gnu\recode-@treeversion@\contrib\DJGPP\configdj x:/src/gnu/recode-@treeversion@ no-NLS - - Lets assume you want to build the binaries in a directory placed on a - different drive (:file:`z:\build` in this case) from where the sources - are, then you will run the following commands:: - - z: - md \build - cd \build - x:\src\gnu\recode-@treeversion@/\contrib\DJGPP\configdj x:/src/gnu/recode-@treeversion@/ no-NLS - - If you want NLS support, just omit the ``no-NLS`` option or replace - it by the ``NLS`` option in the above examples. The order of the NLS - option and the srcdir option does *not* matter. You *must* use - forward slashes to specify the source directory. - - This batch file will set same environment variables, make MSDOS - specific modifications to the :file:`Makefile.in`\ s and supply all - other needed options to the :file:`configure` script. - -+ To compile the package run from the top srcdir the command:: - - make - -+ Now you can run the tests if you like. From the top srcdir run - the command:: - - make check - - No test should fail. - -+ To install the binaries, header, library, catalogs, and info docs - run the following command from the top srcdir:: - - make install CATALOGS="xx.gmo yy.gmo zz.gmo" - - This will install the products into your DJGPP installation tree given - by the default prefix ``/dev/env/DJDIR``. If you prefer to install - them into some other directory you will have to set prefix to the - appropriate value. Replace ``xx``, ``yy`` and ``zz`` by the language - codes of the catalogs you want to install. Example:: - - make install CATALOGS="xx.gmo yy.gmo zz.gmo" prefix=z:/some/other/dir - -+ Now you have to set the LANG environment variable. Please refer to - the third point in section 2. - -Recoding the :file:`.po` files -============================== - -As told above, the :file:`.po` files of this package have already been -recoded. The recoding of the :file:`.po` files is one step more of -the configuration process of the package and does usually not need -to be repeated by the user. This step is performed automatically by -:file:`configdj.bat` running the :file:`recodepo.sh` shell script. This -shell scripts uses two arguments: - -+ the name of the Unix charset that have been used to write the - :file:`.po` file. This information is extracted from the :file:`.po` - file by the shell script itself. - -+ The number of the MSDOS code page corresponding to that particular - :file:`.po` file. This information is stored in the DosCodePage array - of the shell script. The code page numbers have been taken from MS-DOS - 6.22 :file:`COUNTRY.TXT` file and this code pages are the ones installed - during a standard MSDOS installation process. - -Because this standard code pages have been used to recode the -:file:`.po` files, the distributed ones should fit the requirements of -the majority of the users. If for some reason this is not true for you, -you will have to recode the :file:`.po` files manually. This packages -supplies the original (not recoded) :file:`.po` files in the po/po.orig -directory. Cd into :file:`po/po.orig` and edit the :file:`.po` file you -want to use. Search for a line that looks like:: - - "Content-Type: text/plain; charset=ISO-8859-1\n" - -The Unix charset used in this particular :file:`.po` file is ISO-8859-1. -If you are using the MSDOS code page 437 you will recode the :file:`.po` -file running the command:: - - recode -Spo ISO-8859-1..cp437 xx.po - -where ``xx`` stands for the language code. - -If you want to recode all :file:`.po` files you will proceed as follows: - -+ Cd into the :file:`po` directory. - -+ Delete all :file:`.po` files and :file:`stamp-po`. - -+ Copy the original :file:`.po` files from :file:`po.orig` directory into the - :file:`po` directory. - -+ Edit :file:`recodepo.sh`. Search for the DosCodePage array and make the - appropriate changes. - -+ Run the command:: - - sh recodepo.sh - -Send recode specific bug reports to . -Send suggestions and bug reports concerning the DJGPP port to -``comp.os.msdos.djgpp`` or . - -Enjoy. - diff --git a/contrib/DJGPP/config.site b/contrib/DJGPP/config.site deleted file mode 100644 index 72d186b..0000000 --- a/contrib/DJGPP/config.site +++ /dev/null @@ -1,35 +0,0 @@ -#! /bin/sh - -# This is the config.site file for configuring GNU packages -# which are to be built with DJGPP tools. - -# These two variables are required, otherwise looking for -# programs along the PATH will not work. -PATH_SEPARATOR=: -PATH_EXPAND=y - -# This is required in for "test -f foo" to find foo.exe -export TEST_FINDS_EXE=y - -# The root of the DJGPP tree serves as the default prefix -test "x$prefix" = xNONE && prefix='/dev/env/DJDIR' - -# This is required for config.status script to be run, since -# ./configure runs it by invoking ${CONFIG_SHELL-/bin/sh} -CONFIG_SHELL=${CONFIG_SHELL='sh'} - -# These are set here so the generated Makefile's will be good -# for every DJGPP installation, not only the one where the -# package was configured. -# $INSTALL must be an absolute path name, otherwise config.status -# will try to prepend ./ and ../ to it when it goes into subdirs. -INSTALL=${INSTALL='/dev/env/DJDIR/bin/ginstall -c'} -RANLIB=${RANLIB='ranlib'} -NM=${NM='nm'} -LD=${LD='ld'} -GMSGFMT=${GMSGFMT='/dev/env/DJDIR/bin/msgfmt'} -MSGFMT=${MSGFMT='/dev/env/DJDIR/bin/msgfmt'} -XGETTEXT=${XGETTEXT='/dev/env/DJDIR/bin/xgettext'} - -# Force the test for 'ln -s' to report 'cp -p'. -ac_cv_prog_LN_S='cp -p' diff --git a/contrib/DJGPP/configdj.bat b/contrib/DJGPP/configdj.bat deleted file mode 100644 index 72f108e..0000000 --- a/contrib/DJGPP/configdj.bat +++ /dev/null @@ -1,220 +0,0 @@ -@echo off -echo Configuring Recode for DJGPP v2.x... - -Rem The SmallEnv tests protect against fixed and too small size -Rem of the environment in stock DOS shell. - -Rem Find out if NLS is wanted or not -Rem and where the sources are. -Rem We always default to NLS support -Rem and to in place configuration. -set NLS=enabled -if not "%NLS%" == "enabled" goto SmallEnv -set XSRC=. -if not "%XSRC%" == "." goto SmallEnv - -Rem This checks the case: -Rem %1 contains the NLS option. -Rem %2 contains the src path option. -if "%1" == "" goto InPlace -if "%1" == "NLS" goto SrcDir2 -if not "%1" == "no-NLS" goto SrcDir1 -set NLS=disabled -if not "%NLS%" == "disabled" goto SmallEnv -:SrcDir2 -Rem Find out where the sources are -if "%2" == "" goto InPlace -set XSRC=%2 -if not "%XSRC%" == "%2" goto SmallEnv -goto NotInPlace - -Rem This checks the case: -Rem %1 contains the src path option. -Rem %2 contains the NLS option. -:SrcDir1 -Rem Find out where the sources are -if "%1" == "" goto InPlace -set XSRC=%1 -if not "%XSRC%" == "%1" goto SmallEnv -if "%2" == "" goto NotInPlace -if "%2" == "NLS" goto NotInPlace -if not "%2" == "no-NLS" goto NotInPlace -set NLS=disabled -if not "%NLS%" == "disabled" goto SmallEnv - -:NotInPlace -redir -e /dev/null update %XSRC%/configure.orig ./configure -test -f ./configure -if errorlevel 1 update %XSRC%/configure ./configure - -:InPlace -Rem Update configuration files -echo Updating configuration scripts... -test -f ./configure.orig -if errorlevel 1 update configure configure.orig -sed -f %XSRC%/contrib/DJGPP/configdj.sed configure.orig > configure -if errorlevel 1 goto SedError - -Rem Make sure they have a config.site file -set CONFIG_SITE=%XSRC%/contrib/DJGPP/config.site -if not "%CONFIG_SITE%" == "%XSRC%/contrib/DJGPP/config.site" goto SmallEnv - -Rem Make sure crucial file names are not munged by unpacking -test -f %XSRC%/config.h.in -if not errorlevel 1 mv -f %XSRC%/config.h.in %XSRC%/config.h-in - -test -f %XSRC%/stamp-djgppfixes -if not errorlevel 1 goto PackageFixed - -Rem Fix libiconv/Makefile.in and src/Makefile.in -Rem to reflect the new directory structure. -test -f %XSRC%/libiconv/Makefile.orig -if errorlevel 1 update %XSRC%/libiconv/Makefile.in %XSRC%/libiconv/Makefile.orig -sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/Makefile.orig > Makefile.tmp -if errorlevel 1 goto SedError -update Makefile.tmp %XSRC%/libiconv/Makefile.in -rm Makefile.tmp -test -f %XSRC%/src/Makefile.orig -if errorlevel 1 update %XSRC%/src/Makefile.in %XSRC%/src/Makefile.orig -sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/src/Makefile.orig > Makefile.tmp -if errorlevel 1 goto SedError -update Makefile.tmp %XSRC%/src/Makefile.in -rm Makefile.tmp - -Rem Fix the source files in libiconv to reflect the new directory structure. -test -f %XSRC%/src/iconv.orig -if errorlevel 1 update %XSRC%/src/iconv.c %XSRC%/src/iconv.orig -sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/src/iconv.orig > iconv.tmp -if errorlevel 1 goto SedError -update iconv.tmp %XSRC%/src/iconv.c -rm iconv.tmp -test -f %XSRC%/libiconv/converters.orig -if errorlevel 1 update %XSRC%/libiconv/converters.h %XSRC%/libiconv/converters.orig -sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/converters.orig > converters.tmp -if errorlevel 1 goto SedError -update converters.tmp %XSRC%/libiconv/converters.h -rm converters.tmp -test -f %XSRC%/libiconv/cns/11643.orig -if errorlevel 1 update %XSRC%/libiconv/cns/11643.h %XSRC%/libiconv/cns/11643.orig -sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/cns/11643.orig > 11643.tmp -if errorlevel 1 goto SedError -update 11643.tmp %XSRC%/libiconv/cns/11643.h -rm 11643.tmp -test -f %XSRC%/libiconv/iso/ir165.orig -if errorlevel 1 update %XSRC%/libiconv/iso/ir165.h %XSRC%/libiconv/iso/ir165.orig -sed -f %XSRC%/contrib/DJGPP/configdj.sed %XSRC%/libiconv/iso/ir165.orig > ir165.tmp -if errorlevel 1 goto SedError -update ir165.tmp %XSRC%/libiconv/iso/ir165.h -rm ir165.tmp - -Rem Let libtool use _libs all the time. -test -f %XSRC%/ltconfig.orig -if errorlevel 1 update %XSRC%/ltconfig %XSRC%/ltconfig.orig -sed "/objdir=/s|\.libs|_libs|" %XSRC%/ltconfig.orig > ltconfig.tmp -if errorlevel 1 goto SedError -update ltconfig.tmp %XSRC%/ltconfig -rm ltconfig.tmp - -touch %XSRC%/stamp-djgppfixes -:PackageFixed - -Rem This is required because DOS/Windows are case-insensitive -Rem to file names, and "make install" will do nothing if Make -Rem finds a file called `install'. -if exist INSTALL ren INSTALL INSTALL.txt - -Rem Set HOSTNAME so it shows in config.status -if not "%HOSTNAME%" == "" goto hostdone -if "%windir%" == "" goto msdos -set OS=MS-Windows -if not "%OS%" == "MS-Windows" goto SmallEnv -goto haveos -:msdos -set OS=MS-DOS -if not "%OS%" == "MS-DOS" goto SmallEnv -:haveos -if not "%USERNAME%" == "" goto haveuname -if not "%USER%" == "" goto haveuser -echo No USERNAME and no USER found in the environment, using default values -set HOSTNAME=Unknown PC -if not "%HOSTNAME%" == "Unknown PC" goto SmallEnv -goto userdone -:haveuser -set HOSTNAME=%USER%'s PC -if not "%HOSTNAME%" == "%USER%'s PC" goto SmallEnv -goto userdone -:haveuname -set HOSTNAME=%USERNAME%'s PC -if not "%HOSTNAME%" == "%USERNAME%'s PC" goto SmallEnv -:userdone -set _HOSTNAME=%HOSTNAME%, %OS% -if not "%_HOSTNAME%" == "%HOSTNAME%, %OS%" goto SmallEnv -set HOSTNAME=%_HOSTNAME% -:hostdone -set _HOSTNAME= -set OS= - -Rem install-sh is required by the configure script but clashes with the -Rem various Makefile install-foo targets, so we MUST have it before the -Rem script runs and rename it afterwards -test -f %XSRC%/install-sh -if not errorlevel 1 goto NoRen0 -test -f %XSRC%/install-sh.sh -if not errorlevel 1 mv -f %XSRC%/install-sh.sh %XSRC%/install-sh -:NoRen0 - -if "%NLS%" == "disabled" goto WithoutNLS - -Rem If NLS is wanted we will probably have to -Rem recode the .po files. For these purpose -Rem we will run recodepo.sh that will check for -Rem needed libs, headers and binaries and return -Rem with one of the following return codes: -Rem errorlevel 2 : package has no po directory (no NLS support) -Rem and will be configured with --disable-nls. -Rem errorlevel 1 : recode, msgfmt and/or xgettext can not be found, -Rem package will be configured with --disable-nls. -Rem errorlevel 0 : .po files have/have not been recoded. They will -Rem be recoded by recodepo.sh if needed, and the -Rem package will be configured with --enable-nls. -sh %XSRC%/contrib/DJGPP/recodepo.sh -if errorlevel 1 goto WithoutNLS - -:WithNLS -Rem We prefer without-included-gettext because libintl.a from gettext package -Rem is the only one that is garanteed to have been ported to DJGPP. -echo Running the ./configure script... -sh ./configure --src=%XSRC% --enable-nls --without-included-gettext -if errorlevel 1 goto CfgError -echo Done. -goto End - -:WithoutNLS -echo Running the ./configure script... -sh ./configure --src=%XSRC% --disable-nls -if errorlevel 1 goto CfgError -echo Done. -goto End - -:SedError -echo ./configure script editing failed! -goto End - -:CfgError -echo ./configure script exited abnormally! -goto End - -:SmallEnv -echo Your environment size is too small. Enlarge it and run me again. -echo Configuration NOT done! - -:End -test -f %XSRC%/install-sh.sh -if not errorlevel 1 goto NoRen1 -test -f %XSRC%/install-sh -if not errorlevel 1 mv -f %XSRC%/install-sh %XSRC%/install-sh.sh -:NoRen1 -set CONFIG_SITE= -set HOSTNAME= -set NLS= -set XSRC= diff --git a/contrib/DJGPP/configdj.sed b/contrib/DJGPP/configdj.sed deleted file mode 100644 index 31019c7..0000000 --- a/contrib/DJGPP/configdj.sed +++ /dev/null @@ -1,138 +0,0 @@ -# Additional editing of Makefiles and atconfig -/ac_given_INSTALL=/,/^CEOF/ { - /^CEOF$/ i\ -# DJGPP specific Makefile changes.\ - /^aliaspath * *=/s,:,";",g\ - /TEXINPUTS=/s,:,";",g\ - /PATH=/s,:,";",g\ - s,\\.new\\.,_new.,g\ - s,\\.old\\.,_old.,g\ - s,config\\.h\\.in,config.h-in,g\ - /^install-info-am:/,/^$/ {\ - /@list=/ s,\\\$(INFO_DEPS),& recode.i,\ - /@for *file/ s,\\\$(INFO_DEPS),& recode.i,\ - s,file-\\[0-9\\]\\[0-9\\],& \\$\\$file[0-9] \\$\\$file[0-9][0-9],\ - } -} - -# Rename config.h.in into config.h-in. -/^ *CONFIG_HEADERS=/,/^EOF/ { - s|config\.h|&:config.h-in| -} - -# Replace (command) > /dev/null with `command > /dev/null`, since -# parenthesized commands always return zero status in the ported Bash, -# even if the named command doesn't exist -/if ([^|;]*null/{ - s,(,`, - s,),, - s,; *then,`; then, -} - -# DOS-style absolute file names should be supported as well -/\*) srcdir=/s,/\*,[\\\\/]* | [A-z]:[\\\\/]*, -/\$]\*) INSTALL=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*, -/\$]\*) ac_rel_source=/s,\[/\$\]\*,[\\\\/$]* | [A-z]:[\\\\/]*, - -# Switch the order of the two Sed commands, since DOS path names -# could include a colon -/ac_file_inputs=/s,\( -e "s%\^%\$ac_given_srcdir/%"\)\( -e "s%:% $ac_given_srcdir/%g"\),\2\1, - -# Prevent the spliting of conftest.subs. -# The sed script: conftest.subs is split into 48 or 90 lines long files. -# This will produce sed scripts called conftest.s1, conftest.s2, etc. -# that will not work if conftest.subs contains a multi line sed command -# at line #90. In this case the first part of the sed command will be the -# last line of conftest.s1 and the rest of the command will be the first lines -# of conftest.s2. So both script will not work properly. -# This matches the configure script produced by Autoconf 2.12 -/ac_max_sed_cmds=[0-9]/ s,=.*$,=`sed -n "$=" conftest.subs`, -# This matches the configure script produced by Autoconf 2.14a -/ac_max_sed_lines=[0-9]/ s,=.*$,=`sed -n "$=" $ac_cs_root.subs `, - -# gettext.m4 (serial 5) from GNU gettext 0.10.35 has a bug. -# When the package is configured with --without-included-gettext option -# and the system libintl.a is found then the LIBS variable *MUST* be set to -lintl -# so that this one is used for linking. -/echo.*\$gt_cv_func_gettext_libintl/,/^EOF$/ { - /^fi$/ a\ - if test "$gt_cv_func_gettext_libintl" = yes; then\ - LIBS="$LIBS -lintl"\ - fi -} - -# We prefer gettext__ instead of gettext. -/checking for gettext in /,/^EOF$/ s,gettext[ ]*(,gettext__(,g - -# The following two items are changes needed for configuring -# and compiling across partitions. -# 1) The given srcdir value is always translated from the -# "x:" syntax into "/dev/x" syntax while we run configure. -/^[ ]*-srcdir=\*.*$/ a\ - ac_optarg=`echo "$ac_optarg" | sed "s,^\\([A-Za-z]\\):,/dev/\\1,"` -/set X `ls -Lt \$srcdir/ i\ - if `echo $srcdir | grep "^/dev/" - > /dev/null`; then\ - srcdir=`echo "$srcdir" | sed -e "s%^/dev/%%" -e "s%/%:/%"`\ - fi - -# 2) We need links across partitions, so we will use "cp -pf" instead of "ln". -/# Make a symlink if possible; otherwise try a hard link./,/EOF/ { - s,;.*then, 2>/dev/null || cp -pf \$srcdir/\$ac_source \$ac_dest&, -} - -# Fixes for libiconv/Makefile.in and src/Makefile.in -# due to filename renaming in libiconv/ subdir. -/^EXTRA_DIST[ ]*=/ { - s|encodings\.def|encodings/&| - s|encodings_aix\.def|encodings/aix.def| - s|encodings_dos\.def|encodings/dos.def| - s|encodings_osf1\.def|encodings/osf1.def| - s|encodings_local\.def|encodings/local.def| -} -/^noinst_HEADERS[ ]*=/ { - s|aliases\.h|aliases/&| - s|aliases_aix\.h|aliases/aix.h| - s|aliases_dos\.h|aliases/dos.h| - s|aliases_osf1\.h|aliases/osf1.h| - s|aliases_local\.h|aliases/local.h| - s|cns|&/|g - s|iso|&/|g - s|georgian_|georgian/|g - s|mac_|mac/|g -} -/\/libiconv\// { - s|cns|&/|g - s|iso|&/|g - s|georgian_|georgian/|g - s|mac_|mac/|g - s|aliases\.h|aliases/&|g - s|aliases_aix\.h|aliases/aix.h|g - s|aliases_dos\.h|aliases/dos.h|g - s|aliases_osf1\.h|aliases/osf1.h|g - s|aliases_local\.h|aliases/local.h|g - s|encodings\.def|encodings/&|g - s|encodings_aix\.def|encodings/aix.def|g - s|encodings_dos\.def|encodings/dos.def|g - s|encodings_osf1\.def|encodings/osf1.def|g - s|encodings_local\.def|encodings/local.def|g -} - -# Fixes for lib/iconv.c. -# All encodings and aliases files recide in their respective subdirs now. -/^#[ ]*include/ s|"encodings\.def|"encodings/encodings.def| -/^#[ ]*include/ s|"encodings_aix\.def|"encodings/aix.def| -/^#[ ]*include/ s|"encodings_dos\.def|"encodings/dos.def| -/^#[ ]*include/ s|"encodings_osf1\.def|"encodings/osf1.def| -/^#[ ]*include/ s|"encodings_local\.def|"encodings/local.def| -/^#[ ]*include/ s|"aliases\.h|"aliases/aliases.h| -/^#[ ]*include/ s|"aliases_aix\.h|"aliases/aix.h| -/^#[ ]*include/ s|"aliases_dos\.h|"aliases/dos.h| -/^#[ ]*include/ s|"aliases_osf1\.h|"aliases/osf1.h| -/^#[ ]*include/ s|"aliases_local\.h|"aliases/local.h| - -# Fixes for lib/converters\.h. -# All cns, iso, georgian and mac files recide in their respective subdirs now. -/^#[ ]*include/ s|"cns|&/| -/^#[ ]*include/ s|"iso|&/| -/^#[ ]*include/ s|"georgian_|"georgian/| -/^#[ ]*include/ s|"mac_|"mac/| diff --git a/contrib/DJGPP/fnchange.in b/contrib/DJGPP/fnchange.in deleted file mode 100644 index f20884c..0000000 --- a/contrib/DJGPP/fnchange.in +++ /dev/null @@ -1 +0,0 @@ -@V@/config.h.in @V@/config.h-in diff --git a/contrib/DJGPP/fnchange.lst b/contrib/DJGPP/fnchange.lst deleted file mode 100644 index aabae66..0000000 --- a/contrib/DJGPP/fnchange.lst +++ /dev/null @@ -1 +0,0 @@ -recode-3.7-beta2/config.h.in recode-3.7-beta2/config.h-in diff --git a/contrib/Makefile.am b/contrib/Makefile.am index e527dc0..a255c72 100644 --- a/contrib/Makefile.am +++ b/contrib/Makefile.am @@ -18,31 +18,6 @@ AUTOMAKE_OPTIONS = gnits -AMIGA_PORT = Amiga/lib-Makefile Amiga/src-Makefile -DJGPP_PORT = DJGPP/README.in DJGPP/config.site DJGPP/configdj.bat \ -DJGPP/configdj.sed DJGPP/DJGPP/README DJGPP/recodepo.sh -ELISP_FILES = recode.el utf8.el -SPEC_FILES = recode.spec1 recode.spec2 +ELISP_FILES = recode.el -EXTRA_DIST = $(AMIGA_PORT) $(DJGPP_PORT) $(ELISP_FILES) $(SPEC_FILES) - -MAINTAINERCLEANFILES = DJGPP/README DJGPP/fnchange.lst - -all-local: DJGPP/README DJGPP/fnchange.lst - -$(srcdir)/DJGPP/README: DJGPP/README.in $(top_srcdir)/configure.ac - packageversion=`echo "$(VERSION)" | sed 's/\.//g'`; \ - sed \ - -e 's/@V@/$(PACKAGE)-$(VERSION)/g' \ - -e 's/@VER@/$(VERSION)/g' \ - -e "s/@packageversion@/$$packageversion/g" \ - -e "s/@treeversion@/$(VERSION)/g" \ - $(srcdir)/DJGPP/README.in > $@-tmp - mv $@-tmp $@ - -$(srcdir)/DJGPP/fnchange.lst: DJGPP/fnchange.in $(top_srcdir)/configure.ac - sed \ - -e '/^#/d' \ - -e 's/@V@/$(PACKAGE)-$(VERSION)/g' \ - $(srcdir)/DJGPP/fnchange.in > $@-tmp - mv $@-tmp $@ +EXTRA_DIST = $(ELISP_FILES) diff --git a/contrib/README b/contrib/README index 0ae5471..8acfb6b 100644 --- a/contrib/README +++ b/contrib/README @@ -6,8 +6,8 @@ README file for :file:`recode/contrib/` ======================================= The :file:`contrib/` directory of the Recode distribution contains a few -miscellaneous tools, ports, or such things, which have been collected -here and there, a bit randomly, for your possible entertainment or use. +miscellaneous tools, which have been collected here and there, a bit +randomly, for your possible entertainment or use. Beware that nothing here is supported by the Recode maintainer, you might have to contact the authors directly to get support. There is no @@ -30,54 +30,8 @@ help me at deciding what should be kept and what should go away. + Emacs Lisp files - + :file:`utf8.el` - - This tool helps Emacs users at inserting UTF-8 encoded ISO-10646 or - Unicode characters in an Emacs buffer. Submitted by Gary Houston - to :code:`gnu.emacs.sources`, 1994-10. - + :file:`recode.el` This is a miscellaneous collection of tools, documented in French, for using Recode from Emacs, when Latin-1 is in use. Submitted by François Pinard , 1994-12. - -+ RPM spec files - - + :file:`recode.spec1` - - RPM spec file to prepare Recode 3.5c on RedHat. Submitted by David - Lebel, 2000-06. - - + :file:`recode.spec2` - - RPM spec file to prepare Recode 3.5d on RedHat. Submitted by Bennett - Todd, 2002-01. Bennett writes (more or less): - - This spec file allows portable building. Users could download the - tar archive and simply ``rpm -ta`` it to build themselves source and - binary :code:`rpm`\ s. If they had their :code:`rpm` directory, - they could even do it while not being ``root``. For example, my - :file:`~/.rpmmacros` reads:: - - %_topdir /home/bet/rpm - - without a leading tab. Hence my :file:`/usr/src/redhat/` is still - ``root:root``, and yet I can do my :code:`rpm` building as myself. - -+ Amiga port - - Files in the :file:`Amiga/` directory should allow building Recode on - Amiga. Submitted by Stefan Haubenthal, 1998-11, for version 3.4k. - -+ DJGPP port - - Files in the :file:`DJGPP/` directory should allow building - Recode on MSDOS/DJGPP. Submitted by Juan Manuel Guerrero - , 2001-03, for a pretest towards version 3.6. - For this port, there is a `README`__ file. - - __ /DJGPP.html - - For the record, a previous port was submitted by Wojciech Galazka - , 1997-11, for version 3.4.1. diff --git a/contrib/recode.spec1 b/contrib/recode.spec1 deleted file mode 100644 index 793ec1a..0000000 --- a/contrib/recode.spec1 +++ /dev/null @@ -1,93 +0,0 @@ -%define rcsid $Id: recode.spec,v 1.5 2000/06/29 13:52:54 lebel Exp $ -%define nam recode -%define ver 3.5c -%define rel 1 -%define sysconfdir /etc -%define prefix /usr - -Summary: The Recode library converts files between character sets and usages. -Name: %nam -Version: %ver -Release: %rel -Copyright: GPL -Vendor: François Pinard et al. -Group: Applications/Text -Source: http://www.iro.umontreal.ca/contrib/recode/%{nam}-%{ver}.tar.gz -URL: http://www.iro.umontreal.ca/~pinard/ -BuildRoot: /var/tmp/%{nam}-%{ver}-root -Docdir: %{prefix}/doc - -%description -The Recode library converts files between character sets and usages. -The library recognises or produces nearly 150 different character sets -and is able to transliterate files between almost any pair. When -exact transliteration are not possible, it may get rid of the -offending characters or fall back on approximations. Most RFC 1345 -character sets are supported. The `recode' program is a handy -front-end to the library. - -The Recode program and library have been written by François Pinard. -It is an evolving package, and specifications might change in future -releases. Option `-f' is now fairly implemented, yet not fully. - -%package devel -Summary: Libraries and include files for developing applications using the Recode library. -Group: Development/Libraries - -%description devel -This package provides the necessary development libraries and include -files to allow you to develop applications using the Recode libraries. - -%changelog -* Thu Jun 29 2000 David Lebel -- Initial public release of this SPEC file. - -%prep -%setup -q - -%build -if [ ! -f configure ]; then - CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh \ - --prefix=%{prefix} --sysconfdir=%{sysconfdir} -else - CFLAGS="$RPM_OPT_FLAGS" ./configure \ - --prefix=%{prefix} --sysconfdir=%{sysconfdir} -fi - -make - -%install -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT - -make install-strip \ - prefix=$RPM_BUILD_ROOT%{prefix} \ - sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} - -%clean -[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT - -%post -if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then - echo "%{prefix}/lib" >> /etc/ld.so.conf -fi - -[ -x /sbin/ldconfig ] && /sbin/ldconfig - -%postun -p /sbin/ldconfig - -%files -%defattr(-, bin, bin) - -%doc ABOUT-NLS AUTHORS BACKLOG COPYING COPYING-LIB ChangeLog INSTALL NEWS README THANKS TODO -%{prefix}/bin/* -%{prefix}/lib/*.so* -%{prefix}/info/recode* -%{prefix}/man/man1/* -%{prefix}/share/locale/* - -%files devel -%defattr(0555, bin, bin) - -%{prefix}/include/* -%{prefix}/lib/*.a -%{prefix}/lib/*.la diff --git a/contrib/recode.spec2 b/contrib/recode.spec2 deleted file mode 100644 index 0e62781..0000000 --- a/contrib/recode.spec2 +++ /dev/null @@ -1,47 +0,0 @@ -Name: recode -Version: 3.5d -Release: 2 -Summary: Converter between charsets and surfaces -Group: Utilities/Text - -Vendor: Progiciels Bourbeau-Pinard inc. -Copyright: GPL, LGPL -Packager: Franc,ois Pinard - -Source: http://recode.progiciels-bpi.ca/archives/recode-3.5d.tar.gz -URL: http://recode.progiciels-bpi.ca/ - -Buildroot: /var/tmp/%{name}-rpmroot - -%description -The recode library converts files between character sets and usages. -It recognises or produces more than 300 different character sets -and transliterates files between almost any pair. When exact -transliteration are not possible, it gets rid of offending characters -or fall back on approximations. The recode program is a handy -front-end to the library. - -%prep -%setup - -%build -./configure --prefix=/usr -make - -%install -mkdir -p $RPM_BUILD_ROOT/usr -make prefix=$RPM_BUILD_ROOT/usr install - -%changelog -* Thu Jan 31 2002 Bennett Todd - 3.5d-2: started w/ spec file from tarball, made spec portable - -%files -%defattr(-,root,root) -%doc ABOUT-NLS AUTHORS BACKLOG ChangeLog COPYING COPYING-LIB INSTALL NEWS PATCHES-AC README README-alpha THANKS TODO doc -/usr/bin/* -/usr/include/* -/usr/lib/* -%doc /usr/info/%{name}* -%doc /usr/man/*/* -/usr/share/locale/*/LC_MESSAGES/* diff --git a/contrib/utf8.el b/contrib/utf8.el deleted file mode 100644 index 14e99b1..0000000 --- a/contrib/utf8.el +++ /dev/null @@ -1,228 +0,0 @@ -;;; utf8.el --- Insert UTF-8 encoded ISO-10646/Unicode characters. -;;; -;;; Copyright (C) 1994 Gary Houston -;;; -;;; This program is free software; you can redistribute it and/or modify -;;; it under the terms of the GNU General Public License as published by -;;; the Free Software Foundation; either version 2 of the License, or -;;; (at your option) any later version. -;;; -;;; This program 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 General Public License for more details. -;;; -;;; You should have received a copy of the GNU General Public License -;;; along with this program; if not, write to the Free Software -;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -;;; COMMENTARY -;;; ---------- - -;;; Provides a command for direct entry of UTF-8 encoded multibyte -;;; characters in hexadecimal form. - -;;; Load file and type `M-x hex-to-utf8' - -;;; Also contains a simple symbol selection command (not many symbols): -;;; M-x utf8-symbol and TAB for completion. - -;;; A list of Unicode names and codes is available by ftp from unicode.org. - -;;; Modification of Emacs to display and process the multibyte characters -;;; correctly is left as an exercise for the reader. - -;;; HISTORY -;;; ------- -;;; Created 1994-10-24. Experimental. May contain bugs. -;;; Uses a few lines of code from hexl.el. - -;;; THEORY -;;; ------ -;;; The UTF-FSS (aka UTF-2 aka UTF-8) encoding of UCS, as described in the -;;; following quote from Ken Thompson's utf-fss.c: -;;; -;;;Bits Hex Min Hex Max Byte Sequence in Binary -;;; 7 00000000 0000007f 0vvvvvvv -;;; 11 00000080 000007FF 110vvvvv 10vvvvvv -;;; 16 00000800 0000FFFF 1110vvvv 10vvvvvv 10vvvvvv -;;; 21 00010000 001FFFFF 11110vvv 10vvvvvv 10vvvvvv 10vvvvvv -;;; 26 00200000 03FFFFFF 111110vv 10vvvvvv 10vvvvvv 10vvvvvv 10vvvvvv -;;; 31 04000000 7FFFFFFF 1111110v 10vvvvvv 10vvvvvv 10vvvvvv 10vvvvvv 10vvvvvv -;;; -;;; The UCS value is just the concatenation of the v bits in the multibyte -;;; encoding. When there are multiple ways to encode a value, for example -;;; UCS 0, only the shortest encoding is legal. - -(defun hex-to-utf8 (hex-string) - "Convert a hex string to a UTF-8 multibyte character." - (interactive "sEnter hex character value (0 - 7FFFFFFF): ") - (let ((widechar 0.0) - (num-bytes 1) - (orig-hex hex-string)) - ;; Convert the string to a decimal float. - ;; Floats are used since elisp integers may be too small for - ;; large characters. - (while (not (equal hex-string "")) - (setq widechar - (+ (* widechar 16) - (utf8-hex-char-to-integer (string-to-char hex-string)))) - (setq hex-string (substring hex-string 1))) - (if (>= widechar (expt 2.0 31)) - (error (format "char value %s is larger than 7FFFFFFF" orig-hex))) - - ;; Calculate the number of UTF-8 bytes needed. - (while (>= widechar - ;; 2 raised to the number of bits with this many bytes. - (expt - 2.0 - (+ - (if (= num-bytes 1) 7 (- 7 num-bytes)) - (* (- num-bytes 1) 6)))) - (setq num-bytes (+ num-bytes 1))) - - (insert - ;; First byte. - (char-to-string - (logior - (truncate (/ widechar (expt 2.0 (* (- num-bytes 1) 6)))) - (if (= num-bytes 1) - 0 - (mod (lognot (- (expt 2 (+ 8 (- num-bytes))) 1)) 256))))) - - ;; Remaining bytes. - (while (> num-bytes 1) - (setq num-bytes (- num-bytes 1)) - (insert - (char-to-string - (logior - (truncate - (/ - (mod widechar (expt 2.0 (* num-bytes 6))) - (expt 2.0 (* (- num-bytes 1) 6)))) - 128)))))) - -(defun utf8-hex-char-to-integer (character) - "Take a char and return its value as if it was a hex digit." - (if (and (>= character ?0) (<= character ?9)) - (- character ?0) - (let ((ch (logior character 32))) - (if (and (>= ch ?a) (<= ch ?f)) - (- ch (- ?a 10)) - (error (format "Invalid hex digit `%c'." ch)))))) - -;;; Symbol selection stuff. - -(defconst ISO-10646-symbol-types - '(("greek-basic" nil) - ("chess" nil) - ("cards" nil)) - "Classes of ISO-10646 symbols") - -(defconst ISO-10646-greek-basic - '(("GREEK CAPITAL LETTER ALPHA" "0391") - ("GREEK CAPITAL LETTER BETA" "0392") - ("GREEK CAPITAL LETTER GAMMA" "0393") - ("GREEK CAPITAL LETTER DELTA" "0394") - ("GREEK CAPITAL LETTER EPSILON" "0395") - ("GREEK CAPITAL LETTER ZETA" "0396") - ("GREEK CAPITAL LETTER ETA" "0397") - ("GREEK CAPITAL LETTER THETA" "0398") - ("GREEK CAPITAL LETTER IOTA" "0399") - ("GREEK CAPITAL LETTER KAPPA" "039A") - ("GREEK CAPITAL LETTER LAMDA" "039B") - ("GREEK CAPITAL LETTER MU" "039C") - ("GREEK CAPITAL LETTER NU" "039D") - ("GREEK CAPITAL LETTER XI" "039E") - ("GREEK CAPITAL LETTER OMICRON" "039F") - ("GREEK CAPITAL LETTER PI" "03A0") - ("GREEK CAPITAL LETTER RHO" "03A1") - ("GREEK CAPITAL LETTER SIGMA" "03A3") - ("GREEK CAPITAL LETTER TAU" "03A4") - ("GREEK CAPITAL LETTER UPSILON" "03A5") - ("GREEK CAPITAL LETTER PHI" "03A6") - ("GREEK CAPITAL LETTER CHI" "03A7") - ("GREEK CAPITAL LETTER PSI" "03A8") - ("GREEK CAPITAL LETTER OMEGA" "03A9") - ("GREEK SMALL LETTER ALPHA" "03B1") - ("GREEK SMALL LETTER BETA" "03B2") - ("GREEK SMALL LETTER GAMMA" "03B3") - ("GREEK SMALL LETTER DELTA" "03B4") - ("GREEK SMALL LETTER EPSILON" "03B5") - ("GREEK SMALL LETTER ZETA" "03B6") - ("GREEK SMALL LETTER ETA" "03B7") - ("GREEK SMALL LETTER THETA" "03B8") - ("GREEK SMALL LETTER IOTA" "03B9") - ("GREEK SMALL LETTER KAPPA" "03BA") - ("GREEK SMALL LETTER LAMDA" "03BB") - ("GREEK SMALL LETTER MU" "03BC") - ("GREEK SMALL LETTER NU" "03BD") - ("GREEK SMALL LETTER XI" "03BE") - ("GREEK SMALL LETTER OMICRON" "03BF") - ("GREEK SMALL LETTER PI" "03C0") - ("GREEK SMALL LETTER RHO" "03C1") - ("GREEK SMALL LETTER FINAL SIGMA" "03C2") - ("GREEK SMALL LETTER SIGMA" "03C3") - ("GREEK SMALL LETTER TAU" "03C4") - ("GREEK SMALL LETTER UPSILON" "03C5") - ("GREEK SMALL LETTER PHI" "03C6") - ("GREEK SMALL LETTER CHI" "03C7") - ("GREEK SMALL LETTER PSI" "03C8") - ("GREEK SMALL LETTER OMEGA" "03C9") - ("GREEK BETA SYMBOL" "03D0") - ("GREEK THETA SYMBOL" "03D1") - ("GREEK PHI SYMBOL" "03D5") - ("GREEK PI SYMBOL" "03D6") - ("GREEK LETTER STIGMA" "03DA") - ("GREEK LETTER DIGAMMA" "03DC") - ("GREEK LETTER KOPPA" "03DE") - ("GREEK LETTER SAMPI" "03E0") - ("GREEK KAPPA SYMBOL" "03F0") - ("GREEK RHO SYMBOL" "03F1") - ("GREEK LUNATE SIGMA SYMBOL" "03F2") - ("GREEK LETTER YOT" "03F3") - ("TURNED GREEK SMALL LETTER IOTA" "2129")) - "Names and character codes for ISO-10646 unaccented Greek letters.") - -(defconst ISO-10646-chess - '(("WHITE CHESS KING" "2654") - ("WHITE CHESS QUEEN" "2655") - ("WHITE CHESS ROOK" "2656") - ("WHITE CHESS BISHOP" "2657") - ("WHITE CHESS KNIGHT" "2658") - ("WHITE CHESS PAWN" "2659") - ("BLACK CHESS KING" "265A") - ("BLACK CHESS QUEEN" "265B") - ("BLACK CHESS ROOK" "265C") - ("BLACK CHESS BISHOP" "265D") - ("BLACK CHESS KNIGHT" "265E") - ("BLACK CHESS PAWN" "265F")) - "Names and character codes for ISO-10646 chess pieces.") - -(defconst ISO-10646-cards - '(("BLACK SPADE SUIT" "2660") - ("WHITE HEART SUIT" "2661") - ("WHITE DIAMOND SUIT" "2662") - ("BLACK CLUB SUIT" "2663") - ("WHITE SPADE SUIT" "2664") - ("BLACK HEART SUIT" "2665") - ("BLACK DIAMOND SUIT" "2666") - ("WHITE CLUB SUIT" "2667")) - "Names and character codes for ISO-10646 playing cards.") - -(defun utf8-symbol () - "Insert a UTF-8 encoded symbol from ISO-10646." - (interactive) - (do-ISO-10646-symbol-type - (completing-read "Symbol category: " ISO-10646-symbol-types nil t))) - -(defun do-ISO-10646-symbol-type (category) - "Insert a UTF-8 encoded symbol from a given category." - (let ((category-var (intern (concat "ISO-10646-" category))) - (completion-ignore-case t)) - (hex-to-utf8 - (elt - (assoc - (completing-read "Name of the symbol: " - (symbol-value category-var) nil t) - (symbol-value category-var)) 1))))