class Object
Constants
- ANSI_C
- Ax
- DEVELOPER
- DISABLE
- Db
- Dx
- Ep
- Gt
- Hx
- Mx
- Px
- Rx
- S_CONF
- Sfx
- Tex
- Xx
- YEAR
-
Name:
SiSU
** Description: documents, structuring, processing, publishing, search *** constants, system environment, resource control and configuration details
** Author: Ralph Amissah
[ralph@amissah.com] [ralph.amissah@gmail.com]
** Copyright: (C) 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/constants.rb;hb=HEAD]
-
Public Instance Methods
talent(termsheet,flag)
click to toggle source
# 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> <a href="../#{@basename}.#{k}/portrait.pdf"> <img border="0" width="15" height="18" src="../_sisu/image/b_pdf.png" alt="pdf portrait"></a> <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