From c10a6dcb74bfcd13e5e0897cb5d92e8e471e99e1 Mon Sep 17 00:00:00 2001
From: Ralph Amissah <ralph@amissah.com>
Date: Fri, 8 Aug 2014 00:14:17 -0400
Subject: v6: commandline, --act0 to --act9, rc-config with flag:act[0-9]

* configurable command line options increased to 0 - 9 (instead of 0 - 5)
* use --act0 to --act9 (previous flags -1 to -5; -0 to -9 now available)
* default --act0
* rc config with flag:act0 to flag:act9 (previously roman numerals)
* legacy roman numeral configuration works (for now)
---
 conf/sisu/rc/sisurc_by_fn.yml                      |  22 ++-
 conf/sisu/rc/sisurc_by_ft.yml                      |  22 ++-
 conf/sisu/rc/sisurc_by_lng.yml                     |  22 ++-
 data/doc/sisu/CHANGELOG_v6                         |   7 +
 .../manual/_sisu/rc/sisurc_by_fn.yml               |  16 +-
 .../manual/_sisu/rc/sisurc_by_ft.yml               |  16 +-
 .../manual/_sisu/rc/sisurc_by_lng.yml              |  23 +--
 lib/sisu/v6/ao_expand_insertions.rb                |  20 ++-
 lib/sisu/v6/hub_options.rb                         |  40 +++--
 lib/sisu/v6/se_processing.rb                       | 186 ++++++++++++++++-----
 10 files changed, 274 insertions(+), 100 deletions(-)

diff --git a/conf/sisu/rc/sisurc_by_fn.yml b/conf/sisu/rc/sisurc_by_fn.yml
index 2e48b7de..dfd8e1bd 100644
--- a/conf/sisu/rc/sisurc_by_fn.yml
+++ b/conf/sisu/rc/sisurc_by_fn.yml
@@ -49,12 +49,22 @@ show_output_on: 'filesystem_url'
 #% flag - set (non-default) processing flag shortcuts -1, -2 etc. (here adding colour and verbosity as default)
 flag:
   color:        true                        # making colour default -c is toggle, and will now toggle colour off
-#  default:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
-#  i:            '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
-#  ii:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
-#  iii:          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
-#  iv:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --postresql --update --manifest'
-#  v:            '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act0:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+#  act1:      '--digest --text --html --manifest'
+#  act2:      '--digest --text --html --epub --pdf --manifest'
+#  act3:      '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+#  act4:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --manifest'
+#  act5:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --sqlite --manifest'
+#  act6:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+#  act7:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act8:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+#  act9:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --source --sisupod --manifest'
+##  default:  '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+##  i:        '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+##  ii:       '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
+##  iii:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+##  iv:       '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+##  v:        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
 
 #% papersize, (LaTeX/pdf) available values: A4, US_letter, book_b5, book_a5, US_legal
 default:
diff --git a/conf/sisu/rc/sisurc_by_ft.yml b/conf/sisu/rc/sisurc_by_ft.yml
index 09be296a..3b0db1d1 100644
--- a/conf/sisu/rc/sisurc_by_ft.yml
+++ b/conf/sisu/rc/sisurc_by_ft.yml
@@ -49,12 +49,22 @@ show_output_on: 'filesystem_url'
 #% flag - set (non-default) processing flag shortcuts -1, -2 etc. (here adding colour and verbosity as default)
 flag:
   color:        true                        # making colour default -c is toggle, and will now toggle colour off
-#  default:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
-#  i:            '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
-#  ii:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
-#  iii:          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
-#  iv:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --postresql --update --manifest'
-#  v:            '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act0:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+#  act1:      '--digest --text --html --manifest'
+#  act2:      '--digest --text --html --epub --pdf --manifest'
+#  act3:      '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+#  act4:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --manifest'
+#  act5:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --sqlite --manifest'
+#  act6:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+#  act7:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act8:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+#  act9:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --source --sisupod --manifest'
+##  default:  '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+##  i:        '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+##  ii:       '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
+##  iii:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+##  iv:       '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+##  v:        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
 
 #% papersize, (LaTeX/pdf) available values: A4, US_letter, book_b5, book_a5, US_legal
 default:
diff --git a/conf/sisu/rc/sisurc_by_lng.yml b/conf/sisu/rc/sisurc_by_lng.yml
index 18bfc313..4b2d110e 100644
--- a/conf/sisu/rc/sisurc_by_lng.yml
+++ b/conf/sisu/rc/sisurc_by_lng.yml
@@ -49,12 +49,22 @@ show_output_on: 'filesystem_url'
 #% flag - set (non-default) processing flag shortcuts -1, -2 etc. (here adding colour and verbosity as default)
 flag:
   color:        true                        # making colour default -c is toggle, and will now toggle colour off
-#  default:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
-#  i:            '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
-#  ii:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
-#  iii:          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
-#  iv:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --postresql --update --manifest'
-#  v:            '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act0:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+#  act1:      '--digest --text --html --manifest'
+#  act2:      '--digest --text --html --epub --pdf --manifest'
+#  act3:      '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+#  act4:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --manifest'
+#  act5:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --sqlite --manifest'
+#  act6:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+#  act7:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act8:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+#  act9:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --source --sisupod --manifest'
+##  default:  '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+##  i:        '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+##  ii:       '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
+##  iii:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+##  iv:       '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+##  v:        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
 
 #% papersize, (LaTeX/pdf) available values: A4, US_letter, book_b5, book_a5, US_legal
 default:
diff --git a/data/doc/sisu/CHANGELOG_v6 b/data/doc/sisu/CHANGELOG_v6
index 0aaa9cfc..2e6586da 100644
--- a/data/doc/sisu/CHANGELOG_v6
+++ b/data/doc/sisu/CHANGELOG_v6
@@ -30,6 +30,13 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_6.2.0.orig.tar.xz
 
 * some file renames, fairly extensive
 
+* commandline, --act0 to --act9 & rc-config with act instead of roman numeral
+  * configurable command line options increased to 0 - 9 (instead of 0 - 5)
+  * use --act0 to --act9
+  * default --act0
+  * rc config with flag:act0 to flag:act9
+  * legacy roman numeral configuration works (for now)
+
 %% 6.1.5.orig.tar.xz (2014-07-29:30/2)
 http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/sisu_6.1.5
 http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=log;h=refs/tags/debian/sisu_6.1.5-1
diff --git a/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_fn.yml b/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_fn.yml
index 1f0a7981..e8d42695 100644
--- a/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_fn.yml
+++ b/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_fn.yml
@@ -49,12 +49,16 @@ show_output_on: 'filesystem_url'
 #% flag - set (non-default) processing flag shortcuts -1, -2 etc. (here adding colour and verbosity as default)
 flag:
   color:        true                        # making colour default -c is toggle, and will now toggle colour off
-#  default:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
-#  i:            '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
-#  ii:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
-#  iii:          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
-#  iv:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --postresql --update --manifest'
-#  v:            '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act0:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+#  act1:      '--digest --text --html --manifest'
+#  act2:      '--digest --text --html --epub --pdf --manifest'
+#  act3:      '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+#  act4:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --manifest'
+#  act5:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --sqlite --manifest'
+#  act6:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+#  act7:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act8:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+#  act9:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --source --sisupod --manifest'
 
 #% papersize, (LaTeX/pdf) available values: A4, US_letter, book_b5, book_a5, US_legal
 default:
diff --git a/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_ft.yml b/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_ft.yml
index 8a9f13d8..b80808fc 100644
--- a/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_ft.yml
+++ b/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_ft.yml
@@ -49,12 +49,16 @@ show_output_on: 'filesystem_url'
 #% flag - set (non-default) processing flag shortcuts -1, -2 etc. (here adding colour and verbosity as default)
 flag:
   color:        true                        # making colour default -c is toggle, and will now toggle colour off
-#  default:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
-#  i:            '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
-#  ii:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
-#  iii:          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
-#  iv:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --postresql --update --manifest'
-#  v:            '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act0:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+#  act1:      '--digest --text --html --manifest'
+#  act2:      '--digest --text --html --epub --pdf --manifest'
+#  act3:      '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+#  act4:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --manifest'
+#  act5:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --sqlite --manifest'
+#  act6:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+#  act7:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act8:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+#  act9:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --source --sisupod --manifest'
 
 #% papersize, (LaTeX/pdf) available values: A4, US_letter, book_b5, book_a5, US_legal
 default:
diff --git a/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_lng.yml b/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_lng.yml
index 364532df..62fb7624 100644
--- a/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_lng.yml
+++ b/data/doc/sisu/markup-samples/manual/_sisu/rc/sisurc_by_lng.yml
@@ -14,10 +14,9 @@
 #  public:       '_sisu/image'
 #  #all:           'image'
 #% presentation/web directory, main path and subdirectories (most subdirectories are created automatically based on markup directory name)
-webserv:
-# url_root:     'http://www.sisudoc.org' #url to document root, without dir stub
-  url_root:     'http://192.168.1.108' #url to document root, without dir stub
-  path:         '/srv/www' #either (i) / [full path from root] or (ii) ~/ [home] or (iii) ./ [pwd] or (iv) will be made from home
+#webserv:
+#  url_root:     'http://www.your.url' #url to document root, without dir stub
+#  path:         '/var/www' #either (i) / [full path from root] or (ii) ~/ [home] or (iii) ./ [pwd] or (iv) will be made from home
 #  images:       '_sisu/image'
 #  man:          'man'
 #  cgi:          '/usr/local/lib/sisu-cgi'
@@ -50,12 +49,16 @@ show_output_on: 'filesystem_url'
 #% flag - set (non-default) processing flag shortcuts -1, -2 etc. (here adding colour and verbosity as default)
 flag:
   color:        true                        # making colour default -c is toggle, and will now toggle colour off
-#  default:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
-#  i:            '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
-#  ii:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
-#  iii:          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
-#  iv:           '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --postresql --update --manifest'
-#  v:            '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act0:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+#  act1:      '--digest --text --html --manifest'
+#  act2:      '--digest --text --html --epub --pdf --manifest'
+#  act3:      '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+#  act4:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --manifest'
+#  act5:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --sqlite --manifest'
+#  act6:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+#  act7:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+#  act8:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+#  act9:      '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --source --sisupod --manifest'
 
 #% papersize, (LaTeX/pdf) available values: A4, US_letter, book_b5, book_a5, US_legal
 default:
diff --git a/lib/sisu/v6/ao_expand_insertions.rb b/lib/sisu/v6/ao_expand_insertions.rb
index eee89f3e..45a3a4ab 100644
--- a/lib/sisu/v6/ao_expand_insertions.rb
+++ b/lib/sisu/v6/ao_expand_insertions.rb
@@ -66,14 +66,18 @@ module SiSU_AO_Insertions
       @md,@data=md,data
     end
     def output_filetypes_in_cmd(cmd_shortcut,lnk=nil) #make list of file types in shortcut command (as configured), e.g. when sisu -3 is used
-      cf_defaults=SiSU_Env::InfoProcessingFlag.new
-      cmd_list=case cmd_shortcut.inspect
-      when /0/ then cf_defaults.cf_0
-      when /1/ then cf_defaults.cf_1
-      when /2/ then cf_defaults.cf_2
-      when /3/ then cf_defaults.cf_3
-      when /4/ then cf_defaults.cf_4
-      when /5/ then cf_defaults.cf_5
+      act_defaults=SiSU_Env::InfoProcessingFlag.new
+      cmd_list=case cmd_shortcut.inspect #check on expectation, string v array
+      when /0/ then act_defaults.act_0.str
+      when /1/ then act_defaults.act_1.str
+      when /2/ then act_defaults.act_2.str
+      when /3/ then act_defaults.act_3.str
+      when /4/ then act_defaults.act_4.str
+      when /5/ then act_defaults.act_5.str
+      when /6/ then act_defaults.act_6.str
+      when /7/ then act_defaults.act_7.str
+      when /8/ then act_defaults.act_8.str
+      when /9/ then act_defaults.act_9.str
       end
       file_type_names={}
       file_type_names[:gen],file_type_names[:src]=[],[]
diff --git a/lib/sisu/v6/hub_options.rb b/lib/sisu/v6/hub_options.rb
index f851b985..94e886dc 100644
--- a/lib/sisu/v6/hub_options.rb
+++ b/lib/sisu/v6/hub_options.rb
@@ -460,32 +460,44 @@ module SiSU_Commandline
         y=case x
         when /0/
           (x=~/^-0\S+/) \
-          ? x.gsub(/^-0(\S+)/,shortcut.cf_0 + ' -\1')
-          : x.gsub(/^-0/,shortcut.cf_0 + ' ')
+          ? x.gsub(/^-0(\S+)/,shortcut.act_0.str + ' -\1')
+          : x.gsub(/^-0/,shortcut.act_0.str + ' ')
         when /1/
           (x=~/^-1\S+/) \
-          ? x.gsub(/^-1(\S+)/,shortcut.cf_1 + ' -\1')
-          : x.gsub(/^-1/,shortcut.cf_1 + ' ')
+          ? x.gsub(/^-1(\S+)/,shortcut.act_1.str + ' -\1')
+          : x.gsub(/^-1/,shortcut.act_1.str + ' ')
         when /2/
           (x=~/^-2\S+/) \
-          ? x.gsub(/^-2(\S+)/,shortcut.cf_2 + ' -\1')
-          : x.gsub(/^-2/,shortcut.cf_2 + ' ')
+          ? x.gsub(/^-2(\S+)/,shortcut.act_2.str + ' -\1')
+          : x.gsub(/^-2/,shortcut.act_2.str + ' ')
         when /3/
           (x=~/^-3\S+/) \
-          ? x.gsub(/^-3(\S+)/,shortcut.cf_3 + ' -\1')
-          : x.gsub(/^-3/,shortcut.cf_3 + ' ')
+          ? x.gsub(/^-3(\S+)/,shortcut.act_3.str + ' -\1')
+          : x.gsub(/^-3/,shortcut.act_3.str + ' ')
         when /4/
           (x=~/^-4\S+/) \
-          ? x.gsub(/^-4(\S+)/,shortcut.cf_4 + ' -\1')
-          : x.gsub(/^-4/,shortcut.cf_4 + ' ')
+          ? x.gsub(/^-4(\S+)/,shortcut.act_4.str + ' -\1')
+          : x.gsub(/^-4/,shortcut.act_4.str + ' ')
         when /5/
           (x=~/^-5\S+/) \
-          ? x.gsub(/^-5(\S+)/,shortcut.cf_5 + ' -\1')
-          : x.gsub(/^-5/,shortcut.cf_5 + ' ')
+          ? x.gsub(/^-5(\S+)/,shortcut.act_5.str + ' -\1')
+          : x.gsub(/^-5/,shortcut.act_5.str + ' ')
         when /6/
           (x=~/^-6\S+/) \
-          ? x.gsub(/^-6(\S+)/,shortcut.cf_5 + ' -\1')
-          : x.gsub(/^-6/,shortcut.cf_5 + ' ')
+          ? x.gsub(/^-6(\S+)/,shortcut.act_6.str + ' -\1')
+          : x.gsub(/^-6/,shortcut.act_6.str + ' ')
+        when /7/
+          (x=~/^-7\S+/) \
+          ? x.gsub(/^-7(\S+)/,shortcut.act_7.str + ' -\1')
+          : x.gsub(/^-7/,shortcut.act_7.str + ' ')
+        when /8/
+          (x=~/^-8\S+/) \
+          ? x.gsub(/^-8(\S+)/,shortcut.act_8.str + ' -\1')
+          : x.gsub(/^-8/,shortcut.act_8.str + ' ')
+        when /9/
+          (x=~/^-9\S+/) \
+          ? x.gsub(/^-9(\S+)/,shortcut.act_9.str + ' -\1')
+          : x.gsub(/^-9/,shortcut.act_9.str + ' ')
         else x
         end
         s << " #{y}" unless y.empty?
diff --git a/lib/sisu/v6/se_processing.rb b/lib/sisu/v6/se_processing.rb
index 46bed123..32b2490a 100644
--- a/lib/sisu/v6/se_processing.rb
+++ b/lib/sisu/v6/se_processing.rb
@@ -465,62 +465,172 @@ module SiSU_Processing_Settings
 end
 module SiSU_Info_Processing_Flag
   class InfoProcessingFlag
-    attr_accessor :color,:cf_0,:cf_1,:cf_2,:cf_3,:cf_4,:cf_5
+    attr_accessor :color,:act_0,:act_1,:act_2,:act_3,:act_4,:act_5,:act_6,:act_7,:act_8,:act_9
     def initialize
       @rc=SiSU_Get_Init::GetInit.new.sisu_yaml.rc
     end
-    def color                          #processing flag shortcuts
+    def color                          #configurable processing flag shortcuts
       (defined? @rc['flag']['color']) \
       ? @rc['flag']['color']
       : false
     end
-    def cf_0                           #processing flag shortcuts
-      if defined? @rc['flag']['default'] \
-      and @rc['flag']['default'].is_a?(String)
-        @rc['flag']['default']
-      else #'-NQhewpotbxXdyYv'
-        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+    def act_0                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act0'] \
+        and @rc['flag']['act0'].is_a?(String)
+          @rc['flag']['act0']
+        elsif defined? @rc['flag']['default'] \
+        and @rc['flag']['default'].is_a?(String)
+          @rc['flag']['default']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --verbose'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
+      end
+      self
+    end
+    def act_1                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act1'] \
+        and @rc['flag']['act1'].is_a?(String)
+          @rc['flag']['act1']
+        elsif defined? @rc['flag']['i'] \
+        and @rc['flag']['i'].is_a?(String)
+          @rc['flag']['i']
+        else
+          '--digest --text --html --manifest'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
+      end
+      self
+    end
+    def act_2                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act2'] \
+        and @rc['flag']['act2'].is_a?(String)
+          @rc['flag']['act2']
+        elsif defined? @rc['flag']['ii'] \
+        and @rc['flag']['ii'].is_a?(String)
+          @rc['flag']['ii']
+        else
+          '--digest --text --html --epub --pdf --manifest'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
+      end
+      self
+    end
+    def act_3                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act3'] \
+        and @rc['flag']['act3'].is_a?(String)
+          @rc['flag']['act3']
+        elsif defined? @rc['flag']['iii'] \
+        and @rc['flag']['iii'].is_a?(String)
+          @rc['flag']['iii']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
+      end
+      self
+    end
+    def act_4                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act4'] \
+        and @rc['flag']['act4'].is_a?(String)
+          @rc['flag']['act4']
+        elsif defined? @rc['flag']['iv'] \
+        and @rc['flag']['iv'].is_a?(String)
+          @rc['flag']['iv']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --manifest'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
       end
+      self
     end
-    def cf_1                           #processing flag shortcuts
-      if defined? @rc['flag']['i'] \
-      and @rc['flag']['i'].is_a?(String)
-        @rc['flag']['i']
-      else #'-Qhewpoty'
-        '--digest --qrcode --text --html --epub --concordance --pdf --manifest'
+    def act_5                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act5'] \
+        and @rc['flag']['act5'].is_a?(String)
+          @rc['flag']['act5']
+        elsif defined? @rc['flag']['v'] \
+        and @rc['flag']['v'].is_a?(String)
+          @rc['flag']['v']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --sqlite --manifest'
+        end
       end
+      def arr
+        str.scan(/\S+/)
+      end
+      self
     end
-    def cf_2                           #processing flag shortcuts
-      if defined? @rc['flag']['ii'] \
-      and @rc['flag']['ii'].is_a?(String)
-        @rc['flag']['ii']
-      else #'-NQhewpotbxXdy'
-        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --manifest'
+    def act_6                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act6'] \
+        and @rc['flag']['act6'].is_a?(String)
+          @rc['flag']['act6']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
       end
+      self
     end
-    def cf_3                           #processing flag shortcuts
-      if defined? @rc['flag']['iii'] \
-      and @rc['flag']['iii'].is_a?(String)
-        @rc['flag']['iii']
-      else #'-NQhewpotbxXdyY'
-        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest'
+    def act_7                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act7'] \
+        and @rc['flag']['act7'].is_a?(String)
+          @rc['flag']['act7']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --source --sisupod --manifest'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
       end
+      self
     end
-    def cf_4                           #processing flag shortcuts
-      if defined? @rc['flag']['iv'] \
-      and @rc['flag']['iv'].is_a?(String)
-        @rc['flag']['iv']
-      else #'-NQhewpotbxXdDyY --update'
-        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --postresql --update --manifest'
+    def act_8                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act8'] \
+        and @rc['flag']['act8'].is_a?(String)
+          @rc['flag']['act8']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --manifest'
+        end
       end
+      def arr
+        str.scan(/\S+/)
+      end
+      self
     end
-    def cf_5                           #processing flag shortcuts
-      if defined? @rc['flag']['v'] \
-      and @rc['flag']['v'].is_a?(String)
-        @rc['flag']['v']
-      else #'-NQhewpotbxXdyYsS'
-        '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --sqlite --manifest --sisupod --source'
+    def act_9                           #configurable processing flag shortcuts
+      def str
+        if defined? @rc['flag']['act9'] \
+        and @rc['flag']['act9'].is_a?(String)
+          @rc['flag']['act9']
+        else
+          '--digest --qrcode --text --html --epub --concordance --pdf --odf --docbook --xhtml --xml-sax --xml-dom --pg --update --source --sisupod --manifest'
+        end
+      end
+      def arr
+        str.scan(/\S+/)
       end
+      self
     end
   end
 end
-- 
cgit v1.2.3