Module: IsoDoc::JIS::BaseConvert
- Included in:
- HtmlConvert, WordConvert
- Defined in:
- lib/isodoc/jis/base_convert.rb
Instance Method Summary collapse
- #middle_subtitle_main(out) ⇒ Object
- #middle_title(_isoxml, out) ⇒ Object
- #middle_title_main(out) ⇒ Object
Instance Method Details
#middle_subtitle_main(out) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/isodoc/jis/base_convert.rb', line 26 def middle_subtitle_main(out) @meta.get[:docsubtitlemain] or return out.p(class: "zzSTDTitle2") do |p| p << @meta.get[:docsubtitleintro] p << " — " if @meta.get[:docsubtitleintro] && @meta.get[:docsubtitlemain] p << @meta.get[:doctitlemain] p << " — " if @meta.get[:docsubtitlemain] && @meta.get[:docsubtitlepart] end a = @meta.get[:docsubtitlepart] and out.p(class: "zzSTDTitle2") do |p| b = @meta.get[:docsubtitlepartlabel] and p << "#{b}: " p << "<br/><b>#{a}</b>" end end |
#middle_title(_isoxml, out) ⇒ Object
7 8 9 10 11 |
# File 'lib/isodoc/jis/base_convert.rb', line 7 def middle_title(_isoxml, out) middle_title_main(out) middle_subtitle_main(out) # middle_title_amd(out) end |
#middle_title_main(out) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/isodoc/jis/base_convert.rb', line 13 def middle_title_main(out) out.p(class: "zzSTDTitle1") do |p| p << @meta.get[:doctitleintro] p << " — " if @meta.get[:doctitleintro] && @meta.get[:doctitlemain] p << @meta.get[:doctitlemain] p << " — " if @meta.get[:doctitlemain] && @meta.get[:doctitlepart] end a = @meta.get[:doctitlepart] and out.p(class: "zzSTDTitle1") do |p| b = @meta.get[:doctitlepartlabel] and p << "#{b}: " p << "<br/><b>#{a}</b>" end end |