?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/ps-mule.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:28 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/ps-mule.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307\310\311&\207" [require ps-print custom-declare-variable ps-multibyte-buffer nil "Specifies the multi-byte buffer handling.\n\nValid values are:\n\n nil This is the value to use the default settings;\n by default, this only works to print buffers with\n only ASCII and Latin characters. But this default\n setting can be changed by setting the variable\n `ps-mule-font-info-database-default' differently.\n The initial value of this variable is\n `ps-mule-font-info-database-latin' (see\n documentation).\n\n `non-latin-printer' This is the value to use when you have a Japanese\n or Korean PostScript printer and want to print\n buffer with ASCII, Latin-1, Japanese (JISX0208 and\n JISX0201-Kana) and Korean characters. At present,\n it was not tested with the Korean characters\n printing. If you have a korean PostScript printer,\n please, test it.\n\n `bdf-font' This is the value to use when you want to print\n buffer with BDF fonts. BDF fonts include both latin\n and non-latin fonts. BDF (Bitmap Distribution\n Format) is a format used for distributing X's font\n source file. BDF fonts are included in\n `intlfonts-1.2' which is a collection of X11 fonts\n for all characters supported by Emacs. In order to\n use this value, be sure to have installed\n `intlfonts-1.2' and set the variable\n `bdf-directory-list' appropriately (see ps-bdf.el for\n documentation of this variable).\n\n `bdf-font-except-latin' This is like `bdf-font' except that it uses\n PostScript default fonts to print ASCII and Latin-1\n characters. This is convenient when you want or\n need to use both latin and non-latin characters on\n the same buffer. See `ps-font-family',\n `ps-header-font-family' and `ps-font-info-database'.\n\nAny other value is treated as nil." :type (choice (const non-latin-printer) (const bdf-font) (const bdf-font-except-latin) (const :tag "nil" nil)) :group ps-print-font] 8) #@1536 Alist of charsets with the corresponding font information. Each element has the form: (CHARSET (FONT-TYPE FONT-SRC FONT-NAME ENCODING BYTES) ...) Where CHARSET is a charset (symbol) for this font family, FONT-TYPE is a font type: normal, bold, italic, or bold-italic. FONT-SRC is a font source: builtin, bdf, vflib, or nil. If FONT-SRC is builtin, FONT-NAME is a built-in PostScript font name. If FONT-SRC is bdf, FONT-NAME is a BDF font file name, or a list of alternative font names. To use this font, the external library `ps-bdf' is required. If FONT-SRC is vflib, FONT-NAME is the name of a font that VFlib knows. To use this font, the external library `vflib' is required. If FONT-SRC is nil, a proper ASCII font in the variable `ps-font-info-database' is used. This is useful for Latin-1 characters. ENCODING is a coding system to encode a string of characters of CHARSET into a proper string matching an encoding of the specified font. ENCODING may be a function that does this encoding. In this case, the function is called with one argument, the string to encode, and it should return an encoded string. BYTES specifies how many bytes each character has in the encoded byte sequence; it should be 1 or 2. All multi-byte characters are printed by fonts specified in this database regardless of a font family of ASCII characters. The exception is Latin-1 characters which are printed by the same font as ASCII characters, thus obey font family. See also the variable `ps-font-info-database'. (defvar ps-mule-font-info-database nil (#$ . 2628)) #@68 Sample setting of `ps-mule-font-info-database' to use latin fonts. (defconst ps-mule-font-info-database-latin '((iso-8859-1 (normal nil nil))) (#$ . 4221)) #@63 The default setting to use when `ps-multibyte-buffer' is nil. (custom-declare-variable 'ps-mule-font-info-database-default 'ps-mule-font-info-database-latin '(#$ . 4383) :type '(symbol :tag "Multi-Byte Buffer Database Font Default") :group 'ps-print-font) #@149 Sample setting of the `ps-mule-font-info-database' to use builtin PS font. Currently, data for Japanese and Korean PostScript printers are listed. (defconst ps-mule-font-info-database-ps '((katakana-jisx0201 (normal builtin "Ryumin-Light.Katakana") (bold builtin "GothicBBB-Medium.Katakana") (bold-italic builtin "GothicBBB-Medium.Katakana")) (latin-jisx0201 (normal builtin "Ryumin-Light.Hankaku") (bold builtin "GothicBBB-Medium.Hankaku")) (japanese-jisx0208 (normal builtin "Ryumin-Light-H") (bold builtin "GothicBBB-Medium-H")) (korean-ksc5601 (normal builtin "Munhwa-Regular-KSC-EUC-H") (bold builtin "Munhwa-Bold-KSC-EUC-H"))) (#$ . 4646)) #@489 Sample setting of the `ps-mule-font-info-database' to use BDF fonts. BDF (Bitmap Distribution Format) is a format used for distributing X's font source file. Current default value list for BDF fonts is included in `intlfonts-1.2' which is a collection of X11 fonts for all characters supported by Emacs. Using this list as default value to `ps-mule-font-info-database', all characters including ASCII and Latin-1 are printed by BDF fonts. See also `ps-mule-font-info-database-ps-bdf'. (defconst ps-mule-font-info-database-bdf '((iso-8859-1 (normal bdf ("lt1-24-etl.bdf" "etl24-latin1.bdf")) (bold bdf ("lt1-16b-etl.bdf" "etl16b-latin1.bdf")) (italic bdf ("lt1-16i-etl.bdf" "etl16i-latin1.bdf")) (bold-italic bdf ("lt1-16bi-etl.bdf" "etl16bi-latin1.bdf"))) (iso-8859-2 (normal bdf ("lt2-24-etl.bdf" "etl24-latin2.bdf"))) (iso-8859-3 (normal bdf ("lt3-24-etl.bdf" "etl24-latin3.bdf"))) (iso-8859-4 (normal bdf ("lt4-24-etl.bdf" "etl24-latin4.bdf"))) (thai-tis620 (normal bdf ("thai24.bdf" "thai-24.bdf") iso-8859-11)) (greek-iso8859-7 (normal bdf ("grk24-etl.bdf" "etl24-greek.bdf") iso-8859-7)) (hebrew-iso8859-8 (normal bdf ("heb24-etl.bdf" "etl24-hebrew.bdf") iso-8859-8)) (jisx0201 (normal bdf "12x24rk.bdf" jisx0201)) (cyrillic-iso8859-5 (normal bdf ("cyr24-etl.bdf" "etl24-cyrillic.bdf") iso-8859-5)) (iso-8859-9 (normal bdf ("lt5-24-etl.bdf" "etl24-latin5.bdf") iso-8859-9)) (chinese-gb2312 (normal bdf "gb24st.bdf")) (japanese-jisx0208 (normal bdf "jiskan24.bdf")) (korean-ksc5601 (normal bdf "hanglm24.bdf")) (japanese-jisx0212 (normal bdf ("jksp40.bdf" "jisksp40.bdf"))) (chinese-cns11643-1 (normal bdf ("cns1-40.bdf" "cns-1-40.bdf"))) (chinese-cns11643-2 (normal bdf ("cns2-40.bdf" "cns-2-40.bdf"))) (big5 (normal bdf "taipei24.bdf")) (chinese-sisheng (normal bdf ("sish24-etl.bdf" "etl24-sisheng.bdf"))) (ipa (normal bdf ("ipa24-etl.bdf" "etl24-ipa.bdf") ipa)) (viscii (normal bdf ("visc24-etl.bdf" "etl24-viscii.bdf"))) (arabic-digit (normal bdf ("arab24-0-etl.bdf" "etl24-arabic0.bdf"))) (arabic-1-column (normal bdf ("arab24-1-etl.bdf" "etl24-arabic1.bdf"))) (lao (normal bdf ("lao24-mule.bdf" "mule-lao-24.bdf") ps-mule-encode-lao 1)) (arabic-2-column (normal bdf ("arab24-2-etl.bdf" "etl24-arabic2.bdf"))) (devanagari-cdac (normal bdf "dvsr0ntt-32.bdf")) (malayalam-cdac (normal bdf "mlkr0ntt-32.bdf")) (tamil-cdac (normal bdf "tmvl0ntt-32.bdf")) (indian-is13194 (normal bdf ("isci24-mule.bdf" "mule-iscii-24.bdf"))) (indian-1-column (normal bdf ("ind1c24-mule.bdf" "mule-indian-1col-24.bdf"))) (ethiopic (normal bdf ("ethio16f-uni.bdf" "ethiomx24f-uni.bdf") unicode-bmp)) (chinese-cns11643-3 (normal bdf ("cns3-40.bdf" "cns-3-40.bdf"))) (chinese-cns11643-4 (normal bdf ("cns4-40.bdf" "cns-4-40.bdf"))) (chinese-cns11643-5 (normal bdf ("cns5-40.bdf" "cns-5-40.bdf"))) (chinese-cns11643-6 (normal bdf ("cns6-40.bdf" "cns-6-40.bdf"))) (chinese-cns11643-7 (normal bdf ("cns7-40.bdf" "cns-7-40.bdf"))) (indian-2-column (normal bdf ("ind24-mule.bdf" "mule-indian-24.bdf"))) (tibetan (normal bdf ("tib24p-mule.bdf" "tib24-mule.bdf" "mule-tibmdx-24.bdf"))) (unicode-bmp (normal bdf "etl24-unicode.bdf"))) (#$ . 5300)) #@528 Sample setting of the `ps-mule-font-info-database' to use BDF fonts. Current default value list for BDF fonts is included in `intlfonts-1.2' which is a collection of X11 fonts for all characters supported by Emacs. Using this list as default value to `ps-mule-font-info-database', all characters except ASCII and Latin-1 characters are printed with BDF fonts. ASCII and Latin-1 characters are printed with PostScript font specified by `ps-font-family' and `ps-header-font-family'. See also `ps-mule-font-info-database-bdf'. (defconst ps-mule-font-info-database-ps-bdf (byte-code "@ AAB\207" [ps-mule-font-info-database-latin ps-mule-font-info-database-bdf] 2) (#$ . 8436)) (defalias 'ps-mule-font-spec-id #[(font-spec) "\301H\207" [font-spec 0] 2]) (put 'ps-mule-font-spec-id 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-charset #[(font-spec) "\301H\207" [font-spec 1] 2]) (put 'ps-mule-font-spec-charset 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-font-id #[(font-spec) "\301H\207" [font-spec 2] 2]) (put 'ps-mule-font-spec-font-id 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-src #[(font-spec) "\301H\207" [font-spec 3] 2]) (put 'ps-mule-font-spec-src 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-name #[(font-spec) "\301H\207" [font-spec 4] 2]) (put 'ps-mule-font-spec-name 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-set-name #[(font-spec name) "\302 I\207" [font-spec name 4] 3]) (put 'ps-mule-font-spec-set-name 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-encoding #[(font-spec) "\301H\207" [font-spec 5] 2]) (put 'ps-mule-font-spec-encoding 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-bytes #[(font-spec) "\301H\207" [font-spec 6] 2]) (put 'ps-mule-font-spec-bytes 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-extra #[(font-spec) "\301H\207" [font-spec 7] 2]) (put 'ps-mule-font-spec-extra 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-font-spec-set-extra #[(font-spec extra) "\302 I\207" [font-spec extra 7] 3]) (put 'ps-mule-font-spec-set-extra 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-encode-lao #[(char) "\301Z\207" [char 3552] 2]) (defalias 'ps-mule-encode-char #[(char font-spec) "\211\303H)\304 !\203 \305\n \"\202! \306 !\203 \n!\202! \n)\207" [font-spec encoding char 5 charsetp encode-char fboundp] 4]) (defvar ps-mule-font-spec-tables nil) (defconst ps-mule-font-number-to-type [0 1 2 3 1 0 0]) #@198 Return a font spec for printing CHAR with FONT-SPEC-TABLE. FONT-SPEC, if non-nil, is a font spec to try at first. See the documentation of `ps-mule-font-spec-tables' for the format of font spec. (defalias 'ps-mule-get-font-spec #[(char font-spec-table font-spec) " H\2063 \211\303W\203 \304\305\"@A\2062 \n\203+ \306 \n\211\307H)\"\203+ \n\2062 \310\311\215\2062 \312I\207" [font-spec-table char font-spec 256 char-table-extra-slot 0 encode-char 1 tag (byte-code "\304\305\"\306\211\205$ \n@\307 @\"\203 \310\311 A\"\210\nA\211\204 \306*\207" [font-spec-table elt --dolist-tail-- char char-table-extra-slot 0 nil encode-char throw tag] 4) t] 7 (#$ . 11054)]) (put 'ps-mule-get-font-spec 'byte-optimizer 'byte-compile-inline-expand) #@1276 Alist of external libraries information to support PostScript printing. Each element has the form: (FONT-SRC FEATURE INITIALIZED-P PROLOGUE-FUNC CHECK-FUNC FONT-FUNC GLYPH-FUNC) FONT-SRC is the font source: builtin, bdf, pcf, or vflib. FEATURE is the feature that provide a facility to handle FONT-SRC. Except for `builtin' FONT-SRC, this feature is automatically `require'd before handling FONT-SRC. Currently, we only have the feature `ps-bdf'. INITIALIZED-P indicates if this library is initialized or not. PROLOGUE-FUNC is a function to generate PostScript code which define several PostScript procedures that will be called by FONT-FUNC and GLYPHS-FUNC. It is called with no argument, and should return a list of strings. CHECK-FUNC is a function to check if a font is available or not. It is called with one argument FONT-SPEC, and should return non-nil if and only if the font specified in FONT-SPEC is available. FONT-FUNC is a function to generate PostScript code which define a new font. It is called with one argument FONT-SPEC, and should return a list of strings. GLYPH-FUNC is a function to generate PostScript code which define glyphs of characters. It is called with two arguments FONT-SPEC and CODE, and should return a list of strings. (defconst ps-mule-external-libraries '((builtin nil nil nil nil nil nil) (bdf ps-bdf nil bdf-generate-prologue bdf-check-font bdf-generate-font bdf-generate-glyph) (pcf nil nil pcf-generate-prologue pcf-check-font pcf-generate-font pcf-generate-glyph) (vflib nil nil vflib-generate-prologue vflib-check-font vflib-generate-font vflib-generate-glyphs)) (#$ . 11810)) (defalias 'ps-mule-exlib-feature #[(exlib) "A@\207" [exlib] 1]) (put 'ps-mule-exlib-feature 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-exlib-initialized-p #[(exlib) "\3018\207" [exlib 2] 2]) (put 'ps-mule-exlib-initialized-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-exlib-set-initialized-p #[(exlib val) "AA \240\207" [exlib val] 2]) (put 'ps-mule-exlib-set-initialized-p 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-exlib-prologue #[(exlib) "\3018\207" [exlib 3] 2]) (put 'ps-mule-exlib-prologue 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-exlib-check #[(exlib) "\3018\207" [exlib 4] 2]) (put 'ps-mule-exlib-check 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-exlib-font #[(exlib) "\3018\207" [exlib 5] 2]) (put 'ps-mule-exlib-font 'byte-optimizer 'byte-compile-inline-expand) (defalias 'ps-mule-exlib-glyph #[(exlib) "\3018\207" [exlib 6] 2]) (put 'ps-mule-exlib-glyph 'byte-optimizer 'byte-compile-inline-expand) #@148 Initialize external library specified by EXLIB for PostScript printing. See the documentation of `ps-mule-external-libraries' for EXLIB's meaning. (defalias 'ps-mule-init-external-library #[(exlib) "\3048)\2063 \3058)\211\203) \211A@)\211\203# \306\n!\210\307 !\210)\310\211AA\240+\207" [exlib prologue-func feature val 2 3 require ps-output-prologue t] 3 (#$ . 14482)]) (defvar ps-mule-output-list nil) #@61 Check if a font specified in FONT-SPEC is available or not. (defalias 'ps-mule-check-font #[(font-spec) "\211\304H)\211?\206' \n\236\305!\210\3068)?\206&