]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Move code to emphesize keywords from LaTeX to markdown.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 1 Feb 2018 07:06:36 +0000 (07:06 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 22 Feb 2018 18:12:08 +0000 (18:12 +0000)
Makefile
fixup.rb

index b4ad4278f1ddcd0c620eb2683577fadf1130729d..eedec4bf5cad81f8ac00b320d1c0220893230935 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -95,8 +95,7 @@ epub: $(SOURCE).epub
                s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \
                s/\\chapter\{(Foreword|Prefacio|Forord|Introduction|Introducción|Introduksjon)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \
                s/\\section\{(Notes|Notas)\}/\\section*{$$1}/; \
                s/\\chapter\{(Colophon|Dedication)\}/\\chapter*{}/; \
                s/\\chapter\{(Foreword|Prefacio|Forord|Introduction|Introducción|Introduksjon)\}/\\chapter*{$$1} \\addcontentsline{toc}{chapter}{$$1}/; \
                s/\\section\{(Notes|Notas)\}/\\section*{$$1}/; \
-               s/(Web links?|Vínculos Web)/\\section*{$$1}/; \
-               s/^\s*(Revenue model|Interview date|Interviewees?|(Modelo de ingresos|Fecha de la entrevista|Entrevistad(?:o|a|os|as)))/\\textbf{$$1}/;' $@
+               s/(Web links?|Vínculos Web)/\\section*{$$1}/;' $@
 
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
 lint: $(SOURCE).xml
 
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
 lint: $(SOURCE).xml
index 211bd26b558e89a4084b99251ee44b947aee933c..17bf82b34724ecef667256acf3ec9e3a766e3271 100644 (file)
--- a/fixup.rb
+++ b/fixup.rb
@@ -295,5 +295,8 @@ data.each_with_index do |lin, idx|
   end
 end
 
   end
 end
 
+log 0, 'emphesize keywords'
+data.map {|lin| lin.gsub!(/^(>\s*)(Revenue model|Interview date|Interviewees?):/, '\\1**\\2**:')}
+
 log 0, 'Writing processed file'
 File.open(dstfile, 'w') {|f| f.puts data.join("\n")}
 log 0, 'Writing processed file'
 File.open(dstfile, 'w') {|f| f.puts data.join("\n")}