aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/help.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v2/help.rb')
-rw-r--r--lib/sisu/v2/help.rb13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/sisu/v2/help.rb b/lib/sisu/v2/help.rb
index 894f1654..38f0a782 100644
--- a/lib/sisu/v2/help.rb
+++ b/lib/sisu/v2/help.rb
@@ -75,7 +75,7 @@ module SiSU_Help
def help_request
begin
gotten=nil
- regx=/^(list|com(?:mands)?|mod(?:ifiers)|markup|syntax|example(?:37|38)?|head(?:ers?)?|(?:heading|title|level|structure)s?|endnotes|footnotes|tables?|customise|skin|dir(?:ectories)?|paths?|lang(?:uage)?|modules|setup|conf(?:ig(?:ure)?)?|standards?|li[cs]en[sc]e|scratch|install|termsheet|dublin(?:core)?|dc|customise|styles?|appearance|theme|env(ironment)?|dir(?:ector(?:y|ies))?|metaverse|abstract|features|summary|(?:short)?cuts?|sisu|about|ext(?:ernal)?(?:_?prog(?:rams)?)?)|utf-?8|plaintext|html|xml|xhtml|odf|odt|opendocument|css|pdf|latex|tex|(?:tex)?info|search|(?:hyper)?est(?:raier)?|searchform|cgi|sql|db|postgresql|pg?sql|sqlite|convert|php|webrick|sitemaps?|ya?ml|ansi|colors|-[AabcDdEeFHhIMmNnopqrRSstUuVvwXxyZz0-9]|-[Ddcv]|-[CcFLSVvW]/
+ regx=/^(list|com(?:mands)?|mod(?:ifiers)|markup|syntax|example(?:37|38)?|head(?:ers?)?|(?:heading|title|level|structure)s?|endnotes|footnotes|tables?|customise|skin|dir(?:ectories)?|paths?|lang(?:uage)?|modules|setup|conf(?:ig(?:ure)?)?|standards?|li[cs]en[sc]e|scratch|install|termsheet|dublin(?:core)?|dc|customise|styles?|appearance|theme|env(ironment)?|dir(?:ector(?:y|ies))?|metaverse|abstract|features|summary|(?:short)?cuts?|sisu|about|ext(?:ernal)?(?:_?prog(?:rams)?)?)|utf-?8|plaintext|html|xml|xhtml|epub|odf|odt|opendocument|css|pdf|latex|tex|(?:tex)?info|search|(?:hyper)?est(?:raier)?|searchform|cgi|sql|db|postgresql|pg?sql|sqlite|convert|php|webrick|sitemaps?|ya?ml|ansi|colors|-[AabcDdEeFHhIMmNnopqrRSstUuVvwXxyZz0-9]|-[Ddcv]|-[CcFLSVvW]/
help_info=%{#{@cX.blue_hi}SiSU help#{@cX.off} #{@cX.ruby}~#{@cX.off} #{@request}}
help_list=%{#{@cX.blue}sisu --help#{@cX.off} #{@cX.cyan}type keyword else "enter" to exit help:\n\tkeywords include:#{@cX.off} #{@cX.brown}list, (com)mands, short(cuts), (mod)ifiers, (env)ironment, markup, syntax, headers, headings, endnotes, tables, example, customise, skin, (dir)ectories, path, (lang)uage, db, install, setup, (conf)igure, convert, external_programs, dublincore, termsheet, search, sql, hyper(est)raier, features, external_programs, license#{@cX.off} \n}
help_prompt=%{#{@cX.fuschia}exit, [or carriage return to exit help] #{@cX.off}\n#{@cX.blue_hi}SiSU help#{@cX.off} #{@cX.ruby}~#{@cX.off} }
@@ -125,6 +125,7 @@ module SiSU_Help
when /xhtml|-b/; @help.xhtml
when /xml|-[xX]/; @help.xml
when /odf|odt|opendocument|-o/; @help.odf
+ when /epub|-e/; @help.epub
when /php/; @help.php
when /pdf|-p/; @help.pdf
when /latex|tex/; @help.latex
@@ -995,6 +996,7 @@ WOK
pdf viewer: #{@cX.blue}#{@env.program.pdf_viewer}#{@cX.off}
xml viewer: #{@cX.blue}#{@env.program.xml_editor}#{@cX.off}
odf viewer: #{@cX.blue}#{@env.program.odf_viewer}#{@cX.off}
+ epub viewer: #{@cX.blue}#{@env.program.epub_viewer}#{@cX.off}
(default selections can be changed in sisurc.yml under program_select:)
#{@cX.green}programs used if available#{@cX.off}
word count: #{program_found?(@env.program.wc)}
@@ -1504,6 +1506,8 @@ WOK
sisu -X [filename/wildcard] xml document (dom type parsing)
sisu -o [filename/wildcard] odt document, (odf open document format)
+
+ sisu -e [filename/wildcard] odt document, (epub document)
WOK
help_commands
end
@@ -1514,6 +1518,13 @@ WOK
WOK
help_commands
end
+ def epub
+ print <<WOK
+
+ sisu -e [filename/wildcard] epub document, (open format for e-books)
+WOK
+ help_commands
+ end
def php
print <<WOK