comparison lisp/play/handwrite.el @ 88155:d7ddb3e565de

sync with trunk
author Henrik Enberg <henrik.enberg@telia.com>
date Mon, 16 Jan 2006 00:03:54 +0000
parents 0d8b17d428b5
children
comparison
equal deleted inserted replaced
88154:8ce476d3ba36 88155:d7ddb3e565de
1 ;;; handwrite.el --- turns your emacs buffer into a handwritten document -*- coding: iso-latin-1; -*- 1 ;;; handwrite.el --- turns your emacs buffer into a handwritten document -*- coding: iso-latin-1; -*-
2 2
3 ;; (C) Copyright 1996 Free Software Foundation, Inc. 3 ;; Copyright (C) 1996, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 4
5 ;; Author: Danny Roozendaal (was: <danny@tvs.kun.nl>) 5 ;; Author: Danny Roozendaal (was: <danny@tvs.kun.nl>)
6 ;; Created: October 21 1996 6 ;; Created: October 21 1996
7 ;; Keywords: wp, print, postscript, cursive writing 7 ;; Keywords: wp, print, postscript, cursive writing
8 8
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details. 19 ;; GNU General Public License for more details.
20 20
21 ;; You should have received a copy of the GNU General Public License 21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs; see the file COPYING. If not, write to the 22 ;; along with GNU Emacs; see the file COPYING. If not, write to the
23 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, 23 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24 ;; Boston, MA 02111-1307, USA. 24 ;; Boston, MA 02110-1301, USA.
25 25
26 ;;; Commentary: 26 ;;; Commentary:
27 ;; 27 ;;
28 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 28 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
29 ;; The function handwrite creates PostScript output containing a 29 ;; The function handwrite creates PostScript output containing a
67 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 67 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
68 68
69 69
70 ;;; Code: 70 ;;; Code:
71 71
72 (defvar ps-printer-name)
73 (defvar ps-lpr-command)
74
72 75
73 ;; Variables 76 ;; Variables
74 77
75 (defgroup handwrite nil 78 (defgroup handwrite nil
76 "Turns your emacs buffer into a handwritten document." 79 "Turns your emacs buffer into a handwritten document."
157 (setq ps-buf-name 160 (setq ps-buf-name
158 (format "*handwritten%d.ps*" handwrite-psindex)) 161 (format "*handwritten%d.ps*" handwrite-psindex))
159 (setq next-line-add-newlines t) 162 (setq next-line-add-newlines t)
160 (switch-to-buffer ps-buf-name) 163 (switch-to-buffer ps-buf-name)
161 (handwrite-insert-header buf-name) 164 (handwrite-insert-header buf-name)
162 (insert "\n(\\nCreated by GNU Emacs' handwrite version " 165 (insert "%%Creator: GNU Emacs' handwrite version " emacs-version "\n")
163 emacs-version "\\n\\n)=print flush\n")
164 (handwrite-insert-preamble) 166 (handwrite-insert-preamble)
165 (handwrite-insert-info) 167 (handwrite-insert-info)
166 (handwrite-insert-font) 168 (handwrite-insert-font)
167 (setq textp (point)) 169 (setq textp (point))
168 (insert "%%Page: 1 1\n") 170 (insert "%%Page: 1 1\n")
1415 1417
1416 1418
1417 (provide 'handwrite) 1419 (provide 'handwrite)
1418 1420
1419 1421
1422 ;;; arch-tag: f2285ae9-e41b-4c96-8343-87dce41e44b7
1420 ;;; handwrite.el ends here 1423 ;;; handwrite.el ends here