]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Markup fixes
authorGunnar Wolf <gwolf@gwolf.org>
Tue, 24 Oct 2017 17:37:20 +0000 (12:37 -0500)
committerGunnar Wolf <gwolf@gwolf.org>
Tue, 24 Oct 2017 17:37:20 +0000 (12:37 -0500)
MadewithCreativeCommonsmostup-to-dateversion.md
Makefile
po/es/mwcc.po
po/mwcc.pot

index 7b3aba801c80b7e5a04a400ff4a3d2e864e96b61..f04265bfe4f6e0e4911242c078bf84d51a1fcace 100644 (file)
@@ -2265,7 +2265,7 @@ what they do. The goal for any form of collaboration is to move away
 from thinking of consumers as passive recipients of your content and
 transition them into active participants.75
 
-#### Notes
+### Notes
 
 1.  Alex Osterwalder and Yves Pigneur, Business Model Generation
     (Hoboken, NJ: John Wiley and Sons, 2010), 14. A preview of the book
@@ -4491,9 +4491,7 @@ Web link
 Jonathan Mann is a singer and songwriter who is most well known as the
 “Song A Day” guy. Based in the U.S.
 
-jonathanmann.net and
-
-jonathanmann.bandcamp.com
+jonathanmann.net and jonathanmann.bandcamp.com
 
 Revenue model: charging for custom services, pay-what-you-want,
 crowdfunding (subscription-based), charging for in-person version
index 5d83a651e53614f3d712fab60b9e22ec917f804a..85b7c7a7ce35d678ce4ecc6e4342814c9aad9fa6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -50,8 +50,8 @@ $(SOURCE).es.md: $(SOURCE).md po/es/mwcc.po
 
 %.xml: %.md
        pandoc -s -o $@ $(PANDOC_OPTS) $^
-       perl -p -i -e 's/!DOCTYPE article/!DOCTYPE book/' $@
-       perl -p -i -e 's!<(/?)article(info|)?>!<$$1book$$2>!' $@
+       perl -p -i -e 's/!DOCTYPE article/!DOCTYPE book/ ; \
+               s!<(/?)article(info|)?>!<$$1book$$2>!' $@
 
 pdf: $(SOURCE).pdf
 %.pdf: %.tex
@@ -60,10 +60,18 @@ pdf: $(SOURCE).pdf
 
 %.tex: %.xml
        dblatex -t tex -b xetex $^
-       perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}\n\\usepackage[spanish]{babel}/' $@
-       perl -p -i -e 's/\\caption\\end/\\caption{} \\end/' $@
-       perl -p -i -e 's/\\author\{and\}/\\author{Paul Stacey \\and Sarah Hinchliff Pearson}/' $@
-       perl -p -i -e 's/\\DBKinditem\{\\writtenby\}\{and\}/\\DBKinditem{\writtenby}{Paul Stacey and Sarah Hinchliff Pearson}/' $@
+       perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}\n\\usepackage[spanish]{babel}/; \
+               s/\\caption\\end/\\caption{} \\end/; \
+               s/\\author\{and\}/\\author{Paul Stacey \\and Sarah Hinchliff Pearson}/; \
+               s/\\DBKinditem\{\\writtenby\}\{and\}/\\DBKinditem{\writtenby}{Paul Stacey and Sarah Hinchliff Pearson}/; \
+               s/\\part\{(Prefacio|Introducción)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \
+               s/\\section\{Notas\}/\\section*{Notas}/; \
+               s/(Vínculos Web)/\\section*{$$1}/; \
+               s/^\s*(Modelo de ingresos|Fecha de la entrevista|Entrevistad(?:o|a|os|as))/\\textbf{$$1}/;' $@
+       perl -p -i -e '$$work=1 if /chapter.Arduino/; $$work=0 if /chapter.Bibliografía/; \
+               next unless $$work; \
+               s/(\\label\{[-\.\wáéíóúñ]+\}\\hyperlabel\{[-\.\wáéíóúñ]+\}%)/$$1\n\\begin{quote}/i; \
+               s/(Perfil escrito por.+)/$$1\n\\end{quote}/' $@
 
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
 lint: $(SOURCE).xml
index e62c4b4c48cb394d191b9dd4790d340791b8be2e..a542a2991c9bb5bb00407a68a3e103c1281b3100 100644 (file)
@@ -13976,7 +13976,7 @@ msgid ""
 "Revenue model: charging content creators an author processing charge to be "
 "featured in the journal"
 msgstr ""
-"modelo de ingresos: cobrar a los creadores de contenido un cargo por "
+"Modelo de ingresos: cobrar a los creadores de contenido un cargo por "
 "procesamiento de autor para ser incluido en la revista"
 
 #. type: Plain text
index a3e89902ea1b0fd5670c7556825118209069f5af..a1a37ebbbf2c6a5a1555c362019054ced30fe466 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: Made with Creative Commons 20170609-2\n"
-"POT-Creation-Date: 2017-10-24 12:24-0500\n"
+"POT-Creation-Date: 2017-10-24 12:32-0500\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"