aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v4/param_make.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v4/param_make.rb')
-rw-r--r--lib/sisu/v4/param_make.rb14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/sisu/v4/param_make.rb b/lib/sisu/v4/param_make.rb
index cfc14074..675c0955 100644
--- a/lib/sisu/v4/param_make.rb
+++ b/lib/sisu/v4/param_make.rb
@@ -167,12 +167,13 @@ module SiSU_Param_Make
pagebreaks=((@h['breaks'] =~/;/) \
? (@h['breaks'].split(/;\s*/))
: [ @h['breaks'] ])
- page_new,page_break=nil,nil
+ page_new,page_break,page_line=nil,nil,nil
pagebreaks.each do |x|
page_new=x[/(:?[\dA-C],?)+/] if x=~/new|clear/
page_break=x[/(:?[\dA-C],?)+/] if x =~/break/
+ page_line=x[/(:?[\dA-C],?)+/] if x =~/line/
end
- { page_new: page_new, page_break: page_break }
+ { page_new: page_new, page_break: page_break, page_line: page_line }
end
def language
l=if @h['language'] && (@h['language']=~/\S{2,}/)
@@ -516,12 +517,12 @@ module SiSU_Param_Make
end
end
class MakeHead
- attr_accessor :pagenew,:pagebreak,:toc,:lv1,:lv2,:lv3,:lv4,:lv5,:lv6,:num_top,:i18n,:man_section,:substitution_match_list,:bold_match_list,:italics_match_list,:emphasis_set_to,:footer_links,:home_button_links,:home_button_image,:cover_image
+ attr_accessor :pagenew,:pagebreak,:pageline,:toc,:lv1,:lv2,:lv3,:lv4,:lv5,:lv6,:num_top,:i18n,:man_section,:substitution_match_list,:bold_match_list,:italics_match_list,:emphasis_set_to,:footer_links,:home_button_links,:home_button_image,:cover_image
def initialize(make)
@make=make
end
def clear
- @pagenew=@pagebreak=@toc=@lv1=@lv2=@lv3=@lv4=@lv5=@lv6=@num_top=@i18n=@man_section=@footer_links=@substitution_match_list=@bold_match_list=@italics_match_list=@emphasis_set_to=@home_button_links=@home_button_image=@cover_image=nil
+ @pagenew=@pagebreak=@pageline=@toc=@lv1=@lv2=@lv3=@lv4=@lv5=@lv6=@num_top=@i18n=@man_section=@footer_links=@substitution_match_list=@bold_match_list=@italics_match_list=@emphasis_set_to=@home_button_links=@home_button_image=@cover_image=nil
end
def make_instruct
clear
@@ -533,6 +534,10 @@ module SiSU_Param_Make
and @make.breaks[:page_break] #newpage
@pagebreak=@make.breaks[:page_break]
end
+ if defined? @make.breaks \
+ and @make.breaks[:page_line] #page line across
+ @pagebreak=@make.breaks[:page_line]
+ end
if defined? @make.headings \
and @make.headings
@toc=@make.headings[0]
@@ -615,6 +620,7 @@ module SiSU_Param_Make
end
{ pagenew: @pagenew,
pagebreak: @pagebreak,
+ pageline: @pageline,
toc: @toc,
lv1: @lv1,
lv2: @lv2,