Skip to content

Commit 7ec202e

Browse files
committed
translation
1 parent 51016f1 commit 7ec202e

113 files changed

Lines changed: 50180 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

book_tx/Makefile

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
LATEX = latex
2+
3+
DVIPS = dvips
4+
5+
PDFFLAGS = -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress \
6+
-dCompressPages=true -dUseFlateCompression=true \
7+
-dEmbedAllFonts=true -dSubsetFonts=true -dMaxSubsetPct=100
8+
9+
10+
%.dvi: %.tex
11+
$(LATEX) $<
12+
13+
%.ps: %.dvi
14+
$(DVIPS) -o $@ $<
15+
16+
%.pdf: %.ps
17+
ps2pdf $(PDFFLAGS) $<
18+
19+
all: book.tex
20+
pdflatex book
21+
makeindex book.idx
22+
pdflatex book
23+
mv book.pdf thinkpython2.pdf
24+
25+
hevea: book.tex header.html footer.html
26+
# replace the pdfs with eps
27+
sed s/.pdf/.eps/g book.tex > thinkpython2.tex
28+
latex thinkpython2
29+
rm -rf html
30+
mkdir html
31+
hevea -fix -O -e latexonly htmlonly thinkpython2
32+
# the following greps are a kludge to prevent imagen from seeing
33+
# the definitions in latexonly, and to avoid headers on the images
34+
grep -v latexonly thinkpython2.image.tex > a; mv a thinkpython2.image.tex
35+
sed s/\\\\usepackage{fancyhdr}// < thinkpython2.image.tex > a; mv a thinkpython2.image.tex
36+
imagen -png thinkpython2
37+
hacha thinkpython2.html
38+
cp up.png next.png back.png html
39+
mv index.html thinkpython2.css thinkpython2*.html thinkpython2*.png *motif.gif html
40+
41+
DEST = /home/downey/public_html/greent/thinkpython2
42+
43+
epub:
44+
cd html; ebook-convert index.html thinkpython2.epub
45+
46+
distrib:
47+
rm -rf dist
48+
mkdir dist dist/tex dist/tex/figs
49+
rsync -a thinkpython2.pdf html dist
50+
rsync -a dist/* $(DEST)
51+
chmod -R o+r $(DEST)/*
52+
cd $(DEST)/..; sh back
53+
54+
# UPDATE THE PATHS BELOW BEFORE RUNNING PLASTEX
55+
56+
plastex:
57+
# Before running plastex, we need the current directory in PYTHONPATH
58+
# export PYTHONPATH=$PYTHONPATH:.
59+
python Filist.py book.tex > book.plastex
60+
rm -rf /home/downey/thinkpython2/trunk/book
61+
plastex --renderer=DocBook --theme=book --image-resolution=300 --filename=book.xml book.plastex
62+
rm -rf /home/downey/thinkpython2/trunk/book/.svn
63+
64+
plastest:
65+
# Before running plastex, we need the current directory in PYTHONPATH
66+
# export PYTHONPATH=$PYTHONPATH:.
67+
python Filist.py test.tex > test.plastex
68+
rm -rf /home/downey/thinkpython2/trunk/test
69+
plastex --renderer=DocBook --theme=test --filename=test.xml test.plastex
70+
rm -rf /home/downey/thinkpython2/trunk/test/.svn
71+
72+
xxe:
73+
xmlcopyeditor ~/ThinkPython2/book/book/book.xml &
74+
75+
lint:
76+
xmllint -noout book/book.xml
77+
78+
OREILLY = atlas
79+
80+
oreilly:
81+
rsync -a book.tex $(OREILLY)
82+
rsync -a book/ $(OREILLY)
83+
rsync -a figs/* $(OREILLY)/figs
84+
cd $(OREILLY); git add .
85+
cd $(OREILLY); git commit -m "Automated check in."
86+
cd $(OREILLY); git push
87+
88+
clean:
89+
rm -f *~ *.aux *.log *.dvi *.idx *.ilg *.ind *.toc
90+
91+
92+

book_tx/back.png

4.34 KB
Loading

0 commit comments

Comments
 (0)