source: trunk/dports/tex/pTeX/files/patch-8test.sh.diff @ 71968

Last change on this file since 71968 was 36009, checked in by takanori@…, 12 years ago

pTeX: Version bump to 20080411.

File size: 1.6 KB
  • ./8test.sh

    old new  
    191191ex $PXDVI   babeltestJIS.dvi
    192192fi
    193193
    194 # -dNOKANJI check for dvipdfmx
    195 echo "-----------------------------"
    196 echo "[-dNOKANJI] test"
    197 cat <<EOF > dNOKANJI.tex
    198 \documentclass[43pt]{jsarticle}
    199 \setlength{\headsep}{-3em}
    200 \usepackage{graphicx}
    201 \begin{document}
    202 \noindent {\tiny If char and EPS looks similar, OK.}
    203 
    204 \noindent
    205 Char: {\Huge ¤Ñ¤Ô¤×} \newline
    206 \raisebox{3em}{EPS:~}
    207 \includegraphics[clip,width=0.7\linewidth]{`pwd`/dNOKANJI.eps}
    208 \end{document}
    209 EOF
    210 
    211 cat <<EOF > dNOKANJI.eps
    212 %!PS-Adobe-2.0
    213 %%BoundingBox: 20 100 330 308
    214 %%BeginProlog
    215 /OurCharSet findfont 12 scalefont setfont
    216 (a) stringwidth pop /mp_a_x exch def
    217 %%EndProlog
    218 save
    219 gsave
    220 560 11 mp_a_x mul div 306 18 div scale
    221 4 7 translate 552 560 div 16 36 div scale
    222 /Ryumin-Light-H findfont 14 scalefont setfont
    223 0 13 moveto <2451> show
    224 2 mp_a_x mul 13 moveto <2454> show
    225 4 mp_a_x mul 13 moveto <2457> show
    226 0 0 moveto <245a> show
    227 2 mp_a_x mul 0 moveto <245d> show
    228 4 mp_a_x mul 0 moveto <396c> show
    229 grestore
    230 restore
    231 showpage
    232 EOF
    233 
    234 nkfjis dNOKANJI.tex > /dev/null
    235 $BIN/platex dNOKANJI.tex < /dev/null > /dev/null || catexit dNOKANJI.log
    236 ex $PDVIPS  dNOKANJI.dvi
    237 ex $PDVIPDF dNOKANJI.dvi
    238 if test `wc -c < dNOKANJI.pdf` -gt 10000; then
    239     cat <<EOF
    240 Warning: 'gs' seem to embed Japanese fonts in spite of '-dNOKANJI' option.
    241 Check gs options in $TEXMF/dvipdfm/config/dvipdfmx.cfg.
    242 We may need some additional patches for ghostscript.
    243 EOF
    244 fi
    245 
    246194# CVE-2007-0104 check for pdflatex
    247195echo "-----------------------------"
    248196echo "[CVE-2007-0104] test"
Note: See TracBrowser for help on using the repository browser.