class SiSU_AO::Make

Public Class Methods

new(fn,md,data,fnx,process) click to toggle source
# File lib/sisu/ao.rb, line 523
def initialize(fn,md,data,fnx,process)
  @fn,@md,@data,@fnx,@process=fn,md,data,fnx,process
  @env=SiSU_Env::InfoEnv.new(@md.fns)
end

Public Instance Methods

reset() click to toggle source
# File lib/sisu/ao.rb, line 527
def reset
  @@flag_vocab=0
  @@line_mode=''
end
song() click to toggle source
# File lib/sisu/ao.rb, line 531
def song
  reset
  data_txt=@data
  data_txt=
    SiSU_AO_Insertions::Insertions.new(@md,data_txt).                  # ao_expand_insertions.rb
      expand_insertions?
  data_txt=
    SiSU_AO_MiscArrangeText::SI.new(@md,data_txt).                     # ao_misc_arrange.rb
      prepare_text
  data_obj,
    metadata,
    bibliography=
      SiSU_AO_DocumentStructureExtract::Build.new(@md,data_txt).       # ao_doc_str.rb
        identify_parts
  data_obj=
    SiSU_AO_Syntax::Markup.new(@md,data_obj,bibliography).songsheet    # ao_syntax.rb
  data_obj,
    endnote_array=
      SiSU_AO_CharacterCheck::Check.new(data_obj).                     # ao_character_check.rb
        character_check_and_oldstyle_endnote_array
  data_obj=
     SiSU_AO_Images::Images.new(@md,data_obj).images                   # ao_images.rb
  data_obj,
    tags_map,
    ocn_html_seg_map=
      SiSU_AO_Numbering::Numbering.new(@md,data_obj,@fnx,@process).    # ao_numbering.rb
        numbering_song
  data_obj,
    book_index_rel,
    book_index_rel_html_seg,
    html_idx,
    xhtml_idx=
      SiSU_AO_BookIndex::BookIndex.new(@md,data_obj,@env).             # ao_idx.rb
        indexing_song if @md.book_idx
  data_obj=
    SiSU_AO_Endnotes::Endnotes.new(@md,data_obj,endnote_array).        # ao_endnotes.rb
      endnotes
  outputdata=data_obj
  if (@md.opt.act[:ao][:set]==:on \
  || @md.opt.act[:maintenance][:set]==:on)
    SiSU_AO::Output.new(@fn,@md,outputdata).hard_output
    SiSU_AO::Output.new(@fn,@md,outputdata).make_marshal_content
    SiSU_AO::Output.new(@fn,@md,metadata).make_marshal_metadata
    SiSU_AO::Output.new(@fn,@md,html_idx).idx_html_hard_output
    SiSU_AO::Output.new(@fn,@md,book_index_rel_html_seg).make_marshal_idx_sst_html_seg
    SiSU_AO::Output.new(@fn,@md,book_index_rel).make_marshal_idx_sst_rel
    SiSU_AO::Output.new(@fn,@md,html_idx).make_marshal_idx_html
    SiSU_AO::Output.new(@fn,@md,xhtml_idx).make_marshal_idx_xhtml
    SiSU_AO::Output.new(@fn,@md,tags_map).make_marshal_map_nametags
    SiSU_AO::Output.new(@fn,@md,ocn_html_seg_map).make_marshal_map_name_ocn_htmlseg
  end
  reset
  outputdata
end