annotate lisp/ps-print-def.el @ 26207:6526ea25c4dd

*** empty log message ***
author Gerd Moellmann <gerd@gnu.org>
date Tue, 26 Oct 1999 23:28:36 +0000
parents dc1a8abc8c69
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26113
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
1 ;;; ps-print-def.el --- Common definitions for ps-print package
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
2
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
3 ;; Copyright (C) 1999 Free Software Foundation, Inc.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
4
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
5 ;; Author: Vinicius Jose Latorre <vinicius@cpqd.com.br>
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
6 ;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br>
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
7 ;; Keywords: wp, print, PostScript
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
8 ;; Time-stamp: <99/07/03 20:16:48 vinicius>
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
9 ;; Version: 1.0
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
10
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
11 ;; This file is part of GNU Emacs.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
12
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
13 ;; GNU Emacs is free software; you can redistribute it and/or modify
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
14 ;; it under the terms of the GNU General Public License as published by
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
15 ;; the Free Software Foundation; either version 2, or (at your option)
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
16 ;; any later version.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
17
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
18 ;; GNU Emacs is distributed in the hope that it will be useful,
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
19 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
21 ;; GNU General Public License for more details.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
22
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
23 ;; You should have received a copy of the GNU General Public License
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
24 ;; along with GNU Emacs; see the file COPYING. If not, write to the
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
25 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
26 ;; Boston, MA 02111-1307, USA.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
27
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
28 ;;; Commentary:
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
29
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
30 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
31 ;;
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
32 ;; Common definitions for ps-print package.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
33 ;;
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
34 ;; See ps-print.el, ps-mule.el and ps-bdf.el for documentation.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
35 ;;
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
36 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
37
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
38 ;;; Code:
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
39
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
40
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
41 ;; `ps-multibyte-buffer' definition should be placed in `ps-mule', but
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
42 ;; `ps-print' and `ps-mule' both use it so it's here.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
43
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
44 (defcustom ps-multibyte-buffer nil
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
45 "*Specify the multi-byte buffer handling.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
46
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
47 Valid values are:
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
48
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
49 nil This is the value to use the default settings which
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
50 is by default for printing buffer with only ASCII
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
51 and Latin characters. The default setting can be
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
52 changed by setting the variable
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
53 `ps-mule-font-info-database-default' differently.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
54 The initial value of this variable is
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
55 `ps-mule-font-info-database-latin' (see
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
56 documentation).
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
57
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
58 `non-latin-printer' This is the value to use when you have a Japanese
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
59 or Korean PostScript printer and want to print
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
60 buffer with ASCII, Latin-1, Japanese (JISX0208 and
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
61 JISX0201-Kana) and Korean characters. At present,
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
62 it was not tested the Korean characters printing.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
63 If you have a korean PostScript printer, please,
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
64 test it.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
65
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
66 `bdf-font' This is the value to use when you want to print
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
67 buffer with BDF fonts. BDF fonts include both latin
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
68 and non-latin fonts. BDF (Bitmap Distribution
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
69 Format) is a format used for distributing X's font
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
70 source file. BDF fonts are included in
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
71 `intlfonts-1.1' which is a collection of X11 fonts
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
72 for all characters supported by Emacs. In order to
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
73 use this value, be sure to have installed
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
74 `intlfonts-1.1' and set the variable
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
75 `bdf-directory-list' appropriately (see ps-bdf.el for
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
76 documentation of this variable).
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
77
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
78 `bdf-font-except-latin' This is like `bdf-font' except that it is used
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
79 PostScript default fonts to print ASCII and Latin-1
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
80 characters. This is convenient when you want or
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
81 need to use both latin and non-latin characters on
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
82 the same buffer. See `ps-font-family',
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
83 `ps-header-font-family' and `ps-font-info-database'.
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
84
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
85 Any other value is treated as nil."
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
86 :type '(choice :tag "Multi-Byte Buffer"
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
87 (const non-latin-printer) (const bdf-font)
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
88 (const bdf-font-except-latin) (other :tag "nil" nil))
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
89 :group 'ps-print-font)
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
90
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
91
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
92 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
93
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
94 (provide 'ps-print-def)
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
95
dc1a8abc8c69 New file: common definitions for all parts of ps-print.
Kenichi Handa <handa@m17n.org>
parents:
diff changeset
96 ;;; ps-print-def.el ends here