aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/epub_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v3/epub_format.rb')
-rw-r--r--lib/sisu/v3/epub_format.rb40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/sisu/v3/epub_format.rb b/lib/sisu/v3/epub_format.rb
index 1de067e4..345bee95 100644
--- a/lib/sisu/v3/epub_format.rb
+++ b/lib/sisu/v3/epub_format.rb
@@ -1419,7 +1419,7 @@ WOK
end
def navmap_sisu_toc(no)
id_u=DISABLE[:epub][:ncx_navpoint_unique_id] \
- ? '' \
+ ? ''
: "-#{no}"
<<WOK
<navPoint id="navpoint#{id_u}" playOrder="#{no}">
@@ -1433,7 +1433,7 @@ WOK
def navpoint(dob,no,name=nil)
name=name ? name : dob.name
id_u=DISABLE[:epub][:ncx_navpoint_unique_id] \
- ? '' \
+ ? ''
: "-#{no}"
<<WOK
<navPoint id="navpoint#{id_u}" playOrder="#{no}">
@@ -1485,13 +1485,13 @@ WOK
m=''
@md.creator.author_detail.each do |x|
surname=x[:the] \
- ? x[:the] \
+ ? x[:the]
: ''
other_names=x[:others] \
- ? ', ' + x[:others] \
+ ? ', ' + x[:others]
: ''
m=(m.empty?) \
- ? (surname + other_names) \
+ ? (surname + other_names)
: (m + '; ' + surname + ', ' + other_names)
m.gsub!(/</,'&lt;'); m.gsub!(/>/,'&gt;')
m.gsub!(/&lt;br(?: \/)?&gt;/,';')
@@ -1507,13 +1507,13 @@ WOK
m=''
@md.creator.editor_detail.each do |x|
surname=x[:the] \
- ? x[:the] \
+ ? x[:the]
: ''
other_names=x[:others] \
- ? ', ' + x[:others] \
+ ? ', ' + x[:others]
: ''
m=(m.empty?) \
- ? (surname + other_names) \
+ ? (surname + other_names)
: (m + '; ' + surname + ', ' + other_names)
m.gsub!(/</,'&lt;'); m.gsub!(/>/,'&gt;')
m.gsub!(/&lt;br(?: \/)?&gt;/,';')
@@ -1529,13 +1529,13 @@ WOK
m=''
@md.creator.translator_detail.each do |x|
surname=x[:the] \
- ? x[:the] \
+ ? x[:the]
: ''
other_names=x[:others] \
- ? ', ' + x[:others] \
+ ? ', ' + x[:others]
: ''
m=(m.empty?) \
- ? (surname + other_names) \
+ ? (surname + other_names)
: (m + '; ' + surname + ', ' + other_names)
m.gsub!(/</,'&lt;'); m.gsub!(/>/,'&gt;')
m.gsub!(/&lt;br(?: \/)?&gt;/,';')
@@ -1551,13 +1551,13 @@ WOK
m=''
@md.creator.illustrator_detail.each do |x|
surname=x[:the] \
- ? x[:the] \
+ ? x[:the]
: ''
other_names=x[:others] \
- ? ', ' + x[:others] \
+ ? ', ' + x[:others]
: ''
m=(m.empty?) \
- ? (surname + other_names) \
+ ? (surname + other_names)
: (m + '; ' + surname + ', ' + other_names)
m.gsub!(/</,'&lt;'); m.gsub!(/>/,'&gt;')
m.gsub!(/&lt;br(?: \/)?&gt;/,';')
@@ -1767,7 +1767,7 @@ WOK
#{@vz.epub_png_nav_nxt}
</a>} if @md.firstseg =~/\S+/
DISABLE[:epub][:internal_navigation] \
- ? '' \
+ ? ''
: %{<p class="align_right">#{firstseg}</p>}
end
def seg_head_navigation_band_bottom
@@ -1775,7 +1775,7 @@ WOK
#{@vz.epub_png_nav_nxt}
</a>} if @md.firstseg =~/\S+/
DISABLE[:epub][:internal_navigation] \
- ? '' \
+ ? ''
: %{<p class="align_right">#{firstseg}</p>}
end
def manifest_link(text) #watch fix removed font size 2
@@ -1954,7 +1954,7 @@ WOK
</a>
} if f_nxt==true
DISABLE[:epub][:internal_navigation] \
- ? '' \
+ ? ''
: %{<p class="align_right">
#{pre}
#{toc}
@@ -2282,17 +2282,17 @@ WOK
end
def title_heading1
id_u=DISABLE[:epub][:per_section_title] \
- ? '' \
+ ? ''
: title_heading('h1','tiny')
end
def title_heading2
id_u=DISABLE[:epub][:per_section_title] \
- ? '' \
+ ? ''
: title_heading('h2','tiny')
end
def title_heading3
id_u=DISABLE[:epub][:per_section_title] \
- ? '' \
+ ? ''
: title_heading('h3','tiny')
end
def title_heading4