sisu 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. checksums.yaml +7 -0
  2. data/bin/sisu +367 -0
  3. data/bin/sisugem +367 -0
  4. data/data/sisu/image/arrow_next_red.png +0 -0
  5. data/data/sisu/image/arrow_prev_red.png +0 -0
  6. data/data/sisu/image/arrow_up_red.png +0 -0
  7. data/data/sisu/image/b_bluebell.png +0 -0
  8. data/data/sisu/image/b_doc.png +0 -0
  9. data/data/sisu/image/b_epub.png +0 -0
  10. data/data/sisu/image/b_home.png +0 -0
  11. data/data/sisu/image/b_info.png +0 -0
  12. data/data/sisu/image/b_odf.png +0 -0
  13. data/data/sisu/image/b_pdf.png +0 -0
  14. data/data/sisu/image/b_search.png +0 -0
  15. data/data/sisu/image/b_toc.png +0 -0
  16. data/data/sisu/image/bullet_08.png +0 -0
  17. data/data/sisu/image/bullet_09.png +0 -0
  18. data/data/sisu/image/bullet_10.png +0 -0
  19. data/data/sisu/image/bullet_11.png +0 -0
  20. data/data/sisu/image/bullet_12.png +0 -0
  21. data/data/sisu/image/bullet_doc.png +0 -0
  22. data/data/sisu/image/bullet_red.png +0 -0
  23. data/data/sisu/image/dot_clear.png +0 -0
  24. data/data/sisu/image/dot_white.png +0 -0
  25. data/data/sisu/image/gplv3.png +0 -0
  26. data/data/sisu/image/gplv3_free_software.png +0 -0
  27. data/data/sisu/image/next.png +0 -0
  28. data/data/sisu/image/previous.png +0 -0
  29. data/data/sisu/image/rb7.ico +0 -0
  30. data/data/sisu/image/sisu.png +0 -0
  31. data/data/sisu/image/toctoc.png +0 -0
  32. data/data/sisu/version.yml +5 -0
  33. data/lib/sisu.rb +94 -0
  34. data/lib/sisu/air.rb +80 -0
  35. data/lib/sisu/ao.rb +590 -0
  36. data/lib/sisu/ao_character_check.rb +102 -0
  37. data/lib/sisu/ao_composite.rb +286 -0
  38. data/lib/sisu/ao_doc_objects.rb +565 -0
  39. data/lib/sisu/ao_doc_str.rb +2269 -0
  40. data/lib/sisu/ao_endnotes.rb +136 -0
  41. data/lib/sisu/ao_expand_insertions.rb +514 -0
  42. data/lib/sisu/ao_hash_digest.rb +174 -0
  43. data/lib/sisu/ao_idx.rb +422 -0
  44. data/lib/sisu/ao_images.rb +187 -0
  45. data/lib/sisu/ao_metadata.rb +86 -0
  46. data/lib/sisu/ao_misc_arrange.rb +207 -0
  47. data/lib/sisu/ao_numbering.rb +720 -0
  48. data/lib/sisu/ao_persist.rb +194 -0
  49. data/lib/sisu/ao_references.rb +502 -0
  50. data/lib/sisu/ao_syntax.rb +640 -0
  51. data/lib/sisu/cgi.rb +84 -0
  52. data/lib/sisu/cgi_pgsql.rb +270 -0
  53. data/lib/sisu/cgi_sql_common.rb +986 -0
  54. data/lib/sisu/cgi_sqlite.rb +244 -0
  55. data/lib/sisu/conf.rb +287 -0
  56. data/lib/sisu/constants.rb +388 -0
  57. data/lib/sisu/css.rb +3484 -0
  58. data/lib/sisu/db_columns.rb +1997 -0
  59. data/lib/sisu/db_create.rb +689 -0
  60. data/lib/sisu/db_dbi.rb +90 -0
  61. data/lib/sisu/db_drop.rb +207 -0
  62. data/lib/sisu/db_import.rb +877 -0
  63. data/lib/sisu/db_indexes.rb +146 -0
  64. data/lib/sisu/db_load_tuple.rb +323 -0
  65. data/lib/sisu/db_remove.rb +182 -0
  66. data/lib/sisu/db_select.rb +230 -0
  67. data/lib/sisu/db_sqltxt.rb +173 -0
  68. data/lib/sisu/db_tests.rb +114 -0
  69. data/lib/sisu/dbi.rb +166 -0
  70. data/lib/sisu/dbi_discrete.rb +206 -0
  71. data/lib/sisu/digests.rb +306 -0
  72. data/lib/sisu/dp.rb +1606 -0
  73. data/lib/sisu/dp_identify_markup.rb +161 -0
  74. data/lib/sisu/dp_make.rb +668 -0
  75. data/lib/sisu/embedded.rb +149 -0
  76. data/lib/sisu/errors.rb +84 -0
  77. data/lib/sisu/generic_parts.rb +131 -0
  78. data/lib/sisu/git.rb +277 -0
  79. data/lib/sisu/html.rb +775 -0
  80. data/lib/sisu/html_concordance.rb +391 -0
  81. data/lib/sisu/html_format.rb +1348 -0
  82. data/lib/sisu/html_harvest.rb +109 -0
  83. data/lib/sisu/html_harvest_author_format.rb +111 -0
  84. data/lib/sisu/html_harvest_authors.rb +466 -0
  85. data/lib/sisu/html_harvest_topics.rb +893 -0
  86. data/lib/sisu/html_lite_shared.rb +324 -0
  87. data/lib/sisu/html_manifest.rb +1032 -0
  88. data/lib/sisu/html_minitoc.rb +230 -0
  89. data/lib/sisu/html_parts.rb +437 -0
  90. data/lib/sisu/html_persist.rb +237 -0
  91. data/lib/sisu/html_promo.rb +440 -0
  92. data/lib/sisu/html_scroll.rb +235 -0
  93. data/lib/sisu/html_segments.rb +716 -0
  94. data/lib/sisu/html_shared.rb +62 -0
  95. data/lib/sisu/html_table.rb +64 -0
  96. data/lib/sisu/html_tune.rb +301 -0
  97. data/lib/sisu/hub.rb +277 -0
  98. data/lib/sisu/hub_actions.rb +1122 -0
  99. data/lib/sisu/hub_loop_markup_files.rb +170 -0
  100. data/lib/sisu/hub_options.rb +1695 -0
  101. data/lib/sisu/i18n.rb +702 -0
  102. data/lib/sisu/manpage.rb +377 -0
  103. data/lib/sisu/manpage_format.rb +85 -0
  104. data/lib/sisu/object_munge.rb +307 -0
  105. data/lib/sisu/prog_text_translation.rb +1702 -0
  106. data/lib/sisu/qrcode.rb +754 -0
  107. data/lib/sisu/relaxng.rb +1153 -0
  108. data/lib/sisu/remote.rb +246 -0
  109. data/lib/sisu/rexml.rb +148 -0
  110. data/lib/sisu/se.rb +158 -0
  111. data/lib/sisu/se_cleanoutput.rb +145 -0
  112. data/lib/sisu/se_clear.rb +105 -0
  113. data/lib/sisu/se_createsite.rb +273 -0
  114. data/lib/sisu/se_css.rb +221 -0
  115. data/lib/sisu/se_date.rb +92 -0
  116. data/lib/sisu/se_db.rb +214 -0
  117. data/lib/sisu/se_envcall.rb +326 -0
  118. data/lib/sisu/se_file_op.rb +2758 -0
  119. data/lib/sisu/se_filemap.rb +247 -0
  120. data/lib/sisu/se_get_init.rb +238 -0
  121. data/lib/sisu/se_hub_particulars.rb +234 -0
  122. data/lib/sisu/se_info_env.rb +2179 -0
  123. data/lib/sisu/se_info_port.rb +70 -0
  124. data/lib/sisu/se_info_system.rb +202 -0
  125. data/lib/sisu/se_load.rb +108 -0
  126. data/lib/sisu/se_processing.rb +659 -0
  127. data/lib/sisu/se_programs.rb +394 -0
  128. data/lib/sisu/se_remotes.rb +553 -0
  129. data/lib/sisu/se_standardise_lang.rb +176 -0
  130. data/lib/sisu/se_version.rb +174 -0
  131. data/lib/sisu/shared_images.rb +137 -0
  132. data/lib/sisu/shared_markup_alt.rb +336 -0
  133. data/lib/sisu/shared_metadata.rb +1361 -0
  134. data/lib/sisu/shared_sem.rb +156 -0
  135. data/lib/sisu/sisu_thor_lib.rb +407 -0
  136. data/lib/sisu/sitemaps.rb +224 -0
  137. data/lib/sisu/src_kdissert_share.rb +102 -0
  138. data/lib/sisu/src_po4a_share.rb +309 -0
  139. data/lib/sisu/src_po4a_shelf.rb +1217 -0
  140. data/lib/sisu/src_po4a_shelf_set.rb +297 -0
  141. data/lib/sisu/src_po4a_sst_ao_sst.rb +893 -0
  142. data/lib/sisu/src_po4a_sst_ao_sst_set.rb +284 -0
  143. data/lib/sisu/src_po4a_sstm.rb +135 -0
  144. data/lib/sisu/src_shared.rb +347 -0
  145. data/lib/sisu/src_sisupod_make.rb +171 -0
  146. data/lib/sisu/src_sisupod_sstm.rb +109 -0
  147. data/lib/sisu/sst_convert_markup.rb +323 -0
  148. data/lib/sisu/sst_do_inline_footnotes.rb +440 -0
  149. data/lib/sisu/sst_from_xml.rb +178 -0
  150. data/lib/sisu/sst_identify_markup.rb +482 -0
  151. data/lib/sisu/sst_to_s_xml_sax.rb +471 -0
  152. data/lib/sisu/termsheet.rb +163 -0
  153. data/lib/sisu/texinfo.rb +430 -0
  154. data/lib/sisu/texinfo_format.rb +541 -0
  155. data/lib/sisu/texpdf.rb +1162 -0
  156. data/lib/sisu/texpdf_format.rb +1689 -0
  157. data/lib/sisu/texpdf_parts.rb +235 -0
  158. data/lib/sisu/txt_asciidoc.rb +354 -0
  159. data/lib/sisu/txt_asciidoc_decorate.rb +207 -0
  160. data/lib/sisu/txt_markdown.rb +389 -0
  161. data/lib/sisu/txt_markdown_decorate.rb +207 -0
  162. data/lib/sisu/txt_orgmode.rb +376 -0
  163. data/lib/sisu/txt_orgmode_decorate.rb +186 -0
  164. data/lib/sisu/txt_output.rb +86 -0
  165. data/lib/sisu/txt_plain.rb +410 -0
  166. data/lib/sisu/txt_plain_decorate.rb +189 -0
  167. data/lib/sisu/txt_read.rb +109 -0
  168. data/lib/sisu/txt_rst.rb +371 -0
  169. data/lib/sisu/txt_rst_decorate.rb +186 -0
  170. data/lib/sisu/txt_shared.rb +241 -0
  171. data/lib/sisu/txt_textile.rb +367 -0
  172. data/lib/sisu/txt_textile_decorate.rb +186 -0
  173. data/lib/sisu/update.rb +141 -0
  174. data/lib/sisu/urls.rb +696 -0
  175. data/lib/sisu/utils.rb +232 -0
  176. data/lib/sisu/utils_composite.rb +115 -0
  177. data/lib/sisu/utils_response.rb +114 -0
  178. data/lib/sisu/utils_screen_text_color.rb +472 -0
  179. data/lib/sisu/utils_spell.rb +99 -0
  180. data/lib/sisu/webrick.rb +191 -0
  181. data/lib/sisu/wikispeak.rb +375 -0
  182. data/lib/sisu/xhtml.rb +472 -0
  183. data/lib/sisu/xhtml_epub2.rb +890 -0
  184. data/lib/sisu/xhtml_epub2_concordance.rb +322 -0
  185. data/lib/sisu/xhtml_epub2_format.rb +2272 -0
  186. data/lib/sisu/xhtml_epub2_persist.rb +278 -0
  187. data/lib/sisu/xhtml_epub2_segments.rb +599 -0
  188. data/lib/sisu/xhtml_epub2_tune.rb +330 -0
  189. data/lib/sisu/xhtml_parts.rb +183 -0
  190. data/lib/sisu/xhtml_shared.rb +62 -0
  191. data/lib/sisu/xhtml_table.rb +97 -0
  192. data/lib/sisu/xml_docbook5.rb +376 -0
  193. data/lib/sisu/xml_dom.rb +624 -0
  194. data/lib/sisu/xml_fictionbook2.rb +389 -0
  195. data/lib/sisu/xml_format.rb +865 -0
  196. data/lib/sisu/xml_md_oai_pmh_dc.rb +229 -0
  197. data/lib/sisu/xml_odf_odt.rb +887 -0
  198. data/lib/sisu/xml_odf_odt_format.rb +674 -0
  199. data/lib/sisu/xml_parts.rb +191 -0
  200. data/lib/sisu/xml_persist.rb +126 -0
  201. data/lib/sisu/xml_sax.rb +521 -0
  202. data/lib/sisu/xml_scaffold_structure_collapsed.rb +198 -0
  203. data/lib/sisu/xml_scaffold_structure_sisu.rb +201 -0
  204. data/lib/sisu/xml_shared.rb +665 -0
  205. data/lib/sisu/xml_tables.rb +261 -0
  206. data/lib/sisu/zap.rb +90 -0
  207. metadata +251 -0
@@ -0,0 +1,186 @@
1
+ # encoding: utf-8
2
+ =begin
3
+
4
+ * Name: SiSU
5
+
6
+ ** Description: documents, structuring, processing, publishing, search
7
+ *** plaintext decoration
8
+
9
+ ** Author: Ralph Amissah
10
+ <ralph@amissah.com>
11
+ <ralph.amissah@gmail.com>
12
+
13
+ ** Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
14
+ 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Ralph Amissah,
15
+ All Rights Reserved.
16
+
17
+ ** License: GPL 3 or later:
18
+
19
+ SiSU, a framework for document structuring, publishing and search
20
+
21
+ Copyright (C) Ralph Amissah
22
+
23
+ This program is free software: you can redistribute it and/or modify it
24
+ under the terms of the GNU General Public License as published by the Free
25
+ Software Foundation, either version 3 of the License, or (at your option)
26
+ any later version.
27
+
28
+ This program is distributed in the hope that it will be useful, but WITHOUT
29
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
30
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
31
+ more details.
32
+
33
+ You should have received a copy of the GNU General Public License along with
34
+ this program. If not, see <http://www.gnu.org/licenses/>.
35
+
36
+ If you have Internet connection, the latest version of the GPL should be
37
+ available at these locations:
38
+ <http://www.fsf.org/licensing/licenses/gpl.html>
39
+ <http://www.gnu.org/licenses/gpl.html>
40
+
41
+ <http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
42
+
43
+ ** SiSU uses:
44
+ * Standard SiSU markup syntax,
45
+ * Standard SiSU meta-markup syntax, and the
46
+ * Standard SiSU object citation numbering and system
47
+
48
+ ** Hompages:
49
+ <http://www.jus.uio.no/sisu>
50
+ <http://www.sisudoc.org>
51
+
52
+ ** Git
53
+ <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary>
54
+ <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_textile_decorate.rb;hb=HEAD>
55
+
56
+ =end
57
+
58
+ module SiSU_Decorate_Txt_Textile
59
+ def decorate
60
+ def heading
61
+ def inline
62
+ def l0
63
+ 'h1. '
64
+ end
65
+ def l1
66
+ 'h2. '
67
+ end
68
+ def l2
69
+ 'h3. '
70
+ end
71
+ def l3
72
+ 'h4. '
73
+ end
74
+ def l4
75
+ 'h5. '
76
+ end
77
+ def l5
78
+ 'h6. '
79
+ end
80
+ self
81
+ end
82
+ self
83
+ end
84
+ def bold
85
+ def open
86
+ '*'
87
+ end
88
+ def close
89
+ '*'
90
+ end
91
+ self
92
+ end
93
+ def italics
94
+ def open
95
+ '_'
96
+ end
97
+ def close
98
+ '_'
99
+ end
100
+ self
101
+ end
102
+ def underscore
103
+ def open
104
+ '+'
105
+ end
106
+ def close
107
+ '+'
108
+ end
109
+ self
110
+ end
111
+ #def emphasis
112
+ # def open
113
+ # ''
114
+ # end
115
+ # def close
116
+ # ''
117
+ # end
118
+ # self
119
+ #end
120
+ def cite
121
+ def open
122
+ '"'
123
+ end
124
+ def close
125
+ '"'
126
+ end
127
+ self
128
+ end
129
+ def insert
130
+ def open
131
+ ''
132
+ end
133
+ def close
134
+ ''
135
+ end
136
+ self
137
+ end
138
+ def strike
139
+ def open
140
+ '-'
141
+ end
142
+ def close
143
+ '-'
144
+ end
145
+ self
146
+ end
147
+ def superscript
148
+ def open
149
+ '^'
150
+ end
151
+ def close
152
+ '^'
153
+ end
154
+ self
155
+ end
156
+ def subscript
157
+ def open
158
+ '~'
159
+ end
160
+ def close
161
+ '~'
162
+ end
163
+ self
164
+ end
165
+ def hilite
166
+ def open
167
+ '*'
168
+ end
169
+ def close
170
+ '*'
171
+ end
172
+ self
173
+ end
174
+ def monospace
175
+ def open
176
+ ''
177
+ end
178
+ def close
179
+ ''
180
+ end
181
+ self
182
+ end
183
+ self
184
+ end
185
+ end
186
+ __END__
@@ -0,0 +1,141 @@
1
+ # encoding: utf-8
2
+ =begin
3
+
4
+ * Name: SiSU
5
+
6
+ ** Description: documents, structuring, processing, publishing, search
7
+ *** update previous output (with similar output file type formats)
8
+
9
+ ** Author: Ralph Amissah
10
+ <ralph@amissah.com>
11
+ <ralph.amissah@gmail.com>
12
+
13
+ ** Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
14
+ 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Ralph Amissah,
15
+ All Rights Reserved.
16
+
17
+ ** License: GPL 3 or later:
18
+
19
+ SiSU, a framework for document structuring, publishing and search
20
+
21
+ Copyright (C) Ralph Amissah
22
+
23
+ This program is free software: you can redistribute it and/or modify it
24
+ under the terms of the GNU General Public License as published by the Free
25
+ Software Foundation, either version 3 of the License, or (at your option)
26
+ any later version.
27
+
28
+ This program is distributed in the hope that it will be useful, but WITHOUT
29
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
30
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
31
+ more details.
32
+
33
+ You should have received a copy of the GNU General Public License along with
34
+ this program. If not, see <http://www.gnu.org/licenses/>.
35
+
36
+ If you have Internet connection, the latest version of the GPL should be
37
+ available at these locations:
38
+ <http://www.fsf.org/licensing/licenses/gpl.html>
39
+ <http://www.gnu.org/licenses/gpl.html>
40
+
41
+ <http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
42
+
43
+ ** SiSU uses:
44
+ * Standard SiSU markup syntax,
45
+ * Standard SiSU meta-markup syntax, and the
46
+ * Standard SiSU object citation numbering and system
47
+
48
+ ** Hompages:
49
+ <http://www.jus.uio.no/sisu>
50
+ <http://www.sisudoc.org>
51
+
52
+ ** Git
53
+ <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary>
54
+ <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/update.rb;hb=HEAD>
55
+
56
+ =end
57
+ module SiSU_UpdateControlFlag
58
+ require_relative 'se' # se.rb
59
+ include SiSU_Env
60
+ include SiSU_Param
61
+ class Check
62
+ def initialize(opt)
63
+ @opt=opt
64
+ @md=SiSU_Param::Parameters.new(@opt).get
65
+ end
66
+ def read
67
+ begin
68
+ @env=SiSU_Env::InfoEnv.new(@md.fns)
69
+ out=@env.path.output
70
+ base_path="#{out}/#{@md.fnb}"
71
+ SiSU_Screen::Ansi.new(
72
+ @md.opt.act[:color_state][:set],
73
+ 'Checking previous output',
74
+ base_path
75
+ ).green_hi_blue unless @md.opt.act[:quiet][:set]==:on
76
+ SetCF.new(@md).set_flags
77
+ rescue
78
+ SiSU_Errors::Rescued.new($!,$@,@md.opt.selections.str,@md.fns).location do
79
+ __LINE__.to_s + ':' + __FILE__
80
+ end
81
+ ensure
82
+ end
83
+ end
84
+ private
85
+ class SetCF
86
+ def initialize(md)
87
+ @md=md
88
+ @env=SiSU_Env::InfoEnv.new(@md.fns)
89
+ out=@env.path.output
90
+ @base_path="#{out}/#{@md.fnb}"
91
+ @pdf_fn=SiSU_Env::FileOp.new(@md).base_filename
92
+ end
93
+ def set_flags #-mNhwpoabxXyv
94
+ flag='-v'
95
+ if FileTest.file?("#{@md.file.output_path.txt.dir}/#{@md.file.base_filename.txt}")==true
96
+ flag=flag + 'a'
97
+ end
98
+ if FileTest.file?("#{@md.file.output_path.html_seg.dir}/#{@md.file.base_filename.html_seg}")==true \
99
+ or FileTest.file?("#{@md.file.output_path.html_scroll.dir}/#{@md.file.base_filename.html_scroll}")==true
100
+ flag=flag + 'h'
101
+ end
102
+ if FileTest.file?("#{@md.file.output_path.xhtml.dir}/#{@md.file.base_filename.xhtml}")==true
103
+ flag=flag + 'b'
104
+ end
105
+ if FileTest.file?("#{@md.file.output_path.xml_sax.dir}/#{@md.file.base_filename.xml_sax}")==true
106
+ flag=flag + 'x'
107
+ end
108
+ if FileTest.file?("#{@md.file.output_path.xml_dom.dir}/#{@md.file.base_filename.xml_dom}")==true
109
+ flag=flag + 'X'
110
+ end
111
+ if FileTest.file?("#{@md.file.output_path.epub.dir}/#{@md.file.base_filename.epub}")==true
112
+ flag=flag + 'e'
113
+ end
114
+ if FileTest.file?("#{@md.file.output_path.odt.dir}/#{@md.file.base_filename.odt}")==true
115
+ flag=flag + 'o'
116
+ end
117
+ if FileTest.file?("#{@md.file.output_path.pdf.dir}/#{@pdf_fn.pdf_p_a4}")==true \
118
+ or FileTest.file?("#{@md.file.output_path.pdf.dir}/#{@pdf_fn.pdf_l_a4}")==true \
119
+ or FileTest.file?("#{@md.file.output_path.pdf.dir}/#{@pdf_fn.pdf_p_letter}")==true \
120
+ or FileTest.file?("#{@md.file.output_path.pdf.dir}/#{@pdf_fn.pdf_l_letter}")==true
121
+ flag=flag + 'p'
122
+ end
123
+ if FileTest.file?("#{@md.file.output_path.html_concordance.dir}/#{@md.file.base_filename.html_concordance}")==true
124
+ flag=flag + 'w'
125
+ end
126
+ if FileTest.file?("#{@md.file.output_path.digest.dir}/#{@md.file.base_filename.digest}")==true
127
+ flag=flag + 'N'
128
+ end
129
+ if FileTest.file?("#{@md.file.output_path.src.dir}/#{@md.file.base_filename.src}")==true
130
+ flag=flag + 's'
131
+ end
132
+ if FileTest.file?("#{@md.file.output_path.sisupod.dir}/#{@md.file.base_filename.sisupod}")==true
133
+ flag=flag + 'S'
134
+ end
135
+ puts flag
136
+ flag
137
+ end
138
+ end
139
+ end
140
+ end
141
+ __END__
data/lib/sisu/urls.rb ADDED
@@ -0,0 +1,696 @@
1
+ # encoding: utf-8
2
+ =begin
3
+
4
+ * Name: SiSU
5
+
6
+ ** Description: documents, structuring, processing, publishing, search
7
+ *** urls for output files
8
+
9
+ ** Author: Ralph Amissah
10
+ <ralph@amissah.com>
11
+ <ralph.amissah@gmail.com>
12
+
13
+ ** Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
14
+ 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Ralph Amissah,
15
+ All Rights Reserved.
16
+
17
+ ** License: GPL 3 or later:
18
+
19
+ SiSU, a framework for document structuring, publishing and search
20
+
21
+ Copyright (C) Ralph Amissah
22
+
23
+ This program is free software: you can redistribute it and/or modify it
24
+ under the terms of the GNU General Public License as published by the Free
25
+ Software Foundation, either version 3 of the License, or (at your option)
26
+ any later version.
27
+
28
+ This program is distributed in the hope that it will be useful, but WITHOUT
29
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
30
+ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
31
+ more details.
32
+
33
+ You should have received a copy of the GNU General Public License along with
34
+ this program. If not, see <http://www.gnu.org/licenses/>.
35
+
36
+ If you have Internet connection, the latest version of the GPL should be
37
+ available at these locations:
38
+ <http://www.fsf.org/licensing/licenses/gpl.html>
39
+ <http://www.gnu.org/licenses/gpl.html>
40
+
41
+ <http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
42
+
43
+ ** SiSU uses:
44
+ * Standard SiSU markup syntax,
45
+ * Standard SiSU meta-markup syntax, and the
46
+ * Standard SiSU object citation numbering and system
47
+
48
+ ** Hompages:
49
+ <http://www.jus.uio.no/sisu>
50
+ <http://www.sisudoc.org>
51
+
52
+ ** Git
53
+ <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary>
54
+ <http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/urls.rb;hb=HEAD>
55
+
56
+ =end
57
+ module SiSU_Urls
58
+ require_relative 'se_hub_particulars' # se_hub_particulars.rb
59
+ include SiSU_Particulars
60
+ require_relative 'se' # se.rb
61
+ include SiSU_Env; include SiSU_Screen
62
+ class Source
63
+ attr_reader :opt
64
+ def initialize(opt)
65
+ @opt=opt
66
+ end
67
+ def read
68
+ begin
69
+ SiSU_Urls::OutputUrls.new(@opt).songsheet if @opt.fnb
70
+ rescue
71
+ SiSU_Errors::Rescued.new($!,$@,@opt.selections.str).location do
72
+ __LINE__.to_s + ':' + __FILE__
73
+ end
74
+ ensure
75
+ end
76
+ end
77
+ end
78
+ class OutputUrls
79
+ attr_reader :fns,:fnb,:act,:dir,:m_regular,:u
80
+ def initialize(opt)
81
+ @opt=opt
82
+ @particulars=SiSU_Particulars::CombinedSingleton.instance.get_env_md(opt)
83
+ if @particulars.is_a?(NilClass)
84
+ if @opt.act[:verbose_plus][:set]==:on \
85
+ or @opt.act[:maintenance][:set]==:on
86
+ SiSU_Utils::CodeMarker.new(__LINE__,__FILE__,:fuchsia).
87
+ mark("@particulars is NilClass, acceptable e.g. for --harvest")
88
+ end
89
+ exit
90
+ end
91
+ @selections=@opt.selections.str
92
+ @act=@opt.act
93
+ @md=@particulars.md
94
+ @env=@particulars.env
95
+ @fnb=@env.fnb
96
+ fn_set_lang=SiSU_Env::StandardiseLanguage.new(@opt.lng).language
97
+ @fnl=@env.i18n.lang_filename(fn_set_lang[:c])
98
+ @fn=SiSU_Env::EnvCall.new(@opt.fns).lang(fn_set_lang[:c])
99
+ @m_regular=/(.+?)\.(?:(?:-|ssm\.)?sst|ssm)$/
100
+ @prog=@env.program
101
+ end
102
+ def songsheet
103
+ begin
104
+ (@opt.act[:urls_all][:set]==:on) \
105
+ ? urls_all \
106
+ : (urls_select unless @opt.act[:quiet][:set]==:on)
107
+ rescue
108
+ SiSU_Errors::Rescued.new($!,$@,@opt.selections.str,@opt.fns).location do
109
+ __LINE__.to_s + ':' + __FILE__
110
+ end
111
+ ensure
112
+ end
113
+ end
114
+ def show
115
+ def report(x)
116
+ SiSU_Screen::Ansi.new(
117
+ @opt.act[:color_state][:set],
118
+ "[#{@opt.f_pth[:lng_is]}]",
119
+ x[:cmd],
120
+ x[:viewer] + ' ' \
121
+ + x[:f_pth]
122
+ ).result
123
+ end
124
+ def maintenance(x)
125
+ if @opt.act[:maintenance][:set]==:on
126
+ SiSU_Screen::Ansi.new(
127
+ @opt.act[:color_state][:set],
128
+ "[#{@opt.f_pth[:lng_is]}]",
129
+ x[:cmd],
130
+ x[:p_pth]
131
+ ).maintenance
132
+ end
133
+ end
134
+ self
135
+ end
136
+ def report_info
137
+ def dal
138
+ {
139
+ cmd: '--ao',
140
+ p_pth: @env.processing_path.ao + '/' \
141
+ + @opt.fns + '.meta',
142
+ fn: 'ao',
143
+ }
144
+ end
145
+ def hash_digests
146
+ {
147
+ cmd: '--hash-digests (sha512/sha256/md5)',
148
+ viewer: @prog.web_browser,
149
+ f_pth: @md.file.output_path.hash_digest.dir + '/' \
150
+ + @md.file.base_filename.hash_digest,
151
+ fn: @fn[:digest],
152
+ }
153
+ end
154
+ def text
155
+ def txt
156
+ {
157
+ cmd: '--txt',
158
+ viewer: @prog.web_browser,
159
+ f_pth: @md.file.output_path.txt.dir + '/' \
160
+ + @md.file.base_filename.txt,
161
+ fn: @fn[:plain],
162
+ }
163
+ end
164
+ def asciidoc
165
+ {
166
+ cmd: '--asciidoc',
167
+ viewer: @prog.web_browser,
168
+ f_pth: @md.file.output_path.asciidoc.dir + '/' \
169
+ + @md.file.base_filename.asciidoc,
170
+ fn: @fn[:txt_asciidoc],
171
+ }
172
+ end
173
+ def markdown
174
+ {
175
+ cmd: '--markdown',
176
+ viewer: @prog.web_browser,
177
+ f_pth: @md.file.output_path.markdown.dir + '/' \
178
+ + @md.file.base_filename.markdown,
179
+ fn: @fn[:txt_markdown],
180
+ }
181
+ end
182
+ def rst
183
+ {
184
+ cmd: '--rst',
185
+ viewer: @prog.web_browser,
186
+ f_pth: @md.file.output_path.rst.dir + '/' \
187
+ + @md.file.base_filename.rst,
188
+ fn: @fn[:txt_rst],
189
+ }
190
+ end
191
+ def textile
192
+ {
193
+ cmd: '--textile',
194
+ viewer: @prog.web_browser,
195
+ f_pth: @md.file.output_path.textile.dir + '/' \
196
+ + @md.file.base_filename.textile,
197
+ fn: @fn[:txt_textile],
198
+ }
199
+ end
200
+ def orgmode
201
+ {
202
+ cmd: '--orgmode',
203
+ viewer: @prog.web_browser,
204
+ f_pth: @md.file.output_path.orgmode.dir + '/' \
205
+ + @md.file.base_filename.orgmode,
206
+ fn: @fn[:txt_orgmode],
207
+ }
208
+ end
209
+ self
210
+ end
211
+ def html
212
+ def seg
213
+ {
214
+ cmd: '--html-seg',
215
+ viewer: @prog.web_browser,
216
+ f_pth: @md.file.output_path.html_seg.dir + '/' \
217
+ + @md.file.base_filename.html_segtoc,
218
+ p_pth: @env.processing_path.tune + '/' \
219
+ + @md.fns + '.tune',
220
+ fn: @fn[:toc],
221
+ }
222
+ end
223
+ def scroll
224
+ {
225
+ cmd: '--html-scroll',
226
+ viewer: @prog.web_browser,
227
+ f_pth: @md.file.output_path.html_scroll.dir + '/' \
228
+ + @md.file.base_filename.html_scroll,
229
+ p_pth: @env.processing_path.tune + '/' \
230
+ + @md.fns + '.tune',
231
+ fn: @fn[:doc],
232
+ }
233
+ end
234
+ def concordance
235
+ {
236
+ cmd: '--concordance',
237
+ viewer: @prog.web_browser,
238
+ f_pth: @md.file.output_path.html_concordance.dir + '/' \
239
+ + @md.file.base_filename.html_concordance,
240
+ fn: @fn[:concordance],
241
+ }
242
+ end
243
+ self
244
+ end
245
+ def xhtml
246
+ def xhtml
247
+ {
248
+ cmd: '--xhtml',
249
+ viewer: @prog.web_browser,
250
+ f_pth: @md.file.output_path.xhtml.dir + '/' \
251
+ + @md.file.base_filename.xhtml,
252
+ p_pth: @env.processing_path.tune + '/' \
253
+ + @md.fns + '.tune',
254
+ fn: @fn[:xhtml],
255
+ }
256
+ end
257
+ def epub
258
+ {
259
+ cmd: '--epub',
260
+ viewer: @prog.epub_viewer,
261
+ f_pth: @md.file.output_path.epub.dir + '/' \
262
+ + @md.file.base_filename.epub,
263
+ p_pth: @env.processing_path.epub + '/' \
264
+ + Ep[:d_oebps] + '/' \
265
+ + 'index.xhtml',
266
+ fn: @fn[:epub],
267
+ }
268
+ end
269
+ self
270
+ end
271
+ def xml
272
+ def odt
273
+ {
274
+ cmd: '--odt (ODF:ODT)',
275
+ viewer: @prog.odf_viewer,
276
+ f_pth: @md.file.output_path.odt.dir + '/' \
277
+ + @md.file.base_filename.odt,
278
+ p_pth: @env.processing_path.odf + '/' \
279
+ + @opt.fns + '/' \
280
+ + 'odt/content.xml',
281
+ fn: @fn[:odf],
282
+ }
283
+ end
284
+ def docbook
285
+ {
286
+ cmd: '--docbook',
287
+ viewer: @prog.web_browser,
288
+ f_pth: @md.file.output_path.xml_docbook_book.dir + '/' \
289
+ + @md.file.base_filename.xml_docbook_book,
290
+ fn: @fn[:xml_docbook_book],
291
+ }
292
+ end
293
+ def fictionbook
294
+ {
295
+ cmd: '--fictionbook',
296
+ viewer: @prog.web_browser,
297
+ f_pth: @md.file.output_path.xml_fictionbook.dir + '/' \
298
+ + @md.file.base_filename.xml_fictionbook,
299
+ fn: @fn[:xml_fictionbook],
300
+ }
301
+ end
302
+ def sax
303
+ {
304
+ cmd: '--xml-sax',
305
+ viewer: @prog.web_browser,
306
+ f_pth: @md.file.output_path.xml_sax.dir + '/' \
307
+ + @md.file.base_filename.xml_sax,
308
+ fn: @fn[:sax],
309
+ }
310
+ end
311
+ def dom
312
+ {
313
+ cmd: '--xml-dom',
314
+ viewer: @prog.web_browser,
315
+ f_pth: @md.file.output_path.xml_dom.dir + '/' \
316
+ + @md.file.base_filename.xml_dom,
317
+ fn: @fn[:dom],
318
+ }
319
+ end
320
+ def scaffold_sisu
321
+ {
322
+ cmd: '--xml-scaffold-sisu',
323
+ viewer: @prog.web_browser,
324
+ f_pth: @md.file.output_path.xml_scaffold_structure_sisu.dir + '/' \
325
+ + @md.file.base_filename.xml_scaffold_structure_sisu,
326
+ fn: @fn[:xml_scaffold_structure_sisu],
327
+ }
328
+ end
329
+ def scaffold_collapse
330
+ {
331
+ cmd: '--xml-scaffold-collapse',
332
+ viewer: @prog.web_browser,
333
+ f_pth: @md.file.output_path.xml_scaffold_structure_collapse.dir + '/' \
334
+ + @md.file.base_filename.xml_scaffold_structure_collapse,
335
+ fn: @fn[:xml_scaffold_structure_collapse],
336
+ }
337
+ end
338
+ self
339
+ end
340
+ def pdf
341
+ def landscape
342
+ {
343
+ cmd: '--pdf (landscape)',
344
+ viewer: @prog.pdf_viewer,
345
+ f_pth: @md.file.output_path.pdf.dir + '/' \
346
+ + @md.file.base_filename.pdf_l \
347
+ + @md.papersize_array[0] + '.pdf',
348
+ p_pth: @env.processing_path.tex + '/' \
349
+ + @opt.fns.gsub(/~/,'-') + '.' \
350
+ + @md.papersize_array[0] \
351
+ + '.landscape.tex',
352
+ fn: @fn[:pdf_l],
353
+ }
354
+ end
355
+ def portrait
356
+ {
357
+ cmd: '--pdf (portrait)',
358
+ viewer: @prog.pdf_viewer,
359
+ f_pth: @md.file.output_path.pdf.dir + '/' \
360
+ + @md.file.base_filename.pdf_p \
361
+ + @md.papersize_array[0] + '.pdf',
362
+ p_pth: @env.processing_path.tex + '/' \
363
+ + @opt.fns.gsub(/~/,'-') + '.' \
364
+ + @md.papersize_array[0] \
365
+ + '.tex',
366
+ fn: @fn[:pdf_p],
367
+ }
368
+ end
369
+ self
370
+ end
371
+ def manpage
372
+ {
373
+ cmd: '--manpage',
374
+ viewer: @prog.manpage_viewer,
375
+ f_pth: @md.file.output_path.manpage.dir + '/' \
376
+ + @md.file.base_filename.manpage,
377
+ fn: 'manpage',
378
+ }
379
+ end
380
+ def texinfo
381
+ {
382
+ cmd: '--texinfo',
383
+ viewer: '',
384
+ f_pth: 'cd ' \
385
+ + @md.file.output_path.texinfo.dir + ' && ' \
386
+ + @env.program.texinfo + ' ' \
387
+ + @md.file.base_filename.info \
388
+ + '; cd -',
389
+ fn: 'info',
390
+ }
391
+ end
392
+ def db
393
+ def psql
394
+ {
395
+ cmd: '--psql --update/--import',
396
+ viewer: '',
397
+ f_pth: @pwd_stub + '::' \
398
+ + @opt.fns \
399
+ + 'dbi psql',
400
+ p_pth: @env.processing_path.postgresql + '/' \
401
+ + @md.fns \
402
+ + '.sql',
403
+ fn: 'dbi psql',
404
+ }
405
+ end
406
+ def sqlite
407
+ {
408
+ cmd: '--sqlite --update/--import',
409
+ viewer: 'sqlite3 ',
410
+ f_pth: @env.path.webserv + '/' \
411
+ + @md.opt.f_pth[:pth_stub] + '/' \
412
+ + 'sisu_sqlite.db',
413
+ p_pth: @env.processing_path.sqlite + '/' \
414
+ + @md.fns \
415
+ + '.sql',
416
+ fn: 'dbi sqlite3',
417
+ }
418
+ end
419
+ def sqlite_discrete
420
+ {
421
+ cmd: '--sqlite',
422
+ viewer: 'sqlite3 ',
423
+ f_pth: @md.file.output_path.sqlite_discrete.dir + '/' \
424
+ + @md.file.base_filename.sqlite_discrete,
425
+ p_pth: @env.processing_path.sqlite + '/' \
426
+ + @md.fns \
427
+ + '.sql',
428
+ fn: 'dbi sqlite3',
429
+ }
430
+ end
431
+ self
432
+ end
433
+ def po4a
434
+ def po
435
+ {
436
+ cmd: '--po4a/--pot',
437
+ viewer: @prog.web_browser,
438
+ f_pth: @prog.text_editor + ' ' \
439
+ + @md.file.output_path.po.dir \
440
+ + '/' + y,
441
+ fn: @fn[:pot],
442
+ }
443
+ end
444
+ def pot
445
+ {
446
+ cmd: '--po4a/--pot',
447
+ viewer: @prog.web_browser,
448
+ f_pth: @prog.text_editor + ' ' \
449
+ + @md.file.output_path.pot.dir \
450
+ + '/' + y,
451
+ fn: @fn[:pot],
452
+ }
453
+ end
454
+ self
455
+ end
456
+ def source
457
+ {
458
+ cmd: '--source (sisu markup)',
459
+ viewer: @prog.text_editor,
460
+ f_pth: @md.file.output_path.src.dir + '/' \
461
+ + @opt.fno,
462
+ p_pth: @md.file.output_path.src.dir + '/' \
463
+ + @opt.fno,
464
+ fn: @opt.fno,
465
+ }
466
+ end
467
+ def sisupod
468
+ {
469
+ cmd: '--sisupod',
470
+ viewer: '',
471
+ f_pth: @md.file.output_path.sisupod.dir + '/' \
472
+ + @opt.fno \
473
+ + '.txz',
474
+ p_pth: @md.file.output_path.sisupod.dir + '/' \
475
+ + @opt.fno + '/' \
476
+ + 'sisupod/',
477
+ fn: @fn[:sisupod],
478
+ }
479
+ end
480
+ def ruby_profile
481
+ {
482
+ cmd: '--profile (ruby profiler)',
483
+ fn: 'profile',
484
+ }
485
+ end
486
+ def qrcode
487
+ {
488
+ cmd: '--qrcode',
489
+ viewer: @prog.web_browser,
490
+ f_pth: @md.file.output_path.manifest.dir + '/' \
491
+ + @md.file.base_filename.manifest,
492
+ fn: @fn[:qrcode],
493
+ }
494
+ end
495
+ def manifest
496
+ {
497
+ cmd: '--manifest',
498
+ viewer: @prog.web_browser,
499
+ f_pth: @md.file.output_path.manifest.dir + '/' \
500
+ + @md.file.base_filename.manifest,
501
+ fn: @fn[:manifest],
502
+ }
503
+ end
504
+ def sitemap
505
+ {
506
+ cmd: '--sitemap',
507
+ viewer: @prog.web_browser,
508
+ f_pth: @md.file.output_path.sitemaps.dir + '/' \
509
+ + @md.file.base_filename.sitemap,
510
+ fn: @fn[:sitemap],
511
+ }
512
+ end
513
+ self
514
+ end
515
+ def urls_select
516
+ unless @opt.act[:quiet][:set]==:on
517
+ i1='[' + @opt.f_pth[:lng_is] + ']'
518
+ i2='file://' \
519
+ + @md.file.output_path.manifest.dir + '/' \
520
+ + @md.file.base_filename.manifest
521
+ (@opt.act[:verbose][:set]==:on \
522
+ || @opt.act[:verbose_plus][:set]==:on \
523
+ || @opt.act[:maintenance][:set]==:on) \
524
+ ? SiSU_Screen::Ansi.new(
525
+ @opt.act[:color_state][:set],
526
+ 'URLs'
527
+ ).green_title_hi
528
+ : SiSU_Screen::Ansi.new(
529
+ @opt.act[:color_state][:set],
530
+ 'URL (output manifest)',
531
+ i1, i2
532
+ ).grey_title_grey_blue
533
+ if (@opt.act[:verbose][:set]==:on \
534
+ || @opt.act[:verbose_plus][:set]==:on \
535
+ || @opt.act[:maintenance][:set]==:on)
536
+ SiSU_Screen::Ansi.new(
537
+ @opt.act[:color_state][:set],
538
+ i1, i2,
539
+ ).flow
540
+ end
541
+ end
542
+ m=/.+\/(?:src\/)?(\S+)/im
543
+ @pwd_stub="#{@env.url.output_tell}"[m,1]
544
+ unless @opt.act[:quiet][:set]==:on
545
+ if @opt.fns =~ @m_regular
546
+ if (@opt.act[:verbose][:set]==:on \
547
+ || @opt.act[:verbose_plus][:set]==:on \
548
+ || @opt.act[:maintenance][:set]==:on)
549
+ if @opt.act[:txt][:set]==:on
550
+ show.report(report_info.text.txt)
551
+ #show.maintenance(report_info.text.txt)
552
+ end
553
+ if @opt.act[:txt_textile][:set]==:on
554
+ show.report(report_info.text.textile)
555
+ #show.maintenance(report_info.text.textile)
556
+ end
557
+ if @opt.act[:txt_asciidoc][:set]==:on
558
+ show.report(report_info.text.asciidoc)
559
+ #show.maintenance(report_info.text.asciidoc)
560
+ end
561
+ if @opt.act[:txt_markdown][:set]==:on
562
+ show.report(report_info.text.markdown)
563
+ #show.maintenance(report_info.text.markdown)
564
+ end
565
+ if @opt.act[:txt_rst][:set]==:on
566
+ show.report(report_info.text.rst)
567
+ #show.maintenance(report_info.text.rst)
568
+ end
569
+ if @opt.act[:txt_orgmode][:set]==:on
570
+ show.report(report_info.text.orgmode)
571
+ #show.maintenance(report_info.text.orgmode)
572
+ end
573
+ if (@opt.act[:html][:set]==:on \
574
+ or @opt.act[:html_scroll][:set]==:on \
575
+ or @opt.act[:html_seg][:set]==:on)
576
+ if @opt.act[:html_scroll][:set]==:on
577
+ show.report(report_info.html.scroll)
578
+ show.maintenance(report_info.html.scroll)
579
+ end
580
+ if @opt.act[:html_seg][:set]==:on
581
+ show.report(report_info.html.seg)
582
+ show.maintenance(report_info.html.seg)
583
+ end
584
+ end
585
+ if @opt.act[:concordance][:set]==:on
586
+ show.report(report_info.html.concordance)
587
+ #show.maintenance(report_info.html.concordance)
588
+ end
589
+ if @opt.act[:xhtml][:set]==:on
590
+ show.report(report_info.xhtml.xhtml)
591
+ show.maintenance(report_info.xhtml.xhtml)
592
+ end
593
+ if @opt.act[:epub][:set]==:on
594
+ show.report(report_info.xhtml.epub)
595
+ show.maintenance(report_info.xhtml.epub)
596
+ end
597
+ if @opt.act[:odt][:set]==:on
598
+ show.report(report_info.xml.odt)
599
+ show.maintenance(report_info.xml.odt)
600
+ end
601
+ if @opt.act[:xml_dom][:set]==:on
602
+ show.report(report_info.xml.dom)
603
+ #show.maintenance(report_info.xml.dom)
604
+ end
605
+ if @opt.act[:xml_sax][:set]==:on
606
+ show.report(report_info.xml.sax)
607
+ #show.maintenance(report_info.xml.sax)
608
+ end
609
+ if @opt.act[:xml_docbook_book][:set]==:on
610
+ show.report(report_info.xml.docbook)
611
+ #show.maintenance(report_info.xml.docbook)
612
+ end
613
+ if @opt.act[:xml_fictionbook][:set]==:on
614
+ show.report(report_info.xml.fictionbook)
615
+ #show.maintenance(report_info.xml.fictionbook)
616
+ end
617
+ if @opt.act[:xml_scaffold_structure_sisu][:set]==:on
618
+ show.report(report_info.xml.scaffold_structure_sisu)
619
+ #show.maintenance(report_info.xml.scaffold_structure_sisu)
620
+ end
621
+ if @opt.act[:xml_scaffold_structure_collapse][:set]==:on
622
+ show.report(report_info.xml.scaffold_collapse)
623
+ #show.maintenance(report_info.xml.scaffold_collapse)
624
+ end
625
+ if (@opt.act[:pdf][:set]==:on \
626
+ or @opt.act[:pdf_p][:set]==:on \
627
+ or @opt.act[:pdf_l][:set]==:on)
628
+ if @opt.act[:pdf_p][:set]==:on
629
+ show.report(report_info.pdf.portrait)
630
+ show.maintenance(report_info.pdf.portrait)
631
+ end
632
+ if @opt.act[:pdf_l][:set]==:on
633
+ show.report(report_info.pdf.landscape)
634
+ show.maintenance(report_info.pdf.landscape)
635
+ end
636
+ end
637
+ if @opt.act[:psql][:set]==:on
638
+ show.report(report_info.db.psql)
639
+ show.maintenance(report_info.db.psql)
640
+ end
641
+ if @opt.act[:sqlite_discrete][:set]==:on
642
+ show.report(report_info.db.sqlite_discrete)
643
+ show.maintenance(report_info.db.sqlite_discrete)
644
+ end
645
+ if @opt.act[:sqlite][:set]==:on
646
+ show.report(report_info.db.sqlite)
647
+ show.maintenance(report_info.db.sqlite)
648
+ end
649
+ if @opt.act[:texinfo][:set]==:on
650
+ show.report(report_info.texinfo)
651
+ #show.maintenance(report_info.texinfo)
652
+ end
653
+ if @opt.act[:manpage][:set]==:on
654
+ show.report(report_info.manpage)
655
+ #show.maintenance(report_info.manpage)
656
+ end
657
+ if @opt.act[:hash_digests][:set]==:on
658
+ show.report(report_info.hash_digests)
659
+ #show.maintenance(report_info.hash_digests)
660
+ end
661
+ if @opt.act[:po4a_shelf][:set]==:on
662
+ #if @opt.fns =~/\S+?~\S{2}(?:_\S{2})?\.ss[mt]/
663
+ #else
664
+ #end
665
+ end
666
+ if @opt.act[:share_source][:set]==:on
667
+ show.report(report_info.source)
668
+ show.maintenance(report_info.source)
669
+ end
670
+ if @opt.act[:sisupod][:set]==:on
671
+ show.report(report_info.sisupod)
672
+ show.maintenance(report_info.sisupod)
673
+ end
674
+ if @opt.act[:qrcode][:set]==:on
675
+ show.report(report_info.qrcode)
676
+ #show.maintenance(report_info.qrcode)
677
+ end
678
+ if @opt.act[:manifest][:set]==:on
679
+ show.report(report_info.manifest)
680
+ show.maintenance(report_info.manifest)
681
+ end
682
+ end
683
+ end
684
+ end
685
+ end
686
+ def urls_all
687
+ i="(output manifest) [#{@opt.f_pth[:lng_is]}] #{@env.url.output_tell}/#{@fnb}/sisu_manifest.html"
688
+ SiSU_Screen::Ansi.new(
689
+ @opt.act[:color_state][:set],
690
+ 'URLs',
691
+ i
692
+ ).grey_title_hi
693
+ end
694
+ end
695
+ end
696
+ __END__