From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d6e279e60cc095e9,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-06-02 07:34:27 PST Path: bga.com!news.sprintlink.net!hookup!news.kei.com!eff!news.umbc.edu!haven.umd.edu!cs.umd.edu!net.usuhs.mil!bob.usuf2.usuhs.nnmc.navy.mil!bob From: bob@bob.usuf2.usuhs.nnmc.navy.mil (Robert Williams) Newsgroups: comp.unix.osf.osf1 Subject: ghostscript bug on Alpha Date: 2 Jun 1994 13:54:12 GMT Organization: OrgFreeware Distribution: world Message-ID: <2skoa4$60b@net.usuhs.mil> Reply-To: bob@bob.usuf2.usuhs.nnmc.navy.mil (Robert Williams) NNTP-Posting-Host: bob.usuf2.usuhs.nnmc.navy.mil Dear Net, The ghostscript (2.6.1) on my Alpha (OSF1/V1.2) cannot display .ps files created by TeX/LaTeX/dvips that use the computer modern fonts. Other workstations correctly display these .ps files. Ghostscript fonts used in TeX/LaTeX/dvips will display normally. My gs was built with the four patches from GNU, the patch from Matt Reeve, and the patch to std.h, lines 143-153 (+ #ifdef __OSF__+ typedef unsigned int ushort;). It compiles and runs without error messages, producing normal output with non-cm-font input. This is a serious problem, because there appears to be no other way to convert .ps files to .ppm files in a batch environment. Latex2html uses gs to convert math text such as $^2$ to images. Without a working gs, latex2html cannot be used effectively on the Alpha. The ps viewer supplied by DEC, psview/xpsview, can do the conversion, but not, as I understand it, in batch mode, and latex2html can generate hundreds of little .ps files that require conversion. Latex2html ignores the latex \newfont command, so ghostscript fonts cannot be used in these documents. If you think that you have a fully functional ghostview, try to display the .ps file included below, or recreate it from the following short LaTeX document ($testit.tex). If it works, please post your additional patches to this group. If you have an alternative way to convert .ps files to .ppm files, please let me know, and post to this group. Thanks in advance, Bob Williams, Dept. of Biochem., USUHS, bob@bob.usuf2.usuhs.nnmc.navy.mil %testit.tex \documentstyle{article} \begin{document} Some text here followed by \fbox{some more text in a box}. \end{document} produces a .ps file given below with the commands latex testit.tex dvips -D 100 -o testit.ps testit.dvi -P 100 The printer file, config.100, is D 100 M DEClarge where DEClarge is a 100 dpi mode in modes.mf (but the same problem occurs regardless of what printer (-P), resolution, or mode is choosen. Ghostscript produces only a rectangular box, no text of any kind. This is a bug in ghostscript. Here is the .ps file: %!PS-Adobe-2.0 %%Creator: dvipsk 5.55a Copyright 1986, 1994 Radical Eye Software %%Title: testit.dvi %%Pages: 1 %%PageOrder: Ascend %%BoundingBox: 0 0 612 792 %%EndComments %DVIPSCommandLine: dvips -D 100 -o testit.ps testit.dvi -P 100 %DVIPSParameters: dpi=100, compressed, comments removed %DVIPSSource: TeX output 1994.06.01:1139 %%BeginProcSet: texc.pro /TeXDict 250 dict def TeXDict begin /N{def}def /B{bind def}N /S{exch}N /X{S N}B /TR{translate}N /isls false N /vsize 11 72 mul N /hsize 8.5 72 mul N /landplus90{false}def /@rigin{isls{[0 landplus90{1 -1}{-1 1} ifelse 0 0 0]concat}if 72 Resolution div 72 VResolution div neg scale isls{landplus90{VResolution 72 div vsize mul 0 exch}{Resolution -72 div hsize mul 0}ifelse TR}if Resolution VResolution vsize -72 div 1 add mul TR matrix currentmatrix dup dup 4 get round 4 exch put dup dup 5 get round 5 exch put setmatrix}N /@landscape{/isls true N}B /@manualfeed{ statusdict /manualfeed true put}B /@copies{/#copies X}B /FMat[1 0 0 -1 0 0]N /FBB[0 0 0 0]N /nn 0 N /IE 0 N /ctr 0 N /df-tail{/nn 8 dict N nn begin /FontType 3 N /FontMatrix fntrx N /FontBBox FBB N string /base X array /BitMaps X /BuildChar{CharBuilder}N /Encoding IE N end dup{/foo setfont}2 array copy cvx N load 0 nn put /ctr 0 N[}B /df{/sf 1 N /fntrx FMat N df-tail}B /dfs{div /sf X /fntrx[sf 0 0 sf neg 0 0]N df-tail}B /E{ pop nn dup definefont setfont}B /ch-width{ch-data dup length 5 sub get} B /ch-height{ch-data dup length 4 sub get}B /ch-xoff{128 ch-data dup length 3 sub get sub}B /ch-yoff{ch-data dup length 2 sub get 127 sub}B /ch-dx{ch-data dup length 1 sub get}B /ch-image{ch-data dup type /stringtype ne{ctr get /ctr ctr 1 add N}if}B /id 0 N /rw 0 N /rc 0 N /gp 0 N /cp 0 N /G 0 N /sf 0 N /CharBuilder{save 3 1 roll S dup /base get 2 index get S /BitMaps get S get /ch-data X pop /ctr 0 N ch-dx 0 ch-xoff ch-yoff ch-height sub ch-xoff ch-width add ch-yoff setcachedevice ch-width ch-height true[1 0 0 -1 -.1 ch-xoff sub ch-yoff .1 add]/id ch-image N /rw ch-width 7 add 8 idiv string N /rc 0 N /gp 0 N /cp 0 N{ rc 0 ne{rc 1 sub /rc X rw}{G}ifelse}imagemask restore}B /G{{id gp get /gp gp 1 add N dup 18 mod S 18 idiv pl S get exec}loop}B /adv{cp add /cp X}B /chg{rw cp id gp 4 index getinterval putinterval dup gp add /gp X adv}B /nd{/cp 0 N rw exit}B /lsh{rw cp 2 copy get dup 0 eq{pop 1}{dup 255 eq{pop 254}{dup dup add 255 and S 1 and or}ifelse}ifelse put 1 adv} B /rsh{rw cp 2 copy get dup 0 eq{pop 128}{dup 255 eq{pop 127}{dup 2 idiv S 128 and or}ifelse}ifelse put 1 adv}B /clr{rw cp 2 index string putinterval adv}B /set{rw cp fillstr 0 4 index getinterval putinterval adv}B /fillstr 18 string 0 1 17{2 copy 255 put pop}for N /pl[{adv 1 chg} {adv 1 chg nd}{1 add chg}{1 add chg nd}{adv lsh}{adv lsh nd}{adv rsh}{ adv rsh nd}{1 add adv}{/rc X nd}{1 add set}{1 add clr}{adv 2 chg}{adv 2 chg nd}{pop nd}]dup{bind pop}forall N /D{/cc X dup type /stringtype ne{] }if nn /base get cc ctr put nn /BitMaps get S ctr S sf 1 ne{dup dup length 1 sub dup 2 index S get sf div put}if put /ctr ctr 1 add N}B /I{ cc 1 add D}B /bop{userdict /bop-hook known{bop-hook}if /SI save N @rigin 0 0 moveto /V matrix currentmatrix dup 1 get dup mul exch 0 get dup mul add .99 lt{/QV}{/RV}ifelse load def pop pop}N /eop{SI restore showpage userdict /eop-hook known{eop-hook}if}N /@start{userdict /start-hook known{start-hook}if pop /VResolution X /Resolution X 1000 div /DVImag X /IE 256 array N 0 1 255{IE S 1 string dup 0 3 index put cvn put}for 65781.76 div /vsize X 65781.76 div /hsize X}N /p{show}N /RMat[1 0 0 -1 0 0]N /BDot 260 string N /rulex 0 N /ruley 0 N /v{/ruley X /rulex X V}B /V {}B /RV statusdict begin /product where{pop product dup length 7 ge{0 7 getinterval dup(Display)eq exch 0 4 getinterval(NeXT)eq or}{pop false} ifelse}{false}ifelse end{{gsave TR -.1 -.1 TR 1 1 scale rulex ruley false RMat{BDot}imagemask grestore}}{{gsave TR -.1 -.1 TR rulex ruley scale 1 1 false RMat{BDot}imagemask grestore}}ifelse B /QV{gsave transform round exch round exch itransform moveto rulex 0 rlineto 0 ruley neg rlineto rulex neg 0 rlineto fill grestore}B /a{moveto}B /delta 0 N /tail{dup /delta X 0 rmoveto}B /M{S p delta add tail}B /b{S p tail} B /c{-4 M}B /d{-3 M}B /e{-2 M}B /f{-1 M}B /g{0 M}B /h{1 M}B /i{2 M}B /j{ 3 M}B /k{4 M}B /w{0 rmoveto}B /l{p -4 w}B /m{p -3 w}B /n{p -2 w}B /o{p -1 w}B /q{p 1 w}B /r{p 2 w}B /s{p 3 w}B /t{p 4 w}B /x{0 S rmoveto}B /y{ 3 2 roll p a}B /bos{/SS save N}B /eos{SS restore}B end %%EndProcSet TeXDict begin 40258431 52099146 1000 100 100 (testit.dvi) @start /Fa 20 122 df<128001017F8004>46 D<122012E01220A6127004097F8807> 49 D<12781288128012C012701208A2128812F005097F8808>83 D<1270120812781288128C127C0606808507>97 D<12C01240A3127812441242A2124412 78070A808908>I<120C1204A3123C12441284A21244123E070A808908>100 D<1270128812F81280128812700506808506>I<12181220A312F01220A41270050A8189 04>I<12C01240A312781244A412EE070A808908>104 D<12401200A312C01240A412E003 0A808904>I<12C01240A812E0030A808904>108 DI<12F81244A412EE0706808508>I<12781284A412780606808507>I<12F01240A412E0 0406808505>114 D<126012A012E01230129012E00406808505>I<1240A312E01240A212 60A30309808805>I119 D<12CC1230A412CC0606808507>I<12CC12481230A41220A212C00609808507>I E end %%EndProlog %%BeginSetup %%Feature: *Resolution 100dpi TeXDict begin %%EndSetup %%Page: 1 1 1 0 bop 108 103 a Fa(Some)t(text)6 b(here)f(followed)s(by)p 276 89 158 1 v 276 107 1 18 v 9 w(some)g(more)t(text)h(in)t(a)f(box)p 433 107 V 276 108 158 1 v 4 w(.)322 858 y(1)p eop %%Trailer end userdict /end-hook known{end-hook}if %%EOF