aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/epub_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/epub_format.rb')
-rw-r--r--lib/sisu/v2/epub_format.rb28
1 files changed, 6 insertions, 22 deletions
diff --git a/lib/sisu/v2/epub_format.rb b/lib/sisu/v2/epub_format.rb
index 6bbbd668..350e6f2c 100644
--- a/lib/sisu/v2/epub_format.rb
+++ b/lib/sisu/v2/epub_format.rb
@@ -1281,9 +1281,6 @@ WOK
def head
%{#{doc_type}
<head>
- <title>
- #{@md.html_title}
- </title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
#{@css.xhtml_epub}
</head>
@@ -1593,25 +1590,6 @@ WOK
toc_metadata
end
def title_banner(title,subtitle,creator)
- %{
-<div class="summary">
- <p class="tiny">
- #{title}
- </p>
- <p class="tiny">
- #{subtitle}
- </p>
- <p class="tiny">
- #{creator}
- </p>
- <p class="tiny">
- copy @
- <a href="#{@vz.url_home}">
- #{@vz.txt_home}
- </a>
- </p>
-</div>
-}
end
end
class Head_scroll < Head_toc
@@ -1925,7 +1903,13 @@ WOK
</p>
}
end
+ def clean(txt)
+ txt.gsub!(/#{Mx[:en_a_o]}.+?#{Mx[:en_a_c]}/,'')
+ txt.gsub!(/#{Mx[:en_b_o]}.+?#{Mx[:en_b_c]}/,'')
+ txt
+ end
def subtoc_lev(tag,attrib)
+ @txt=clean(@txt)
txt=if @txt \
and @txt =~/<\/?i>|<a\s+name="\S+?">/mi
@txt.gsub(/<\/?i>|<a\s+name="\S+?">/mi,'') #removes name markers from subtoc, go directly to substantive text