hgbook
changeset 323:701cc7f8aee3
Initial guidelines for translation
author | Igor TAmara <igor@tamarapatino.org> |
---|---|
date | Fri Oct 17 04:21:35 2008 -0500 (2008-10-17) |
parents | 1d277d6aa187 |
children | 1afa6cce993d |
files | es/00book.tex es/Leame.1st es/Makefile |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/es/00book.tex Fri Oct 17 04:21:35 2008 -0500 1.3 @@ -0,0 +1,78 @@ 1.4 +% The use of oneside here is a temporary hack; \marginpar entries 1.5 +% don't show up on odd pages of PDF output without it. Sigh. 1.6 +\documentclass[oneside]{book} 1.7 +\usepackage{enumerate} 1.8 +\usepackage{fullpage} 1.9 +\usepackage{makeidx} 1.10 +\usepackage{ifpdf} 1.11 +\usepackage{graphicx} 1.12 +\usepackage{pslatex} 1.13 +\usepackage{fancyvrb} 1.14 +\usepackage[utf8]{inputenc} %accents in spanish 1.15 +% leave hyperref until last 1.16 +\usepackage[colorlinks=true,bookmarks=true,pdftitle={Distributed 1.17 + revision control with Mercurial},pdfsubject={Revision 1.18 + control},pdfkeywords={Mercurial, Revision control, Distributed 1.19 + revision control},pdfauthor={Bryan O'Sullivan}]{hyperref} 1.20 + 1.21 +\include{99defs} 1.22 + 1.23 +\title{Control de Revisiones Distribuido con Mercurial} \author{Bryan 1.24 + O'Sullivan} 1.25 +\date{Copyright \copyright\ 2006, 2007 Bryan O'Sullivan.\\ 1.26 + Este material puede distribuirse únicamente bajo los términos y 1.27 + condiciones establecidos en la versión 1.0 de la Licencia de Publicación 1.28 + Abierta(OPL) Refiérase por favor al apéndice~\ref{cha:opl} en busca del 1.29 + texto de la licencia.\\ 1.30 + Este libro fue preparado desde 1.31 + \href{http://hg.serpentine.com/mercurial/book/}{rev~\input{build_id}} 1.32 + haciendo uso de Mercurial \href{http://www.selenic.com/hg/}{rev~\input{hg_id}}.} 1.33 + 1.34 +\makeindex 1.35 + 1.36 +\begin{document} 1.37 + 1.38 +\maketitle 1.39 + 1.40 +\addcontentsline{toc}{chapter}{Contents} 1.41 +\pagenumbering{roman} 1.42 +\tableofcontents 1.43 +\listoffigures 1.44 +%\listoftables 1.45 + 1.46 +\pagenumbering{arabic} 1.47 + 1.48 +\include{preface} 1.49 +\include{intro} 1.50 +\include{tour-basic} 1.51 +\include{tour-merge} 1.52 +\include{concepts} 1.53 +\include{daily} 1.54 +\include{collab} 1.55 +\include{filenames} 1.56 +\include{branch} 1.57 +\include{undo} 1.58 +\include{hook} 1.59 +\include{template} 1.60 +\include{mq} 1.61 +\include{mq-collab} 1.62 +\include{hgext} 1.63 + 1.64 +\appendix 1.65 +\include{cmdref} 1.66 +\include{mq-ref} 1.67 +\include{srcinstall} 1.68 +\include{license} 1.69 +\addcontentsline{toc}{chapter}{Bibliography} 1.70 +\bibliographystyle{alpha} 1.71 +\bibliography{99book} 1.72 + 1.73 +\addcontentsline{toc}{chapter}{Index} 1.74 +\printindex 1.75 + 1.76 +\end{document} 1.77 + 1.78 +%%% Local Variables: 1.79 +%%% mode: latex 1.80 +%%% TeX-master: t 1.81 +%%% End:
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/es/Leame.1st Fri Oct 17 04:21:35 2008 -0500 2.3 @@ -0,0 +1,18 @@ 2.4 += Organización del Trabajo. = 2.5 + 2.6 + * Se mantienen los nombres de los archivos 2.7 + * Se traduce solamente el contenido 2.8 + * Copie los archivos de en a es y tradúzcalos 2.9 + * Las gráficas son tan importantes como los archivos 2.10 + de texto, si lo desea, comience por las gráficas, 2.11 + especialmente los .dot resultan sencillos para traducir. 2.12 + 2.13 += Traducción/Revisión = 2.14 + 2.15 +En esta sección indicamos quienes están traduciendo 2.16 +y quienes revisando lo traducido. Coloque su nombre 2.17 +para que los demás colaboradores sepan en dónde 2.18 +enfocar sus esfuerzos. 2.19 + 2.20 += Traductores = 2.21 + * Igor Támara <igor@tamarapatino.org>
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/es/Makefile Fri Oct 17 04:21:35 2008 -0500 3.3 @@ -0,0 +1,220 @@ 3.4 +# This makefile requires GNU make. 3.5 + 3.6 +sources := \ 3.7 + 00book.tex \ 3.8 + 99book.bib \ 3.9 + 99defs.tex \ 3.10 + build_id.tex \ 3.11 + branch.tex \ 3.12 + cmdref.tex \ 3.13 + collab.tex \ 3.14 + concepts.tex \ 3.15 + daily.tex \ 3.16 + filenames.tex \ 3.17 + hg_id.tex \ 3.18 + hgext.tex \ 3.19 + hook.tex \ 3.20 + intro.tex \ 3.21 + mq.tex \ 3.22 + mq-collab.tex \ 3.23 + mq-ref.tex \ 3.24 + preface.tex \ 3.25 + srcinstall.tex \ 3.26 + template.tex \ 3.27 + tour-basic.tex \ 3.28 + tour-merge.tex \ 3.29 + undo.tex 3.30 + 3.31 +image-sources := \ 3.32 + feature-branches.dot \ 3.33 + filelog.svg \ 3.34 + kdiff3.png \ 3.35 + metadata.svg \ 3.36 + mq-stack.svg \ 3.37 + note.png \ 3.38 + revlog.svg \ 3.39 + snapshot.svg \ 3.40 + tour-history.svg \ 3.41 + tour-merge-conflict.svg \ 3.42 + tour-merge-merge.svg \ 3.43 + tour-merge-pull.svg \ 3.44 + tour-merge-sep-repos.svg \ 3.45 + undo-manual.dot \ 3.46 + undo-manual-merge.dot \ 3.47 + undo-non-tip.dot \ 3.48 + undo-simple.dot \ 3.49 + wdir.svg \ 3.50 + wdir-after-commit.svg \ 3.51 + wdir-branch.svg \ 3.52 + wdir-merge.svg \ 3.53 + wdir-pre-branch.svg 3.54 + 3.55 +image-dot := $(filter %.dot,$(image-sources)) 3.56 +image-svg := $(filter %.svg,$(image-sources)) 3.57 +image-png := $(filter %.png,$(image-sources)) 3.58 + 3.59 +image-pdf := $(image-dot:%.dot=%.pdf) $(image-svg:%.svg=%.pdf) $(image-png) 3.60 +image-html := $(image-dot:%.dot=%.png) $(image-svg:%.svg=%.png) $(image-png) 3.61 + 3.62 +example-sources := \ 3.63 + backout \ 3.64 + bisect \ 3.65 + branching \ 3.66 + branch-named \ 3.67 + branch-repo \ 3.68 + cmdref \ 3.69 + daily.copy \ 3.70 + daily.files \ 3.71 + daily.rename \ 3.72 + daily.revert \ 3.73 + extdiff \ 3.74 + filenames \ 3.75 + hook.msglen \ 3.76 + hook.simple \ 3.77 + hook.ws \ 3.78 + issue29 \ 3.79 + mq.guards \ 3.80 + mq.qinit-help \ 3.81 + mq.dodiff \ 3.82 + mq.id \ 3.83 + mq.tarball \ 3.84 + mq.tools \ 3.85 + mq.tutorial \ 3.86 + rename.divergent \ 3.87 + rollback \ 3.88 + tag \ 3.89 + template.simple \ 3.90 + template.svnstyle \ 3.91 + tour \ 3.92 + tour-merge-conflict 3.93 + 3.94 +example-prereqs := \ 3.95 + /usr/bin/merge 3.96 + 3.97 +dist-sources := \ 3.98 + ../html/hgicon.png \ 3.99 + ../html/index.html.var \ 3.100 + ../html/index.en.html 3.101 + 3.102 +latex-options = \ 3.103 + -interaction batchmode \ 3.104 + -output-directory $(dir $(1)) \ 3.105 + -jobname $(basename $(notdir $(1))) 3.106 + 3.107 +hg = $(shell which hg) 3.108 + 3.109 +hg-id = $(shell hg parents --template '{node|short}, dated {date|isodate},\n') 3.110 + 3.111 +hg-version = $(shell hg version -q | \ 3.112 + sed 's,.*(version \(unknown\|[a-f0-9+]*\)),\1,') 3.113 + 3.114 +all: pdf html 3.115 + 3.116 +pdf: pdf/hgbook.pdf 3.117 + 3.118 +define pdf 3.119 + mkdir -p $(dir $@) 3.120 + TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) 3.121 + cp 99book.bib $(dir $@) 3.122 + cd $(dir $@) && bibtex $(basename $(notdir $@)) 3.123 + cd $(dir $@) && makeindex $(basename $(notdir $@)) 3.124 + TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) 3.125 + TEXINPUTS=$(dir $<): pdflatex $(call latex-options,$@) $< || (rm -f $@; exit 1) 3.126 + if grep 'Reference.*undefined' $(@:.pdf=.log); then exit 1; fi 3.127 +endef 3.128 + 3.129 +pdf/hgbook.pdf: $(sources) examples $(image-pdf) 3.130 + $(call pdf) 3.131 + 3.132 +html: onepage split 3.133 + 3.134 +onepage: $(htlatex) html/onepage/hgbook.html html/onepage/hgbook.css $(image-html:%=html/onepage/%) 3.135 + 3.136 +html/onepage/%: % 3.137 + cp $< $@ 3.138 + 3.139 +split: $(htlatex) html/split/hgbook.html html/split/hgbook.css $(image-html:%=html/split/%) 3.140 + 3.141 +html/split/%: % 3.142 + cp $< $@ 3.143 + 3.144 +# This is a horrible hack to work around the fact that the htlatex 3.145 +# command in tex4ht is itself a horrible hack. I really don't want to 3.146 +# include verbatim the big wad of TeX that is repeated in that script, 3.147 +# but I've given up and run a hacked copy as htlatex.book here. 3.148 + 3.149 +define htlatex 3.150 + mkdir -p $(dir $(1)) 3.151 + cp 99book.bib $(dir $(1)) 3.152 + TEXINPUTS=$(dir $(2)): ./htlatex.book $(2) "bookhtml,html4-uni,$(3)" " -cunihtf -utf8" "$(dir $(1))" "$(call latex-options,$(1))" || (rm -f $(1); exit 1) 3.153 + cd $(dir $(1)) && tex4ht -f/$(basename $(notdir $(1))) -cvalidate -cunihtf 3.154 + cd $(dir $(1)) && t4ht -f/$(basename $(notdir $(1))) 3.155 + ./fixhtml.py $(dir $(1))/*.html 3.156 + rm $(dir $(1))/hgbook.css 3.157 +endef 3.158 + 3.159 +html/onepage/hgbook.html: $(sources) examples $(image-html) bookhtml.cfg 3.160 + $(call htlatex,$@,$<) 3.161 + 3.162 +html/split/hgbook.html: $(sources) examples bookhtml.cfg 3.163 + $(call htlatex,$@,$<,2) 3.164 + 3.165 +# Produce 90dpi PNGs for the web. 3.166 + 3.167 +%.png: %.svg fixsvg 3.168 + ./fixsvg $< 3.169 + inkscape -D -e $@ $<-tmp.svg 3.170 + rm $<-tmp.svg 3.171 + 3.172 +%.svg: %.dot 3.173 + dot -Tsvg -o $@ $< 3.174 + 3.175 +# Produce eps & pdf for the pdf 3.176 + 3.177 +%.pdf: %.eps 3.178 + epstopdf $< 3.179 + 3.180 +%.eps: %.svg 3.181 + ./fixsvg $< 3.182 + inkscape -E $@ $<-tmp.svg 3.183 + rm $<-tmp.svg 3.184 + 3.185 +%.eps: %.dot 3.186 + dot -Tps -o $@ $< 3.187 + 3.188 +examples: $(example-prereqs) examples/.run 3.189 + 3.190 +examples/.run: $(example-sources:%=examples/%.run) 3.191 + touch examples/.run 3.192 + 3.193 +examples/%.run: examples/% examples/run-example 3.194 + cd examples && ./run-example $(notdir $<) 3.195 + 3.196 +changelog := $(wildcard ../.hg/store/00changelog.[id]) 3.197 +ifeq ($(changelog),) 3.198 +changelog := $(wildcard ../.hg/00changelog.[id]) 3.199 +endif 3.200 + 3.201 +build_id.tex: $(changelog) 3.202 + echo -n '$(hg-id)' > build_id.tex 3.203 + 3.204 +hg_id.tex: $(hg) 3.205 + echo -n '$(hg-version)' > hg_id.tex 3.206 + 3.207 +clean: 3.208 + rm -rf dist html pdf \ 3.209 + $(image-dot:%.dot=%.pdf) \ 3.210 + $(image-dot:%.dot=%.png) \ 3.211 + $(image-svg:%.svg=%.pdf) \ 3.212 + $(image-svg:%.svg=%.png) \ 3.213 + examples/*.{lxo,run} examples/.run build_id.tex hg_id.tex 3.214 + 3.215 +install: pdf split $(dist-sources) 3.216 + rm -rf dist 3.217 + mkdir -p dist 3.218 + cp pdf/hgbook.pdf dist 3.219 + cp html/split/*.{css,html,png} dist 3.220 + cp $(dist-sources) dist 3.221 + 3.222 +rsync: install 3.223 + rsync -avz --delete dist sp.red-bean.com:public_html/hgbook