| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 47427da commit e0d1bba
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,10 @@ | |||
| 1 | + 2000-11-29 Levente Novak <novak@jaguar.dote.hu> | ||
| 2 | + | ||
| 3 | + * docs/gnuplot.doc docs/gnuplot.texi docs/psdoc/README | ||
| 4 | + docs/psdoc/ps_guide.ps lisp/gnuplot-gui.el src/set.c src/term.c | ||
| 5 | + src/term_api.h term/post.trm: a patch enabling the PostScript | ||
| 6 | + terminal to use ISO-8859-2 encoding. | ||
| 7 | + | ||
| 1 | 8 | 2000-11-27 Alexander Mai <st002279@hrzpub.tu-darmstadt.de> | |
| 2 | 9 | ||
| 3 | 10 | * src/readline.c: readline.c did not built with HAVE_LIBREADLINE. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - C RCS $Id: gnuplot.doc,v 1.54 2000/11/24 17:08:15 amai Exp $ | ||
| 1 | + C RCS $Id: gnuplot.doc,v 1.55 2000/11/29 10:20:28 mikulik Exp $ | ||
| 2 | 2 | C 3 December 1998 | |
| 3 | 3 | C Copyright (C) 1986 - 1993, 1998 Thomas Williams, Colin Kelley | |
| 4 | 4 | C | |
@@ -3941,7 +3941,8 @@ C ... and restart the table: | |||
| 3941 | 3941 | The `set encoding` command selects a character encoding. Valid values are | |
| 3942 | 3942 | `default`, which tells a terminal to use its default; `iso_8859_1` (known in | |
| 3943 | 3943 | the PostScript world as `ISO-Latin1`), which is used on many Unix workstations | |
| 3944 | - and with MS-Windows; `cp850`, for OS/2; and `cp437`, for MS-DOS. | ||
| 3944 | + and with MS-Windows; `iso_8859_2`, used in Central and Eastern Europe; `cp850`, | ||
| 3945 | + for OS/2; and `cp437`, for MS-DOS. | ||
| 3945 | 3946 | ||
| 3946 | 3947 | Syntax: | |
| 3947 | 3948 | set encoding {<value>} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5307,7 +5307,8 @@ The second example sets the second variable to s. | |||
| 5307 | 5307 | The @ref{encoding} command selects a character encoding. Valid values are | |
| 5308 | 5308 | `default`, which tells a terminal to use its default; `iso_8859_1` (known in | |
| 5309 | 5309 | the PostScript world as `ISO-Latin1`), which is used on many Unix workstations | |
| 5310 | - and with MS-Windows; `cp850`, for OS/2; and `cp437`, for MS-DOS. | ||
| 5310 | + and with MS-Windows; `iso_8859_2`, used in Central and Eastern Europe; `cp850`, | ||
| 5311 | + for OS/2; and `cp437`, for MS-DOS. | ||
| 5311 | 5312 | ||
| 5312 | 5313 | Syntax: | |
| 5313 | 5314 | @example | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,9 +9,9 @@ ps_guide.ps | |||
| 9 | 9 | second is a table of the character codes. The table has the standard | |
| 10 | 10 | encoding (shown in Times-Roman), the Symbol and Zapf-Dingbats fonts, and | |
| 11 | 11 | the ISO-Latin1 (also known as ISO-8859-1) encoding. The last entry may | |
| 12 | - be changed to CP850 (for OS/2) or CP437 (for MS-DOS) by editing line #14 | ||
| 13 | - in the file. These non-standard encodings are selected via the "set | ||
| 14 | - encoding" command. | ||
| 12 | + be changed to ISO-Latin2 (also called as ISO-8859-2), CP850 (for OS/2) or | ||
| 13 | + CP437 (for MS-DOS) by editing line #14 in the file. These encodings are | ||
| 14 | + selected via the "set encoding" command. | ||
| 15 | 15 | ||
| 16 | 16 | ps_symbols.gpi | |
| 17 | 17 | is a gnuplot command file that generates ps_symbols. ps.ps_symbols.ps | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -395,7 +395,7 @@ See the doc-string for `gnuplot-gui-all-types'.") | |||
| 395 | 395 | '(("ROW,COLUMN,NORM" 'position " " "" 3))) | |
| 396 | 396 | (cons "encoding" | |
| 397 | 397 | '(("ENCODING" 'list " " "default" "iso_8859_1" | |
| 398 | - "cp850" "cp437"))) | ||
| 398 | + "iso_8859_2" "cp850" "cp437"))) | ||
| 399 | 399 | (cons "format" | |
| 400 | 400 | '(("AXIS" 'list " " "x" "y" "z" "xy" "x2" "y2") | |
| 401 | 401 | ("FORMAT" 'format " "))) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #ifndef lint | |
| 2 | - static char *RCSid() { return RCSid("$Id: set.c,v 1.45 2000/11/23 08:35:39 mikulik Exp $"); } | ||
| 2 | + static char *RCSid() { return RCSid("$Id: set.c,v 1.46 2000/11/29 10:20:31 mikulik Exp $"); } | ||
| 3 | 3 | #endif | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - set.c */ | |
@@ -1095,7 +1095,7 @@ set_encoding() | |||
| 1095 | 1095 | temp = lookup_table(&set_encoding_tbl[0],c_token); | |
| 1096 | 1096 | ||
| 1097 | 1097 | if (temp == S_ENC_INVALID) | |
| 1098 | - int_error(c_token, "expecting one of 'default', 'iso_8859_1', 'cp437' or 'cp850'"); | ||
| 1098 | + int_error(c_token, "expecting one of 'default', 'iso_8859_1', 'iso_8859_2', 'cp437' or 'cp850'"); | ||
| 1099 | 1099 | c_token++; | |
| 1100 | 1100 | } | |
| 1101 | 1101 | encoding = temp; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | #ifndef lint | |
| 2 | - static char *RCSid() { return RCSid("$Id: term.c,v 1.29 2000/11/20 09:47:07 mikulik Exp $"); } | ||
| 2 | + static char *RCSid() { return RCSid("$Id: term.c,v 1.30 2000/11/29 10:20:31 mikulik Exp $"); } | ||
| 3 | 3 | #endif | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - term.c */ | |
@@ -140,12 +140,13 @@ TBOOLEAN ignore_enhanced_text = FALSE; | |||
| 140 | 140 | enum set_encoding_id encoding; | |
| 141 | 141 | /* table of encoding names, for output of the setting */ | |
| 142 | 142 | const char *encoding_names[] = { | |
| 143 | - "default", "iso_8859_1", "cp437", "cp850", NULL }; | ||
| 143 | + "default", "iso_8859_1", "iso_8859_2", "cp437", "cp850", NULL }; | ||
| 144 | 144 | /* 'set encoding' options */ | |
| 145 | 145 | struct gen_table set_encoding_tbl[] = | |
| 146 | 146 | { | |
| 147 | 147 | { "def$ault", S_ENC_DEFAULT }, | |
| 148 | 148 | { "iso$_8859_1", S_ENC_ISO8859_1 }, | |
| 149 | + { "iso_8859_2", S_ENC_ISO8859_2 }, | ||
| 149 | 150 | { "cp4$37", S_ENC_CP437 }, | |
| 150 | 151 | { "cp8$50", S_ENC_CP850 }, | |
| 151 | 152 | { NULL, S_ENC_INVALID } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /* | |
| 2 | - * $Id: term_api.h,v 1.9 2000/11/23 18:25:48 lhecking Exp $ | ||
| 2 | + * $Id: term_api.h,v 1.10 2000/11/29 10:20:31 mikulik Exp $ | ||
| 3 | 3 | */ | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - term_api.h */ | |
@@ -169,7 +169,7 @@ typedef struct TERMENTRY { | |||
| 169 | 169 | #endif | |
| 170 | 170 | ||
| 171 | 171 | enum set_encoding_id { | |
| 172 | - S_ENC_DEFAULT, S_ENC_ISO8859_1, S_ENC_CP437, S_ENC_CP850, | ||
| 172 | + S_ENC_DEFAULT, S_ENC_ISO8859_1, S_ENC_ISO8859_2, S_ENC_CP437, S_ENC_CP850, | ||
| 173 | 173 | S_ENC_INVALID | |
| 174 | 174 | }; | |
| 175 | 175 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | /* | |
| 2 | - * $Id: post.trm,v 1.46 2000/11/20 09:47:08 mikulik Exp $ | ||
| 2 | + * $Id: post.trm,v 1.47 2000/11/29 10:20:32 mikulik Exp $ | ||
| 3 | 3 | */ | |
| 4 | 4 | ||
| 5 | 5 | /* GNUPLOT - post.trm */ | |
@@ -522,6 +522,9 @@ int can_reencode; | |||
| 522 | 522 | case S_ENC_ISO8859_1: | |
| 523 | 523 | recode = "reencodeISO def\n"; | |
| 524 | 524 | break; | |
| 525 | + case S_ENC_ISO8859_2: | ||
| 526 | + recode = "reencodeISO2 def\n"; | ||
| 527 | + break; | ||
| 525 | 528 | case S_ENC_CP437: | |
| 526 | 529 | recode = "reencodeCP437 def\n"; | |
| 527 | 530 | break; | |
@@ -796,6 +799,53 @@ const char **dict; /* extra entries for the dictionary */ | |||
| 796 | 799 | "] def\n", | |
| 797 | 800 | NULL }; | |
| 798 | 801 | ||
| 802 | + /* Encoding for ISO-8859-2 (also called as Latin-2), with */ | ||
| 803 | + /* minor differences to "true" ISO-8859-2 (*commaaccent */ | ||
| 804 | + /* instead of *cedilla for sStT -> incorrect in ISO-8859-2, */ | ||
| 805 | + /* the standard will probably be modified in this respect) */ | ||
| 806 | + /* Levente NOV�K <novak@jaguar.dote.hu> */ | ||
| 807 | + | ||
| 808 | + static const char GPFAR * GPFAR PS_iso_8859_2_encoding[] = { | ||
| 809 | + "/reencodeISO2 {\n", | ||
| 810 | + "dup dup findfont dup length dict begin\n", | ||
| 811 | + "{ 1 index /FID ne { def }{ pop pop } ifelse } forall\n", | ||
| 812 | + "currentdict /CharStrings known {\n", | ||
| 813 | + "\tCharStrings /Idieresis known {\n", | ||
| 814 | + "\t\t/Encoding ISOLatin2Encoding def } if\n} if\n", | ||
| 815 | + "currentdict end definefont\n", | ||
| 816 | + "} def\n", | ||
| 817 | + "/ISOLatin2Encoding [\n", | ||
| 818 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 819 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 820 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 821 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 822 | + "/space/exclam/quotedbl/numbersign/dollar/percent/ampersand/quoteright\n", | ||
| 823 | + "/parenleft/parenright/asterisk/plus/comma/hyphen/period/slash\n", | ||
| 824 | + "/zero/one/two/three/four/five/six/seven/eight/nine/colon/semicolon\n", | ||
| 825 | + "/less/equal/greater/question/at/A/B/C/D/E/F/G/H/I/J/K/L/M\n", | ||
| 826 | + "/N/O/P/Q/R/S/T/U/V/W/X/Y/Z/bracketleft/backslash/bracketright\n", | ||
| 827 | + "/asciicircum/underscore/quoteleft/a/b/c/d/e/f/g/h/i/j/k/l/m\n", | ||
| 828 | + "/n/o/p/q/r/s/t/u/v/w/x/y/z/braceleft/bar/braceright/asciitilde\n", | ||
| 829 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 830 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 831 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 832 | + "/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef/.notdef\n", | ||
| 833 | + "/nbspace/Aogonek/breve/Lslash/currency/Lcaron/Sacute/section\n", | ||
| 834 | + "/dieresis/Scaron/Scommaaccent/Tcaron/Zacute/hyphen/Zcaron/Zdotaccent\n", | ||
| 835 | + "/degree/aogonek/ogonek/lslash/acute/lcaron/sacute/caron/cedilla\n", | ||
| 836 | + "/scaron/scommaaccent/tcaron/zacute/hungarumlaut/zcaron/zdotaccent\n", | ||
| 837 | + "/Racute/Aacute/Acircumflex/Abreve/Adieresis/Lacute/Cacute/Ccedilla\n", | ||
| 838 | + "/Ccaron/Eacute/Eogonek/Edieresis/Ecaron/Iacute/Icircumflex/Dcaron\n", | ||
| 839 | + "/Dcroat/Nacute/Ncaron/Oacute/Ocircumflex/Ohungarumlaut/Odieresis\n", | ||
| 840 | + "/multiply/Rcaron/Uring/Uacute/Uhungarumlaut/Udieresis/Yacute\n", | ||
| 841 | + "/Tcommaaccent/germandbls/racute/aacute/acircumflex/abreve/adieresis\n", | ||
| 842 | + "/lacute/cacute/ccedilla/ccaron/eacute/eogonek/edieresis/ecaron\n", | ||
| 843 | + "/iacute/icircumflex/dcaron/dcroat/nacute/ncaron/oacute/ocircumflex\n", | ||
| 844 | + "/ohungarumlaut/odieresis/divide/rcaron/uring/uacute/uhungarumlaut\n", | ||
| 845 | + "/udieresis/yacute/tcommaaccent/dotaccent\n", | ||
| 846 | + "] def\n", | ||
| 847 | + NULL }; | ||
| 848 | + | ||
| 799 | 849 | /* encoding for code page 437 */ | |
| 800 | 850 | /* */ | |
| 801 | 851 | /* version 1.0: - Mainly letters are mapped. The following positions */ | |
@@ -843,7 +893,7 @@ NULL }; | |||
| 843 | 893 | "/.notdef/germandbls/.notdef/.notdef/.notdef/.notdef/mu/.notdef\n", | |
| 844 | 894 | "/.notdef/.notdef/.notdef/.notdef/infinity/.notdef/.notdef/.notdef\n", | |
| 845 | 895 | "/.notdef/plusminus/greaterequal/lessequal/.notdef/.notdef/divide/.notdef\n", | |
| 846 | - "/degree/bullet/periodcentered/.notdef/nsuperior/twosuperior/.notdef\n", | ||
| 896 | + "/degree/bullet/periodcentered/.notdef/nsuperior/twosuperior/.notdef/.notdef\n", | ||
| 847 | 897 | "] def\n", | |
| 848 | 898 | NULL }; | |
| 849 | 899 | ||
@@ -891,7 +941,7 @@ NULL }; | |||
| 891 | 941 | "/Oacute/germandbls/Ocircumflex/Ograve/otilde/Otilde/mu/thorn\n", | |
| 892 | 942 | "/Thorn/Uacute/Ucircumflex/Ugrave/yacute/Yacute/macron/acute\n", | |
| 893 | 943 | "/hyphen/plusminus/equal/threequarters/paragraph/section/divide/.notdef\n", | |
| 894 | - "/degree/.notdef/periodcentered/onesuperior/threesuperior/twosuperior/.notdef\n", | ||
| 944 | + "/degree/.notdef/periodcentered/onesuperior/threesuperior/twosuperior/.notdef/.notdef\n", | ||
| 895 | 945 | "] def\n", | |
| 896 | 946 | NULL }; | |
| 897 | 947 | ||
@@ -939,6 +989,11 @@ NULL }; | |||
| 939 | 989 | fprintf(gpoutfile,"%s",PS_iso_8859_1_encoding[i]); | |
| 940 | 990 | } | |
| 941 | 991 | } | |
| 992 | + if (uses_fonts && (encoding == S_ENC_ISO8859_2)) { | ||
| 993 | + for (i = 0; PS_iso_8859_2_encoding[i] != NULL; i++) { | ||
| 994 | + fprintf(gpoutfile,"%s",PS_iso_8859_2_encoding[i]); | ||
| 995 | + } | ||
| 996 | + } | ||
| 942 | 997 | if (uses_fonts && (encoding == S_ENC_CP437)) { /* JFi */ | |
| 943 | 998 | for (i = 0; PS_cp_437_encoding[i] != NULL; i++) { | |
| 944 | 999 | fprintf(gpoutfile,"%s",PS_cp_437_encoding[i]); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments