diff options
| author | Vinicius Jose Latorre | 2008-10-22 23:40:31 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2008-10-22 23:40:31 +0000 |
| commit | c4abbb0493beed49d2a45c12226f126e66ecb3ce (patch) | |
| tree | 58f53c15d09116e99d3ffe7d4657d27441ca51cc | |
| parent | dfa2fb2af8d89be9b8316739150365144c30042f (diff) | |
| download | emacs-c4abbb0493beed49d2a45c12226f126e66ecb3ce.tar.gz emacs-c4abbb0493beed49d2a45c12226f126e66ecb3ce.zip | |
Deal with page sizes of label printers.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/ps-print.el | 67 |
2 files changed, 56 insertions, 19 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b86302383fe..a1cbe8d7914 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2008-10-22 Vinicius Jose Latorre <viniciusjl@ig.com.br> | ||
| 2 | |||
| 3 | * ps-print.el: Deal with page sizes for label printes. Suggested by | ||
| 4 | Friedrich Delgado Friedrichs <friedel@nomaden.org>. | ||
| 5 | (ps-print-version): New version 7.3.3. | ||
| 6 | (ps-page-dimensions-database): New page sizes for label printers. | ||
| 7 | (ps-n-up-printing): Fix code. | ||
| 8 | |||
| 1 | 2008-10-22 Chong Yidong <cyd@stupidchicken.com> | 9 | 2008-10-22 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 10 | ||
| 3 | * frame.el (make-frame-command): Doc fix. Use display-graphic-p. | 11 | * frame.el (make-frame-command): Doc fix. Use display-graphic-p. |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index d3b3e1d0ea9..4fb601b0f2b 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -11,11 +11,11 @@ | |||
| 11 | ;; Maintainer: Kenichi Handa <handa@m17n.org> (multi-byte characters) | 11 | ;; Maintainer: Kenichi Handa <handa@m17n.org> (multi-byte characters) |
| 12 | ;; Vinicius Jose Latorre <viniciusjl@ig.com.br> | 12 | ;; Vinicius Jose Latorre <viniciusjl@ig.com.br> |
| 13 | ;; Keywords: wp, print, PostScript | 13 | ;; Keywords: wp, print, PostScript |
| 14 | ;; Version: 7.3.2 | 14 | ;; Version: 7.3.3 |
| 15 | ;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre | 15 | ;; X-URL: http://www.emacswiki.org/cgi-bin/wiki/ViniciusJoseLatorre |
| 16 | 16 | ||
| 17 | (defconst ps-print-version "7.3.2" | 17 | (defconst ps-print-version "7.3.3" |
| 18 | "ps-print.el, v 7.3.2 <2008/01/09 vinicius> | 18 | "ps-print.el, v 7.3.3 <2008/10/22 vinicius> |
| 19 | 19 | ||
| 20 | Vinicius's last change version -- this file may have been edited as part of | 20 | Vinicius's last change version -- this file may have been edited as part of |
| 21 | Emacs without changes to the version number. When reporting bugs, please also | 21 | Emacs without changes to the version number. When reporting bugs, please also |
| @@ -1366,6 +1366,9 @@ Please send all bug fixes and enhancements to | |||
| 1366 | ;; Acknowledgments | 1366 | ;; Acknowledgments |
| 1367 | ;; --------------- | 1367 | ;; --------------- |
| 1368 | ;; | 1368 | ;; |
| 1369 | ;; Thanks to Friedrich Delgado Friedrichs <friedel@nomaden.org> for new label | ||
| 1370 | ;; printer page sizes. | ||
| 1371 | ;; | ||
| 1369 | ;; Thanks to Michael Piotrowski <mxp@dynalabs.de> for improving the DSC | 1372 | ;; Thanks to Michael Piotrowski <mxp@dynalabs.de> for improving the DSC |
| 1370 | ;; compliance of the generated PostScript. | 1373 | ;; compliance of the generated PostScript. |
| 1371 | ;; | 1374 | ;; |
| @@ -1826,24 +1829,49 @@ If it's nil, automatic feeding takes place." | |||
| 1826 | 1829 | ||
| 1827 | ;;;###autoload | 1830 | ;;;###autoload |
| 1828 | (defcustom ps-page-dimensions-database | 1831 | (defcustom ps-page-dimensions-database |
| 1829 | (list (list 'a4 (/ (* 72 21.0) 2.54) (/ (* 72 29.7) 2.54) "A4") | 1832 | (list (list 'a4 (/ (* 72 21.0) 2.54) (/ (* 72 29.7) 2.54) "A4") |
| 1830 | (list 'a3 (/ (* 72 29.7) 2.54) (/ (* 72 42.0) 2.54) "A3") | 1833 | (list 'a3 (/ (* 72 29.7) 2.54) (/ (* 72 42.0) 2.54) "A3") |
| 1831 | (list 'letter (* 72 8.5) (* 72 11.0) "Letter") | 1834 | (list 'letter (* 72 8.5) (* 72 11.0) "Letter") |
| 1832 | (list 'legal (* 72 8.5) (* 72 14.0) "Legal") | 1835 | (list 'legal (* 72 8.5) (* 72 14.0) "Legal") |
| 1833 | (list 'letter-small (* 72 7.68) (* 72 10.16) "LetterSmall") | 1836 | (list 'letter-small (* 72 7.68) (* 72 10.16) "LetterSmall") |
| 1834 | (list 'tabloid (* 72 11.0) (* 72 17.0) "Tabloid") | 1837 | (list 'tabloid (* 72 11.0) (* 72 17.0) "Tabloid") |
| 1835 | (list 'ledger (* 72 17.0) (* 72 11.0) "Ledger") | 1838 | (list 'ledger (* 72 17.0) (* 72 11.0) "Ledger") |
| 1836 | (list 'statement (* 72 5.5) (* 72 8.5) "Statement") | 1839 | (list 'statement (* 72 5.5) (* 72 8.5) "Statement") |
| 1837 | (list 'executive (* 72 7.5) (* 72 10.0) "Executive") | 1840 | (list 'executive (* 72 7.5) (* 72 10.0) "Executive") |
| 1838 | (list 'a4small (* 72 7.47) (* 72 10.85) "A4Small") | 1841 | (list 'a4small (* 72 7.47) (* 72 10.85) "A4Small") |
| 1839 | (list 'b4 (* 72 10.125) (* 72 14.33) "B4") | 1842 | (list 'b4 (* 72 10.125) (* 72 14.33) "B4") |
| 1840 | (list 'b5 (* 72 7.16) (* 72 10.125) "B5")) | 1843 | (list 'b5 (* 72 7.16) (* 72 10.125) "B5") |
| 1844 | ;; page sizes for label printer | ||
| 1845 | ;; NOTE: the page sizes below don't have n-up > 1. | ||
| 1846 | '(addresslarge 236.0 99.0 "AddressLarge") | ||
| 1847 | '(addresssmall 236.0 68.0 "AddressSmall") | ||
| 1848 | '(cuthanging13 90.0 222.0 "CutHanging13") | ||
| 1849 | '(cuthanging15 90.0 114.0 "CutHanging15") | ||
| 1850 | '(diskette 181.0 136.0 "Diskette") | ||
| 1851 | '(eurofilefolder 139.0 112.0 "EuropeanFilefolder") | ||
| 1852 | '(eurofoldernarrow 526.0 107.0 "EuroFolderNarrow") | ||
| 1853 | '(eurofolderwide 526.0 136.0 "EuroFolderWide") | ||
| 1854 | '(euronamebadge 189.0 108.0 "EuroNameBadge") | ||
| 1855 | '(euronamebadgelarge 223.0 136.0 "EuroNameBadgeLarge") | ||
| 1856 | '(filefolder 230.0 37.0 "FileFolder") | ||
| 1857 | '(jewelry 76.0 136.0 "Jewelry") | ||
| 1858 | '(mediabadge 180.0 136.0 "MediaBadge") | ||
| 1859 | '(multipurpose 126.0 68.0 "MultiPurpose") | ||
| 1860 | '(retaillabel 90.0 104.0 "RetailLabel") | ||
| 1861 | '(shipping 271.0 136.0 "Shipping") | ||
| 1862 | '(slide35mm 26.0 104.0 "Slide35mm") | ||
| 1863 | '(spine8mm 187.0 26.0 "Spine8mm") | ||
| 1864 | '(topcoated 425.19685 136.0 "TopCoatedPaper") | ||
| 1865 | '(topcoatedpaper 396.0 136.0 "TopcoatedPaper150") | ||
| 1866 | '(vhsface 205.0 127.0 "VHSFace") | ||
| 1867 | '(vhsspine 400.0 50.0 "VHSSpine") | ||
| 1868 | '(zipdisk 156.0 136.0 "ZipDisk")) | ||
| 1841 | "*List associating a symbolic paper type to its width, height and doc media. | 1869 | "*List associating a symbolic paper type to its width, height and doc media. |
| 1842 | See `ps-paper-type'." | 1870 | See `ps-paper-type'." |
| 1843 | :type '(repeat (list :tag "Paper Type" | 1871 | :type '(repeat (list :tag "Paper Type" |
| 1844 | (symbol :tag "Name") | 1872 | (symbol :tag "Symbol Name") |
| 1845 | (number :tag "Width") | 1873 | (number :tag "Width in points") |
| 1846 | (number :tag "Height") | 1874 | (number :tag "Height in points") |
| 1847 | (string :tag "Media"))) | 1875 | (string :tag "Media"))) |
| 1848 | :version "20" | 1876 | :version "20" |
| 1849 | :group 'ps-print-page) | 1877 | :group 'ps-print-page) |
| @@ -5256,7 +5284,8 @@ COL-MISSING is the number of columns missing to fill the sheet.") | |||
| 5256 | (and the-list | 5284 | (and the-list |
| 5257 | (while (> ps-n-up-printing (caar the-list)) | 5285 | (while (> ps-n-up-printing (caar the-list)) |
| 5258 | (setq the-list (cdr the-list)))) | 5286 | (setq the-list (cdr the-list)))) |
| 5259 | (car the-list))) | 5287 | (or (car the-list) |
| 5288 | '(1 nil 1 1 0)))) | ||
| 5260 | 5289 | ||
| 5261 | 5290 | ||
| 5262 | (defconst ps-n-up-filling-database | 5291 | (defconst ps-n-up-filling-database |