+2008-01-09 Vinicius Jose Latorre <viniciusjl@ig.com.br>
+
+ * ps-print.el: Some face attributes (like :strike-through) was not
+ being recognised. Reported by Leo <sdl.web@gmail.com>.
+ (ps-print-version): New version 7.3.2.
+ (ps-screen-to-bit-face): Fix code. Call ps-face-strikout-p,
+ ps-face-overline-p and ps-face-box-p funs.
+
+ * ps-def.el (ps-face-strikout-p, ps-face-overline-p, ps-face-box-p):
+ New funs.
+
2008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
* international/fontset.el (font-encoding-alist): Add an entry for
;;; ps-def.el --- XEmacs and Emacs definitions for ps-print
-;; Copyright (C) 2007 Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.
;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Kenichi Handa <handa@m17n.org> (multi-byte characters)
;; Maintainer: Kenichi Handa <handa@m17n.org> (multi-byte characters)
;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Keywords: wp, print, PostScript
-;; Version: 7.2.2
;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre
;; This file is part of GNU Emacs.
(memq face ps-italic-faces))) ; Kludge-compatible
+ (defalias 'ps-face-strikeout-p 'ignore)
+
+
+ (defalias 'ps-face-overline-p 'ignore)
+
+
+ (defalias 'ps-face-box-p 'ignore)
+
+
;; XEmacs will have to make do with %s (princ) for floats.
(defvar ps-color-format "%s %s %s")
(defvar ps-float-format "%s ")
(memq face ps-italic-faces)))
+ (defun ps-face-strikeout-p (face)
+ (eq (face-attribute face :strike-through) t))
+
+
+ (defun ps-face-overline-p (face)
+ (eq (face-attribute face :overline) t))
+
+
+ (defun ps-face-box-p (face)
+ (not (memq (face-attribute face :box) '(nil unspecified))))
+
+
;; Emacs understands the %f format; we'll use it to limit color RGB values
;; to three decimals to cut down some on the size of the PostScript output.
(defvar ps-color-format "%0.3f %0.3f %0.3f")
;; Maintainer: Kenichi Handa <handa@m17n.org> (multi-byte characters)
;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Keywords: wp, print, PostScript
-;; Version: 7.3.1
+;; Version: 7.3.2
;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre
-(defconst ps-print-version "7.3.1"
- "ps-print.el, v 7.3.1 <2007/11/21 vinicius>
+(defconst ps-print-version "7.3.2"
+ "ps-print.el, v 7.3.2 <2008/01/09 vinicius>
Vinicius's last change version -- this file may have been edited as part of
Emacs without changes to the version number. When reporting bugs, please also
(defun ps-screen-to-bit-face (face)
(cons face
- (vector (logior (if (ps-face-bold-p face) 1 0) ; bold
- (if (ps-face-italic-p face) 2 0) ; italic
- (if (ps-face-underlined-p face) 4 0)) ; underline
+ (vector (logior (if (ps-face-bold-p face) 1 0) ; bold
+ (if (ps-face-italic-p face) 2 0) ; italic
+ (if (ps-face-underlined-p face) 4 0) ; underline
+ (if (ps-face-strikeout-p face) 8 0) ; strikeout
+ (if (ps-face-overline-p face) 16 0) ; overline
+ (if (ps-face-box-p face) 64 0)) ; box
(ps-face-foreground-name face)
(ps-face-background-name face))))
;;; ps-samp.el --- ps-print sample setup code
-;; Copyright (C) 2007 Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2008 Free Software Foundation, Inc.
;; Author: Jim Thompson (was <thompson@wg2.waii.com>)
;; Jacques Duthen (was <duthen@cegelec-red.fr>)
;; Maintainer: Kenichi Handa <handa@m17n.org> (multi-byte characters)
;; Vinicius Jose Latorre <viniciusjl@ig.com.br>
;; Keywords: wp, print, PostScript
-;; Version: 7.2.2
;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre
;; This file is part of GNU Emacs.