Class: SiSU_AO::Make

Inherits:
Object
  • Object
show all
Defined in:
lib/sisu/ao.rb

Instance Method Summary collapse

Constructor Details

#initialize(fn, md, data, fnx, process) ⇒ Make

Returns a new instance of Make.



523
524
525
526
# 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

Instance Method Details

#resetObject



527
528
529
530
# File 'lib/sisu/ao.rb', line 527

def reset
  @@flag_vocab=0
  @@line_mode=''
end

#songObject



531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
# 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,
    ,
    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,).
    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