Top Level Namespace

Includes:
SiSU_Param

Defined Under Namespace

Modules: SiSU, SiSU_AO, SiSU_AO_Appendices, SiSU_AO_BookIndex, SiSU_AO_CharacterCheck, SiSU_AO_DocumentStructure, SiSU_AO_DocumentStructureExtract, SiSU_AO_Endnotes, SiSU_AO_Hash, SiSU_AO_Images, SiSU_AO_Insertions, SiSU_AO_Metadata, SiSU_AO_MiscArrangeText, SiSU_AO_Numbering, SiSU_AO_Persist, SiSU_AO_Syntax, SiSU_Air, SiSU_Assemble, SiSU_CGI, SiSU_CGI_PgSQL, SiSU_CGI_SQL, SiSU_CGI_SQLite, SiSU_CSS, SiSU_Clean_Output, SiSU_Clear, SiSU_Commandline, SiSU_Composite_Doc_Utils, SiSU_Concordance, SiSU_ConvertFootnotes, SiSU_Create_File, SiSU_Create_Site, SiSU_DBI, SiSU_DBI_Discrete, SiSU_DbAction, SiSU_DbColumns, SiSU_DbCreate, SiSU_DbDBI, SiSU_DbDrop, SiSU_DbImport, SiSU_DbIndex, SiSU_DbRemove, SiSU_DbSelect, SiSU_DbTests, SiSU_DbText, SiSU_DbTuple, SiSU_Db_Op, SiSU_Decorate_Txt_AsciiDoc, SiSU_Decorate_Txt_Markdown, SiSU_Decorate_Txt_OrgMode, SiSU_Decorate_Txt_Plain, SiSU_Decorate_Txt_Textile, SiSU_Decorate_Txt_rST, SiSU_DigestView, SiSU_Doc, SiSU_Embedded, SiSU_Env, SiSU_Env_Call, SiSU_Errors, SiSU_File_Map, SiSU_File_Op, SiSU_Filename_Lang, SiSU_FormatAuthor, SiSU_FormatShared, SiSU_Get_Init, SiSU_Git, SiSU_HTML, SiSU_HTML_Format, SiSU_HTML_MiniToc, SiSU_HTML_Persist, SiSU_HTML_Promo, SiSU_HTML_Scroll, SiSU_HTML_Seg, SiSU_HTML_Shared, SiSU_HTML_Table, SiSU_HTML_Tune, SiSU_Harvest, SiSU_HarvestAuthors, SiSU_HarvestTopics, SiSU_Hub_Actions, SiSU_Hub_Loops, SiSU_Images, SiSU_Info_About, SiSU_Info_Date, SiSU_Info_Db, SiSU_Info_Env, SiSU_Info_File, SiSU_Info_Port, SiSU_Info_Processing_Flag, SiSU_Info_Program, SiSU_Info_Remote, SiSU_Info_Remote_Host, SiSU_Info_Set, SiSU_Info_Sys, SiSU_Info_Sys_Gen, SiSU_Info_Version, SiSU_Initialize, SiSU_JSON, SiSU_JSON_Format, SiSU_JSON_Munge, SiSU_JSON_Persist, SiSU_JSON_Shared, SiSU_JSONutils, SiSU_KdiSource, SiSU_Languages_Selected, SiSU_Load, SiSU_Manifest, SiSU_Manpage, SiSU_ManpageFormat, SiSU_Markup, SiSU_MarkupType, SiSU_Metadata, SiSU_Modify, SiSU_Object_Munge, SiSU_Param, SiSU_Param_Make, SiSU_Particulars, SiSU_Parts_Generic, SiSU_Parts_HTML, SiSU_Parts_JSON, SiSU_Parts_TeXpdf, SiSU_Parts_XHTML, SiSU_Parts_XML, SiSU_Po4a, SiSU_Po4aUtils, SiSU_Po4a_Actions, SiSU_Po4a_Project, SiSU_Processing_Settings, SiSU_Proj_HTML, SiSU_Proj_XHTML, SiSU_Proj_XML, SiSU_QRcode, SiSU_Relaxng, SiSU_Remote, SiSU_Response, SiSU_Rexml, SiSU_SStm_AO_SStm, SiSU_Screen, SiSU_Sem, SiSU_SimpleXML_ModelSax, SiSU_Sitemaps, SiSU_Source, SiSU_SpellUtility, SiSU_Standardise_Lang, SiSU_Style, SiSU_Sys_Call, SiSU_Tables, SiSU_TeX, SiSU_TeX_Pdf, SiSU_TexInfo, SiSU_TexInfoFormat, SiSU_TextRepresentation, SiSU_TextUtils, SiSU_Translate, SiSU_Txt_AsciiDoc, SiSU_Txt_Markdown, SiSU_Txt_OrgMode, SiSU_Txt_Plain, SiSU_Txt_Read, SiSU_Txt_Textile, SiSU_Txt_rST, SiSU_UpdateControlFlag, SiSU_Urls, SiSU_Utils, SiSU_Webserv, SiSU_Wikispeak, SiSU_XHTML, SiSU_XHTML_EPUB2, SiSU_XHTML_EPUB2_Concordance, SiSU_XHTML_EPUB2_Format, SiSU_XHTML_EPUB2_Persist, SiSU_XHTML_EPUB2_Seg, SiSU_XHTML_EPUB2_Tune, SiSU_XHTML_Shared, SiSU_XHTML_Table, SiSU_XML_DOM, SiSU_XML_Docbook_Book, SiSU_XML_Fictionbook, SiSU_XML_Format, SiSU_XML_Metadata, SiSU_XML_Munge, SiSU_XML_ODF_ODT, SiSU_XML_ODF_ODT_Format, SiSU_XML_Persist, SiSU_XML_SAX, SiSU_XML_Scaffold_Structure_Collapse, SiSU_XML_Scaffold_Structure_Sisu, SiSU_XML_Tags, SiSU_Zap, SiSU_i18n, SiSU_libs, SiSU_sstFromXML, Txt_Output

Constant Summary collapse

YEAR =

Ax,Xx,Mx,Rx,Hx,Dx,Px,Ep,Db,Gt,Tex=Array.new(11){}

'2016'
Sfx =
{
  txt:                       '.txt',
  txt_textile:               '.textile',
  txt_asciidoc:              '.ad',
  txt_markdown:              '.md',
  txt_rst:                   '.rst',
  txt_orgmode:               '.org',
  html:                      '.html',
  xhtml:                     '.xhtml',
  xml:                       '.xml',
  xml_sax:                   '.sax.xml',
  xml_dom:                   '.dom.xml',
  xml_scaffold:              '.scaffold.xml',
  xml_scaffold_structure_sisu:     '.scaffold.sisu.xml',
  xml_scaffold_structure_collapse: '.scaffold.collapse.xml',
  xml_docbook:               '.docbook.xml',
  xml_docbook_article:       '.article.docbook.xml',
  xml_docbook_book:          '.book.docbook.xml',
  xml_fictionbook:           '.fb2',
  epub:                      '.epub',
  epub_xhtml:                '.xhtml',
  odt:                       '.odt',
  json:                      '.json',
  pdf:                       '.pdf',
  manpage:                   '.1',
  info:                      '.info',
  texinfo:                   '.texinfo',
  sql:                       '.sql.db',
}
Ax =
{
  tab:                       "\t",
  comment:                   '%',
  spaces:                    '  ',
}
Xx =
{
  protect:                   '',
  split:                     '',
  segment:                   'Ф',
  relative_path:             '',
  html_relative2:            '※※',
  html_relative1:            '',
}
Mx =
{
  segname_prefix_auto_num_extract: 'c',
  segname_prefix_auto_num_provide: 's',
  segname_prefix_auto_num_other:   'x',
  ocn_id_char:               '',                                              #'o', now as before; remove for html5
  note:                      'note_',
  note_ref:                  'noteref_',
  note_astx:                 'note_astx_',
  note_ref_astx:             'noteref_astx_',
  note_plus:                 'note_plus_',
  note_ref_plus:             'noteref_plus_',
  meta_o:                    '〔@',   meta_c: '',
  lv_o_0:                    0,
  lv_o_1:                    1,
  lv_o_2:                    2,
  lv_o_3:                    3,
  lv_o_4:                    4,
  lv_o_5:                    5,
  lv_o_6:                    6,
  lv_o_7:                    7,
  lv_o_8:                    8,
  lv_o_9:                    9,
  lv_o:                      '',         lv_c:                '',
  en_a_o:                    '',         en_a_c:              '',          #endnote Mx[:en_a_o]='~{'; Mx[:en_a_c]='}~'
  en_b_o:                    '',         en_b_c:              '',          #endnote Mx[:en_b_o]='~['; Mx[:en_b_c]=']~'
  bl_o:                      '',         bl_c:                '',          #block text mark
  gr_o:                      '',         gr_c:                '',          #group text mark #REPLACE & RETIRE
  id_o:                      '',         id_c:                '',          #object id mark
  tc_o:                      '',         tc_c:                "",          #table row mark #Mx[:tc_c]="』\n"
  tc_p:                      '',                                              #table col/misc mark
  pa_o:                      '',         pa_c:                '',          #affects paragraph mark
  mk_o:                      '',         mk_c:                '',          #generic mark
  gl_o:                      '',         gl_c:                '',          #glyph
  fa_o: '', fa_o_c: '¤', fa_c_o: '¤', fa_c: '',
  idx_o:                     '',         idx_c:               '',
  nbsp:                      '',                                              #'▭ '
  br_line:                   '',                                              #lB ▌  9612 ┘ ¶
  br_nl:                     '',                                              #lB ▌ 』  ┘
  br_paragraph:              '',                                              #FB █  9608 # PP ∥  8741 #▐  #'┘' #'¶' #FB █  9608  lB ▌  9612   RB ▐  9616
  br_obj:                    'break_obj',
  br_page_line:              '',
  br_page:                   '',
  br_page_new:               '',
  lnk_o:                     '',          lnk_c:               '',           #'⌈' '⌋' '⌠' '⌡' #Mx[:lnk_o: '◁'; Mx[:lnk_c: '▷' #‹ ›
  url_o:                     '',          url_c:               '',
  rel_o:                     '',          rel_c:               '',
  tag_o:                     '',          tag_c:               '',
  sm_set_o:                  '',          sm_set_c:            '',
  sm_subset_o:               '',          sm_subset_c:         '',
  vline:                     '',                                              #  ¦ |
  src_bold_o:                '!{',    src_bold_c:               '}!',
  src_italics_o:             '/{',    src_italics_c:            '}/',
  src_underscore_o:          '_{',    src_underscore_c:         '}_',
  src_cite_o:                '"{',    src_cite_c:               '}"',
  src_insert_o:              '+{',    src_insert_c:             '}+',
  src_strike_o:              '-{',    src_strike_c:             '}-',
  src_superscript_o:         '^{',    src_superscript_c:        '}^',
  src_subscript_o:           ',{',    src_subscript_c:          '}',
  src_hilite_o:              '*{',    src_hilite_c:             '}*',
  src_monospace_o:           '#{',    src_monospace_c:          '}#',
  srcrgx_bold_o:             '\!\{',   srcrgx_bold_c:           '\}\!',
  srcrgx_italics_o:          '\/\{',   srcrgx_italics_c:        '\}\/',
  srcrgx_underscore_o:       '_\{',    srcrgx_underscore_c:     '\}_',
  srcrgx_cite_o:             '"\{',    srcrgx_cite_c:           '\}"',
  srcrgx_insert_o:           '\+\{',   srcrgx_insert_c:         '\}\+',
  srcrgx_strike_o:           '\-\{',   srcrgx_strike_c:         '\}\-',
  srcrgx_superscript_o:      '\^\{',   srcrgx_superscript_c:    '\}\^',
  srcrgx_subscript_o:        ',\{',    srcrgx_subscript_c:      '\},',
  srcrgx_hilite_o:           '\*\{',   srcrgx_hilite_c:         '\}\*',
  srcrgx_monospace_o:        '\#\{',   srcrgx_monospace_c:      '\}\#',
}
Hx =
{
  br_obj:                    { obj: Mx[:br_obj] },                             # line sep
  br_page_line:              { obj: Mx[:br_page_line] },                       # line across page
  br_page:                   { obj: Mx[:br_page] },                            # newpage
  br_page_new:               { obj: Mx[:br_page_new] },                        # clearpage
}
Rx =

Mx=‘∈ ’; Mx=‘∋ ’

{
  mx_fa_clean:               /#{Mx[:fa_o]}.+?#{Mx[:fa_c]}|#{Mx[:pa_o]}.+?#{Mx[:pa_c]}|#{Mx[:mk_o]}.+?#{Mx[:mk_c]}/,
  lv:                        /〔([0-9]):(\S*?)〕/,
  lv_0:                      /#{Mx[:lv_o_0]}(\S*?)#{Mx[:lv_c]}/,
  lv_1:                      /#{Mx[:lv_o_1]}(\S*?)#{Mx[:lv_c]}/,
  lv_2:                      /#{Mx[:lv_o_2]}(\S*?)#{Mx[:lv_c]}/,
  lv_3:                      /#{Mx[:lv_o_3]}(\S*?)#{Mx[:lv_c]}/,
  lv_4:                      /#{Mx[:lv_o_4]}(\S*?)#{Mx[:lv_c]}/,
  lv_5:                      /#{Mx[:lv_o_5]}(\S*?)#{Mx[:lv_c]}/,
  lv_6:                      /#{Mx[:lv_o_6]}(\S*?)#{Mx[:lv_c]}/,
  lv_7:                      /#{Mx[:lv_o_7]}(\S*?)#{Mx[:lv_c]}/,
  lv_8:                      /#{Mx[:lv_o_8]}(\S*?)#{Mx[:lv_c]}/,
  lv_9:                      /#{Mx[:lv_o_9]}(\S*?)#{Mx[:lv_c]}/,
  meta:                      /#{Mx[:meta_o]}(\S+?)#{Mx[:meta_c]}/,
}
Dx =
{
  ocn_o:                     '',         ocn_c:                   '',
  url_o:                     '',          url_c:                   '',
  url_o_xml:                 '<',       url_c_xml:               '>',
  rel_o:                     '',          rel_c:                   '',
  lt_xml:                    '<',       gt_xml:                  '>',
}
Tex =
{
  backslash:                 "\\\\",
  backslash:                 "\\\\",
  tilde:                     '\\\\\\~',
}
Px =
{
  bold_o:                    '*',          bold_c:                   '*',
  italics_o:                 '/',          italics_c:                '/',
  underscore_o:              '_',          underscore_c:             '_',
 #emphasis_o:                '*',          emphasis_c:               '*',
 #bold_o:                    '!',          bold_c:                   '!',
  cite_o:                    '"',          cite_c:                   '"',
  insert_o:                  '+',          insert_c:                 '+',
  strike_o:                  '-',          strike_c:                 '-',
  superscript_o:             '^',          superscript_c:            '^',
  subscript_o:               '[',          subscript_c:              ']',
  hilite_o:                  '*',          hilite_c:                 '*',
  monospace_o:               '',           monospace_c:              '',
  lng_lst:                   SiSU_is.language_list?,
  lng_lst_rgx:               SiSU_is.language_list_regex?,
  lv1:                       '*',
  lv2:                       '=',
  lv3:                       '=',
  lv4:                       '-',
  lv5:                       '.',
  lv6:                       '.',
}
Ep =
{
  alt:                       :on,
  d_oebps:                   'OEBPS',
  d_image:                   'OEBPS/image',
  d_css:                     'OEBPS/css',
  f_ncx:                     'toc.ncx',
  f_opf:                     'content.opf',
}
Db =
{
  name_prefix:               "SiSU.#{SiSU_is.version_major?}a.",
  name_prefix_db:            "sisu_#{SiSU_is.version_major?}a_",
  col_title:                  800,
  col_title_part:             400,
  col_title_edition:           10,
  col_name:                   600,
  col_creator_misc_short:     100,
  col_language:               100,
  col_language_char:            6,
  col_date_text:               10,
  col_txt_long:               600,
  col_txt_short:              200,
  col_identify_hash:          256,
  col_library:                 30,
  col_small:                   16,
  col_filename:               256,
  col_digest:                 128,
  col_filesize:                10,
  col_info_note:             2500,
}
Gt =
{
  grotto:                    'sisu_src',
  git:                       'sisu:',
  src:                       'src',
  pods:                      'pods',
  sisupod:                   'sisupod',
  pod:                       'pod',
  files:                     'files',
  doc:                       'doc',
  po:                        'po4a/po',
  pot:                       'po4a/pot',
  image:                     'image',
  audio:                     'audio',
  video:                     'video',
  conf:                      'doc/_sisu',
}
S_CONF =
{
  header_make: 'sisu_document_make',
  rc_yml: 'sisurc.yml',
}
ANSI_C =
{
  red:                       "\033[#{31}m",
  green:                     "\033[#{32}m",
  yellow:                    "\033[#{33}m",
  blue:                      "\033[#{34}m",
  fuchsia:                   "\033[#{35}m",
  cyan:                      "\033[#{36}m",
  inv_red:                   "\033[#{41}m",
  inv_green:                 "\033[#{42}m",
  inv_yellow:                "\033[#{43}m",
  inv_blue:                  "\033[#{44}m",
  inv_fuchsia:               "\033[#{45}m",
  inv_cyan:                  "\033[#{46}m",
  b_red:                     "\033[#{91}m",
  b_green:                   "\033[#{92}m",
  b_yellow:                  "\033[#{93}m",
  b_blue:                    "\033[#{94}m",
  b_fuchsia:                 "\033[#{95}m",
  b_cyan:                    "\033[#{96}m",
  off:                       "\033[m"
}
DISABLE =
{
  epub: {
    internal_navigation:     true,
    per_section_title:       true,
    ncx_navpoint_unique_id:  true,
  },
}
DEVELOPER =
{
  maintenance:               :false,
  under_construction:        '_CONSTRUCTION_ZONE',
}
@@cX =
  • Name: SiSU

** Description: documents, structuring, processing, publishing, search *** system environment, resource control and configuration details

** Author: Ralph Amissah

[[email protected]]
[[email protected]]

** Copyright: © 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,

2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
All Rights Reserved.

** License: GPL 3 or later:

SiSU, a framework for document structuring, publishing and search

Copyright (C) Ralph Amissah

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.

You should have received a copy of the GNU General Public License along with
this program. If not, see [http://www.gnu.org/licenses/].

If you have Internet connection, the latest version of the GPL should be
available at these locations:
[http://www.fsf.org/licensing/licenses/gpl.html]
[http://www.gnu.org/licenses/gpl.html]

** SiSU uses:

* Standard SiSU markup syntax,
* Standard SiSU meta-markup syntax, and the
* Standard SiSU object citation numbering and system

** Hompages:

[http://www.jus.uio.no/sisu]
[http://www.sisudoc.org]

** Git

[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/se.rb;hb=HEAD]
nil
@@info =
nil
@@current_document =
  • Name: SiSU

** Description: documents, structuring, processing, publishing, search *** system environment, resource control and configuration details

** Author: Ralph Amissah

[[email protected]]
[[email protected]]

** Copyright: © 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,

2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
All Rights Reserved.

** License: GPL 3 or later:

SiSU, a framework for document structuring, publishing and search

Copyright (C) Ralph Amissah

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.

You should have received a copy of the GNU General Public License along with
this program. If not, see [http://www.gnu.org/licenses/].

If you have Internet connection, the latest version of the GPL should be
available at these locations:
[http://www.fsf.org/licensing/licenses/gpl.html]
[http://www.gnu.org/licenses/gpl.html]

** SiSU uses:

* Standard SiSU markup syntax,
* Standard SiSU meta-markup syntax, and the
* Standard SiSU object citation numbering and system

** Hompages:

[http://www.jus.uio.no/sisu]
[http://www.sisudoc.org]

** Git

[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/se_info_env.rb;hb=HEAD]
Dir.pwd
@@lang_info =
  • Name: SiSU

** Description: documents, structuring, processing, publishing, search *** system environment, resource control and configuration details

** Author: Ralph Amissah

[[email protected]]
[[email protected]]

** Copyright: © 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,

2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
All Rights Reserved.

** License: GPL 3 or later:

SiSU, a framework for document structuring, publishing and search

Copyright (C) Ralph Amissah

This program is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option)
any later version.

This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.

You should have received a copy of the GNU General Public License along with
this program. If not, see [http://www.gnu.org/licenses/].

If you have Internet connection, the latest version of the GPL should be
available at these locations:
[http://www.fsf.org/licensing/licenses/gpl.html]
[http://www.gnu.org/licenses/gpl.html]

** SiSU uses:

* Standard SiSU markup syntax,
* Standard SiSU meta-markup syntax, and the
* Standard SiSU object citation numbering and system

** Hompages:

[http://www.jus.uio.no/sisu]
[http://www.sisudoc.org]

** Git

[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/se_standardise_lang.rb;hb=HEAD]
nil

Instance Method Summary collapse

Instance Method Details

#talent(termsheet, flag) ⇒ Object



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# File 'lib/sisu/termsheet.rb', line 63

def talent(termsheet,flag)
  @@info=nil
  @@info=termsheet.gsub(/(.+?)\.termsheet\.rb/,'../facility_data/\1.html')
  @env=SiSU_Env::InfoEnv.new
  @dir_fd="#{@env.path.output}/facility_data"
  FileUtils::mkdir_p(@dir_fd) unless FileTest.directory?(@dir_fd)==true
  html_output=[]
  case termsheet
  when /.+?\.(termsheet)\.rb$/
    @basename=termsheet[/(.+?)\.termsheet\.rb/, 1]
    @standard_form={}
    require termsheet
    include Termsheet
    @standard_form=Termsheet::StandardForms.new.standardforms
    puts %{\n#{@@cX.yellow_hi}#{@@cX.black}From#{@@cX.off*2}: #{@@cX.grey_hi}#{@@cX.black}#{@basename}.termsheet.rb#{@@cX.off*3}\n\n}
    @standard_form.each do |k,v|
      @c+=1
      require v
      puts %{\n#{@@cX.blue_hi}#{@@cX.black}Producing the following#{@@cX.off*2}: #{@@cX.green}#{@basename}.#{k}#{@@cX.off}\n\n}
      @done << %{\n\t#{@@cX.grey}Documents generated#{@@cX.off}: #{@@cX.cyan}#{@basename}.#{k}#{@@cX.off}\n}
      @used << %{\n\t#{@@cX.grey}Using#{@@cX.off}: #{@@cX.ruby}#{v}#{@@cX.off}\n}
      html_output=<<WOK
<br /><a href="../#{@basename}.#{k}/landscape.pdf">
<img border="0" width="18" height="15" src="../_sisu/image/b_pdf.png" alt="pdf landscape"></a>&nbsp;
<a href="../#{@basename}.#{k}/portrait.pdf">
<img border="0" width="15" height="18" src="../_sisu/image/b_pdf.png" alt="pdf portrait"></a>&nbsp;
<a href="../#{@basename}.#{k}/sisu_manifest.html">#{@basename}.#{k}.sisu_manifest.html</a>
WOK
      @html_output << html_output
      @txt_input << %{\n\tForm #{@c}: <url:#{Dir.pwd}/#{v}>\n\t        |#{Dir.pwd}/#{v}|@|^|\n}
      @txt_output << %{\n\t#{k}: |../#{@basename}.#{k}/sisu_manifest.html|@|^|\n}
      @report_file_i=File.new("#{@dir_fd}/#{@basename}.txt",'w+')
      @report_file_o=File.new("#{@dir_fd}/#{@basename}.html",'w+')
      @filename_new=File.new("#{@basename}.#{k}.sst",'w+')
      @do << %{#{k}}
      @filename_new << @document
        # "require v" pulls in the composite @document
        # "termsheet" having all the variables required to complete the standard form @document
      @filename_new.close
    end
    @do.each do |x|
      system %{sisu -Nhwpo #{@basename}.#{x}.sst\n}
    end
  else print "not processed --> ", termsheet, "\n"
  end
  @done << %{\n\t#{@@cX.green}Summary:#{@@cX.off} #{@@cX.blue}#{@env.path.output}/facility_data/#{@basename}.html#{@@cX.off}\n}
  @done << %{\n\t#{@@cX.grey}From details provided in#{@@cX.off}: #{@@cX.green}#{termsheet}#{@@cX.off}\n}
  terms=%{\nTermsheet: <url:#{Dir.pwd}/#{termsheet}>\n           |#{Dir.pwd}/#{termsheet}|@|^|\n}
  @report_file_i << "<url:all.txt>\n|all.txt|@|^|\n" << terms << "\nForms:\n" << @txt_input  << "\nOutput Files\n" << @txt_output
  @report_file_o << %{<a href="toc.html">^</a><br />\n} << @html_output
  @@report << @done << @used << "\n"
  @done,@used=[],[]
end