ALT Linux Bugzilla
– Attachment 1229 Details for
Bug 8413
[PATCH] Нужно добавить поддержку кодировки cp1251
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Патч для поддержки cp1251
a2ps-cp1251.patch (text/plain), 6.54 KB, created by
Alexei V. Mezin
on 2005-11-04 04:53:24 MSK
(
hide
)
Description:
Патч для поддержки cp1251
Filename:
MIME Type:
Creator:
Alexei V. Mezin
Created:
2005-11-04 04:53:24 MSK
Size:
6.54 KB
patch
obsolete
>diff -Naur a2ps/afm/make_fonts_map.sh a2ps_cp1251/afm/make_fonts_map.sh >--- a2ps/afm/make_fonts_map.sh Mon Feb 25 13:04:53 2002 >+++ a2ps_cp1251/afm/make_fonts_map.sh Sun Mar 9 12:07:32 2003 >@@ -58,7 +58,7 @@ > do > # Extract the font name. > name=`sed -n -e '/^FontName/{ >-s/FontName[ ]*\([-a-zA-Z]*\).*/\1/p >+s/FontName[ ]*\([-a-zA-Z0-9]*\).*/\1/p > q > }' $file` > shortname=`basename $file | sed -e 's/\.[^\.]*$//g'` >diff -Naur a2ps/encoding/encoding.map a2ps_cp1251/encoding/encoding.map >--- a2ps/encoding/encoding.map Fri May 14 15:48:27 1999 >+++ a2ps_cp1251/encoding/encoding.map Sun Mar 9 12:09:49 2003 >@@ -102,6 +102,13 @@ > 1250 ms-cp1250 > cep ms-cp1250 > >+# MicroSoft's CP 1251 >+ms-cp1251 ms-cp1251 >+cp1251 ms-cp1251 >+1251 ms-cp1251 >+windows-1251 ms-cp1251 >+microsoft-cp1251 ms-cp1251 >+ > # IBM PC > ibm-cp850 ibm-cp850 > cp850 ibm-cp850 >diff -Naur a2ps/encoding/ms-cp1251.edf a2ps_cp1251/encoding/ms-cp1251.edf >--- a2ps/encoding/ms-cp1251.edf Thu Jan 1 03:00:00 1970 >+++ a2ps_cp1251/encoding/ms-cp1251.edf Sun Mar 9 12:03:29 2003 >@@ -0,0 +1,74 @@ >+# Description of the CP1251 encoding for a2ps. >+# Created by Hleb Valoska. >+# mailto: el_globus@tut.by >+# >+# Copyrights are shit! Use this file in any way you need. >+ >+ >+Name: MS-CP1251 >+ >+Documentation >+ >+Microsoft's CP1251 encoding for a2ps. >+ >+The CP1251 set is used for various forms of the Cyrillic alphabet.It >+supports Belarusan, Bulgarian, Macedonian, Russian, Serbian and Ukrainian. >+This encoding is usual in Belarusan, Ukrainian and Bulgarian UNiX world. >+ >+EndDocumentation >+ >+# Regular fonts don't support Cyrillic glyphs. Cyrillic ISO fonts >+# in a2ps distribution don't support every glyph found in CP1251. >+# So we need to use free fonts from URW++ with additions made by >+# Valek Filippov. This fonts comes with ghostscript distribution. >+ >+Default: NimbusMonL-Regu >+ >+Substitute: Courier NimbusMonL-Regu >+Substitute: Courier-Bold NimbusMonL-Bold >+Substitute: Courier-BoldOblique NimbusMonL-BoldObli >+Substitute: Courier-Oblique NimbusMonL-ReguObli >+ >+Substitute: Times-Roman NimbusRomanNo9L-Regu >+Substitute: Times-Bold NimbusRomNo9L-Medi >+Substitute: Times-Italic NimbusRomNo9L-ReguItal >+Substitute: Times-BoldItalic NimbusRomNo9L-MediItal >+ >+Substitute: Helvetica NimbusSansL-Regu >+Substitute: Helvetica-Bold NimbusSansL-Bold >+Substitute: Helvetica-Oblique NimbusSansL-ReguItal >+Substitute: Helvetica-BoldOblique NimbusSansL-BoldItal >+ >+Vector: >+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef >+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef >+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef >+.notdef .notdef .notdef .notdef .notdef .notdef .notdef .notdef >+space exclam quotedbl numbersign dollar percent ampersand quoteright >+parenleft parenright asterisk plus comma minus period slash >+zero one two three four five six seven >+eight nine colon semicolon less equal greater question >+at A B C D E F G >+H I J K L M N O >+P Q R S T U V W >+X Y Z bracketleft backslash bracketright asciicircum underscore >+quoteleft a b c d e f g >+h i j k l m n o >+p q r s t u v w >+x y z braceleft bar braceright tilde .notdef >+afii10051 afii10052 quotesinglbase afii10100 quotedblbase ellipsis dagger daggerdbl >+Euro perthousand afii10058 guilsinglleft afii10059 afii10061 afii10060 afii10145 >+afii10099 quoteleft quoteright quotedblleft quotedblright bullet endash emdash >+tilde trademark afii10106 guilsinglright afii10107 afii10109 afii10108 afii10193 >+space afii10062 afii10110 afii10057 currency afii10050 brokenbar section >+afii10023 copyright afii10053 guillemotleft logicalnot hyphen registered afii10056 >+degree plusminus afii10055 afii10103 afii10098 mu paragraph periodcentered >+afii10071 afii61352 afii10101 guillemotright afii10105 afii10054 afii10102 afii10104 >+afii10017 afii10018 afii10019 afii10020 afii10021 afii10022 afii10024 afii10025 >+afii10026 afii10027 afii10028 afii10029 afii10030 afii10031 afii10032 afii10033 >+afii10034 afii10035 afii10036 afii10037 afii10038 afii10039 afii10040 afii10041 >+afii10042 afii10043 afii10044 afii10045 afii10046 afii10047 afii10048 afii10049 >+afii10065 afii10066 afii10067 afii10068 afii10069 afii10070 afii10072 afii10073 >+afii10074 afii10075 afii10076 afii10077 afii10078 afii10079 afii10080 afii10081 >+afii10082 afii10083 afii10084 afii10085 afii10086 afii10087 afii10088 afii10089 >+afii10090 afii10091 afii10092 afii10093 afii10094 afii10095 afii10096 afii10097 >diff -Naur a2ps-4.13/encoding/Makefile.am.original a2ps-4.13/encoding/Makefile.am >--- a2ps-4.13/encoding/Makefile.am.original 2005-11-04 02:23:50 +0300 >+++ a2ps-4.13/encoding/Makefile.am 2005-11-04 02:15:39 +0300 >@@ -14,7 +14,7 @@ > # of many users. Don't pay attention to the names. > major_encodings = ascii.edf iso1.edf > minor_encodings = \ >-ms-cp1250.edf hp.edf mac.edf ibm-cp437.edf ibm-cp850.edf iso2.edf \ >+ms-cp1251.edf ms-cp1250.edf hp.edf mac.edf ibm-cp437.edf ibm-cp850.edf iso2.edf \ > iso3.edf iso4.edf iso5.edf iso7.edf iso9.edf iso10.edf iso13.edf \ > iso15.edf koi8.edf > >diff -Naur a2ps-4.13/contrib/emacs/Makefile.am.original a2ps-4.13/contrib/emacs/Makefile.am >--- a2ps-4.13/contrib/emacs/Makefile.am.original 1999-11-13 17:09:20 +0300 >+++ a2ps-4.13/contrib/emacs/Makefile.am 2005-11-04 02:57:42 +0300 >@@ -1,3 +1,3 @@ > ## Process this file with automake to produce Makefile.in > >-dist_lisp_LISP = a2ps.el a2ps-print.el >+lisp_LISP = a2ps.el a2ps-print.el >diff -Naur a2ps-4.13/Makefile.am.original a2ps-4.13/Makefile.am >--- a2ps-4.13/Makefile.am.original 2000-02-04 22:53:09 +0300 >+++ a2ps-4.13/Makefile.am 2005-11-04 03:20:45 +0300 >@@ -16,7 +16,7 @@ > ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. > > ## Process this file with automake to produce Makefile.in >-AUTOMAKE_OPTIONS = check-news 1.4a dist-bzip2 readme-alpha >+AUTOMAKE_OPTIONS = check-news 1.4-p6 readme-alpha > > ## Make sure to drop doc at the end: it causes may problems, so > ## let's do the maximum before it > >diff -Naur a2ps-4.13/etc/Makefile.am.original a2ps-4.13/etc/Makefile.am >--- a2ps-4.13/etc/Makefile.am.original 1999-11-30 11:20:09 +0300 >+++ a2ps-4.13/etc/Makefile.am 2005-11-04 04:16:24 +0300 >@@ -2,7 +2,7 @@ > ## Makefile for a2ps' etc library directory. > > ogonkifydir=$(datadir)/ogonkify >-libpath = $(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir) >+libpath = $(pkgdatadir)/sheets:$(pkgdatadir)/ps:$(pkgdatadir)/encoding:$(pkgdatadir)/afm:$(ogonkifydir)/afm:$(pkgdatadir)/ppd:$(pkgdatadir)/fonts:$(ogonkifydir)/fonts:$(pkgdatadir):/usr/share/fonts/default/Type1 > > pkgdata_DATA = README >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8413
: 1229