Class: SiSU_Create_File::CreateFile
Overview
Instance Attribute Summary
#base_markup_dir_stub, #env, #etc, #filename, #flv, #fnb, #fnn, #fnt, #home, #hostname, #processing, #processing_git, #rc, #stub_pwd, #stub_src, #sys, #user, #webserv_host_cgi, #webserv_path, #webserv_port_cgi, #www, #yamlrc_dir
#ad, #fnb, #fnn, #fnt, #fnv, #fnz, #rc
Instance Method Summary
collapse
#ao, #arch, #asciidoc_ocn?, #bin, #build, #cgi, #cgi_sample_search_form_name, #cjk, #cjk_ja, #cjk_ko, #cjk_zh, #composite_file, #concord_max, #console_web_browser, #console_www_browser, #current_document, #defaults, #digest, #digest_conf?, #dir_url, #docbook_viewer, #encoding, #epub_bld, #epub_cp_images, #epub_viewer, #feed, #feed_home, #fictionbook_viewer, #file_encoding, #font, #git, #host, #html, #html_minitoc?, #html_navigation?, #html_navigation_bar?, #html_quick_ref?, #html_right_pane?, #html_scroll_1, #html_scroll_2, #html_search_form?, #html_seg_1, #html_seg_2, #html_seg_title_banner?, #html_top_band?, #i18n, #image_external, #image_source, #image_source_include, #image_source_include_local, #image_source_include_remote, #image_source_sisu_includes, #images, #images_epub, #images_external, #images_local, #landscape, #lang_filename, #language, #language_default_set, #length, #links_to_manifest?, #listed?, #local, #locale, #localhost, #lout, #main, #make, #man, #manifest?, #manifest_minitoc?, #manpage, #manpage_generator, #manpage_viewer, #markdown_ocn?, #markup_emphasis, #metadata?, #minitoc?, #mono, #ocn?, #odf, #odf_pth, #odf_viewer, #odt, #odt_bld, #odt_ocn?, #omit_list, #orgmode_ocn?, #output, #output_tell, #papersize, #path, #path_rel_links, #paths, #pattern, #pdf, #pdf_viewer, #pdflatex, #php, #plaintext_ocn?, #plaintext_wrap, #po, #port, #portrait, #postgresql, #pot, #processing_base_tmp, #processing_path, #processing_sisupod, #program, #promo?, #pwd, #rbver, #read_source_file, #read_source_file_array, #read_source_file_string, #remote, #rexml, #rmagick, #root, #root_dir, #rst_ocn?, #sample_data, #sample_search_form_title, #sans, #scripts, #search?, #search_action, #search_fixed?, #search_form, #search_form?, #search_form_static, #segsubtoc?, #serif, #share, #sisupod_gen, #sisupod_gen_v2, #sisupod_gen_v3, #sisupod_v2, #sisupod_v3, #sisupod_v4, #sisurc_path, #sitearch, #size, #source_file_path, #source_file_processing_array, #source_file_with_path, #sql, #sqlite, #src_pod, #src_txt, #stub_dir, #stub_dir_orig, #stub_epub, #stub_md_harvest, #stub_pod, #style, #tex, #texi, #texinfo, #texpdf, #texpdf_hyperlinks, #text_editor, #textile_ocn?, #tidy, #tmp_root_dir, #toc?, #tune, #txt, #type, #url, #usr_dir?, #wc, #web_browser, #webrick, #webrick_port, #webserv, #webserv_base, #webserv_base_cgi, #webserv_cgi, #webserv_dir, #webserv_files_from_db, #webserv_host_base, #webserv_image, #webserv_map_pwd, #webserv_stub_ensure, #widget, #widget_static, #www_browser, #xml_docbook_ocn?, #xml_editor, #xml_fictionbook_ocn?, #xml_scaffold_ocn?, #xml_viewer, #yamlrc
#by?, #by_filename?, #by_filetype?, #by_language_code?, #default_language?, #document_language_versions_found, #dump?, #filename, #lang, #mono_multi_lingual?, #multilingual?, #output_dir_structure, #published_manifests?, #redirect?
Constructor Details
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
|
# File 'lib/sisu/se_file_op.rb', line 2615
def initialize(fns)
begin
super(fns)
@env=SiSU_Env::InfoEnv.new(fns)
rescue
SiSU_Screen::Ansi.new('',$!,$@).rescue do
__LINE__.to_s + ':' + __FILE__
end
ensure
end
end
|
Instance Method Details
#epub ⇒ Object
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
|
# File 'lib/sisu/se_file_op.rb', line 2683
def epub
@pth=@env.processing_path.epub
def xhtml_index
fn=@pth + '/' \
+ Ep[:d_oebps] + '/index.xhtml'
File.new(fn,'w+')
end
def xhtml_cover_image
fn=@pth + '/' \
+ Ep[:d_oebps] + '/cover_image.xhtml'
File.new(fn,'w+')
end
def xhtml_segtoc
fn=@pth + '/' \
+ Ep[:d_oebps] + '/toc.xhtml'
File.new(fn,'w+')
end
def mimetype File.new("#{@pth}/mimetype",'w')
end
def metadata fn=@pth + '/' \
+ Ep[:d_oebps] + '/' \
+ Ep[:f_opf]
File.new(fn,'w')
end
def toc_ncx fn=@pth + '/' \
+ Ep[:d_oebps] + '/' \
+ Ep[:f_ncx]
File.new(fn,'w')
end
def metainf_cont fn=@pth + '/META-INF/container.xml'
File.new(fn,'w')
end
def xhtml_css fn=@pth + '/' \
+ Ep[:d_oebps] + '/css/xhtml.css'
File.new(fn,'w')
end
self
end
|
#file_debug ⇒ Object
2648
2649
2650
2651
2652
|
# File 'lib/sisu/se_file_op.rb', line 2648
def file_debug
fn=@env.processing_path.ao + '/' \
+ @fns + '.debug.txt'
File.new(fn,'w+')
end
|
#file_error ⇒ Object
2639
2640
2641
2642
|
# File 'lib/sisu/se_file_op.rb', line 2639
def file_error
fn='/tmp/errorlog.sisu'
File.new(fn,'w+')
end
|
#file_generic(output_file = '') ⇒ Object
2633
2634
2635
2636
2637
2638
|
# File 'lib/sisu/se_file_op.rb', line 2633
def file_generic(output_file='')
fn=@env.path.output + '/' \
+ @fnb + '/' \
+ output_file
File.new(fn,'w+')
end
|
2654
2655
2656
2657
2658
|
# File 'lib/sisu/se_file_op.rb', line 2654
def file_meta
fn=@env.processing_path.ao + '/' \
+ @fns + '.meta'
File.new(fn,'w+')
end
|
2659
2660
2661
2662
2663
|
# File 'lib/sisu/se_file_op.rb', line 2659
def file_meta_idx_html
fn=@env.processing_path.ao + '/' \
+ @fns + '.idx.html'
File.new(fn,'w+')
end
|
#file_note ⇒ Object
2666
2667
2668
2669
2670
|
# File 'lib/sisu/se_file_op.rb', line 2666
def file_note
fn=Dir.pwd + '/' \
+ @fns + '.fn'
File.new(fn,'w+')
end
|
2679
2680
2681
2682
|
# File 'lib/sisu/se_file_op.rb', line 2679
def
fn='./semantic.xml'
File.new(fn,'w+')
end
|
#file_semantic ⇒ Object
2675
2676
2677
2678
|
# File 'lib/sisu/se_file_op.rb', line 2675
def file_semantic
fn='./semantic.yaml'
File.new(fn,'w+')
end
|
#file_texinfo ⇒ Object
2726
2727
2728
2729
2730
|
# File 'lib/sisu/se_file_op.rb', line 2726
def file_texinfo
fn=@env.processing_path.texinfo + '/' \
+ @fnb + '.texinfo'
File.new(fn,'w+')
end
|
#file_txt ⇒ Object
2643
2644
2645
2646
2647
|
# File 'lib/sisu/se_file_op.rb', line 2643
def file_txt
fn=@env.processing_path.ao + '/' \
+ @fns + '.txt'
File.new(fn,'w+')
end
|
#html_root ⇒ Object
2626
2627
2628
|
# File 'lib/sisu/se_file_op.rb', line 2626
def html_root
end
|
2671
2672
2673
2674
|
# File 'lib/sisu/se_file_op.rb', line 2671
def meta
@env.processing_path.ao + '/' \
+ @fns + '.meta'
end
|
variable matadata ~/grotto/theatre/dbld/builds/epub_sample/metadata.opf
2703
2704
2705
2706
2707
2708
|
# File 'lib/sisu/se_file_op.rb', line 2703
def metadata fn=@pth + '/' \
+ Ep[:d_oebps] + '/' \
+ Ep[:f_opf]
File.new(fn,'w')
end
|
variable content ~/grotto/theatre/dbld/builds/epub_sample/META-INF/container.xml
2715
2716
2717
2718
|
# File 'lib/sisu/se_file_op.rb', line 2715
def metainf_cont fn=@pth + '/META-INF/container.xml'
File.new(fn,'w')
end
|
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
|
# File 'lib/sisu/se_file_op.rb', line 2653
def metaverse
def file_meta
fn=@env.processing_path.ao + '/' \
+ @fns + '.meta'
File.new(fn,'w+')
end
def file_meta_idx_html
fn=@env.processing_path.ao + '/' \
+ @fns + '.idx.html'
File.new(fn,'w+')
end
self
end
|
#mimetype ⇒ Object
fixed application/epub+zip ~/grotto/theatre/dbld/builds/epub_sample/mimetype
2700
2701
2702
|
# File 'lib/sisu/se_file_op.rb', line 2700
def mimetype File.new("#{@pth}/mimetype",'w')
end
|
#mkdir_pdf ⇒ Object
2629
2630
2631
2632
|
# File 'lib/sisu/se_file_op.rb', line 2629
def mkdir_pdf
Dir.mkdir(@env.processing_path.tex) \
unless FileTest.directory?(@env.processing_path.tex)
end
|
#toc_ncx ⇒ Object
variable toc ~/grotto/theatre/dbld/builds/epub_sample/toc.ncx
2709
2710
2711
2712
2713
2714
|
# File 'lib/sisu/se_file_op.rb', line 2709
def toc_ncx fn=@pth + '/' \
+ Ep[:d_oebps] + '/' \
+ Ep[:f_ncx]
File.new(fn,'w')
end
|
#xhtml_cover_image ⇒ Object
2690
2691
2692
2693
2694
|
# File 'lib/sisu/se_file_op.rb', line 2690
def xhtml_cover_image
fn=@pth + '/' \
+ Ep[:d_oebps] + '/cover_image.xhtml'
File.new(fn,'w+')
end
|
#xhtml_css ⇒ Object
2719
2720
2721
2722
2723
|
# File 'lib/sisu/se_file_op.rb', line 2719
def xhtml_css fn=@pth + '/' \
+ Ep[:d_oebps] + '/css/xhtml.css'
File.new(fn,'w')
end
|
#xhtml_index ⇒ Object
2685
2686
2687
2688
2689
|
# File 'lib/sisu/se_file_op.rb', line 2685
def xhtml_index
fn=@pth + '/' \
+ Ep[:d_oebps] + '/index.xhtml'
File.new(fn,'w+')
end
|
#xhtml_segtoc ⇒ Object
2695
2696
2697
2698
2699
|
# File 'lib/sisu/se_file_op.rb', line 2695
def xhtml_segtoc
fn=@pth + '/' \
+ Ep[:d_oebps] + '/toc.xhtml'
File.new(fn,'w+')
end
|