Recover footnote connections

parent 4047fa70
......@@ -2,7 +2,7 @@ require("ccm_toolkit/filters-common")
-- Kill off archaic convestion of small caps for names and verse references
Span = function (element)
if (#element.classes == 1 and hasClass(element, { "sc" })) then
if (#element.classes == 1 and hasClass(element, { "sc", "Footnote" })) then
return element.content
end
if (#element.classes == 1 and hasClass(element, { "Latin" })) then
......@@ -19,3 +19,10 @@ Span = function (element)
end
return element
end
Div = function (element)
if (#element.classes == 1 and hasClass(element, { "mnote" })) then
return element.content
end
return element
end
......@@ -33,4 +33,5 @@ cleanup_ccel: $(filter en/%,$(MARKDOWNSOURCES))
$(call munge,$^,$(PERL) $(PERLARGS) -pne 's!\[\]\{#[^#}]+#[^}]*?Page_([^\s}]+) \.pb\}![]{#page_\1 .print}!g',Fix CCEL ebook page number anchors)
$(call munge,$^,$(PERL) $(PERLARGS) -pne 's!\[(\[\]\{[^}]*\})!\1\[!g',Unwrap CCEL ebook page number anchors from other markup)
$(call munge,$^,$(PERL) $(PERLARGS) -pne 's!\[\]\{[^\s}]+?\}!!g',Drop unused anchor types)
$(call munge,$^,$(PANDOC) $(PANDOCARGS) $(PANDOCFILTERS) $(PANDOCFILTERARGS),Filter out unwanted styles)
$(call munge,$^,$(PANDOC) $(PANDOCARGS) $(PANDOCFILTERS) $(PANDOCFILTERARGS),Filter out unwanted and map remaining to CaSILE styles)
$(call munge,$^,$(PERL) $(PERLARGS) -pne 's!\^\[(\d+)\].*?.Note\}\^![^\1]!g;s!^\\\[\\\^(\d+)\\\^\\\].*?\.Note\}\s*![^\1]: !g',Recover footnote connections)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment