sisu 7.1.7 → 7.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/data/sisu/version.yml +3 -3
- data/lib/sisu/air.rb +10 -12
- data/lib/sisu/ao.rb +10 -12
- data/lib/sisu/ao_appendices.rb +10 -12
- data/lib/sisu/ao_character_check.rb +10 -12
- data/lib/sisu/ao_composite.rb +10 -12
- data/lib/sisu/ao_doc_objects.rb +10 -12
- data/lib/sisu/ao_doc_str.rb +10 -12
- data/lib/sisu/ao_endnotes.rb +10 -12
- data/lib/sisu/ao_expand_insertions.rb +10 -12
- data/lib/sisu/ao_hash_digest.rb +10 -12
- data/lib/sisu/ao_idx.rb +10 -12
- data/lib/sisu/ao_images.rb +10 -12
- data/lib/sisu/ao_metadata.rb +10 -12
- data/lib/sisu/ao_misc_arrange.rb +10 -12
- data/lib/sisu/ao_numbering.rb +10 -12
- data/lib/sisu/ao_persist.rb +10 -12
- data/lib/sisu/ao_syntax.rb +10 -12
- data/lib/sisu/cgi.rb +10 -12
- data/lib/sisu/cgi_pgsql.rb +10 -12
- data/lib/sisu/cgi_sql_common.rb +16 -18
- data/lib/sisu/cgi_sqlite.rb +10 -12
- data/lib/sisu/conf.rb +10 -12
- data/lib/sisu/constants.rb +12 -13
- data/lib/sisu/css.rb +10 -12
- data/lib/sisu/db_columns.rb +10 -12
- data/lib/sisu/db_create.rb +10 -12
- data/lib/sisu/db_dbi.rb +10 -12
- data/lib/sisu/db_drop.rb +10 -12
- data/lib/sisu/db_import.rb +10 -12
- data/lib/sisu/db_indexes.rb +10 -12
- data/lib/sisu/db_load_tuple.rb +10 -12
- data/lib/sisu/db_remove.rb +10 -12
- data/lib/sisu/db_select.rb +10 -12
- data/lib/sisu/db_sqltxt.rb +10 -12
- data/lib/sisu/db_tests.rb +10 -12
- data/lib/sisu/dbi.rb +10 -12
- data/lib/sisu/dbi_discrete.rb +10 -12
- data/lib/sisu/digests.rb +10 -12
- data/lib/sisu/dp.rb +15 -14
- data/lib/sisu/dp_identify_markup.rb +10 -12
- data/lib/sisu/dp_make.rb +11 -13
- data/lib/sisu/embedded.rb +10 -12
- data/lib/sisu/errors.rb +10 -12
- data/lib/sisu/generic_parts.rb +10 -12
- data/lib/sisu/git.rb +10 -12
- data/lib/sisu/html.rb +10 -12
- data/lib/sisu/html_concordance.rb +10 -12
- data/lib/sisu/html_format.rb +10 -12
- data/lib/sisu/html_harvest.rb +10 -12
- data/lib/sisu/html_harvest_author_format.rb +10 -12
- data/lib/sisu/html_harvest_authors.rb +10 -12
- data/lib/sisu/html_harvest_topics.rb +10 -12
- data/lib/sisu/html_lite_shared.rb +10 -12
- data/lib/sisu/html_manifest.rb +10 -12
- data/lib/sisu/html_minitoc.rb +10 -12
- data/lib/sisu/html_parts.rb +10 -12
- data/lib/sisu/html_persist.rb +10 -12
- data/lib/sisu/html_promo.rb +10 -12
- data/lib/sisu/html_scroll.rb +10 -12
- data/lib/sisu/html_segments.rb +10 -12
- data/lib/sisu/html_shared.rb +10 -12
- data/lib/sisu/html_table.rb +10 -12
- data/lib/sisu/html_tune.rb +10 -12
- data/lib/sisu/hub.rb +12 -13
- data/lib/sisu/hub_actions.rb +26 -12
- data/lib/sisu/hub_loop_markup_files.rb +10 -12
- data/lib/sisu/hub_options.rb +19 -12
- data/lib/sisu/i18n.rb +10 -12
- data/lib/sisu/json.rb +415 -0
- data/lib/sisu/json_format.rb +478 -0
- data/lib/sisu/json_parts.rb +88 -0
- data/lib/sisu/json_persist.rb +124 -0
- data/lib/sisu/json_shared.rb +681 -0
- data/lib/sisu/manpage.rb +11 -13
- data/lib/sisu/manpage_format.rb +10 -12
- data/lib/sisu/object_munge.rb +10 -12
- data/lib/sisu/prog_text_translation.rb +10 -12
- data/lib/sisu/qrcode.rb +10 -12
- data/lib/sisu/relaxng.rb +16 -18
- data/lib/sisu/remote.rb +10 -12
- data/lib/sisu/rexml.rb +10 -12
- data/lib/sisu/se.rb +10 -12
- data/lib/sisu/se_cleanoutput.rb +10 -12
- data/lib/sisu/se_clear.rb +10 -12
- data/lib/sisu/se_createsite.rb +10 -12
- data/lib/sisu/se_css.rb +10 -12
- data/lib/sisu/se_date.rb +10 -12
- data/lib/sisu/se_db.rb +10 -12
- data/lib/sisu/se_envcall.rb +10 -12
- data/lib/sisu/se_file_op.rb +69 -12
- data/lib/sisu/se_filemap.rb +10 -12
- data/lib/sisu/se_get_init.rb +10 -12
- data/lib/sisu/se_hub_particulars.rb +10 -12
- data/lib/sisu/se_info_env.rb +10 -12
- data/lib/sisu/se_info_port.rb +10 -12
- data/lib/sisu/se_info_system.rb +10 -12
- data/lib/sisu/se_load.rb +10 -12
- data/lib/sisu/se_processing.rb +10 -12
- data/lib/sisu/se_programs.rb +10 -12
- data/lib/sisu/se_remotes.rb +10 -12
- data/lib/sisu/se_standardise_lang.rb +10 -12
- data/lib/sisu/se_version.rb +10 -12
- data/lib/sisu/shared_images.rb +10 -12
- data/lib/sisu/shared_markup_alt.rb +10 -12
- data/lib/sisu/shared_metadata.rb +22 -12
- data/lib/sisu/shared_sem.rb +10 -12
- data/lib/sisu/sitemaps.rb +10 -12
- data/lib/sisu/src_kdissert_share.rb +10 -12
- data/lib/sisu/src_po4a_share.rb +10 -12
- data/lib/sisu/src_po4a_shelf.rb +10 -12
- data/lib/sisu/src_po4a_shelf_set.rb +10 -12
- data/lib/sisu/src_po4a_sst_ao_sst.rb +10 -12
- data/lib/sisu/src_po4a_sst_ao_sst_set.rb +10 -12
- data/lib/sisu/src_po4a_sstm.rb +10 -12
- data/lib/sisu/src_shared.rb +10 -12
- data/lib/sisu/src_sisupod_make.rb +10 -12
- data/lib/sisu/src_sisupod_sstm.rb +10 -12
- data/lib/sisu/sst_convert_markup.rb +10 -12
- data/lib/sisu/sst_do_inline_footnotes.rb +10 -12
- data/lib/sisu/sst_from_xml.rb +10 -12
- data/lib/sisu/sst_identify_markup.rb +10 -12
- data/lib/sisu/sst_to_s_xml_sax.rb +10 -12
- data/lib/sisu/termsheet.rb +10 -12
- data/lib/sisu/texinfo.rb +10 -12
- data/lib/sisu/texinfo_format.rb +10 -12
- data/lib/sisu/texpdf.rb +10 -12
- data/lib/sisu/texpdf_format.rb +10 -12
- data/lib/sisu/texpdf_parts.rb +10 -12
- data/lib/sisu/txt_asciidoc.rb +10 -12
- data/lib/sisu/txt_asciidoc_decorate.rb +10 -12
- data/lib/sisu/txt_markdown.rb +10 -12
- data/lib/sisu/txt_markdown_decorate.rb +10 -12
- data/lib/sisu/txt_orgmode.rb +36 -22
- data/lib/sisu/txt_orgmode_decorate.rb +10 -12
- data/lib/sisu/txt_output.rb +10 -12
- data/lib/sisu/txt_plain.rb +10 -12
- data/lib/sisu/txt_plain_decorate.rb +10 -12
- data/lib/sisu/txt_read.rb +10 -12
- data/lib/sisu/txt_rst.rb +10 -12
- data/lib/sisu/txt_rst_decorate.rb +10 -12
- data/lib/sisu/txt_shared.rb +10 -12
- data/lib/sisu/txt_textile.rb +10 -12
- data/lib/sisu/txt_textile_decorate.rb +10 -12
- data/lib/sisu/update.rb +10 -12
- data/lib/sisu/urls.rb +23 -12
- data/lib/sisu/utils.rb +10 -11
- data/lib/sisu/utils_composite.rb +10 -12
- data/lib/sisu/utils_response.rb +10 -12
- data/lib/sisu/utils_screen_text_color.rb +10 -12
- data/lib/sisu/utils_spell.rb +10 -12
- data/lib/sisu/webrick.rb +10 -12
- data/lib/sisu/wikispeak.rb +10 -12
- data/lib/sisu/xhtml.rb +10 -12
- data/lib/sisu/xhtml_epub2.rb +10 -12
- data/lib/sisu/xhtml_epub2_concordance.rb +10 -12
- data/lib/sisu/xhtml_epub2_format.rb +10 -12
- data/lib/sisu/xhtml_epub2_persist.rb +10 -12
- data/lib/sisu/xhtml_epub2_segments.rb +10 -12
- data/lib/sisu/xhtml_epub2_tune.rb +10 -12
- data/lib/sisu/xhtml_parts.rb +10 -12
- data/lib/sisu/xhtml_shared.rb +10 -12
- data/lib/sisu/xhtml_table.rb +10 -12
- data/lib/sisu/xml_docbook5.rb +10 -12
- data/lib/sisu/xml_dom.rb +10 -12
- data/lib/sisu/xml_fictionbook2.rb +10 -12
- data/lib/sisu/xml_format.rb +10 -12
- data/lib/sisu/xml_md_oai_pmh_dc.rb +10 -12
- data/lib/sisu/xml_odf_odt.rb +10 -12
- data/lib/sisu/xml_odf_odt_format.rb +10 -12
- data/lib/sisu/xml_parts.rb +10 -12
- data/lib/sisu/xml_persist.rb +10 -12
- data/lib/sisu/xml_sax.rb +10 -12
- data/lib/sisu/xml_scaffold_structure_collapsed.rb +10 -12
- data/lib/sisu/xml_scaffold_structure_sisu.rb +10 -12
- data/lib/sisu/xml_shared.rb +10 -12
- data/lib/sisu/xml_tables.rb +10 -12
- data/lib/sisu/zap.rb +10 -12
- metadata +9 -4
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext decoration
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_asciidoc_decorate.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
|
data/lib/sisu/txt_markdown.rb
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext (smarttext) generation, markdown
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_markdown.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
module SiSU_Txt_Markdown
|
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext decoration
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_markdown_decorate.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
|
data/lib/sisu/txt_orgmode.rb
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext (smarttext) generation, orgmode structure
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_orgmode.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
module SiSU_Txt_OrgMode
|
@@ -108,6 +106,19 @@ module SiSU_Txt_OrgMode
|
|
108
106
|
else true
|
109
107
|
end
|
110
108
|
@plaintext={ body: [], open: [], close: [], head: [], endnotes: [], metadata: [], tail: [] }
|
109
|
+
@plaintext[:head]= <<-WOK
|
110
|
+
#+TITLE: #{@md.title.short}
|
111
|
+
#+AUTHOR: #{@md.creator.author}
|
112
|
+
#+EMAIL: #{@md.creator.email}
|
113
|
+
#+STARTUP: indent content
|
114
|
+
#+LANGUAGE: #{@md.opt.lng}
|
115
|
+
#+OPTIONS: H:3 num:nil toc:t \\n:nil @:t ::t |:t ^:nil _:nil -:t f:t *:t <:t
|
116
|
+
#+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
|
117
|
+
#+OPTIONS: author:nil email:nil creator:nil timestamp:nil
|
118
|
+
#+EXPORT_SELECT_TAGS: export
|
119
|
+
#+EXPORT_EXCLUDE_TAGS: noexport
|
120
|
+
|
121
|
+
WOK
|
111
122
|
end
|
112
123
|
def songsheet
|
113
124
|
plaintext=markup(@data)
|
@@ -117,7 +128,8 @@ module SiSU_Txt_OrgMode
|
|
117
128
|
"\n"
|
118
129
|
end
|
119
130
|
def extract_endnotes(dob='')
|
120
|
-
notes=dob.obj.
|
131
|
+
notes=dob.obj.
|
132
|
+
scan(/(?:#{Mx[:en_a_o]}|#{Mx[:en_b_o]})([\d*+]+\s+.+?)(?:#{Mx[:en_a_c]}|#{Mx[:en_b_c]})/)
|
121
133
|
@n=[]
|
122
134
|
notes.flatten.each do |n| #high cost to deal with <br> appropriately within plaintext, consider
|
123
135
|
n=n.dup.to_s
|
@@ -138,7 +150,7 @@ module SiSU_Txt_OrgMode
|
|
138
150
|
wrap=util.line_wrap
|
139
151
|
wrap=if wrap =~ /^\s*[\d*+]+\s+.+?\s*\Z/m
|
140
152
|
wrap.gsub(/^(\s*)([\d*+]+)\s+(.+?)\s*\Z/m, <<-GSUB
|
141
|
-
\\1[
|
153
|
+
\\1[fn:\\2] \\3
|
142
154
|
GSUB
|
143
155
|
)
|
144
156
|
else
|
@@ -148,7 +160,7 @@ module SiSU_Txt_OrgMode
|
|
148
160
|
)
|
149
161
|
end
|
150
162
|
@@endnotes[:para] << "-#{wrap}"
|
151
|
-
@@endnotes[:end] << '' << wrap
|
163
|
+
@@endnotes[:end] << '' << wrap.strip
|
152
164
|
end
|
153
165
|
@@endnotes
|
154
166
|
end
|
@@ -283,13 +295,13 @@ WOK
|
|
283
295
|
"#{decorate.monospace.open}\\1#{decorate.monospace.close}")
|
284
296
|
unless dob.is==:code
|
285
297
|
dob.obj=dob.obj.gsub(/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}#{Mx[:rel_o]}\S+?#{Mx[:rel_c]}/,'\1').
|
286
|
-
gsub(/#{Mx[:url_o]}_(\S+?)#{Mx[:url_c]}/,'\1').
|
287
|
-
gsub(/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,'\
|
288
|
-
gsub(/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}image/,'\1 [link: local image]').
|
289
|
-
gsub(/#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,
|
298
|
+
gsub(/#{Mx[:url_o]}_(\S+?)#{Mx[:url_c]}/,'[[\1]]').
|
299
|
+
gsub(/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,'[[\2][\1]]').
|
300
|
+
gsub(/#{Mx[:lnk_o]}(.+?)#{Mx[:lnk_c]}image/,'[[\1]] [link: local image]').
|
301
|
+
gsub(/#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/,'[[\1]]') #urls
|
290
302
|
extract_endnotes(dob)
|
291
|
-
dob.obj=dob.obj.gsub(/#{Mx[:en_a_o]}([\d*+]+)\s+(?:.+?)#{Mx[:en_a_c]}/,'[
|
292
|
-
gsub(/#{Mx[:en_b_o]}([\d*+]+)\s+(?:.+?)#{Mx[:en_b_c]}/,'[
|
303
|
+
dob.obj=dob.obj.gsub(/#{Mx[:en_a_o]}([\d*+]+)\s+(?:.+?)#{Mx[:en_a_c]}/,'[fn:\1]'). # endnote marker marked up
|
304
|
+
gsub(/#{Mx[:en_b_o]}([\d*+]+)\s+(?:.+?)#{Mx[:en_b_c]}/,'[fn:\1]'). # endnote marker marked up
|
293
305
|
gsub(/#{Mx[:gl_o]}(?:#lt|#060)#{Mx[:gl_c]}/,'<').
|
294
306
|
gsub(/#{Mx[:gl_o]}(?:#gt|#062)#{Mx[:gl_c]}/,'>').
|
295
307
|
gsub(/#{Mx[:gl_o]}#(?:038|amp)#{Mx[:gl_c]}/,'&').
|
@@ -312,7 +324,9 @@ WOK
|
|
312
324
|
end
|
313
325
|
if dob.is==:code
|
314
326
|
dob.obj=dob.obj.gsub(/(^|[^}])_([<>])/m,'\1\2'). # _> _<
|
315
|
-
gsub(/(^|[^}])_([<>])/m,'\1\2') # _<_<
|
327
|
+
gsub(/(^|[^}])_([<>])/m,'\1\2'). # _<_<
|
328
|
+
gsub(/^\*/m,',*')
|
329
|
+
dob.obj = '#+BEGIN_SRC sh :tangle no :padline no :exports none :noweb yes' + "\n" + dob.obj + '#+END_SRC'
|
316
330
|
end
|
317
331
|
dob.obj=dob.obj.gsub(/#{Mx[:url_o]}_(\S+?)#{Mx[:url_c]}/,'\1').
|
318
332
|
gsub(/<a href=".+?">(.+?)<\/a>/m,'\1').
|
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext decoration
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_orgmode_decorate.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
|
data/lib/sisu/txt_output.rb
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_output.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
module Txt_Output
|
data/lib/sisu/txt_plain.rb
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext text generation, stripped plaintext output (unix, linefeed)
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
module SiSU_Txt_Plain
|
@@ -7,11 +7,11 @@
|
|
7
7
|
*** plaintext decoration
|
8
8
|
|
9
9
|
** Author: Ralph Amissah
|
10
|
-
|
11
|
-
|
10
|
+
[ralph@amissah.com]
|
11
|
+
[ralph.amissah@gmail.com]
|
12
12
|
|
13
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,
|
14
|
+
2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Ralph Amissah,
|
15
15
|
All Rights Reserved.
|
16
16
|
|
17
17
|
** License: GPL 3 or later:
|
@@ -31,14 +31,12 @@
|
|
31
31
|
more details.
|
32
32
|
|
33
33
|
You should have received a copy of the GNU General Public License along with
|
34
|
-
this program. If not, see
|
34
|
+
this program. If not, see [http://www.gnu.org/licenses/].
|
35
35
|
|
36
36
|
If you have Internet connection, the latest version of the GPL should be
|
37
37
|
available at these locations:
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
|
38
|
+
[http://www.fsf.org/licensing/licenses/gpl.html]
|
39
|
+
[http://www.gnu.org/licenses/gpl.html]
|
42
40
|
|
43
41
|
** SiSU uses:
|
44
42
|
* Standard SiSU markup syntax,
|
@@ -46,12 +44,12 @@
|
|
46
44
|
* Standard SiSU object citation numbering and system
|
47
45
|
|
48
46
|
** Hompages:
|
49
|
-
|
50
|
-
|
47
|
+
[http://www.jus.uio.no/sisu]
|
48
|
+
[http://www.sisudoc.org]
|
51
49
|
|
52
50
|
** Git
|
53
|
-
|
54
|
-
|
51
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=summary]
|
52
|
+
[http://git.sisudoc.org/gitweb/?p=code/sisu.git;a=blob;f=lib/sisu/txt_plain_decorate.rb;hb=HEAD]
|
55
53
|
|
56
54
|
=end
|
57
55
|
|