aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG45
-rwxr-xr-xbin/sisu1
-rwxr-xr-xbin/sisu_termsheet1
-rwxr-xr-xbin/sisu_webrick1
-rw-r--r--conf/sisu/version.yml6
-rw-r--r--data/doc/sisu/html/sisu.1.html16
-rw-r--r--data/doc/sisu/html/sisu_webrick.1.html2
-rw-r--r--data/doc/sisu/sisu_markup_samples/sisu_manual/sisu.ssm4
-rw-r--r--data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_download.ssi24
-rw-r--r--data/sisu/conf/editor-syntax-etc/vim/syntax/sisu.vim207
-rw-r--r--lib/sisu/v0/cgi.rb1
-rw-r--r--lib/sisu/v0/cgi_pgsql.rb1
-rw-r--r--lib/sisu/v0/cgi_sql_common.rb1
-rw-r--r--lib/sisu/v0/cgi_sqlite.rb1
-rw-r--r--lib/sisu/v0/character_encoding.rb1
-rw-r--r--lib/sisu/v0/composite.rb1
-rw-r--r--lib/sisu/v0/concordance.rb1
-rw-r--r--lib/sisu/v0/conf.rb1
-rw-r--r--lib/sisu/v0/css.rb1
-rw-r--r--lib/sisu/v0/dal.rb1
-rw-r--r--lib/sisu/v0/dal_doc_str.rb1
-rw-r--r--lib/sisu/v0/dal_doc_str_code.rb1
-rw-r--r--lib/sisu/v0/dal_doc_str_tables.rb1
-rw-r--r--lib/sisu/v0/dal_syntax.rb6
-rw-r--r--lib/sisu/v0/db_columns.rb1
-rw-r--r--lib/sisu/v0/db_create.rb1
-rw-r--r--lib/sisu/v0/db_dbi.rb1
-rw-r--r--lib/sisu/v0/db_drop.rb1
-rw-r--r--lib/sisu/v0/db_import.rb1
-rw-r--r--lib/sisu/v0/db_indexes.rb1
-rw-r--r--lib/sisu/v0/db_load_tuple.rb1
-rw-r--r--lib/sisu/v0/db_remove.rb1
-rw-r--r--lib/sisu/v0/db_select.rb1
-rw-r--r--lib/sisu/v0/db_tests.rb1
-rw-r--r--lib/sisu/v0/dbi.rb1
-rw-r--r--lib/sisu/v0/defaults.rb1
-rw-r--r--lib/sisu/v0/digests.rb1
-rw-r--r--lib/sisu/v0/embedded.rb1
-rw-r--r--lib/sisu/v0/errors.rb1
-rw-r--r--lib/sisu/v0/help.rb1
-rw-r--r--lib/sisu/v0/html.rb1
-rw-r--r--lib/sisu/v0/html_format.rb1
-rw-r--r--lib/sisu/v0/html_format_css.rb1
-rw-r--r--lib/sisu/v0/html_promo.rb1
-rw-r--r--lib/sisu/v0/html_scroll.rb1
-rw-r--r--lib/sisu/v0/html_segments.rb1
-rw-r--r--lib/sisu/v0/html_table.rb1
-rw-r--r--lib/sisu/v0/html_tune.rb1
-rw-r--r--lib/sisu/v0/hub.rb1
-rw-r--r--lib/sisu/v0/i18n.rb1
-rw-r--r--lib/sisu/v0/manifest.rb1
-rw-r--r--lib/sisu/v0/manpage.rb1
-rw-r--r--lib/sisu/v0/manpage_format.rb1
-rw-r--r--lib/sisu/v0/odf.rb1
-rw-r--r--lib/sisu/v0/odf_format.rb1
-rw-r--r--lib/sisu/v0/options.rb1
-rw-r--r--lib/sisu/v0/param.rb5
-rw-r--r--lib/sisu/v0/param_identify_markup.rb61
-rw-r--r--lib/sisu/v0/plaintext.rb1
-rw-r--r--lib/sisu/v0/plaintext_format.rb1
-rw-r--r--lib/sisu/v0/relaxng.rb1
-rw-r--r--lib/sisu/v0/remote.rb1
-rw-r--r--lib/sisu/v0/response.rb1
-rw-r--r--lib/sisu/v0/rexml.rb1
-rw-r--r--lib/sisu/v0/screen_text_color.rb1
-rw-r--r--lib/sisu/v0/share_src.rb1
-rw-r--r--lib/sisu/v0/share_src_kdissert.rb1
-rw-r--r--lib/sisu/v0/shared_html.rb1
-rw-r--r--lib/sisu/v0/shared_html_lite.rb1
-rw-r--r--lib/sisu/v0/shared_sem.rb74
-rw-r--r--lib/sisu/v0/shared_txt.rb1
-rw-r--r--lib/sisu/v0/shared_xml.rb89
-rw-r--r--lib/sisu/v0/sisupod_make.rb1
-rw-r--r--lib/sisu/v0/sitemaps.rb1
-rw-r--r--lib/sisu/v0/spell.rb1
-rw-r--r--lib/sisu/v0/sst_convert_markup.rb1
-rw-r--r--lib/sisu/v0/sst_do_inline_footnotes.rb1
-rw-r--r--lib/sisu/v0/sst_from_kdissert.rb1
-rw-r--r--lib/sisu/v0/sst_from_xml.rb7
-rw-r--r--lib/sisu/v0/sst_identify_markup.rb25
-rw-r--r--lib/sisu/v0/sst_to_s_xml_dom.rb14
-rw-r--r--lib/sisu/v0/sst_to_s_xml_node.rb11
-rw-r--r--lib/sisu/v0/sst_to_s_xml_sax.rb10
-rw-r--r--lib/sisu/v0/sysenv.rb1
-rw-r--r--lib/sisu/v0/termsheet.rb1
-rw-r--r--lib/sisu/v0/texinfo.rb1
-rw-r--r--lib/sisu/v0/texinfo_format.rb1
-rw-r--r--lib/sisu/v0/texpdf.rb1
-rw-r--r--lib/sisu/v0/texpdf_format.rb1
-rw-r--r--lib/sisu/v0/update.rb1
-rw-r--r--lib/sisu/v0/urls.rb1
-rw-r--r--lib/sisu/v0/webrick.rb1
-rw-r--r--lib/sisu/v0/wikispeak.rb1
-rw-r--r--lib/sisu/v0/xhtml.rb1
-rw-r--r--lib/sisu/v0/xml.rb1
-rw-r--r--lib/sisu/v0/xml_dom.rb1
-rw-r--r--lib/sisu/v0/xml_fictionbook.rb1
-rw-r--r--lib/sisu/v0/xml_format.rb1
-rw-r--r--lib/sisu/v0/xml_md_oai_pmh_dc.rb1
-rw-r--r--lib/sisu/v0/xml_scaffold.rb1
-rw-r--r--lib/sisu/v0/xml_tables.rb1
-rw-r--r--lib/sisu/v0/zap.rb1
-rw-r--r--man/man1/sisu.118
103 files changed, 501 insertions, 208 deletions
diff --git a/CHANGELOG b/CHANGELOG
index d6676e53..9f1e2c45 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,11 +9,36 @@ Reverse Chronological:
%% STABLE MANIFEST
+%% sisu_0.66.0.orig.tar.gz (2008-02-24:07/7)
+http://www.jus.uio.no/sisu/pkg/src/sisu_0.66.0.orig.tar.gz
+ sisu_0.66.0.orig.tar.gz
+ sisu_0.66.0-1.dsc
+ sisu_0.66.0-1.diff.gz
+
+ * ruby identify program files as utf-8
+ # coding: utf-8
+
+ * param identify markup type as 0.66 added
+
+ * shared_sem semantic tag matching
+
+ * sst_to_s_xml (sax/dom/node) semantic xml mockup naive conversion of known
+ abbreviated tags, in flux, e.g.
+ sisu --to-sax autonomy_markup0.sst
+ back to sst markup with:
+ sisu --from-sxml autonomy_markup0.sxs.xml
+
+ * sst_to_s_dom fix to footnote/endnote conversion
+
+ * vim
+ * replace HiLink with "hi def link"
+ * semantic tag matching, (may prune matches later)
+
%% sisu_0.65.0.orig.tar.gz (2008-02-16:06/6)
http://www.jus.uio.no/sisu/pkg/src/sisu_0.65.0.orig.tar.gz
- sisu_0.65.0.orig.tar.gz
- sisu_0.65.0-1.dsc
- sisu_0.65.0-1.diff.gz
+ ef65b612268491857934bc4160ea0238 1488645 sisu_0.65.0.orig.tar.gz
+ dd2bf992db6a5f0a5faeb62cbea3bd33 629 sisu_0.65.0-1.dsc
+ ba8d19c3221430bc1a9d8c89f55ca3d6 146323 sisu_0.65.0-1.diff.gz
* semantic tag, match refinement related, (consider a possible extension)
[version bump for tags]
@@ -97,12 +122,12 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.63.0.orig.tar.gz
958736cfeaf188806a0933c775de1294 145944 sisu_0.63.0-1.diff.gz
* texpdf, (latex pdf) generate sisu latex output in a single pass
-
+
implications if additional modules added e.g. provide dvi file without
latex pdf headers or generate an A6 document by default for e-readers
capable of reading pdf (this would otherwise require a separate pass/loop
of content for each type to be generated)
-
+
[current shortcoming, images are sized for smaller landscape output by
default, image dimension adjustments not yet made (for different
orientation)]
@@ -119,7 +144,7 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.62.4.orig.tar.gz
94d262be57e2990c975e6532d258ce7f 1482977 sisu_0.62.4.orig.tar.gz
dcf18077108e6a94842a4eda41bacf1b 629 sisu_0.62.4-1.dsc
86e7fadaef232a08161bb3204f61bd27 145841 sisu_0.62.4-1.diff.gz
-
+
* cgi_sqlite, variable name bugfix, fixes sql auto-generated sample search
form
@@ -134,7 +159,7 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.62.4.orig.tar.gz
* debian/watch file
* debian DM upload
-
+
* gpg/pgp signature used changed (now B98F62B1 before BD76E77F)
%% sisu_0.62.3.orig.tar.gz (2007-11-27:48/2)
@@ -142,15 +167,15 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.62.3.orig.tar.gz
46511173fc0e3d75982debc37206fa6e 1481806 sisu_0.62.3.orig.tar.gz
494386aa1e44ebd9ea4d2c7bcfd41ba3 606 sisu_0.62.3-1.dsc
d7a5222e99c53c7bd561b1e322b8a490 145532 sisu_0.62.3-1.diff.gz
-
+
* html <hr> follows text, before footnotes (refine later)
-
+
* rsync remote images partial fix
* minor bug fix, related to error message passing, in texpdf and url
* sisu_manual version info
-
+
* vim ftplugin, status line info on cursor position modified
* debian/control Dm-Upload-Allowed: yes
diff --git a/bin/sisu b/bin/sisu
index 3d1152a5..a749fc42 100755
--- a/bin/sisu
+++ b/bin/sisu
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# coding: utf-8
#SiSU: copyright (C) 1997..2008 Ralph Amissah; License GPL, see appended program information
raise "Please, use Ruby1.8 (1.8.4 or later), current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4' or RUBY_VERSION > '1.9'
#raise "Please, use Ruby1.8.4 or later, current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4'
diff --git a/bin/sisu_termsheet b/bin/sisu_termsheet
index e9b81374..7cc9f122 100755
--- a/bin/sisu_termsheet
+++ b/bin/sisu_termsheet
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# coding: utf-8
#SiSU: copyright (C) 1997..2008 Ralph Amissah; License GPL, see appended program information
raise "Please, use Ruby1.8 (1.8.4 or later), current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4' or RUBY_VERSION > '1.9'
#raise "Please, use Ruby1.8.4 or later, current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4'
diff --git a/bin/sisu_webrick b/bin/sisu_webrick
index 3c483581..1dafb419 100755
--- a/bin/sisu_webrick
+++ b/bin/sisu_webrick
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
+# coding: utf-8
#SiSU: copyright (C) 1997..2008 Ralph Amissah; License GPL, see appended program information
raise "Please, use Ruby1.8 (1.8.4 or later), current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4' or RUBY_VERSION > '1.9'
#raise "Please, use Ruby1.8.4 or later, current Ruby #{RUBY_VERSION}" if RUBY_VERSION < '1.8.4'
diff --git a/conf/sisu/version.yml b/conf/sisu/version.yml
index 356e629f..747dce73 100644
--- a/conf/sisu/version.yml
+++ b/conf/sisu/version.yml
@@ -1,5 +1,5 @@
---
-:version: 0.65.0
-:date_stamp: 2008w06/6
-:date: "2008-02-16"
+:version: 0.66.0
+:date_stamp: 2008w07/0
+:date: "2008-02-24"
:project: SiSU
diff --git a/data/doc/sisu/html/sisu.1.html b/data/doc/sisu/html/sisu.1.html
index 252967a0..e47a7e69 100644
--- a/data/doc/sisu/html/sisu.1.html
+++ b/data/doc/sisu/html/sisu.1.html
@@ -3278,23 +3278,23 @@ Type: <i>information</i>
<p> DC Date issued: <i>2002-08-28</i>
<p> DC Date available: <i>2002-08-28</i>
-<p> DC Date modified: <i>2008-02-12</i>
-<p> DC Date: <i>2008-02-12</i>
+<p> DC Date modified: <i>2008-02-24</i>
+<p> DC Date: <i>2008-02-24</i>
<p> <b>Version Information</b>
<p> Sourcefile: <i>sisu.ssm.sst</i>
<p> Filetype: <i>SiSU</i> text insert
<p>0.58
-<p> Sourcefile Digest, MD5(sisu.ssm.sst)= <i>1a602f31f72da6a8d1e6fc6b42d1b703</i>
+<p> Sourcefile Digest, MD5(sisu.ssm.sst)= <i>db21f6e88c100f35f19cab84d69e2987</i>
<p> Skin_Digest: MD5(skin_sisu_manual.rb)= <i>072b2584bedea82ea8a416587b9fa244</i>
<p> <b>Generated</b>
-<p> Document (metaverse) last generated: <i>Sat</i> Feb 16 02:33:43
+<p> Document (metaverse) last generated: <i>Sun</i> Feb 24 20:02:36
<p>+0000 2008
-<p> Generated by: <i>SiSU</i> <i>0.65.0</i> of 2008w06/6 (2008-02-16)
+<p> Generated by: <i>SiSU</i> <i>0.66.0</i> of 2008w07/0 (2008-02-24)
<p> Ruby version:
<i>ruby</i> 1.8.6 (2007-09-24 patchlevel 111) &nbsp;[i486-linux]
<p>
@@ -3412,15 +3412,15 @@ distributable are not freely changeable. </li><b>.</b><li>named index.html or mo
</dt>
<dd></dd>
-<dt>* Generated by: SiSU 0.65.0 of 2008w06/6 (2008-02-16) </dt>
+<dt>* Generated by: SiSU 0.66.0 of 2008w07/0 (2008-02-24) </dt>
<dd></dd>
<dt>* Ruby version: ruby
1.8.6 (2007-09-24 patchlevel 111) [i486-linux] </dt>
<dd></dd>
-<dt>* Last Generated on: Sat Feb
-16 02:33:43 +0000 2008 </dt>
+<dt>* Last Generated on: Sun Feb
+24 20:02:36 +0000 2008 </dt>
<dd></dd>
<dt>* SiSU <a href='http://www.jus.uio.no/sisu'>http://www.jus.uio.no/sisu</a>
diff --git a/data/doc/sisu/html/sisu_webrick.1.html b/data/doc/sisu/html/sisu_webrick.1.html
index 8a51ea32..8250affe 100644
--- a/data/doc/sisu/html/sisu_webrick.1.html
+++ b/data/doc/sisu/html/sisu_webrick.1.html
@@ -134,7 +134,7 @@ document: </dt>
<dt>pdf: &lt;<a href='http://www.jus.uio.no/sisu/sisu_webrick/landscape.pdf'><a href='http://www.jus.uio.no/sisu/sisu_webrick/landscape.pdf'>http://www.jus.uio.no/sisu/sisu_webrick/landscape.pdf</a>
</a>
&gt; </dt>
-<dd> </dd>
+<dd></dd>
<dt>at: &lt;<a href='http://www.jus.uio.no/sisu'><a href='http://www.jus.uio.no/sisu'>http://www.jus.uio.no/sisu</a>
</a>
diff --git a/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu.ssm b/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu.ssm
index 54bbe2a3..f06f157e 100644
--- a/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu.ssm
+++ b/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu.ssm
@@ -18,9 +18,9 @@
@date.available: 2002-08-28
-@date.modified: 2008-02-12
+@date.modified: 2008-02-24
-@date: 2008-02-12
+@date: 2008-02-24
@level: new=C; break=1; num_top=1
diff --git a/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_download.ssi b/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_download.ssi
index 736238c3..9f8f47d5 100644
--- a/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_download.ssi
+++ b/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_download.ssi
@@ -18,9 +18,9 @@
@date.available: 2007-08-28
-@date.modified: 2008-02-16
+@date.modified: 2008-02-24
-@date: 2008-02-16
+@date: 2008-02-24
@level: new=C; break=1; num_top=1
@@ -55,7 +55,7 @@
Download the latest version of SiSU (and SiSU markup samples):~{ Breakage and Fixes Report<br> http://www.jus.uio.no/sisu/SiSU/breakage_and_fixes.html }~
-_* {~^ sisu_0.65.0.orig.tar.gz (of 2008-02-16:06/6) }http://www.jus.uio.no/sisu/pkg/src/sisu_0.65.0.orig.tar.gz
+_* {~^ sisu_0.66.0.orig.tar.gz (of 2008-02-16:06/6) }http://www.jus.uio.no/sisu/pkg/src/sisu_0.66.0.orig.tar.gz
_* {~^ sisu-markup-samples_1.0.8.orig.tar.gz (of 2007-08-19:33/7 ) }http://www.jus.uio.no/sisu/pkg/src/sisu-markup-samples_1.0.8.orig.tar.gz *~sisu-markup-samples
@@ -90,23 +90,23 @@ deb-src http://www.jus.uio.no/sisu/archive unstable main non-free
!_ Source
-_* {~^ sisu_0.65.0.orig.tar.gz }http://www.jus.uio.no/sisu/pkg/src/sisu_0.65.0.orig.tar.gz
+_* {~^ sisu_0.66.0.orig.tar.gz }http://www.jus.uio.no/sisu/pkg/src/sisu_0.66.0.orig.tar.gz
-_* {~^ sisu_0.65.0-1.diff.gz }http://www.jus.uio.no/sisu/pkg/src/sisu_0.65.0-1.diff.gz
+_* {~^ sisu_0.66.0-1.diff.gz }http://www.jus.uio.no/sisu/pkg/src/sisu_0.66.0-1.diff.gz
-_* {~^ sisu_0.65.0-1.dsc }http://www.jus.uio.no/sisu/pkg/src/sisu_0.65.0-1.dsc
+_* {~^ sisu_0.66.0-1.dsc }http://www.jus.uio.no/sisu/pkg/src/sisu_0.66.0-1.dsc
!_ Debs
-_* {~^ sisu_0.65.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu_0.65.0-1_all.deb ~{ <br>sisu, the base code, (the main package on which the others depend), without any dependencies other than ruby (and for convenience the ruby webrick web server), this generates a number of types of output on its own, other packages provide additional functionality, and have their dependencies <br>Depends: ruby (>=1.8.2), libwebrick-ruby<br>Recommends: sisu-pdf, sisu-sqlite, sisu-postgresql, sisu-examples, vim-sisu, librmagick-ruby, trang, tidy, libtidy, librexml-ruby, zip, unzip, openssl }~
+_* {~^ sisu_0.66.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu_0.66.0-1_all.deb ~{ <br>sisu, the base code, (the main package on which the others depend), without any dependencies other than ruby (and for convenience the ruby webrick web server), this generates a number of types of output on its own, other packages provide additional functionality, and have their dependencies <br>Depends: ruby (>=1.8.2), libwebrick-ruby<br>Recommends: sisu-pdf, sisu-sqlite, sisu-postgresql, sisu-examples, vim-sisu, librmagick-ruby, trang, tidy, libtidy, librexml-ruby, zip, unzip, openssl }~
-_* {~^ sisu-complete_0.65.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-complete_0.65.0-1_all.deb ~{ <br>a package that pulls in other packages to build the whole of sisu (excluding sisu-examples) <br>Depends: ruby (>=1.8.2), sisu, sisu-pdf, sisu-postgresql, sisu-remote, sisu-sqlite, vim-sisu<br>Recommends: sisu-examples }~
+_* {~^ sisu-complete_0.66.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-complete_0.66.0-1_all.deb ~{ <br>a package that pulls in other packages to build the whole of sisu (excluding sisu-examples) <br>Depends: ruby (>=1.8.2), sisu, sisu-pdf, sisu-postgresql, sisu-remote, sisu-sqlite, vim-sisu<br>Recommends: sisu-examples }~
-_* {~^ sisu-pdf_0.65.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-pdf_0.65.0-1_all.deb ~{ <br>dependencies used by sisu to produce pdf from LaTeX generated <br>Depends: sisu, tetex-bin, tetex-extra, latex-ucs<br>Suggests: evince, xpdf }~
+_* {~^ sisu-pdf_0.66.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-pdf_0.66.0-1_all.deb ~{ <br>dependencies used by sisu to produce pdf from LaTeX generated <br>Depends: sisu, tetex-bin, tetex-extra, latex-ucs<br>Suggests: evince, xpdf }~
-_* {~^ sisu-postgresql_0.65.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-postgresql_0.65.0-1_all.deb ~{ <br>dependencies used by sisu to populate postgresql database (further configuration is necessary) <br>Depends: sisu, postgresql-8.1, libdbi-ruby, libdbm-ruby, libdbd-pg-ruby<br>Suggests: pgaccess, libdbd-pgsql, postgresql-contrib-8.1 }~
+_* {~^ sisu-postgresql_0.66.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-postgresql_0.66.0-1_all.deb ~{ <br>dependencies used by sisu to populate postgresql database (further configuration is necessary) <br>Depends: sisu, postgresql-8.1, libdbi-ruby, libdbm-ruby, libdbd-pg-ruby<br>Suggests: pgaccess, libdbd-pgsql, postgresql-contrib-8.1 }~
-_* {~^ sisu-sqlite_0.65.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-sqlite_0.65.0-1_all.deb ~{ <br>dependencies used by sisu to populate sqlite database <br>Depends: sisu, sqlite, libdbi-ruby, libdbm-ruby, libdbd-sqlite-ruby<br>Suggests: libdbd-sqlite }~
+_* {~^ sisu-sqlite_0.66.0-1_all.deb }http://www.jus.uio.no/sisu/archive/pool/main/s/sisu/sisu-sqlite_0.66.0-1_all.deb ~{ <br>dependencies used by sisu to populate sqlite database <br>Depends: sisu, sqlite, libdbi-ruby, libdbm-ruby, libdbd-sqlite-ruby<br>Suggests: libdbd-sqlite }~
For changelogs see:
@@ -132,7 +132,7 @@ _1 http://www.jus.uio.no/sisu/sisu_markup_samples_changelog/changelog_markup_sam
The RPM is generated Alien~{ http://www.kitenet.net/programs/alien/ }~ from two deb packages (sisu and sisu-doc). Dependencies are not handled, not even that of the essential Ruby.
-_* {~^ sisu-0.65.0-2.noarch.rpm }http://www.jus.uio.no/sisu/pkg/rpm/sisu-0.65.0-2.noarch.rpm ~{ untested, created using: alien -r sisu_0.65.0-1_all.deb }~
+_* {~^ sisu-0.66.0-2.noarch.rpm }http://www.jus.uio.no/sisu/pkg/rpm/sisu-0.66.0-2.noarch.rpm ~{ untested, created using: alien -r sisu_0.66.0-1_all.deb }~
_* {~^ sisu-markup-samples_1.0.8.orig-2.noarch.rpm }http://www.jus.uio.no/sisu/pkg/rpm/sisu-markup-samples_1.0.6.orig-2.noarch.rpm ~{ <br> untested, created using alien }~
diff --git a/data/sisu/conf/editor-syntax-etc/vim/syntax/sisu.vim b/data/sisu/conf/editor-syntax-etc/vim/syntax/sisu.vim
index cfaded0d..3ce6637b 100644
--- a/data/sisu/conf/editor-syntax-etc/vim/syntax/sisu.vim
+++ b/data/sisu/conf/editor-syntax-etc/vim/syntax/sisu.vim
@@ -1,84 +1,83 @@
-"%% SiSU Vim syntax file
-" SiSU Maintainer: Ralph Amissah <ralph@amissah.com>
-" SiSU Markup: SiSU (sisu-0.55.5) (2007-07-22)
-" (originally looked at Ruby Vim by Mirko Nasato)
+"SiSU Vim syntax file
+"SiSU Maintainer: Ralph Amissah <ralph@amissah.com>
+"SiSU Markup: SiSU (sisu-0.66.0, 2008-02-24)
+"(originally looked at Ruby Vim by Mirko Nasato)
+
if version < 600
syntax clear
elseif exists("b:current_syntax")
finish
else
endif
-"% 11 Errors?
+
+" Errors:
syn match sisu_error contains=sisu_link,sisu_error_wspace "<![^ei]\S\+!>"
-"% 10 Markers: Endnote Identifiers, Pagebreaks etc.:
+
+" Markers Identifiers:
if !exists("sisu_no_identifiers")
- syn match sisu_mark_endnote "\~^"
- syn match sisu_contain contains=@NoSpell "</\?sub>"
- syn match sisu_break contains=@NoSpell "<br>\|<br />"
- syn match sisu_control contains=@NoSpell "<p>\|</p>\|<p />\|<:p[bn]>"
- syn match sisu_html "<center>\|</center>"
- syn match sisu_marktail "[~-]#"
- syn match sisu_html contains=@NoSpell "<td>\|<td \|<tr>\|</td>\|</tr>\|<table>\|<table \|</table>"
- syn match sisu_control "\""
- syn match sisu_underline "\(^\| \)_[a-zA-Z0-9]\+_\([ .,]\|$\)"
- syn match sisu_number contains=@NoSpell "[0-9a-f]\{32\}\|[0-9a-f]\{64\}"
- syn match sisu_link contains=@NoSpell "\(_\?https\?://\|\.\.\/\)\S\+"
+ syn match sisu_mark_endnote "\~^"
+ syn match sisu_contain contains=@NoSpell "</\?sub>"
+ syn match sisu_break contains=@NoSpell "<br>\|<br />"
+ syn match sisu_control contains=@NoSpell "<p>\|</p>\|<p />\|<:p[bn]>"
+ syn match sisu_html "<center>\|</center>"
+ syn match sisu_marktail "[~-]#"
+ syn match sisu_html contains=@NoSpell "<td>\|<td \|<tr>\|</td>\|</tr>\|<table>\|<table \|</table>"
+ syn match sisu_control "\""
+ syn match sisu_underline "\(^\| \)_[a-zA-Z0-9]\+_\([ .,]\|$\)"
+ syn match sisu_number contains=@NoSpell "[0-9a-f]\{32\}\|[0-9a-f]\{64\}"
+ syn match sisu_link contains=@NoSpell "\(_\?https\?://\|\.\.\/\)\S\+"
"metaverse specific
- syn match sisu_ocn contains=@NoSpell "<\~\d\+;\w\d\+;\w\d\+>"
- syn match sisu_marktail "<\~#>"
- syn match sisu_markpara contains=@NoSpell "<:i[1-9]>"
- syn match sisu_link " \*\~\S\+"
- syn match sisu_action "^<:insert\d\+>"
- syn match sisu_contain "<:e>"
- syn match sisu_sem_marker "[a-z]\+;{"
- syn match sisu_sem_marker "};[a-z]\+"
- syn match sisu_sem_marker_block "[a-z]\+:{"
- syn match sisu_sem_marker_block "}:[a-z]\+"
- syn match sisu_sem_ex_marker "[a-z]\+;\["
- syn match sisu_sem_ex_marker "\];[a-z]\+"
- syn match sisu_sem_ex_marker_block "[a-z]\+:\["
- syn match sisu_sem_ex_marker_block "\]:[a-z]\+"
- "syn match sisu_error_sem_marker "[a-z]\+[:;]{"
- "syn match sisu_error_sem_marker "}[:;][a-z]\+"
- syn match sisu_sem_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]\+\):{[^}].\{-}}:\1"
- syn match sisu_sem_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker "\([a-z]\+\);{[^}].\{-}};\1"
- syn match sisu_sem_ex_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]\+\):\[[^}].\{-}\]:\1"
- syn match sisu_sem_ex_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker "\([a-z]\+\);\[[^}].\{-}\];\1"
+ syn match sisu_ocn contains=@NoSpell "<\~\d\+;\w\d\+;\w\d\+>"
+ syn match sisu_marktail "<\~#>"
+ syn match sisu_markpara contains=@NoSpell "<:i[1-9]>"
+ syn match sisu_link " \*\~\S\+"
+ syn match sisu_action "^<:insert\d\+>"
+ syn match sisu_contain "<:e>"
+ syn match sisu_sem_marker ";{\|};[a-z._]*[a-z]"
+ syn match sisu_sem_marker_block "\([a-z][a-z._]*\|\):{\|}:[a-z._]*[a-z]"
+ syn match sisu_sem_ex_marker ";\[\|\];[a-z._]*[a-z]"
+ syn match sisu_sem_ex_marker_block "\([a-z][a-z._]*\|\):\[\|\]:[a-z._]*[a-z]"
+ syn match sisu_sem_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]*\):{[^}].\{-}}:\1"
+ syn match sisu_sem_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker ";{[^}].\{-}};[a-z]\+"
+ syn match sisu_sem_ex_block contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_mark_endnote,sisu_content_endnote "\([a-z]*\):\[[^}].\{-}\]:\1"
+ syn match sisu_sem_ex_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker ";\[[^}].\{-}\];[a-z]\+"
endif
-"% 9 URLs Numbers: and ASCII Codes
+
+"URLs Numbers And ASCII Codes:
syn match sisu_number "\<\(0x\x\+\|0b[01]\+\|0\o\+\|0\.\d\+\|0\|[1-9][\.0-9_]*\)\>"
syn match sisu_number "?\(\\M-\\C-\|\\c\|\\C-\|\\M-\)\=\(\\\o\{3}\|\\x\x\{2}\|\\\=\w\)"
-"% 8 Tuned Error - is error if not already matched
+
+"Tuned Error: (is error if not already matched)
syn match sisu_error contains=sisu_error "[\~/\*!_]{\|}[\~/\*!_]"
syn match sisu_error contains=sisu_error "<a href\|</a>]"
-"% 7 Simple Enclosed Markup:
-" Simple Markup:
-"% url/link
+
+"Simple Paired Enclosed Markup:
+"url/link
syn region sisu_link contains=sisu_error,sisu_error_wspace matchgroup=sisu_action start="^<<\s*|[a-zA-Z0-9^._-]\+|@|[a-zA-Z0-9^._-]\+|"rs=s+2 end="$"
-"% header
+"header
syn region sisu_header_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break matchgroup=sisu_header start="^0\~\(\S\+\|[^-]\)" end="\n$"
syn region sisu_header_content contains=sisu_error,sisu_error_wspace,sisu_content_alt,sisu_link,sisu_linked,sisu_break matchgroup=sisu_header start="^[@%]\S\+:[+-]\?\s"rs=e-1 end="\n$"
-"% headings
+"headings
syn region sisu_heading contains=sisu_mark_endnote,sisu_content_endnote,sisu_marktail,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_ocn,sisu_error,sisu_error_wspace matchgroup=sisu_structure start="^\([1-8]\|:\?[A-C]\)\~\(\S\+\|[^-]\)" end="$"
-"% grouped text
+"grouped text
syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^table{.\+" end="}table"
syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^{\(t\|table\)\(\~h\)\?\(\sc[0-9]\+;\)\?[0-9; ]*}" end="\n\n"
syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="^\(alt\|group\|poem\){" end="^}\(alt\|group\|poem\)"
syn region sisu_content_alt contains=sisu_error matchgroup=sisu_contain start="^code{" end="^}code"
-"% endnotes
+"endnotes
syn region sisu_content_endnote contains=sisu_link,sisu_strikeout,sisu_underline,sisu_number,sisu_control,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker matchgroup=sisu_mark_endnote start="\~{[*+]*" end="}\~" skip="\n"
syn region sisu_content_endnote contains=sisu_link,sisu_strikeout,sisu_underline,sisu_number,sisu_control,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break,sisu_sem_block,sisu_sem_content,sisu_sem_marker matchgroup=sisu_mark_endnote start="\~\[[*+]*" end="\]\~" skip="\n"
syn region sisu_content_endnote contains=sisu_strikeout,sisu_number,sisu_control,sisu_link,sisu_identifier,sisu_error,sisu_error_wspace,sisu_mark,sisu_break matchgroup=sisu_mark_endnote start="\^\~" end="\n\n"
-"% links and images
+"links and images
syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_sem_block,sisu_error matchgroup=sisu_link start="{\(\~^\s\)\?" end="}\(https\?:/\/\|\.\./\)\S\+" oneline
syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_sem_block,sisu_error matchgroup=sisu_link start="{\(\~^\s\)\?" end="\[[1-5][sS]*\]}\S\+\.ss[tm]" oneline
syn region sisu_linked contains=sisu_fontface,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_link start="{" end="}image" oneline
-"% some line operations
+"some line operations
syn region sisu_control contains=sisu_strikeout,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_error,sisu_error_wspace matchgroup=sisu_control start="\(\(^\| \)!_ \|<:b>\)" end="$"
syn region sisu_normal contains=sisu_strikeout,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_sem_block,sisu_sem_content,sisu_sem_marker_block,sisu_sem_marker,sisu_sem_ex_marker_block,sisu_sem_ex_marker,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^_\([1-9*]\|[1-9]\*\) " end="$"
syn region sisu_normal contains=sisu_strikeout,sisu_identifier,sisu_content_endnote,sisu_mark_endnote,sisu_link,sisu_linked,sisu_error,sisu_error_wspace matchgroup=sisu_markpara start="^\(#[ 1]\|_# \)" end="$"
syn region sisu_comment matchgroup=sisu_comment start="^%\{1,2\} " end="$"
-"% font face curly brackets
+"font face curly brackets
"syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_sem start="\S\+:{" end="}:[^<>,.!?:; ]\+" oneline
syn region sisu_control contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="\*{" end="}\*"
syn region sisu_control contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start="!{" end="}!"
@@ -89,33 +88,35 @@ syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_control,sisu
syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_fontface start=",{" end="},"
syn region sisu_strikeout contains=sisu_error matchgroup=sisu_fontface start="-{" end="}-"
syn region sisu_html contains=sisu_error contains=sisu_strikeout matchgroup=sisu_contain start="<a href=\".\{-}\">" end="</a>" oneline
-"% single words bold italicise etc. "workon
+"single words bold italicise etc. "workon
syn region sisu_control contains=sisu_error matchgroup=sisu_control start="\([ (]\|^\)\*[^\|{\n\~\\]"hs=e-1 end="\*"he=e-0 skip="[a-zA-Z0-9']" oneline
syn region sisu_identifier contains=sisu_error matchgroup=sisu_content_alt start="\([ ]\|^\)/[^{ \|\n\\]"hs=e-1 end="/\[ \.\]" skip="[a-zA-Z0-9']" oneline
-"% misc
+"misc
syn region sisu_identifier contains=sisu_error matchgroup=sisu_fontface start="\^[^ {\|\n\\]"rs=s+1 end="\^[ ,.;:'})\\\n]" skip="[a-zA-Z0-9']" oneline
-"% metaverse html (flagged as errors for filetype sisu)
+"metaverse html (flagged as errors for filetype sisu)
syn region sisu_control contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error,sisu_mark matchgroup=sisu_html start="<b>" end="</b>" skip="\n" oneline
syn region sisu_control contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error,sisu_mark matchgroup=sisu_html start="<em>" end="</em>" skip="\n" oneline
syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error,sisu_mark matchgroup=sisu_html start="<i>" end="</i>" skip="\n" oneline
syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error,sisu_mark matchgroup=sisu_html start="<u>" end="</u>" skip="\n" oneline
syn region sisu_identifier contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error,sisu_mark matchgroup=sisu_html start="<ins>" end="</ins>" skip="\\\\\|\\'" oneline
syn region sisu_identifier contains=sisu_error matchgroup=sisu_html start="<del>" end="</del>" oneline
-"% metaverse <:>
+"metaverse
syn region sisu_content_alt contains=sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="<:Table.\{-}>" end="<:Table[-_]end>"
syn region sisu_content_alt contains=sisu_error matchgroup=sisu_contain start="<:code>" end="<:code[-_]end>"
syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="<:alt>" end="<:alt[-_]end>"
syn region sisu_content_alt contains=sisu_mark_endnote,sisu_content_endnote,sisu_link,sisu_mark,sisu_strikeout,sisu_number,sisu_control,sisu_identifier,sisu_error matchgroup=sisu_contain start="<:poem>" end="<:poem[-_]end>"
-"% 6 Expensive Mode
-" Expensive Mode:
+
+"Expensive Mode:
if !exists("sisu_no_expensive")
else " not Expensive
syn region sisu_content_alt matchgroup=sisu_control start="^\s*def\s" matchgroup=NONE end="[?!]\|\>" skip="\.\|\(::\)" oneline
endif " Expensive?
-"% 5 Headers: and Headings (Document Instructions)
+
+"Headers And Headings: (Document Instructions)
syn match sisu_control contains=sisu_error,sisu_error_wspace "4\~! \S\+"
syn region sisu_markpara contains=sisu_error,sisu_error_wspace start="^=begin" end="^=end.*$"
-"% 4 Errors?
+
+"Errors:
syn match sisu_error_wspace contains=sisu_error_wspace "^\s\+"
syn match sisu_error_wspace contains=sisu_error_wspace "\s\s\+"
syn match sisu_error_wspace contains=sisu_error_wspace " \s*$"
@@ -137,58 +138,52 @@ syn match sisu_error contains=sisu_error "<dir>"
"errors for filetype sisu, though not error in 'metaverse':
syn match sisu_error contains=sisu_error,sisu_match,sisu_strikeout,sisu_contain,sisu_content_alt,sisu_mark,sisu_break,sisu_number "<[a-zA-Z\/]\+>"
syn match sisu_error "/\?<\([biu]\)>[^(</\1>)]\{-}\n\n"
-"% 3 Error Exceptions?
+
+"Error Exceptions:
syn match sisu_control "\n\n" "contains=ALL
syn match sisu_control " //"
syn match sisu_error "%{"
syn match sisu_error "<br>_\?https\?:\S\+\|_\?https\?:\S\+<br>"
syn match sisu_error "[><]_\?https\?:\S\+\|_\?https\?:\S\+[><]"
-"% 2 Definitions - Define the default highlighting.
-if version >= 508 || !exists("did_sisu_syntax_inits")
- if version < 508
- let did_sisu_syntax_inits = 1
- command -nargs=+ HiLink hi link <args>
- else
- command -nargs=+ HiLink hi def link <args>
- endif
-"% 1 Defined
- HiLink sisu_normal Normal
- HiLink sisu_header PreProc
- HiLink sisu_header_content Statement
- HiLink sisu_heading Title
- HiLink sisu_structure Operator
- HiLink sisu_contain Include
- HiLink sisu_mark_endnote Include
- HiLink sisu_link NonText
- HiLink sisu_linked String
- HiLink sisu_fontface Include
- HiLink sisu_strikeout DiffDelete
- HiLink sisu_content_alt Special
- HiLink sisu_sem_content String
- HiLink sisu_sem_content SpecialKey
- HiLink sisu_sem_block Special
- HiLink sisu_sem_marker Visual
- HiLink sisu_sem_marker_block MatchParen
- HiLink sisu_sem_ex_marker FoldColumn
- HiLink sisu_sem_ex_marker_block Folded
- HiLink sisu_sem_ex_content Comment
- HiLink sisu_sem_ex_block Comment
- HiLink sisu_content_endnote Special
- HiLink sisu_control Define
- HiLink sisu_ocn Include
- HiLink sisu_number Number
- HiLink sisu_identifier Function
- HiLink sisu_underline Underlined
- HiLink sisu_markpara Include
- HiLink sisu_marktail Include
- HiLink sisu_mark Identifier
- HiLink sisu_break Structure
- HiLink sisu_html Type
- HiLink sisu_action Identifier
- HiLink sisu_comment Comment
- HiLink sisu_error_sem_marker Error
- HiLink sisu_error_wspace Error
- HiLink sisu_error Error
- delcommand HiLink
-endif
+
+"Definitions Default Highlighting:
+hi def link sisu_normal Normal
+hi def link sisu_header PreProc
+hi def link sisu_header_content Statement
+hi def link sisu_heading Title
+hi def link sisu_structure Operator
+hi def link sisu_contain Include
+hi def link sisu_mark_endnote Include
+hi def link sisu_link NonText
+hi def link sisu_linked String
+hi def link sisu_fontface Include
+hi def link sisu_strikeout DiffDelete
+hi def link sisu_content_alt Special
+hi def link sisu_sem_content String
+hi def link sisu_sem_content SpecialKey
+hi def link sisu_sem_block Special
+hi def link sisu_sem_marker Visual
+"hi def link sisu_sem_marker Structure
+hi def link sisu_sem_marker_block MatchParen
+hi def link sisu_sem_ex_marker FoldColumn
+hi def link sisu_sem_ex_marker_block Folded
+hi def link sisu_sem_ex_content Comment
+"hi def link sisu_sem_ex_content SpecialKey
+hi def link sisu_sem_ex_block Comment
+hi def link sisu_content_endnote Special
+hi def link sisu_control Define
+hi def link sisu_ocn Include
+hi def link sisu_number Number
+hi def link sisu_identifier Function
+hi def link sisu_underline Underlined
+hi def link sisu_markpara Include
+hi def link sisu_marktail Include
+hi def link sisu_mark Identifier
+hi def link sisu_break Structure
+hi def link sisu_html Type
+hi def link sisu_action Identifier
+hi def link sisu_comment Comment
+hi def link sisu_error_sem_marker Error
+hi def link sisu_error_wspace Error
+hi def link sisu_error Error
let b:current_syntax = "sisu"
diff --git a/lib/sisu/v0/cgi.rb b/lib/sisu/v0/cgi.rb
index 4b917360..2318be69 100644
--- a/lib/sisu/v0/cgi.rb
+++ b/lib/sisu/v0/cgi.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/cgi_pgsql.rb b/lib/sisu/v0/cgi_pgsql.rb
index 540e5d72..148905f4 100644
--- a/lib/sisu/v0/cgi_pgsql.rb
+++ b/lib/sisu/v0/cgi_pgsql.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/cgi_sql_common.rb b/lib/sisu/v0/cgi_sql_common.rb
index d4be484e..fb011cc0 100644
--- a/lib/sisu/v0/cgi_sql_common.rb
+++ b/lib/sisu/v0/cgi_sql_common.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/cgi_sqlite.rb b/lib/sisu/v0/cgi_sqlite.rb
index e94986d4..87714f6c 100644
--- a/lib/sisu/v0/cgi_sqlite.rb
+++ b/lib/sisu/v0/cgi_sqlite.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/character_encoding.rb b/lib/sisu/v0/character_encoding.rb
index e7e1d0ec..60c2f335 100644
--- a/lib/sisu/v0/character_encoding.rb
+++ b/lib/sisu/v0/character_encoding.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/composite.rb b/lib/sisu/v0/composite.rb
index e0b53bb5..21b6781b 100644
--- a/lib/sisu/v0/composite.rb
+++ b/lib/sisu/v0/composite.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/concordance.rb b/lib/sisu/v0/concordance.rb
index 8408deaf..1b5bbe78 100644
--- a/lib/sisu/v0/concordance.rb
+++ b/lib/sisu/v0/concordance.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/conf.rb b/lib/sisu/v0/conf.rb
index 2e76d3de..639847ab 100644
--- a/lib/sisu/v0/conf.rb
+++ b/lib/sisu/v0/conf.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/css.rb b/lib/sisu/v0/css.rb
index 75aa3330..d1798a77 100644
--- a/lib/sisu/v0/css.rb
+++ b/lib/sisu/v0/css.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/dal.rb b/lib/sisu/v0/dal.rb
index 5edc77be..577c3b9e 100644
--- a/lib/sisu/v0/dal.rb
+++ b/lib/sisu/v0/dal.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/dal_doc_str.rb b/lib/sisu/v0/dal_doc_str.rb
index 68529c38..27e37826 100644
--- a/lib/sisu/v0/dal_doc_str.rb
+++ b/lib/sisu/v0/dal_doc_str.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/dal_doc_str_code.rb b/lib/sisu/v0/dal_doc_str_code.rb
index 65da8d1f..9596bb69 100644
--- a/lib/sisu/v0/dal_doc_str_code.rb
+++ b/lib/sisu/v0/dal_doc_str_code.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/dal_doc_str_tables.rb b/lib/sisu/v0/dal_doc_str_tables.rb
index fd5d6fe4..a17eb63f 100644
--- a/lib/sisu/v0/dal_doc_str_tables.rb
+++ b/lib/sisu/v0/dal_doc_str_tables.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/dal_syntax.rb b/lib/sisu/v0/dal_syntax.rb
index a6c48af0..22ec72b0 100644
--- a/lib/sisu/v0/dal_syntax.rb
+++ b/lib/sisu/v0/dal_syntax.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -99,6 +100,7 @@ module Syntax
end
def songsheet
@data.each do |line|
+ line=if @md.sem_tag then sem(line) else line end
line=pre(line)
line=wordlist_italics(line)
line=wordlist_bold(line)
@@ -107,9 +109,11 @@ module Syntax
end
@data_new
end
+ def sem(line)
+ line=SiSU_sem::Tags.new(line,@md).rm.all
+ end
def pre(line)
line=line.dup
- line=SiSU_sem::Tags.new(line).rm.all
if line =~/\{(?:t|table)(?:~h)?\s*c?[\d; ]*\}/; line.gsub!(/(\n)/,';;\1') #markup for alternative tables
end
line
diff --git a/lib/sisu/v0/db_columns.rb b/lib/sisu/v0/db_columns.rb
index 9adcaa4d..fcb37812 100644
--- a/lib/sisu/v0/db_columns.rb
+++ b/lib/sisu/v0/db_columns.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_create.rb b/lib/sisu/v0/db_create.rb
index ac8f78bf..bf622bef 100644
--- a/lib/sisu/v0/db_create.rb
+++ b/lib/sisu/v0/db_create.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_dbi.rb b/lib/sisu/v0/db_dbi.rb
index 82b0750c..2ecf2816 100644
--- a/lib/sisu/v0/db_dbi.rb
+++ b/lib/sisu/v0/db_dbi.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_drop.rb b/lib/sisu/v0/db_drop.rb
index eb027fb7..fc7b7b61 100644
--- a/lib/sisu/v0/db_drop.rb
+++ b/lib/sisu/v0/db_drop.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_import.rb b/lib/sisu/v0/db_import.rb
index 0c53e5e5..fde6b307 100644
--- a/lib/sisu/v0/db_import.rb
+++ b/lib/sisu/v0/db_import.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_indexes.rb b/lib/sisu/v0/db_indexes.rb
index 457ad124..ab33b450 100644
--- a/lib/sisu/v0/db_indexes.rb
+++ b/lib/sisu/v0/db_indexes.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_load_tuple.rb b/lib/sisu/v0/db_load_tuple.rb
index c69f279b..9098f0ae 100644
--- a/lib/sisu/v0/db_load_tuple.rb
+++ b/lib/sisu/v0/db_load_tuple.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_remove.rb b/lib/sisu/v0/db_remove.rb
index f84e3e05..63d69b64 100644
--- a/lib/sisu/v0/db_remove.rb
+++ b/lib/sisu/v0/db_remove.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_select.rb b/lib/sisu/v0/db_select.rb
index 337fb3e0..0b456262 100644
--- a/lib/sisu/v0/db_select.rb
+++ b/lib/sisu/v0/db_select.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/db_tests.rb b/lib/sisu/v0/db_tests.rb
index 6974455e..73e0400f 100644
--- a/lib/sisu/v0/db_tests.rb
+++ b/lib/sisu/v0/db_tests.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/dbi.rb b/lib/sisu/v0/dbi.rb
index 2e633bad..fbe3014b 100644
--- a/lib/sisu/v0/dbi.rb
+++ b/lib/sisu/v0/dbi.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/defaults.rb b/lib/sisu/v0/defaults.rb
index 1671bf8b..ef33be04 100644
--- a/lib/sisu/v0/defaults.rb
+++ b/lib/sisu/v0/defaults.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/digests.rb b/lib/sisu/v0/digests.rb
index 2382fb88..0d2707ff 100644
--- a/lib/sisu/v0/digests.rb
+++ b/lib/sisu/v0/digests.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/embedded.rb b/lib/sisu/v0/embedded.rb
index 2bd295e2..92853fa6 100644
--- a/lib/sisu/v0/embedded.rb
+++ b/lib/sisu/v0/embedded.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/errors.rb b/lib/sisu/v0/errors.rb
index 0b7b7a21..2351613c 100644
--- a/lib/sisu/v0/errors.rb
+++ b/lib/sisu/v0/errors.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/help.rb b/lib/sisu/v0/help.rb
index 35448cd6..f470e0eb 100644
--- a/lib/sisu/v0/help.rb
+++ b/lib/sisu/v0/help.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb
index 740d09c4..b425356a 100644
--- a/lib/sisu/v0/html.rb
+++ b/lib/sisu/v0/html.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html_format.rb b/lib/sisu/v0/html_format.rb
index 4ca2ff96..fd3089ca 100644
--- a/lib/sisu/v0/html_format.rb
+++ b/lib/sisu/v0/html_format.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html_format_css.rb b/lib/sisu/v0/html_format_css.rb
index e00cf410..8ffb4e0d 100644
--- a/lib/sisu/v0/html_format_css.rb
+++ b/lib/sisu/v0/html_format_css.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html_promo.rb b/lib/sisu/v0/html_promo.rb
index 973344e9..e769cf1e 100644
--- a/lib/sisu/v0/html_promo.rb
+++ b/lib/sisu/v0/html_promo.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html_scroll.rb b/lib/sisu/v0/html_scroll.rb
index ccbb2406..97a1a02e 100644
--- a/lib/sisu/v0/html_scroll.rb
+++ b/lib/sisu/v0/html_scroll.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html_segments.rb b/lib/sisu/v0/html_segments.rb
index 687000f1..a2d06ed9 100644
--- a/lib/sisu/v0/html_segments.rb
+++ b/lib/sisu/v0/html_segments.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html_table.rb b/lib/sisu/v0/html_table.rb
index 1ac39daf..556c46be 100644
--- a/lib/sisu/v0/html_table.rb
+++ b/lib/sisu/v0/html_table.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/html_tune.rb b/lib/sisu/v0/html_tune.rb
index 43b0fe70..2e2c5f3e 100644
--- a/lib/sisu/v0/html_tune.rb
+++ b/lib/sisu/v0/html_tune.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/hub.rb b/lib/sisu/v0/hub.rb
index da1c6324..1e051c24 100644
--- a/lib/sisu/v0/hub.rb
+++ b/lib/sisu/v0/hub.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/i18n.rb b/lib/sisu/v0/i18n.rb
index 2dc084aa..8ac3ffc8 100644
--- a/lib/sisu/v0/i18n.rb
+++ b/lib/sisu/v0/i18n.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/manifest.rb b/lib/sisu/v0/manifest.rb
index 2f49c3dd..5ea0baab 100644
--- a/lib/sisu/v0/manifest.rb
+++ b/lib/sisu/v0/manifest.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/manpage.rb b/lib/sisu/v0/manpage.rb
index 0657b0b6..e267de48 100644
--- a/lib/sisu/v0/manpage.rb
+++ b/lib/sisu/v0/manpage.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/manpage_format.rb b/lib/sisu/v0/manpage_format.rb
index 7ec699f0..978cc6b4 100644
--- a/lib/sisu/v0/manpage_format.rb
+++ b/lib/sisu/v0/manpage_format.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/odf.rb b/lib/sisu/v0/odf.rb
index f168ddc4..12c84ac3 100644
--- a/lib/sisu/v0/odf.rb
+++ b/lib/sisu/v0/odf.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/odf_format.rb b/lib/sisu/v0/odf_format.rb
index f704ea45..54a32e25 100644
--- a/lib/sisu/v0/odf_format.rb
+++ b/lib/sisu/v0/odf_format.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/options.rb b/lib/sisu/v0/options.rb
index 8ac17330..e433c304 100644
--- a/lib/sisu/v0/options.rb
+++ b/lib/sisu/v0/options.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/param.rb b/lib/sisu/v0/param.rb
index 546606af..f9d15a22 100644
--- a/lib/sisu/v0/param.rb
+++ b/lib/sisu/v0/param.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -118,7 +119,7 @@ module SiSU_Param
@doc={ :lv=>[] }
@doc[:fns],@doc[:fnb],@doc[:scr_suffix]='','',''
@@publisher='SiSU scribe'
- attr_accessor :cmd,:mod,:env,:fn,:fns,:fnb,:fnn,:fnt,:fnl,:flv,:fnz,:fnstex,:ocn,:sfx_src,:sfx,:pdf,:file_type,:dir_out,:dir_tex,:dir_lout,:txt_path,:site_skin,:sisu,:sisu_version,:ruby_version,:title,:dc_title,:html_title,:subtitle,:subtitle_tex,:creator_home,:dc_creator,:translator,:illustrator,:prepared_by,:digitized_by,:dc_subject,:dc_description,:dc_publisher,:dc_contributor,:dc_date,:dc_date_created,:dc_date_issued,:dc_date_available,:dc_date_valid,:dc_date_modified,:date_scheme,:date_created_scheme,:date_issued_scheme,:date_available_scheme,:date_valid_scheme,:date_modified_scheme,:dc_type,:dc_format,:dc_identifier,:dc_source,:dc_language,:language_original,:dc_relation,:dc_coverage,:dc_rights,:keywords,:comments,:abstract,:cls_loc,:cls_dewey,:cls_pg,:cls_isbn,:papersize,:toc,:lv1,:lv2,:lv3,:lv4,:lv5,:lv6,:pagenew,:pagebreak,:num_top,:toc_lev_limit,:flag_endnotes,:flag_auto_endnotes,:flag_separate_endnotes,:flag_separate_endnotes_make,:flag_auto_heading_num,:markup,:markup_instruction,:markup_version,:markup_declared,:make_bold,:make_italic,:flag_tables,:vocabulary,:doc_skin,:doc_css,:yaml,:lnk,:prefix_a,:prefix_b,:suffix,:information,:contact,:icon,:image,:ad_url,:ad_png,:ad_alt,:ad_began,:flag_promo,:promo,:ad_home,:stmp,:stmpd,:sc_filename,:sc_number,:sc_date,:sc_time,:sc_info,:yamladdr,:locale,:wc_lines,:wc_words,:wc_bytes,:file_encoding,:file_size,:user,:home,:hostname,:pwd,:firstseg,:programs,:creator_copymark,:lang,:en,:dgst,:dgst_skin,:generated,:tags,:tag_array,:concord_make,:seg_names,:seg_autoname_safe,:set_header_title,:set_heading_top,:set_heading_seg,:heading_seg_first,:heading_seg_first_flag,:base_program,:man_section,:man_name,:man_synopsis,:ec,:opt
+ attr_accessor :cmd,:mod,:env,:fn,:fns,:fnb,:fnn,:fnt,:fnl,:flv,:fnz,:fnstex,:ocn,:sfx_src,:sfx,:pdf,:file_type,:dir_out,:dir_tex,:dir_lout,:txt_path,:site_skin,:sisu,:sisu_version,:ruby_version,:title,:dc_title,:html_title,:subtitle,:subtitle_tex,:creator_home,:dc_creator,:translator,:illustrator,:prepared_by,:digitized_by,:dc_subject,:dc_description,:dc_publisher,:dc_contributor,:dc_date,:dc_date_created,:dc_date_issued,:dc_date_available,:dc_date_valid,:dc_date_modified,:date_scheme,:date_created_scheme,:date_issued_scheme,:date_available_scheme,:date_valid_scheme,:date_modified_scheme,:dc_type,:dc_format,:dc_identifier,:dc_source,:dc_language,:language_original,:dc_relation,:dc_coverage,:dc_rights,:keywords,:comments,:abstract,:cls_loc,:cls_dewey,:cls_pg,:cls_isbn,:papersize,:toc,:lv1,:lv2,:lv3,:lv4,:lv5,:lv6,:pagenew,:pagebreak,:num_top,:toc_lev_limit,:flag_endnotes,:flag_auto_endnotes,:flag_separate_endnotes,:flag_separate_endnotes_make,:flag_auto_heading_num,:markup,:markup_instruction,:markup_version,:markup_declared,:make_bold,:make_italic,:flag_tables,:vocabulary,:doc_skin,:doc_css,:yaml,:lnk,:prefix_a,:prefix_b,:suffix,:information,:contact,:icon,:image,:ad_url,:ad_png,:ad_alt,:ad_began,:flag_promo,:promo,:ad_home,:stmp,:stmpd,:sc_filename,:sc_number,:sc_date,:sc_time,:sc_info,:yamladdr,:locale,:wc_lines,:wc_words,:wc_bytes,:file_encoding,:file_size,:user,:home,:hostname,:pwd,:firstseg,:programs,:creator_copymark,:lang,:en,:dgst,:dgst_skin,:generated,:tags,:tag_array,:concord_make,:seg_names,:seg_autoname_safe,:set_header_title,:set_heading_top,:set_heading_seg,:heading_seg_first,:heading_seg_first_flag,:base_program,:man_section,:man_name,:man_synopsis,:ec,:opt,:sem_tag
def initialize(fns_array,opt)
@env=@fn=@fns=@fnb=@fnn=@fnt=@fnl=@flv=@fnz=@fnstex=@ocn=@sfx_src=@sfx=@pdf=@file_type=@dir_out=@dir_tex=@dir_lout=@txt_path=@flag_endnotes=@flag_auto_endnotes=@flag_separate_endnotes=@flag_separate_endnotes_make=@site_skin=@sisu=@sisu_version=@ruby_version=@title=@dc_title=@html_title=@subtitle=@subtitle_tex=@creator_home=@dc_creator=@translator=@illustrator=@prepared_by=@digitized_by=@dc_subject=@dc_description=@dc_publisher=@dc_contributor=@dc_date=@dc_date_created=@dc_date_issued=@dc_date_available=@dc_date_valid=@dc_date_modified=@date_scheme=@date_created_scheme=@date_issued_scheme=@date_available_scheme=@date_valid_scheme=@date_modified_scheme=@dc_type=@dc_format=@dc_identifier=@dc_source=@dc_language=@language_original=@dc_relation=@dc_coverage=@dc_rights=@keywords=@comments=@abstract=@cls_loc=@cls_dewey=@cls_pg=@cls_isbn=@papersize=@toc=@lv1=@lv2=@lv3=@lv4=@lv5=@lv6=@pagenew=@pagebreak=@num_top=@toc_lev_limit=@flag_auto_heading_num=@make_bold=@make_italic=@flag_tables=@vocabulary=@doc_skin=@doc_css=@yaml=@lnk=@prefix_a=@prefix_b=@suffix=@information=@contact=@icon=@ad_url=@ad_png=@ad_alt=@ad_began=@promo=@ad_home=@stmp=@stmpd=@sc_filename=@sc_number=@sc_date=@sc_time=@sc_info=@yamladdr=@locale=@wc_lines=@wc_words=@wc_bytes=@file_encoding=@file_size=@firstseg=@programs=@creator_copymark=@lang=@en=@dgst=@dgst_skin=@generated=@heading_seg_first=@base_program=@man_synopsis=nil
@man_section=1
@@ -126,6 +127,7 @@ module SiSU_Param
@data,@fns,@cmd,@mod,@opt=fns_array,opt.fns,opt.cmd,opt.mod,opt #@data used as data
@flag_tables,@set_header_title,@set_heading_top,@set_heading_seg,@heading_seg_first_flag,@flag_promo=false,false,false,false,false,false
@seg_autoname_safe=true
+ @sem_tag=false
@markup_instruction,@markup_declared,@image='','','' #check which other values should be set to empty rather than nil
@markup=@markup_instruction #use @markup_instruction
@doc,@fn,@make_italic,@make_bold,@tag_hash,@ec={},{},{},{},{},{},{}
@@ -214,6 +216,7 @@ module SiSU_Param
fns_array=@data.dup
skip unless fns_array # consider
@markup_version=SiSU_Markup_type::Markup_identify.new(fns_array,@opt).markup_version? #% determine markup version
+ if @markup_version >= 0.65 then @sem_tag=true end
if fns_array[0] =~ /^(?:% )?(?:SiSU\s+(?:master\s+)?[\d.]*|sisu-[\d.]+)$/ #check markup and markup version
if fns_array[0] =~ /^(?:% )?(?:SiSU\s+(?:master\s+)?|sisu-)[\d.]+$/ #check markup and markup version
@markup_version_declared=fns_array[0].match(/^(?:% )?(?:SiSU\s+(?:master\s+)?|sisu-)([\d.]+)$/)[1]
diff --git a/lib/sisu/v0/param_identify_markup.rb b/lib/sisu/v0/param_identify_markup.rb
index 5124e89b..056fcc49 100644
--- a/lib/sisu/v0/param_identify_markup.rb
+++ b/lib/sisu/v0/param_identify_markup.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -76,28 +77,54 @@ module SiSU_Markup_type
or @cont[0] =~ /^(?:%\s+)?sisu-([0-9](?:\.[0-9]+){1,2})/
@version_declared=$1
end
- @flag_57,@flag_38=false,false
+ @flat_66,@flag_57,@flag_38=false,false,false
@cont.each_with_index do |y,i|
- if @flag_57 \
- or y =~/^:?A~\?? @title/
- @version_determined=0.57
- @flag_57=true
- break
+ if y =~/^(?:0\{?~links?|@links?:)\s/
+ links=unless y =~/\{.+?\}\S+/; oldlinks=' (pre 0.20.4 header links)'
+ else ' (post 0.20.4 header links)'
+ end
+ end
+ unless @flag_38
+ if y =~/^:?A~/
+ version='0.38'
+ @version_determined=version
+ @flag_38=true
+ end
end
- if @flag_38 \
- or y =~/^:?A~/
- @version_determined=0.38
- @flag_38=true
- break if i >= 200
- if y =~ /(?:~{\*+|~\[\*|~\[\+)\s/
- @version_determined=0.42 #0.38 can safely be treated as 0.42
+ if @flag_38
+ if @flag_66 \
+ or y =~/[:;]\{.+?\}[:;][a-z+]/
+ version='0.66'
+ @version_determined=version
+ @flag_66=true
break
end
end
- if y =~/^0~/ \
- and not @flag_38
- @version_determined=0.16
- break
+ end
+ @flag_57,@flag_38=false,false
+ unless @flag_66
+ @cont.each_with_index do |y,i|
+ if @flag_57 \
+ or y =~/^:?A~\?? @title/
+ @version_determined=0.57
+ @flag_57=true
+ break
+ end
+ if @flag_38 \
+ or y =~/^:?A~/
+ @version_determined=0.38
+ @flag_38=true
+ break if i >= 200
+ if y =~ /(?:~{\*+|~\[\*|~\[\+)\s/
+ @version_determined=0.42 #0.38 can safely be treated as 0.42
+ break
+ end
+ end
+ if y =~/^0~/ \
+ and not @flag_38
+ @version_determined=0.16
+ break
+ end
end
end
@@fns=@opt.fns
diff --git a/lib/sisu/v0/plaintext.rb b/lib/sisu/v0/plaintext.rb
index 5beac25e..2cf26b93 100644
--- a/lib/sisu/v0/plaintext.rb
+++ b/lib/sisu/v0/plaintext.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/plaintext_format.rb b/lib/sisu/v0/plaintext_format.rb
index 9afe4450..1840daa6 100644
--- a/lib/sisu/v0/plaintext_format.rb
+++ b/lib/sisu/v0/plaintext_format.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/relaxng.rb b/lib/sisu/v0/relaxng.rb
index fd847fac..1b78651b 100644
--- a/lib/sisu/v0/relaxng.rb
+++ b/lib/sisu/v0/relaxng.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/remote.rb b/lib/sisu/v0/remote.rb
index 3f2a5850..4cfa9347 100644
--- a/lib/sisu/v0/remote.rb
+++ b/lib/sisu/v0/remote.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/response.rb b/lib/sisu/v0/response.rb
index b8835c64..ba3c1a82 100644
--- a/lib/sisu/v0/response.rb
+++ b/lib/sisu/v0/response.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/rexml.rb b/lib/sisu/v0/rexml.rb
index 4b01ebef..4620c3ab 100644
--- a/lib/sisu/v0/rexml.rb
+++ b/lib/sisu/v0/rexml.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/screen_text_color.rb b/lib/sisu/v0/screen_text_color.rb
index f6b7c850..0a2fb713 100644
--- a/lib/sisu/v0/screen_text_color.rb
+++ b/lib/sisu/v0/screen_text_color.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/share_src.rb b/lib/sisu/v0/share_src.rb
index e7a23e6c..87569cfa 100644
--- a/lib/sisu/v0/share_src.rb
+++ b/lib/sisu/v0/share_src.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/share_src_kdissert.rb b/lib/sisu/v0/share_src_kdissert.rb
index fe7985fd..3f9cdebb 100644
--- a/lib/sisu/v0/share_src_kdissert.rb
+++ b/lib/sisu/v0/share_src_kdissert.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/shared_html.rb b/lib/sisu/v0/shared_html.rb
index aced56c7..bb570347 100644
--- a/lib/sisu/v0/shared_html.rb
+++ b/lib/sisu/v0/shared_html.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/shared_html_lite.rb b/lib/sisu/v0/shared_html_lite.rb
index 9f646790..106a56af 100644
--- a/lib/sisu/v0/shared_html_lite.rb
+++ b/lib/sisu/v0/shared_html_lite.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/shared_sem.rb b/lib/sisu/v0/shared_sem.rb
index a082cfc2..0fd5b46c 100644
--- a/lib/sisu/v0/shared_sem.rb
+++ b/lib/sisu/v0/shared_sem.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -60,45 +61,72 @@
=end
module SiSU_sem
+ require "#{SiSU_lib}/param"
class Tags
- def initialize(para)
- @para=para
+ def initialize(para,md)
+ @para,@md=para,md
end
def rgx
def exclude
- /^<:code>/
+ /^(?:<:code>|%+ )/
end
def each_csc
- /\b[a-z]+[:;]\{|\}[:;][a-z]+\b/m
- #/\b(?:[a-z]+(?:[_.][a-z]+)+|[a-z]+)[:;]\{|\}[:;](?:[a-z]+(?:[_.][a-z]+)+|[a-z]+)\b/m
+ /(?:;|(?:[a-z]+(?:[_:.][a-z]+)+|[a-z]*):)\{|\}[:;][a-z]+(?:[_:.][a-z]+)*/m
end
def each_c
- /\b[a-z]+:\{|\}:[a-z]+\b/m
- #/\b(?:[a-z]+(?:[_.][a-z]+)+|[a-z]+):\{|\}:(?:[a-z]+(?:[_.][a-z]+)+|[a-z]+)\b/m
+ /(?:[a-z]+(?:[_:.][a-z]+)+|[a-z]*):\{|\}:[a-z]+(?:[_:.][a-z]+)*/m
end
def each_sc
- /\b[a-z]+;\{|\};[a-z]+\b/m
- #/\b(?:[a-z]+(?:[_.][a-z]+)+|[a-z]+);\{|\};(?:[a-z]+(?:[_.][a-z]+)+|[a-z]+)\b/m
+ /(?:[a-z]+(?:[_:.][a-z]+)+|[a-z]*);\{|\};[a-z]+(?:[_:.][a-z]+)*/m
end
def pair_csc
- /(([a-z]+)(?::\{(.+?)\}:\2|;\{(.+?)\};\2))/m
- #/(([a-z]+(?:[_.][a-z]+)+|[a-z]+)(?::\{(.+?)\}:\2|;\{(.+?)\};\2))/m
+ /(([a-z]+(?:[_:.][a-z]+)+|[a-z]+)(?::\{(.+?)\}:\2)|([:;])\{(.+?)\}\4[a-z]+(?:[_:.][a-z]+)*)/m
end
def pair_c
- /(([a-z]+):\{(.+?)\}:\2)/m
- #/(([a-z]+(?:[_.][a-z]+)+|[a-z]+):\{(.+?)\}:\2)/m
+ /(([a-z]+(?:[_:.][a-z]+)*)(?::\{(.+?)\}:\2)|:\{(.+?)\}:[a-z]+(?:[_:.][a-z]+)*)/m
end
def pair_sc
- /(([a-z]+);\{.+?\};\2)/m
- #/(([a-z]+(?:[_.][a-z]+)+|[a-z]+);\{.+?\};\2)/m
+ /(;\{.+?\};[a-z]+(?:[_:.][a-z]+)*)/m
end
def whole_csc_ae
- /(([a-z]+)(?::\[(.+?)\]:\2|;\[(.+?)\];\2))/m
- #/(([a-z]+(?:[_.][a-z]+)+|[a-z]+)(?::\[(.+?)\]:\2|;\[(.+?)\];\2))/m
+ /(([a-z]+(?:[_.][a-z]+)+|[a-z]*)(?::\[(.+?)\]:\2)|;\{(.+?)\};(?:[a-z]+(?:[_:.][a-z]+)+|[a-z]+)\b)/m
end
def each_csc_ae
- /\b[a-z]+[:;]\[|\][:;][a-z]+\b/m
- #/\b(?:[a-z]+(?:[_.][a-z]+)+|[a-z]+)[:;]\[|\][:;](?:[a-z]+(?:[_.][a-z]+)+|[a-z]+)\b/m
+ /(?:;|(?:[a-z]+(?:[_:.][a-z]+)+)*:|[a-z]*:)\[|\][:;](?:[a-z]+(?:[_:.][a-z]+)+|[a-z]+)/m
+ end
+ self
+ end
+ def print
+ def scan_pair_c
+ if @para =~ rgx.pair_c
+ matched=@para.scan(rgx.pair_c).flatten
+ puts matched[0] unless matched[0].nil?
+ end
+ end
+ def scan_pair_sc
+ matched=@para.scan(rgx.pair_sc).flatten
+ puts matched[0] unless matched[0].nil?
+ end
+ def if_pair_c
+ if @para=~/([a-z](?:[a-z_:.]+?[a-z])?)+(?::\{(.+?)\}:\1)/m; puts "#{$1}:{ #{$2} }:#{$1}"
+ end
+ end
+ def if_pair_sc
+ if @para=~/;\{\s*(.+?)\s*\};([a-z]+(?:[_:.][a-z]+)*)/; puts ";{ #{$1} };#{$2}"
+ end
+ end
+ def match_pair_c
+ matched=[]
+ matched=rgx.pair_c.match(@para)[1] if @para =~ rgx.pair_c
+ puts matched unless matched.nil?
+ end
+ def match_pair_sc
+ matched=[]
+ matched=rgx.pair_sc.match(@para)[1] if @para =~ rgx.pair_sc
+ puts matched unless matched.nil?
+ end
+ def matching
+ scan_pair_c
end
self
end
@@ -118,8 +146,12 @@ module SiSU_sem
@para
end
def all
- sem_marker_parts
- sem_marker_added_extra_parts
+ if @md.sem_tag
+ #print.matching
+ sem_marker_parts
+ sem_marker_added_extra_parts
+ end
+ @para
end
self
end
diff --git a/lib/sisu/v0/shared_txt.rb b/lib/sisu/v0/shared_txt.rb
index 82b99cb1..aaa2d4d7 100644
--- a/lib/sisu/v0/shared_txt.rb
+++ b/lib/sisu/v0/shared_txt.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/shared_xml.rb b/lib/sisu/v0/shared_xml.rb
index fd27c664..abc6cc1a 100644
--- a/lib/sisu/v0/shared_xml.rb
+++ b/lib/sisu/v0/shared_xml.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -154,10 +155,44 @@ module SiSU_XML_munge
class Trans
require "#{SiSU_lib}/defaults"
def initialize(md)
+ @md=md
@sys=SiSU_Env::System_call.new
- @dir=SiSU_Env::Info_env.new(md.fns)
+ @dir=SiSU_Env::Info_env.new(@md.fns)
@dp=SiSU_Env::Info_env.new.digest.pattern
@url_brace=SiSU_Viz::Skin.new.url_decoration
+ if @md.sem_tag
+ @ab ||=semantic_tags.default
+ end
+ end
+ def semantic_tags
+ def default
+ {
+ :pub => 'publication',
+ :ref => 'reference',
+ :desc => 'description',
+ :conv => 'convention',
+ :vol => 'volume',
+ :pg => 'page',
+ :ct => 'cite',
+ :cty => 'city',
+ :org => 'organization',
+ :d => 'date',
+ :t => 'title',
+ :a => 'author',
+ :n => 'name',
+ :fn => 'firstname',
+ :f => 'firstname',
+ :mn => 'middlename',
+ :m => 'middlename',
+ :ln => 'lastname',
+ :l => 'lastname',
+ :i => 'initials',
+ :q => 'quote',
+ :y => 'year',
+ :ab => 'abreviation',
+ }
+ end
+ self
end
def char_enc #character encode
def utf8(para='')
@@ -348,10 +383,8 @@ module SiSU_XML_munge
end
end
def markup(para='')
- #if para !~/^<:code>/
- wordlist=para.scan(/\S+|\n/) #\n needed for tables, check though added 2005w17
- para=tidywords(wordlist).join(' ').strip
- #end
+ wordlist=para.scan(/\S+|\n/) #\n needed for tables, check though added 2005w17
+ para=tidywords(wordlist).join(' ').strip
para.gsub!(/(^|\s+)<\s+/,'\1&lt; '); para.gsub!(/\s+>(\s+|$)/,' &gt;\1')
para.gsub!(/<:pb>\s*/,'')
para.gsub!(/<+[-~]#>+/,'')
@@ -426,6 +459,52 @@ module SiSU_XML_munge
para.gsub!(/&lt;(\/?en)&gt;/,'<\1>')
para
end
+ def xml_sem_block_paired(matched) # colon depth: many, recurs
+ matched.gsub!(/\b(a):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:a]} depth="many">\\2</sem:#{@ab[:a]}>}) # sem :
+ matched.gsub!(/\b(vol):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:vol]} depth="many">\\2</sem:#{@ab[:vol]}>}) # sem :
+ matched.gsub!(/\b(pub):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:pub]} depth="many">\\2</sem:#{@ab[:pub]}>}) # sem :
+ matched.gsub!(/\b(ref):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:ref]} depth="many">\\2</sem:#{@ab[:ref]}>}) # sem :
+ matched.gsub!(/\b(desc):\{(.+?)\}:\1\b/m,%{<sem:#{@ab[:desc]} depth="many">\\2</sem:#{@ab[:desc]}>}) # sem :
+ matched.gsub!(/\b(conv):\{(.+?)\}:\1\b/m,%{<sem:#{@ab[:conv]} depth="many">\\2</sem:#{@ab[:conv]}>}) # sem :
+ matched.gsub!(/\b(ct):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:ct]} depth="many">\\2</sem:#{@ab[:ct]}>}) # sem :
+ matched.gsub!(/\b(cty):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:cty]} depth="many">\\2</sem:#{@ab[:cty]}>}) # sem :
+ matched.gsub!(/\b(org):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:org]} depth="many">\\2</sem:#{@ab[:org]}>}) # sem :
+ matched.gsub!(/\b(d):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:d]} depth="many">\\2</sem:#{@ab[:d]}>}) # sem :
+ matched.gsub!(/\b(n):\{(.+?)\}:\1\b/m, %{<sem:#{@ab[:n]} depth="many">\\2</sem:#{@ab[:n]}>}) # sem :
+ matched.gsub!(/([a-z]+(?:[_:.][a-z]+)*)(?::\{(.+?)\}:\1)/m,'<sem:\1 depth="many">\2</sem:\1>') # sem :
+ end
+ def xml_semantic_tags(para)
+ if @md.sem_tag
+ para.gsub!(/([a-z]+(?:[_:.][a-z]+)*)(?::\{(.+?)\}:\1)/m) {|c| xml_sem_block_paired(c) } # sem :
+ para.gsub!(/([a-z]+(?:[_:.][a-z]+)*)(?::\{(.+?)\}:\1)/m) {|c| xml_sem_block_paired(c) } # sem :
+ para.gsub!(/([a-z]+(?:[_:.][a-z]+)*)(?::\{(.+?)\}:\1)/m) {|c| xml_sem_block_paired(c) } # sem :
+ #colon one / single / flat / shallow
+ para.gsub!(/:\{(.+?)\}:a\b/m, %{<sem:#{@ab[:a]} depth="one">\\1</sem:#{@ab[:a]}>}) # sem :
+ para.gsub!(/:\{(.+?)\}:n\b/m, %{<sem:#{@ab[:n]} depth="one">\\1</sem:#{@ab[:n]}>}) # sem :
+ para.gsub!(/:\{(.+?)\}:t\b/m, %{<sem:#{@ab[:t]} depth="one">\\1</sem:#{@ab[:t]}>}) # sem :
+ para.gsub!(/:\{(.+?)\}:ref\b/m, %{<sem:#{@ab[:ref]} depth="one">\\1</sem:#{@ab[:ref]}>}) # sem :
+ para.gsub!(/:\{(.+?)\}:desc\b/m, %{<sem:#{@ab[:desc]} depth="one">\\1</sem:#{@ab[:desc]}>}) # sem :
+ para.gsub!(/:\{(.+?)\}:cty\b/m, %{<sem:#{@ab[:cty]} depth="one">\\1</sem:#{@ab[:cty]}>}) # sem :
+ para.gsub!(/:\{(.+?)\}:org\b/m, %{<sem:#{@ab[:org]} depth="one">\\1</sem:#{@ab[:org]}>}) # sem :
+ para.gsub!(/:\{(.+?)\}:([a-z]+(?:[_:.][a-z]+)*)/m,'<sem:\2 depth="one">\1</sem:\2>') # sem :
+ #semicolon zero / none
+ para.gsub!(/;\{([^}]+(?![;]))\};t\b/m, %{<sem:#{@ab[:t]} depth="zero">\\1</sem:#{@ab[:t]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};q\b/m, %{<sem:#{@ab[:q]} depth="zero">\\1</sem:#{@ab[:q]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};ref\b/m, %{<sem:#{@ab[:ref]} depth="zero">\\1</sem:#{@ab[:ref]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};desc\b/m,%{<sem:#{@ab[:desc]} depth="zero">\\1</sem:#{@ab[:desc]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};y\b/m, %{<sem:#{@ab[:y]} depth="zero">\\1</sem:#{@ab[:y]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};ab\b/m, %{<sem:#{@ab[:ab]} depth="zero">\\1</sem:#{@ab[:ab]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};pg\b/m, %{<sem:#{@ab[:pg]} depth="zero">\\1</sem:#{@ab[:pg]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};fn?\b/m, %{<sem:#{@ab[:fn]} depth="zero">\\1</sem:#{@ab[:fn]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};mn?\b/m, %{<sem:#{@ab[:mn]} depth="zero">\\1</sem:#{@ab[:mn]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};ln?\b/m, %{<sem:#{@ab[:ln]} depth="zero">\\1</sem:#{@ab[:ln]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};i\b/m, %{<sem:#{@ab[:i]} depth="zero">\\1</sem:#{@ab[:i]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};org\b/m, %{<sem:#{@ab[:org]} depth="zero">\\1</sem:#{@ab[:org]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};cty\b/m, %{<sem:#{@ab[:cty]} depth="zero">\\1</sem:#{@ab[:cty]}>}) # sem ;
+ para.gsub!(/;\{([^}]+(?![;]))\};([a-z]+(?:[_:.][a-z]+)*)/m,'<sem:\2 depth="zero">\1</sem:\2>') # sem ;
+ end
+ para
+ end
end
end
module SiSU_XML_tags #Format
diff --git a/lib/sisu/v0/sisupod_make.rb b/lib/sisu/v0/sisupod_make.rb
index 669ff49f..cb627bcf 100644
--- a/lib/sisu/v0/sisupod_make.rb
+++ b/lib/sisu/v0/sisupod_make.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/sitemaps.rb b/lib/sisu/v0/sitemaps.rb
index 3742a786..2805d0a6 100644
--- a/lib/sisu/v0/sitemaps.rb
+++ b/lib/sisu/v0/sitemaps.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/spell.rb b/lib/sisu/v0/spell.rb
index 03badae9..477a472f 100644
--- a/lib/sisu/v0/spell.rb
+++ b/lib/sisu/v0/spell.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/sst_convert_markup.rb b/lib/sisu/v0/sst_convert_markup.rb
index 6ae38396..dfad95d9 100644
--- a/lib/sisu/v0/sst_convert_markup.rb
+++ b/lib/sisu/v0/sst_convert_markup.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/sst_do_inline_footnotes.rb b/lib/sisu/v0/sst_do_inline_footnotes.rb
index c59c29fc..3ee301f2 100644
--- a/lib/sisu/v0/sst_do_inline_footnotes.rb
+++ b/lib/sisu/v0/sst_do_inline_footnotes.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/sst_from_kdissert.rb b/lib/sisu/v0/sst_from_kdissert.rb
index 75352ca5..04e71b49 100644
--- a/lib/sisu/v0/sst_from_kdissert.rb
+++ b/lib/sisu/v0/sst_from_kdissert.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/sst_from_xml.rb b/lib/sisu/v0/sst_from_xml.rb
index d93e68b8..af43e611 100644
--- a/lib/sisu/v0/sst_from_xml.rb
+++ b/lib/sisu/v0/sst_from_xml.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -99,6 +100,10 @@ module SiSU_sst_from_xml
text.gsub!(/<i>(.+?)<\/i>/,'/{\1}/')
text.gsub!(/<b>(.+?)<\/b>/,'*{\1}*')
text.gsub!(/<u>(.+?)<\/u>/,'_{\1}_')
+ text.gsub!(/<sem:([a-z_]+)\s+depth=['"]zero['"]>(\s*.+?\s*)<\/sem:\1>/,';{ \2 };\1')
+ text.gsub!(/<sem:([a-z_]+)\s+depth=['"]one['"]>(\s*.+?\s*)<\/sem:\1>/,':{ \2 }:\1')
+ text.gsub!(/<sem:([a-z_]+)\s+depth=['"]many['"]>(\s*.+?\s*)<\/sem:\1>/,'\1:{ \2 }:\1')
+ text.gsub!(/<sem:([a-z_]+)>(\s*.+?\s*)<\/sem:\1>/,'\1:{ \2 }:\1')
text.gsub!(/\s +/,' ')
text.strip!
#text.gsub!(/<header>(.+?)<\/header/,"@#{x.name}: \\1\n\n")
@@ -126,7 +131,7 @@ module SiSU_sst_from_xml
sax
end
def dom
- raise "#{__FILE}::#{__LINE__} xml dom representation to sst not yet implemented (experimental simple xml representations sax and node to sst are in place)."
+ raise "#{__FILE__}::#{__LINE__} xml dom representation to sst not yet implemented (experimental simple xml representations sax and node to sst are in place)."
end
def xml_to_sisu
unless @opt.files.empty?
diff --git a/lib/sisu/v0/sst_identify_markup.rb b/lib/sisu/v0/sst_identify_markup.rb
index 0f60b916..a9eb4d32 100644
--- a/lib/sisu/v0/sst_identify_markup.rb
+++ b/lib/sisu/v0/sst_identify_markup.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -113,7 +114,7 @@ WOK
or cont[0] =~ /^(?:%\s+)?sisu-([0-9](?:\.[0-9]+){1,2})/
@declared_markup=$1
end
- @flat_65,@flag_57,@flag_38=false,false,false
+ @flat_66,@flag_57,@flag_38=false,false,false
cont.each_with_index do |y,i|
if y =~/^(?:0\{?~links?|@links?:)\s/ \
and f =~/(?:\.sst|\.ssm|\.ssi|\.s[123])/
@@ -129,16 +130,16 @@ WOK
end
end
if @flag_38
- if @flag_65 \
+ if @flag_66 \
or y =~/[a-z+][:;]\{.+?\}[:;][a-z+]/
- version='0.65'
- markup=Markup_inform.new(version,'0.65' + oldlinks,@declared_markup,@declared_type)
- @flag_65=true
+ version='0.66'
+ markup=Markup_inform.new(version,'0.66' + oldlinks,@declared_markup,@declared_type)
+ @flag_66=true
break
end
end
end
- unless @flag_65
+ unless @flag_66
cont.each_with_index do |y,i|
if y =~/^(?:0\{?~links?|@links?:)\s/ \
and f =~/(?:\.sst|\.ssm|\.ssi|\.s[123])/
@@ -244,6 +245,14 @@ WOK
def initialize(opt)
@opt=opt
end
+ def sisu_0_66
+ <<WOK
+ SiSU 0.66 same as previous, adds semantic tags
+ /[:;]\{.+?\}[:;][a-z+]/
+ e.g. :{ Ralph last;{Amissah};last }:author
+
+WOK
+ end
def sisu_0_65
<<WOK
SiSU 0.65 same as previous, adds semantic tags
@@ -366,7 +375,9 @@ WOK
tell=if @opt.mod.inspect =~/--query/
tell=case @opt.mod.inspect
when /history/
- "#{sisu_0_65}#{sisu_0_57}#{sisu_0_42}#{sisu_0_38}\n#{sisu_0_37}\n#{sisu_0_16}\n#{sisu_0_1}"
+ "#{sisu_0_66}#{sisu_0_57}#{sisu_0_42}#{sisu_0_38}\n#{sisu_0_37}\n#{sisu_0_16}\n#{sisu_0_1}"
+ when /0.66/
+ "#{sisu_0_66}#{sisu_0_57}#{sisu_0_42}#{sisu_0_38}#{sisu_0_16}"
when /0.65/
"#{sisu_0_65}#{sisu_0_57}#{sisu_0_42}#{sisu_0_38}#{sisu_0_16}"
when /0.57/
diff --git a/lib/sisu/v0/sst_to_s_xml_dom.rb b/lib/sisu/v0/sst_to_s_xml_dom.rb
index a1c81532..f9c190bf 100644
--- a/lib/sisu/v0/sst_to_s_xml_dom.rb
+++ b/lib/sisu/v0/sst_to_s_xml_dom.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -161,7 +162,7 @@ module SiSU_simple_xml_model_dom
para.gsub!(/~\{([*+]+)\s+(.+?)\}~/,
'<endnote><symbol>\1</symbol><note>\2</note></endnote> ')
para.gsub!(/~\{(.+?)\}~/,
- '<endnote><note>\2</note></endnote> ')
+ '<endnote><note>\1</note></endnote> ')
end
def xml_head(meta)
txt=meta.text
@@ -356,7 +357,7 @@ WOK
(0..6).each { |x| @cont[x]=@level[x]=false }
(4..6).each { |x| @xml_contents_close[x]='' }
data.each do |para|
- para=SiSU_sem::Tags.new(para).rm.all
+ #para=SiSU_sem::Tags.new(para,@md).rm.all
wordlist=para.scan(/\S+|\n/) #\n needed for tables, check though added 2005w17
para=tidywords(wordlist).join(' ').strip
para.gsub!(/<[-~]#>/,'')
@@ -546,10 +547,19 @@ WOK
include SiSU_Env
def initialize(data,md)
@data,@md=data,md
+ @trans=SiSU_XML_munge::Trans.new(@md)
end
def xml
@sisu=[]
@data.each do |para|
+ if para !~/^\s*(?:%+ |<:code>)/
+ if @md.sem_tag and para =~/[:;]\{|\}[:;]/
+ para=@trans.xml_semantic_tags(para)
+ end
+ if para =~/[:;]\{|\}[:;]/
+ para=SiSU_sem::Tags.new(para,@md).rm.all
+ end
+ end
para.gsub!(/\/\{(.+?)\}\//,'<italic>\1</italic>')
para.gsub!(/\*\{(.+?)\}\*/,'<bold>\1</bold>')
para.gsub!(/!\{(.+?)\}!/,'<bold>\1</bold>')
diff --git a/lib/sisu/v0/sst_to_s_xml_node.rb b/lib/sisu/v0/sst_to_s_xml_node.rb
index b6d7c9b2..a2656e3e 100644
--- a/lib/sisu/v0/sst_to_s_xml_node.rb
+++ b/lib/sisu/v0/sst_to_s_xml_node.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -399,7 +400,6 @@ WOK
@data=@data.join.split("\n\n")
@data=SiSU_document_structure::Code.new(@md,@data).code
@data.each do |para|
- para=SiSU_sem::Tags.new(para).rm.all
data << SiSU_document_structure::Structure.new(@md,para).structure
end
data=Syntax::Markup.new(@md,data).songsheet
@@ -416,6 +416,15 @@ WOK
obj.each do |o|
para=o.txt unless o.txt =~/^%% / #comments are lost, consider
if para
+ if para !~/^\s*(?:%+ |<:code>)/
+ if @md.sem_tag and para =~/[:;]\{|\}[:;]/
+ para=@trans.xml_semantic_tags(para)
+ end
+ if para =~/[:;]\{|\}[:;]/
+ para=SiSU_sem::Tags.new(para,@md).rm.all
+ end
+ end
+ para=SiSU_sem::Tags.new(para,@md).rm.all
para=@trans.markup_light(para)
@trans.char_enc.utf8(para) if @sys.locale =~/utf-?8/i #% utf8
if para =~/\A(?:@|0~)(\S+?):?\s+(.+?)\Z/m # for headers
diff --git a/lib/sisu/v0/sst_to_s_xml_sax.rb b/lib/sisu/v0/sst_to_s_xml_sax.rb
index 5e4eb5ea..4625779d 100644
--- a/lib/sisu/v0/sst_to_s_xml_sax.rb
+++ b/lib/sisu/v0/sst_to_s_xml_sax.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
@@ -262,7 +263,14 @@ WOK
data << SiSU_document_structure::Structure.new(@md,para).structure
end
data.each do |para|
- para=SiSU_sem::Tags.new(para).rm.all
+ if para !~/^\s*(?:%+ |<:code>)/
+ if @md.sem_tag and para =~/[:;]\{|\}[:;]/
+ para=@trans.xml_semantic_tags(para)
+ end
+ if para =~/[:;]\{|\}[:;]/
+ para=SiSU_sem::Tags.new(para,@md).rm.all
+ end
+ end
para=@trans.markup_light(para)
@trans.char_enc.utf8(para) if @sys.locale =~/utf-?8/i #% utf8
if para =~/\A(?:@|0~)(\S+?):?\s+(.+?)\Z/m # for headers
diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb
index fb3daefe..9cf14507 100644
--- a/lib/sisu/v0/sysenv.rb
+++ b/lib/sisu/v0/sysenv.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/termsheet.rb b/lib/sisu/v0/termsheet.rb
index 2a50eb4f..688ce3d6 100644
--- a/lib/sisu/v0/termsheet.rb
+++ b/lib/sisu/v0/termsheet.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/texinfo.rb b/lib/sisu/v0/texinfo.rb
index b6133ed7..2b10c04c 100644
--- a/lib/sisu/v0/texinfo.rb
+++ b/lib/sisu/v0/texinfo.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/texinfo_format.rb b/lib/sisu/v0/texinfo_format.rb
index 6564460a..5bcdf04d 100644
--- a/lib/sisu/v0/texinfo_format.rb
+++ b/lib/sisu/v0/texinfo_format.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/texpdf.rb b/lib/sisu/v0/texpdf.rb
index f11e456d..5b8e020f 100644
--- a/lib/sisu/v0/texpdf.rb
+++ b/lib/sisu/v0/texpdf.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/texpdf_format.rb b/lib/sisu/v0/texpdf_format.rb
index ba84f323..03bdd184 100644
--- a/lib/sisu/v0/texpdf_format.rb
+++ b/lib/sisu/v0/texpdf_format.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/update.rb b/lib/sisu/v0/update.rb
index 9f14a7e1..abb3736c 100644
--- a/lib/sisu/v0/update.rb
+++ b/lib/sisu/v0/update.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/urls.rb b/lib/sisu/v0/urls.rb
index c6e8d325..1d401f12 100644
--- a/lib/sisu/v0/urls.rb
+++ b/lib/sisu/v0/urls.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/webrick.rb b/lib/sisu/v0/webrick.rb
index 2b3110d0..5432a81d 100644
--- a/lib/sisu/v0/webrick.rb
+++ b/lib/sisu/v0/webrick.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/wikispeak.rb b/lib/sisu/v0/wikispeak.rb
index ec74afce..8ac3b351 100644
--- a/lib/sisu/v0/wikispeak.rb
+++ b/lib/sisu/v0/wikispeak.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xhtml.rb b/lib/sisu/v0/xhtml.rb
index 6d808266..fa022db1 100644
--- a/lib/sisu/v0/xhtml.rb
+++ b/lib/sisu/v0/xhtml.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xml.rb b/lib/sisu/v0/xml.rb
index e17958dd..9a88c09c 100644
--- a/lib/sisu/v0/xml.rb
+++ b/lib/sisu/v0/xml.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xml_dom.rb b/lib/sisu/v0/xml_dom.rb
index 020393c1..a25afdc8 100644
--- a/lib/sisu/v0/xml_dom.rb
+++ b/lib/sisu/v0/xml_dom.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xml_fictionbook.rb b/lib/sisu/v0/xml_fictionbook.rb
index cf47d16a..9e9a42f9 100644
--- a/lib/sisu/v0/xml_fictionbook.rb
+++ b/lib/sisu/v0/xml_fictionbook.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xml_format.rb b/lib/sisu/v0/xml_format.rb
index cac39981..5558bd80 100644
--- a/lib/sisu/v0/xml_format.rb
+++ b/lib/sisu/v0/xml_format.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xml_md_oai_pmh_dc.rb b/lib/sisu/v0/xml_md_oai_pmh_dc.rb
index 870eee5f..f4b0a53f 100644
--- a/lib/sisu/v0/xml_md_oai_pmh_dc.rb
+++ b/lib/sisu/v0/xml_md_oai_pmh_dc.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xml_scaffold.rb b/lib/sisu/v0/xml_scaffold.rb
index 7d43e3ef..ae8a0cc0 100644
--- a/lib/sisu/v0/xml_scaffold.rb
+++ b/lib/sisu/v0/xml_scaffold.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/xml_tables.rb b/lib/sisu/v0/xml_tables.rb
index be8c1dd1..1e08f3eb 100644
--- a/lib/sisu/v0/xml_tables.rb
+++ b/lib/sisu/v0/xml_tables.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/lib/sisu/v0/zap.rb b/lib/sisu/v0/zap.rb
index 6b1805c1..268f3c40 100644
--- a/lib/sisu/v0/zap.rb
+++ b/lib/sisu/v0/zap.rb
@@ -1,3 +1,4 @@
+# coding: utf-8
=begin
* Name: SiSU
diff --git a/man/man1/sisu.1 b/man/man1/sisu.1
index 75d77fa3..fd37ee7b 100644
--- a/man/man1/sisu.1
+++ b/man/man1/sisu.1
@@ -1,4 +1,4 @@
-.TH "sisu" "1" "2008-02-12" "0.65.0" "SiSU"
+.TH "sisu" "1" "2008-02-24" "0.66.0" "SiSU"
.SH NAME
sisu \- documents: markup, structuring, publishing in multiple standard formats, and search
.SH SYNOPSIS
@@ -4572,11 +4572,11 @@ DC Date available:
.BR
DC Date modified:
-.I 2008\-02\-12
+.I 2008\-02\-24
.BR
DC Date:
-.I 2008\-02\-12
+.I 2008\-02\-24
.BR
.B Version Information
@@ -4591,7 +4591,7 @@ Filetype:
.BR
Sourcefile Digest, MD5(sisu.ssm.sst)=
-.I 1a602f31f72da6a8d1e6fc6b42d1b703
+.I db21f6e88c100f35f19cab84d69e2987
.BR
Skin_Digest: MD5(skin_sisu_manual.rb)=
@@ -4602,13 +4602,13 @@ Skin_Digest: MD5(skin_sisu_manual.rb)=
.BR
Document (metaverse) last generated:
-.I Sat Feb 16 02:33:43 +0000 2008
+.I Sun Feb 24 20:02:36 +0000 2008
.BR
Generated by:
.I SiSU
-.I 0.65.0
-of 2008w06/6 (2008\-02\-16)
+.I 0.66.0
+of 2008w07/0 (2008\-02\-24)
.BR
Ruby version:
@@ -4762,10 +4762,10 @@ pdf: <http://www.jus.uio.no/sisu/sisu/landscape.pdf>
.TP
at: <http://www.jus.uio.no/sisu>
.TP
-* Generated by: SiSU 0.65.0 of 2008w06/6 (2008-02-16)
+* Generated by: SiSU 0.66.0 of 2008w07/0 (2008-02-24)
.TP
* Ruby version: ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
.TP
-* Last Generated on: Sat Feb 16 02:33:43 +0000 2008
+* Last Generated on: Sun Feb 24 20:02:36 +0000 2008
.TP
* SiSU http://www.jus.uio.no/sisu