Warning: this is a htmlized version!
The original is across this link. |
####### # # E-scripts on PostScript. # # Note 1: use the eev command (defined in eev.el) and the # ee alias (in my .zshrc) to execute parts of this file. # Executing this file as a whole makes no sense. # # Note 2: be VERY careful and make sure you understand what # you're doing. # # Note 3: If you use a shell other than zsh things like |& # and the for loops may not work. # # Note 4: I always run as root. # # Note 5: some parts are too old and don't work anymore. Some # never worked. # # Note 6: the definitions for the find-xxxfile commands are on my # .emacs. # # Note 7: if you see a strange command check my .zshrc -- it may # be defined there as a function or an alias. # # Note 8: the sections without dates are always older than the # sections with dates. # # This file is at <http://angg.twu.net/a/e/ps.e> # or at <http://angg.twu.net/e/ps.e.html>. # See also <http://angg.twu.net/emacs.html>, # <http://angg.twu.net/a/.emacs[.html]>, # <http://angg.twu.net/a/.zshrc[.html]>, # <http://angg.twu.net/escripts.html>, # and <http://angg.twu.net/>. # ####### ##### # # gs5.10 (slink) # 99oct08 # ##### # «gs_primitives» pdsc /big/slinks2/dists/slink/main/source/text/gs_5.10-1.dsc # (find-fline "/o/home/root/ICON/gsops.icn") # (find-gs5file "opdef.h" "BEGIN_OP_DEFS") # agrep -l BEGIN_OP_DEFS *.[ch] # (find-node "(gawk)Ranges") cd /usr/src/gs-5.10/ for i in $(agrep -l BEGIN_OP_DEFS *.c); do echo "\n$i:" awk '/BEGIN_OP_DEFS/, /END_OP_DEFS/' < $i done > .OPDEFS # (find-gs5file ".OPDEFS") ##### # # gv-3.5.8 (slink) # 99oct08 # ##### # «gv_psheaders» pdsc /big/slinks2/dists/slink/main/source/text/gv_3.5.8-9.dsc cd /usr/src/gv-3.5.8 # On how the headers of a gv-able PS must be: # (find-gvfile "source/ps.c" "Header section:") ##### # # Some old notes on gs5.10 # ##### cd /usr/src/gs5.10/ etags $(cat of.used.here of.used.there) glimpseindex -H . $(cat of.used.here; ls *.ps; cat of.used.there) ~/ICON/gsops $(cat of.used.here) |& tee .OPS # # (find-gs5file "opdef.h" "Each operator file") # (find-gs5file ".OPS") # (find-gs5file "gs_init.ps" "pstack") # (find-gs5file "gs_init.ps" "/== {") # (find-gs5tag "zbind") # (find-gs5file "deskjet.dev") # (find-gs5file "djet500.dev") # (find-gs5file "gdevdjet.c") # dvips -D 300 -p 1 -l 1 -o blank.ps blank.dvi gs -sDEVICE=djet500 -sOutputFile=/dev/lp1 -dNOPAUSE -dBATCH blank.ps # (find-gs5file "gs_init.ps" 80) # Mais antigos: # (find-gvtag "main") # (find-gvfile "source/main.c" "int main(") # (find-gvfile "source/main.c" 903) # (find-gvtag "render_page") # (find-gvtag "GhostviewEnableInterpreter") # (find-gvtag "StartInterpreter") # (find-gs5tag "gdev_x_open") ######## # # gslab # ######## (emacs-lisp-mode) (find-fline "~/CRIM/gslab.el") (progn (load-library "~/CRIM/gslab") (setq gs-window-shrink-amount 12) ; Gives gs 23-12 lines on 50-line VCs. (gs-initialize) ) % (find-gs5file ".OPS" "setrgbcolor") % (find-gs5file "gs_init.ps") /dx 120 def /dy 120 def /x0 60 def /y0 60 def /myp {dy mul y0 add exch dx mul x0 add exch} def /defp {myp 2 array astore cvx def} def % /p7 {0 3 myp} def /p7 0 3 defp /p8 1 3 defp /p9 2 3 defp /p4 0 2 defp /p5 1 2 defp /p6 2 2 defp /p1 0 1 defp /p2 1 1 defp /p3 2 1 defp /p0 1.5 0 defp /foo { newpath p3 moveto p4 lineto p9 lineto closepath } def foo gsave 1 1 0 setrgbcolor fill grestore gsave 8 setlinewidth stroke grestore pop ######## # # Fixing a FrameMaker ps # ######## # (find-hamm "psutils") # (find-fline "/usr/doc/psutils/README.gz" "framemaker") # (find-fline "/usr/bin/fixfmps") # (find-gvfile "source/ps.c" "%!") # (find-fline "~/LATEX/lcp1.ps") # (find-fline "/usr/info/") # (find-fline "/snarf/http/www.cica.indiana.edu/cica/faq/tcl/") # (find-fline "/snarf/http/www.cica.indiana.edu/cica/faq/tcl/book.p1.ps") # %!PS-Adobe-2.0 # (find-fline "/usr/src/psutils-1.17/psnup.c") # (find-fline "/usr/src/psutils-1.17/psnup.c" "'s'") # (find-fline "/usr/src/psutils-1.17/psutil.c" "a4") # (find-node "(a2ps)Your Media") # (find-fline "/usr/src/psutils-1.17/pstops.c") cd /snarf/http/www.cica.indiana.edu/cica/faq/tcl/ # S=0.5; H0=24; H1=297; V0=434; V2=50 S=0.55; H0=-16; H1=257; V0=434; V2=50 cat book.p1.ps | pstops -d 4:0@$S($H0,$V0)+1@$S($H1,$V0)+2@$S($H0,$V2)+3@$S($H1,$V2) > p1.ps cat book.p2.ps | pstops -d 4:0@$S($H0,$V0)+1@$S($H1,$V0)+2@$S($H0,$V2)+3@$S($H1,$V2) > p2.ps cat book.p3.ps | pstops -d 4:0@$S($H0,$V0)+1@$S($H1,$V0)+2@$S($H0,$V2)+3@$S($H1,$V2) > p3.ps cat book.p4.ps | pstops -d 4:0@$S($H0,$V0)+1@$S($H1,$V0)+2@$S($H0,$V2)+3@$S($H1,$V2) > p4.ps cd /snarf/http/www.cica.indiana.edu/cica/faq/tcl/ gv -media a4 -scale -2 p1.ps gv -media a4 -scale -2 p2.ps gv -media a4 -scale -2 p3.ps gv -media a4 -scale -2 p4.ps cd /snarf/http/www.cica.indiana.edu/cica/faq/tcl/ tar -cvzf ~/tb.tgz p?.ps zip ~/tb.zip p?.ps gs -sDEVICE=djet500 -r300 -sOutputFile=o.p%02d -dNOPAUSE -dBATCH /snarf/http/www.cica.indiana.edu/cica/faq/tcl/p3.ps rm o.zip; zip o.zip o.p0? laf o.zip # psnup -1 -d -Pletter -pletter | # (find-hamm "tk8.0-dev") man 3tk pack # (find-tkfile "") cd /snarf/http/www.cica.indiana.edu/cica/faq/tcl/ psnup -nup 4 -s0.5 -Pletter -pa4 -d -m-8 < book.p3.ps > p3.ps gv -media a3 p3.ps # -m100 qdz que overwrite bastante. # -m-100 qdz que separa bastante as folhinhas. # psnup -nup 4 -s0.4 -Pletter -pa4 -d -b78 < book.p3.ps > p3.ps debsource /debian/main/source/text psutils 1.17 -2 debsource /debian/main/source/text a2ps 4.10.2 -4 debsource /debian/main/source/libs tk8.0 8.0p2 -4 ####### # # pgs # ####### # (find-fline "/usr/bin/pgs") # (find-pl5file "Tk/Ghostview.pm") # (find-pl5file "Tk/Ghostscript.pm") # (find-pl5file "Tk/Pretty.pm") # (find-pl5file "Tk/DSC.pm") # (find-fline "/usr/lib/perl5/Tk/Ghostview.pm") # (find-fline "/usr/lib/perl5/Tk/Ghostscript.pm") # (find-fline "/usr/lib/perl5/Tk/Pretty.pm") ###### # # pstotext # 99oct09 # ###### # «pstotext» apti pstotext # (find-vldifile "pstotext.list") # (find-fline "/usr/doc/pstotext/") # (eeman "pstotext") pstotext /tmp/bdf.PS pstotext /tmp/bdf.PS | tr - | tee ~/o pstotext /tmp/bdf.PS | tr $(echo "\0255") - # Why does it stop in the middle of the pic manual? # (find-es "tex" "pic_manual") pstotext $S/http/cm.bell-labs.com/cm/cs/cstr/116.ps > ~/o (pstotext -debug $S/http/cm.bell-labs.com/cm/cs/cstr/116.ps > ~/o) |& tee ~/o2 # (find-fline "~/o") # (find-fline "~/o2") # (find-fline "$S/http/cm.bell-labs.com/cm/cs/cstr/116.ps" "guess is wrong") pdsc /big/slinks2/dists/slink/main/source/text/pstotext_1.7-3.dsc debian/rules binary |& tee odrb # (code-c-d "ptt" "/usr/src/pstotext-1.7/") # (find-pttfile "odrb") # (find-pttfile "main.c") # (find-pttfile "bundle.c") # (find-pttfile "ptotdll.c") # (find-pttfile "ocr.ps")