WOK
end
@@ -222,6 +241,14 @@ WOK
def html_tail
a=[]
a <<<
+
+
+
+
+
+
+#{@vz.credits_sisu}
WOK
diff --git a/lib/sisu/v0/harvest_topics.rb b/lib/sisu/v0/harvest_topics.rb
index bda82629..51f55b2b 100644
--- a/lib/sisu/v0/harvest_topics.rb
+++ b/lib/sisu/v0/harvest_topics.rb
@@ -251,37 +251,56 @@ module HARVEST_topics
@env=SiSU_Env::Info_env.new
@rc=Get_init.instance.yamlrc
@page='sisu_manifest.html'
+ @alph=%W[9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z]
+ @letter=@alph.shift
+ @vz=SiSU_Env::Get_init.instance.skin
+ end
+ def html_file_open
@output={}
@output[:html]=File.new("#{@env.path.output_md_harvest}/harvest_topics.html",'w')
if @opt.cmd.inspect =~/-M/
@output[:html_mnt]=File.new("#{@env.path.pwd}/harvest_topics.html",'w')
end
- @alph=%W[9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z]
- @letter=@alph.shift
+ end
+ def html_file_close
+ @output[:html].close
+ @output[:html_mnt].close if @output[:html_mnt].class == File
end
def html_print
def html_songsheet
+ html_file_open
html_head
html_alph
html_body
html_tail
+ html_file_close
end
def html_head_adjust(type='')
css_path=if type !~/maintenance/
'../_sisu/css/harvest.css'
else 'harvest.css'
end
+ sv=SiSU_Env::Info_version.new.get_version
<SiSU Metadata Harvest - Topics
+
+
+
+
+
+
+
+
+
WOK
end
@@ -304,6 +323,14 @@ WOK
def html_tail
a=[]
a <<<
+
+
+
+
+
+
+#{@vz.credits_sisu}
WOK
diff --git a/lib/sisu/v0/hub.rb b/lib/sisu/v0/hub.rb
index 93766140..33af71f9 100644
--- a/lib/sisu/v0/hub.rb
+++ b/lib/sisu/v0/hub.rb
@@ -181,7 +181,7 @@ module SiSU
end
end
end
- SiSU_Remote::Put.new(@opt).rsync_harvest if @opt.cmd.inspect =~/R/ and @opt.mod.inspect =~/harvest/
+ #SiSU_Remote::Put.new(@opt).rsync_harvest if @opt.cmd.inspect =~/R/ and @opt.mod.inspect =~/harvest/
elsif @req =~/^dbi$/; SiSU_DBI::SiSU_SQL.new(@opt).connect # -D -d
elsif @req=~/^sisupod_make$/; SiSU_Doc::Source.new(@opt).read # -S
end
@@ -495,8 +495,8 @@ p "here #{__FILE__} #{__LINE__}" if @opt =~/M/
if @opt.cmd =~/R/; op('remote','rsync') #% -R copy to remote server
end
else
- if @opt.cmd =~/R/; op('remote','rsync_harvest') #% -R copy to remote server
- end
+ #if @opt.cmd =~/R/; op('remote','rsync_harvest') #% -R copy to remote server
+ #end
end
if @opt.cmd =~/[QuUvVM]/; op('urls','urls') #% -Q -u -v -V -M urls
end
diff --git a/lib/sisu/v0/i18n.rb b/lib/sisu/v0/i18n.rb
index 673ab08d..20f788f5 100644
--- a/lib/sisu/v0/i18n.rb
+++ b/lib/sisu/v0/i18n.rb
@@ -227,6 +227,9 @@ module SiSU_Translate
def prefix_b
@lang_class.prefix_b
end
+ def topic_register
+ @lang_class.topic_register
+ end
def fns
@lang_class.fns
end
@@ -436,6 +439,9 @@ module SiSU_Translate
def prefix_b
'Prefix (b)'
end
+ def topic_register
+ 'Topics Registered'
+ end
def sourcefile
'Sourcefile'
end
@@ -641,6 +647,9 @@ module SiSU_Translate
def prefix_b
'Préfixe (b)'
end
+ def topic_register
+ 'Topics Registered'
+ end
def sourcefile
'Fichier source'
end
@@ -846,6 +855,9 @@ module SiSU_Translate
def prefix_b
'Präfix (b)'
end
+ def topic_register
+ 'Topics Registered'
+ end
def sourcefile
'Quelldatei'
end
@@ -1051,6 +1063,9 @@ module SiSU_Translate
def prefix_b
'Prefijo (b)'
end
+ def topic_register
+ 'Topics Registered'
+ end
def sourcefile
'Fichero fuente'
end
@@ -1256,6 +1271,9 @@ module SiSU_Translate
def prefix_b
'Premessa (b)'
end
+ def topic_register
+ 'Topics Registered'
+ end
def sourcefile
'Sorgente'
end
@@ -1461,6 +1479,9 @@ module SiSU_Translate
def prefix_b
'Prefix (b)'
end
+ def topic_register
+ 'Topics Registered'
+ end
def sourcefile
'Lähdetiedosto'
end
diff --git a/lib/sisu/v0/manifest.rb b/lib/sisu/v0/manifest.rb
index 0b7c7bfc..793ecdc2 100644
--- a/lib/sisu/v0/manifest.rb
+++ b/lib/sisu/v0/manifest.rb
@@ -170,7 +170,7 @@ module SiSU_Manifest
end
end
def metadata(id,info)
- @manifest[:html] << %{
#{id}:
#{info}
\n}
+ @manifest[:html] << %{
#{id}:
#{info}
\n}
end
def links(url,lnk,target)
static=if url =~/^\.\//; url.gsub(/^\.(\.)?/,@base_url)
@@ -465,6 +465,20 @@ module SiSU_Manifest
id,info=@translate.prefix_b,@md.prefix_b
metadata(id,info)
end
+ if @md.topic_register_array.length > 1
+ @manifest[:html] << %{
#{@translate.topic_register}:
\n}
+ @md.topic_register_array.each do |t|
+ t.each_with_index do |st,i|
+ if st.class == Array
+ st.each do |v|
+ @manifest[:html] << %{
#{v}
\n}
+ end
+ else @manifest[:html] << %{
#{st}
\n}
+ end
+ end
+ end
+ @manifest[:html] << %{
\n}
+ end
if @md.fns
id,info=@translate.sourcefile,@md.fns
metadata(id,info)
--
cgit v1.2.3
From 54d887609748062b4053a723aa5e129c3f766fc8 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Thu, 11 Dec 2008 21:35:05 -0500
Subject: param, enfoorce name formatting rule (recently introduced) across
name fields
---
lib/sisu/v0/param.rb | 240 +++++++++++++++++++++++++++------------------------
1 file changed, 128 insertions(+), 112 deletions(-)
diff --git a/lib/sisu/v0/param.rb b/lib/sisu/v0/param.rb
index 2829abe1..0d2095dd 100644
--- a/lib/sisu/v0/param.rb
+++ b/lib/sisu/v0/param.rb
@@ -118,7 +118,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,:authors,:authorship,: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,:papersize_array,: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,:book_idx,:topic_register,:original_publication_details
+ 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,:authors,:authorship,: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,:papersize_array,: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,:book_idx,:topic_register,:topic_register_array,:original_publication_details
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=@topic_register=@original_publication_details=nil
@man_section=1
@@ -131,8 +131,7 @@ module SiSU_Param
@markup=@markup_instruction #use @markup_instruction
@doc,@fn,@make_italic,@make_bold,@tag_hash,@ec={},{},{},{},{},{},{}
@flv,@lang,@seg_names,@tags,@tag_array,@tag_a,@ec[:image],@ec[:audio],@ec[:multimedia]=Array.new(9){[]}
- @authors=[]
- @papersize_array=[]
+ @authors,@topic_register_array,@papersize_array=[],[],[]
@rgx_image=/(?:^|[^_\\])\{\s*(\S+?\.(?:png|jpg|gif))/
@rgx_audio=/\{\s*(\S+?\.(?:mp3|ogg))/
@rgx_mm=/\{\s*(\S+?\.(?:ogg|mpeg))/ #expand and distinguish ogg
@@ -152,6 +151,42 @@ module SiSU_Param
else 'A4'
end
end
+ def name_format(name)
+ name.strip!
+ @name_a_h=[]
+ authors=name.scan(/[^;]+/)
+ authors.each do |a|
+ if a =~/"(.+?)"/
+ @name_a_h << { :the => $1 }
+ else #if a =~/,/
+ x=a.scan(/[^,]+/)
+ if x.length == 1
+ @name_a_h << { :the => x[0].strip }
+ elsif x.length == 2
+ @name_a_h << { :the => x[0].strip, :others => x[1].strip }
+ else #p x.length
+ end
+ end
+ end
+ l = @name_a_h.length
+ name_str=''
+ @name_a_h.each_with_index do |a,i|
+ name_str += if a[:others]
+ if (l - i) > 1
+ "#{a[:others].strip} #{a[:the].strip}, "
+ else
+ "#{a[:others].strip} #{a[:the].strip}"
+ end
+ else
+ if (l - i) > 2
+ "#{a[:the].strip}, "
+ else
+ "#{a[:the].strip}"
+ end
+ end
+ end
+ {:name_a_h =>@name_a_h,:name_str =>name_str}
+ end
def extract
@user,@home,@hostname,@pwd=ENV['USER'],ENV['HOME'],ENV['HOSTNAME'],ENV['PWD']
@programs,@wc,@dc_language,@language_original={},{},{},{}
@@ -267,12 +302,12 @@ module SiSU_Param
when /^\}code\s*$/; false
else @code_flag
end
- regx_header=/^(?:0~|@\S+?:[+-]?\s)/
+ regx_header=/^(?:@\S+?:[+-]?\s|0~\S+)/
if para =~regx_header \
and not @code_flag #or para=~/^(?:1|:?A)~/
case para
- when /^(?:0~ocn|@ocn:)\s+(.+?)$/m; @ocn=$1 #% processing
- when /^(?:0~title|@title:)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@ocn:|0~ocn)\s+(.+?)$/m; @ocn=$1 #% processing
+ when /^(?:@title:|0~title)\s+(.+?)$/m #% metainfo DC
@title=$1.strip
@dc_title=@title.dup
@html_title=@title.gsub(/(
|
| | )/,'')
@@ -281,66 +316,37 @@ module SiSU_Param
@html_title.chomp!(' ')
tell=SiSU_Screen::Ansi.new(@cmd,'Parameters',@html_title)
tell.txt_grey unless @cmd =~/q/
- when /^(?:0~subtitle|@subtitle:)\s+(.+?)$/m #% metainfo
+ when /^(?:@subtitle:|0~subtitle)\s+(.+?)$/m #% metainfo
@subtitle=$1.strip
@dc_title="#{@title} - #{@subtitle}"
@subtitle_tex=@subtitle
- when /^(?:0~(creator|author)-?|@(creator|author)-?:)\s+/ #% metainfo DC
- if para[/(?:0~|@)(?:creator|author):?\s+((?:https?|ftp)\S+)\s+(.+?)$/m]
- @creator_home, @dc_creator=$1,$2
- else @dc_creator=/(?:0~|@)(?:creator|author)-?:?\s+(.+?)$/m.match(para)[1]
- end
- @dc_creator.strip!
- authors=@dc_creator.scan(/[^;]+/)
- authors.each do |a|
- if a =~/"(.+?)"/
- @authors << { :the => $1 }
- else #if a =~/,/
- x=a.scan(/[^,]+/)
- if x.length == 1
- @authors << { :the => x[0].strip }
- elsif x.length == 2
- @authors << { :the => x[0].strip, :others => x[1].strip }
- else #p x.length
- end
- end
- end
- l = @authors.length
- authorship=''
- @authors.each_with_index do |a,i|
- authorship += if a[:others]
- if (l - i) > 1
- "#{a[:others].strip} #{a[:the].strip}, "
- else
- "#{a[:others].strip} #{a[:the].strip}"
- end
- else
- if (l - i) > 2
- "#{a[:the].strip}, "
- else
- "#{a[:the].strip}"
- end
- end
- end
- @authorship=@dc_creator=authorship
- when /^(?:0~(?:translator|translated_by)|@(?:translator|translated_by):)\s+(.+?)$/m #% metainfo
- @translator=$1
- when /^(?:0~(?:illustrator|illustrated_by)|@(?:illustrator|illustrated_by):)\s+(.+?)$/m #% metainfo
- @illustrator=$1
- when /^(?:0~prepared_by|@prepared_by:)\s+(.+?)$/m #% metainfo
- @prepared_by=$1
- when /^(?:0~digitized_by|@digitized_by:)\s+(.+?)$/m #% metainfo DC
- @digitized_by=$1
- when /^(?:0~subject|@subject:)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@(?:creator|author)-?:|0~(?:creator|author)-?)\s+(.+?)$/ #% metainfo DC
+ names=name_format($1)
+ @authorship=@dc_creator=names[:name_str]
+ @authors=names[:name_a_h]
+ when /^(?:@(?:translator|translated_by):|0~(?:translator|translated_by))\s+(.+?)$/m #% metainfo
+ names=name_format($1)
+ @translator=names[:name_str]
+ when /^(?:@(?:illustrator|illustrated_by):|0~(?:illustrator|illustrated_by))\s+(.+?)$/m #% metainfo
+ names=name_format($1)
+ @illustrator=names[:name_str]
+ when /^(?:@prepared_by:|0~prepared_by)\s+(.+?)$/m #% metainfo
+ names=name_format($1)
+ @prepared_by=names[:name_str]
+ when /^(?:@digitized_by:|0~digitized_by)\s+(.+?)$/m #% metainfo DC
+ names=name_format($1)
+ @digitized_by=names[:name_str]
+ when /^(?:@subject:|0~subject)\s+(.+?)$/m #% metainfo DC
@dc_subject=$1
- when /^(?:0~description|@description:)\s+(.+?)$/m #% metainfo DC & rss feed
+ when /^(?:@description:|0~description)\s+(.+?)$/m #% metainfo DC & rss feed
@dc_description=$1
- when /^(?:0~contributor|@contributor:)\s+(.+?)$/m #% metainfo DC
- @dc_contributor=$1
- when /^(?:0~publisher|@publisher:)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@contributor:|0~contributor)\s+(.+?)$/m #% metainfo DC
+ names=name_format($1)
+ @dc_contributor=names[:name_str]
+ when /^(?:@publisher:|0~publisher)\s+(.+?)$/m #% metainfo DC
@dc_publisher=$1
- when /^(?:0~|@)date.+?$/m #% metainfo DC
- if para =~/(?:0~date|@date:)\s+(.+?)$/m
+ when /^(?:@|0~)date.+?$/m #% metainfo DC
+ if para =~/(?:@date:|0~date)\s+(.+?)$/m
@dc_date=$1.strip
if @dc_date !~regx_date \
and not @dc_date.empty?
@@ -349,7 +355,7 @@ module SiSU_Param
end
@date_scheme='scheme="ISO-8601"' if @dc_date =~/\d{4}-\d{2}-\d{2}/
end
- if para =~/(?:0~date\.created|@date\.created:)\s*(.+?)$/m
+ if para =~/(?:@date\.created:|0~date\.created)\s*(.+?)$/m
date=$1.strip
if date !~regx_date \
and not date.empty?
@@ -359,7 +365,7 @@ module SiSU_Param
@dc_date_created=date
@date_created_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
- if para =~/(?:0~date\.issued|@date\.issued:)\s*(.+?)$/m
+ if para =~/(?:@date\.issued:|0~date\.issued)\s*(.+?)$/m
date=$1.strip
if date !~regx_date \
and not date.empty?
@@ -369,7 +375,7 @@ module SiSU_Param
@dc_date_issued=date
@date_issued_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
- if para =~/(?:0~date\.available|@date\.available:)\s*(.+?)$/m
+ if para =~/(?:@date\.available:|0~date\.available)\s*(.+?)$/m
date=$1.strip
if date !~regx_date \
and not date.empty?
@@ -379,7 +385,7 @@ module SiSU_Param
@dc_date_available=date
@date_available_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
- if para =~/^(?:0~date\.valid|@date\.valid:)\s*(.+?)$/m
+ if para =~/^(?:@date\.valid:|0~date\.valid)\s*(.+?)$/m
date=$1.strip
if date !~regx_date \
and not date.empty?
@@ -389,7 +395,7 @@ module SiSU_Param
@dc_date_valid=date
@date_valid_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
- if para =~/^(?:0~date\.modified|@date\.modified:)\s*(.+?)$/m #% of interest rss feed & sitemap
+ if para =~/^(?:@date\.modified:|0~date\.modified)\s*(.+?)$/m #% of interest rss feed & sitemap
date=$1.strip
if date !~regx_date \
and not date.empty?
@@ -399,33 +405,33 @@ module SiSU_Param
@dc_date_modified=date
@date_modified_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
- when /^(?:0~type|@type:)\s+(.+?)$/m; @dc_type=$1 #% metainfo DC
- when /^(?:0~format|@format:)\s+(.+?)$/m; @dc_format=$1 #% metainfo DC
- #when /^(?:0~identifier|@identifier:)\s+(.+?)$/m; @dc_identifier=$1 #% metainfo DC
- when /^(?:0~source|@source:)\s+(.+?)$/m; @dc_source=$1 #% metainfo DC
- when /^(?:0~language(?:\.document)?|@language(?:\.document)?:)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@type:|0~type)\s+(.+?)$/m; @dc_type=$1 #% metainfo DC
+ when /^(?:@format:|0~format)\s+(.+?)$/m; @dc_format=$1 #% metainfo DC
+ #when /^(?:@identifier:|0~identifier)\s+(.+?)$/m; @dc_identifier=$1 #% metainfo DC
+ when /^(?:@source:|0~source)\s+(.+?)$/m; @dc_source=$1 #% metainfo DC
+ when /^(?:@language(?:\.document)?:|0~language(?:\.document)?)\s+(.+?)$/m #% metainfo DC
x=$1.strip
lang=SiSU_Env::Standardise_language.new(x.dup)
@dc_language[:code]=lang.code
@dc_language[:name]=lang.title
- when /^(?:0~language\.original|@language\.original:)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@language\.original:|0~language\.original)\s+(.+?)$/m #% metainfo DC
x=$1.strip
lang=SiSU_Env::Standardise_language.new(x.dup)
@language_original[:name]=lang.title
- when /^(?:0~relation|@relation:)\s+(.+?)$/m; @dc_relation=$1 #% metainfo DC
- when /^(?:0~coverage|@coverage:)\s+(.+?)$/m; @dc_coverage=$1 #% metainfo DC
- when /^(?:0~rights|@rights:)\s+(.+?)$/m; @dc_rights=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC copyright, public domain, copyleft, creative commons, etc.
- when /^(?:0~papersize|@papersize:)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@relation:|0~relation)\s+(.+?)$/m; @dc_relation=$1 #% metainfo DC
+ when /^(?:@coverage:|0~coverage)\s+(.+?)$/m; @dc_coverage=$1 #% metainfo DC
+ when /^(?:@rights:|0~rights)\s+(.+?)$/m; @dc_rights=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC copyright, public domain, copyleft, creative commons, etc.
+ when /^(?:@papersize:|0~papersize)\s+(.+?)$/m #% metainfo DC
l=$1
if @mod.inspect !~/--papersize[=-]\S+/
l=determine_papersize(l.dup)
@papersize=l
end
- when /^(?:0~keywords?|@keywords?:?)\s+(.+?)$/m; @keywords=$1 #% metainfo DC
- when /^(?:0~comments?|@comments?:?)\s+(.+?)$/m; @comments=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
- when /^(?:0~abstract|@abstract)\s+(.+?)$/m; @abstract=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
- when /^(?:0~tags?|@tags?:)\s+\S/m #% metainfo
- tags=para.match(/^(?:0~tags?|@tags?:)\s+(.+)\Z/m)[1]
+ when /^(?:@keywords?:|0~keywords?)\s+(.+?)$/m; @keywords=$1 #% metainfo DC
+ when /^(?:@comments?:|0~comments?)\s+(.+?)$/m; @comments=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
+ when /^(?:@abstract:|0~abstract)\s+(.+?)$/m; @abstract=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
+ when /^(?:@tags?:|0~tags?)\s+\S/m #% metainfo
+ tags=para.match(/^(?:@tags?:|0~tags?)\s+(.+)\Z/m)[1]
tags.split(/,|$/).each do |tag|
tag.strip!
@tags << tag
@@ -434,18 +440,18 @@ module SiSU_Param
tag_a=tag_a.split(/:/).join('][')
@tag_a << tag_a
end
- when /^(?:0~catalogue|@catalogue:)\s+(.+)?$/m #% metainfo
+ when /^(?:@catalogue:|0~catalogue)\s+(.+)?$/m #% metainfo
m=$1
@cls_pg=m.match(/pg=(\S+)/)[1] if m =~/pg=/
@cls_isbn=m.match(/isbn=(\S+)/)[1] if m =~/isbn=/
@cls_dewey=m.match(/dewey=(\S+)/)[1] if m =~/dewey=/
@cls_loc=m.match(/loc=(\S+)/)[1] if m =~/loc=/
- when /^(?:0~class(?:ify)?_loc|@class(?:ify)?_loc:)\s+(.+?)$/m; @cls_loc=$1 #% metainfo
- when /^(?:0~class(?:ify)?_dewey|@class(?:ify)?_dewey:)\s+(.+?)$/m; @cls_dewey=$1 #% metainfo
- when /^(?:0~class(?:ify)?_pg|@class(?:ify)?_pg)\s+(.+?)$/m; @cls_pg=$1 #% metainfo
- when /^(?:0~(?:class(?:ify)?_)?isbn|@(?:class(?:ify)?_)?isbn)\s+(\S+?)$/m; @cls_isbn=$1 #% metainfo
- when /^(?:0~images?|@images?:)\s+(.+?)$/m; @image=$1 #% processing
- when /^(?:0~(?:toc|structure)|@(?:toc|structure):)\s+(.+?)\Z/m #% processing
+ when /^(?:@class(?:ify)?_loc:|0~class(?:ify)?_loc)\s+(.+?)$/m; @cls_loc=$1 #% metainfo
+ when /^(?:@class(?:ify)?_dewey:|0~class(?:ify)?_dewey)\s+(.+?)$/m; @cls_dewey=$1 #% metainfo
+ when /^(?:@class(?:ify)?_pg:|0~class(?:ify)?_pg)\s+(.+?)$/m; @cls_pg=$1 #% metainfo
+ when /^(?:@(?:class(?:ify)?_)?isbn:|0~(?:class(?:ify)?_)?isbn)\s+(\S+?)$/m; @cls_isbn=$1 #% metainfo
+ when /^(?:@images?:|0~images?)\s+(.+?)$/m; @image=$1 #% processing
+ when /^(?:@(?:toc|structure):|0~(?:toc|structure))\s+(.+?)\Z/m #% processing
doc_toc_str=$1
@toc=doc_toc_str.split(/;\s*/)
@toc=[ @toc ] if @toc == String
@@ -462,8 +468,8 @@ module SiSU_Param
@lv5=/^#{lv5}/
lv6=@toc[5] ||='6~ '
@lv6=/^#{lv6}/
- when /^(?:0~(?:level|page|markup)|@(?:level|page|markup):)\s+(.+?)$/m #% processing revisit..., use syntax 0~level new=1,2,3; break=4
- if para =~/(?:0~|@)(?:markup|level|page):?\s+(.+?)\Z/m
+ when /^(?:@(?:level|page|markup):|0~(?:level|page|markup))\s+(.+?)$/m #% processing revisit..., use syntax 0~level new=1,2,3; break=4
+ if para =~/(?:@|0~)(?:markup|level|page):?\s+(.+?)\Z/m
page_break_str=$1
pagebreaks=page_break_str.split(/;\s*/)
#pagebreaks=[ pagebreaks ] if pagebreaks == String
@@ -480,11 +486,11 @@ module SiSU_Param
@toc_lev_limit=toc_lev_limit if toc_lev_limit
@flag_auto_heading_num=true if para =~/num_top/
end
- if para =~/^(?:0~markup|@markup:)\s+(.+?)$/m #%use of markup depreciated for num_top
+ if para =~/^(?:@markup:|0~markup)\s+(.+?)$/m #%use of markup depreciated for num_top
@markup=$1
@flag_auto_heading_num=true if para =~/num_top/
end
- when /^(?:0~bold|@bold:)\s+(.+?)$/m #% processing
+ when /^(?:@bold:|0~bold)\s+(.+?)$/m #% processing
m=$1.strip
x=case m
when /\/i$/; 'i'
@@ -498,7 +504,7 @@ module SiSU_Param
else /#{rgx}/
end
@make_bold
- when /^(?:0~(?:italics?|itali[sz]e)|@(?:italics?|itali[sz]e):)\s+(.+?)$/m #% processing Dublin Core - dublin core within
+ when /^(?:@(?:italics?|itali[sz]e):|0~(?:italics?|itali[sz]e))\s+(.+?)$/m #% processing Dublin Core - dublin core within
m=$1.strip
x=case m
when /\/i$/; 'i'
@@ -512,11 +518,11 @@ module SiSU_Param
else /#{rgx}/
end
@make_italic
- when /^(?:0~(?:vocabulary|wordlist)|@(?:vocabulary|wordlist):)\s+(.+?)$/m #% processing
+ when /^(?:@(?:vocabulary|wordlist):|0~(?:vocabulary|wordlist))\s+(.+?)$/m #% processing
@vocabulary=$1 #not actually used by concordance
- when /^(?:0~skin|@skin:)\s+(.+?)$/; @doc_skin=$1.strip #% processing
- when /^(?:0~(?:css|stylesheet)|@(?:css|stylesheet):)\s+(.+?)$/; @doc_css=$1.strip #% processing
- when /^(?:0~links|@links:)\s+(.+?)\Z/m #% processing
+ when /^(?:@skin:|0~skin)\s+(.+?)$/; @doc_skin=$1.strip #% processing
+ when /^(?:@(?:css|stylesheet):|0~(?:css|stylesheet))\s+(.+?)$/; @doc_css=$1.strip #% processing
+ when /^(?:@links:|0~links)\s+(.+?)\Z/m #% processing
doc_links_str=$1
@lnk=[]
if doc_links_str=~/\{.+?\}(?:(?:https?|file|ftp):\/|\.\.)\/\S+(?:\s|$)/
@@ -540,40 +546,50 @@ module SiSU_Param
end
end
end
- when /^(?:0~prefix(?:_[ab])?|@prefix(?:_[ab])?:)\s/ #% metainfo
+ when /^(?:@prefix(?:_[ab])?:|0~prefix(?:_[ab])?)\s/ #% metainfo
if para =~/prefix_a:?\s+/
- @prefix_a=para[/(?:0~prefix_a|@prefix_a:)\s+(.+?)$/im,1]
+ @prefix_a=para[/(?:@prefix_a:|0~prefix_a)\s+(.+?)$/im,1]
end
if para =~/prefix(?:_b)?:?\s+/
- @prefix_b=para[/(?:0~prefix(?:_b)?|@prefix(?:_b)?:)\s+(.+?)$/im,1]
+ @prefix_b=para[/(?:@prefix(?:_b)?:|0~prefix(?:_b)?)\s+(.+?)$/im,1]
+ end
+ when /^(?:@suffix:|0~suffix)\s+(.+?)$/m; @suffix=$1 #% metainfo
+ when /^(?:@information:|0~information)\s+(.+?)$/m; @information=$1 #% metainfo
+ when /^(?:@topic_register:|0~topic_register)\s+(.+?)$/m; @topic_register=$1 #% metainfo, similar syntax to book index, leave out the ={} i.e. use equivalent of ={(.+?)}
+ u=@topic_register.scan(/[^;]+/)
+ v=[]
+ u.each do |l|
+ v << l.scan(/[^:]+/)
+ end
+ v.each do |m|
+ m[-1]=m[-1].scan(/[^|]+/) if m[-1] =~/[|]/
+ @topic_register_array << m
end
- when /^(?:0~suffix|@suffix:)\s+(.+?)$/m; @suffix=$1 #% metainfo
- when /^(?:0~information|@information:)\s+(.+?)$/m; @information=$1 #% metainfo
- when /^(?:0~topic_register|@topic_register:)\s+(.+?)$/m; @topic_register=$1 #% metainfo, similar syntax to book index, leave out the ={} i.e. use equivalent of ={(.+?)}
- when /^(?:0~contact|@contact:)\s+(.+?)$/m; @contact=$1 #% metainfo
- when /^(?:0~original_publication|@original_publication:)\s+(.+?)$/m; @original_publication=$1 #% details of original publication
- when /^(?:0~icon|@icon:)\s+(.+?)$/m; @icon=$1 #% processing
- when /^(?:0~promo|@promo:)\s+(.+?)$/m
+ @topic_register_array.sort!
+ when /^(?:@contact:|0~contact)\s+(.+?)$/m; @contact=$1 #% metainfo
+ when /^(?:@original_publication:|0~original_publication)\s+(.+?)$/m; @original_publication=$1 #% details of original publication
+ when /^(?:@icon:|0~icon)\s+(.+?)$/m; @icon=$1 #% processing
+ when /^(?:@promo:|0~promo)\s+(.+?)$/m
@flag_promo=true
@promo=$1.split(/[,;]\s*/)
- when /^(?:0~ad|@ad:)\s+(\S+)?\s+(\S+\.png)?\s+(.+?!)\s+(\d+)\s*$/m #% processing
+ when /^(?:@ad:|0~ad)\s+(\S+)?\s+(\S+\.png)?\s+(.+?!)\s+(\d+)\s*$/m #% processing
@ad_url,@ad_png,@ad_alt,@ad_began=$1,$2,$3,$4
when /0~ad\.home\s+(.+)?\s*$/m #% processing
ad_home_str=$1
@ad_home=ad_home_str.split(/\s+!/)
- when /^(?:0~sta?mp(?:ed)?|@sta?mp(?:ed)?:)\s+(.+?)$/m; @stmp= $1.downcase! #% processing
- when /^(?:0~(?:rcs|cvs)|@(?:rcs|cvs):)\+?\s+/ #% processing
- m=/(?:0~(?:rcs|cvs)|@(?:rcs|cvs):)\+?\s+/ #note the + sign to turn on use of rcs or cvs id
+ when /^(?:@sta?mp(?:ed)?:|0~sta?mp(?:ed)?)\s+(.+?)$/m; @stmp= $1.downcase! #% processing
+ when /^(?:@(?:rcs|cvs):|0~(?:rcs|cvs))\+?\s+/ #% processing
+ m=/(?:@(?:rcs|cvs):|0~(?:rcs|cvs))\+?\s+/ #note the + sign to turn on use of rcs or cvs id
ver=para[/#{m}(.+)/,1] #RCS or CVS ID tag # eg. # $Id$
contains=/[\$]Id:\s+(\S+),v\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+Exp\s+(?:\S+\s+)?[\$]/ # reason for [$] which is apparently unnecessary is that rcs or cvs will otherwise expand id!
if contains.match(ver)
filename,vnumber,date,time,operator=contains.match(ver).captures
@sc_filename,@sc_number,@sc_date,@sc_time=filename,vnumber,date,time
end
- @sc_info=true if para[/(?:0~(?:rcs|cvs)|@(?:rcs|cvs):)\+/]
+ @sc_info=true if para[/(?:@(?:rcs|cvs):|0~(?:rcs|cvs))\+/]
when /^@base_program:\s+(.+?)$/; @base_program=$1 #% processing
#% break - break, not necessary to process headers further :-) but necessary to extract endnotes etc. ;-(
- when /^(?:0~man|@man:)\s+(.+?)\Z/m #% man pages
+ when /^(?:@man:|0~man)\s+(.+?)\Z/m #% man pages
maninfo_str=$1
maninfo=maninfo_str.split(/;\s*/m)
maninfo.each do |x|
--
cgit v1.2.3
From 5948a4e5b27e1dace77a039d9e0808a382374f91 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Thu, 11 Dec 2008 21:40:49 -0500
Subject: tex/pdf, bullet mark, workaround current absence from tex-live)
bug in tex-live, no doubt temporary
---
lib/sisu/v0/texpdf.rb | 1 +
lib/sisu/v0/texpdf_format.rb | 9 ++++++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/lib/sisu/v0/texpdf.rb b/lib/sisu/v0/texpdf.rb
index ea1e10e6..e7422baf 100644
--- a/lib/sisu/v0/texpdf.rb
+++ b/lib/sisu/v0/texpdf.rb
@@ -544,6 +544,7 @@ module SiSU_TeX
\\widowpenalty=300
\\makeatother
\\makeatother
+\\chardef\\txtbullet="2022
% \\sloppy
\\begin{document}
WOK
diff --git a/lib/sisu/v0/texpdf_format.rb b/lib/sisu/v0/texpdf_format.rb
index 2c791b18..00249c26 100644
--- a/lib/sisu/v0/texpdf_format.rb
+++ b/lib/sisu/v0/texpdf_format.rb
@@ -1083,7 +1083,8 @@ WOK
string.gsub!(/^(#{Mx[:lv_o]}[1-6-]:\S*?#{Mx[:lv_c]}|<.+?>)?\s*'/,'\1`') # open '
end
string.gsub!(/^(#{Mx[:pa_o]}:i[1-9]#{Mx[:pa_c]})?\s*#{Mx[:gl_bullet]}\s*/,
- '\1 \begin{math} \bullet \end{math}~~') #bullets - added 2004w17 watch \\_
+ '\1 $\txtbullet$~~') #bullets - defined 2008w49 temporary absence of bullet in debian texlive \\_
+ #'\1 \begin{math} \bullet \end{math}~~') #bullets - added 2004w17 watch \\_
string.gsub!(/(|<\/font>)/,'')
string.gsub!(/\s*#{Mx[:fa_superscript_o]}(\S+?)#{Mx[:fa_superscript_c]}/,'^\1')
#string.gsub!(/\s*(?:#{Mx[:br_line]}|#{Mx[:br_paragraph]}|\n)\*/,' \\\\ ')
@@ -1256,8 +1257,10 @@ WOK
string.gsub!(/\s+'/,' `') # open '
string.gsub!(/^(#{Mx[:lv_o]}[1-6-]:\S*?#{Mx[:lv_c]}|<.+?>)?\s*'/,'\1`') # open '
end
- string.gsub!(/^\s*#{Mx[:gl_bullet]}\s*/,'\begin{math} \bullet \end{math}~~')
- string.gsub!(/^(#{Mx[:pa_o]}:i[1-9]#{Mx[:pa_c]})?\s*#{Mx[:gl_bullet]}\s*/,'\1 \begin{math} \bullet \end{math}~~')
+ string.gsub!(/^\s*#{Mx[:gl_bullet]}\s*/,'$\txtbullet$~~')
+ string.gsub!(/^(#{Mx[:pa_o]}:i[1-9]#{Mx[:pa_c]})?\s*#{Mx[:gl_bullet]}\s*/,'\1 $\txtbullet$~~')
+ #string.gsub!(/^\s*#{Mx[:gl_bullet]}\s*/,'\begin{math} \bullet \end{math}~~')
+ #string.gsub!(/^(#{Mx[:pa_o]}:i[1-9]#{Mx[:pa_c]})?\s*#{Mx[:gl_bullet]}\s*/,'\1 \begin{math} \bullet \end{math}~~')
#string.gsub!(/^\s*#{Mx[:gl_bullet]}\s*/,'● ~~')
#string.gsub!(/^(#{Mx[:pa_o]}:i[1-9]#{Mx[:pa_c]})?\s*#{Mx[:gl_bullet]}\s*/,'\1 ● ~~')
##string.gsub!(/^(#{Mx[:pa_o]}:i[1-9]#{Mx[:pa_c]})?\s*\\_\*\s*/,'\1 ● ~~')
--
cgit v1.2.3
From 6149eecbced3c564088bab622a9491deb4f65646 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Thu, 11 Dec 2008 21:48:30 -0500
Subject: html tables, fix to structure and for (specified) column widths
---
lib/sisu/v0/html_scroll.rb | 39 +++++++++++++++++++++------------------
lib/sisu/v0/html_table.rb | 24 ++++++++++++------------
2 files changed, 33 insertions(+), 30 deletions(-)
diff --git a/lib/sisu/v0/html_scroll.rb b/lib/sisu/v0/html_scroll.rb
index fb04f2f9..2f8bc1dd 100644
--- a/lib/sisu/v0/html_scroll.rb
+++ b/lib/sisu/v0/html_scroll.rb
@@ -112,33 +112,36 @@ module SiSU_HTML_scroll
txt_obj={:txt =>@sto.text}
format_txt_obj=SiSU_HTML_Format::Format_text_object.new(@md,txt_obj)
end
- case @sto.format
- when /^1:\S*?/; para=@sto.scroll_lev_para_ocn.heading_body1
- when /^2:\S*?/; para=@sto.scroll_lev_para_ocn.heading_body2
- when /^3:\S*?/; para=@sto.scroll_lev_para_ocn.heading_body3
- when /^4:\S+?/; para=@sto.scroll_lev_para_ocn.heading_body4 # work on see Split_text_object4
- when /^5:\S*?/; para=@sto.scroll_lev_para_ocn.heading_body5
- when /^6:\S*?/; para=@sto.scroll_lev_para_ocn.heading_body6
- when /^#{Mx[:gl_bullet]}/; para=@sto.scroll_lev_para_ocn.bullet
+ para=case @sto.format
+ when /^1:\S*?/; @sto.scroll_lev_para_ocn.heading_body1
+ when /^2:\S*?/; @sto.scroll_lev_para_ocn.heading_body2
+ when /^3:\S*?/; @sto.scroll_lev_para_ocn.heading_body3
+ when /^4:\S+?/; @sto.scroll_lev_para_ocn.heading_body4 # work on see Split_text_object4
+ when /^5:\S*?/; @sto.scroll_lev_para_ocn.heading_body5
+ when /^6:\S*?/; @sto.scroll_lev_para_ocn.heading_body6
+ when /^#{Mx[:gl_bullet]}/; @sto.scroll_lev_para_ocn.bullet
when /^#{Mx[:pa_o]}:i([1-9])#{Mx[:pa_c]}#{Mx[:gl_bullet]}/ #indent with bullet
format_txt_obj.gsub_body
- para=@sto.scroll_lev_para_ocn.format('li',"i#{$1}")
+ @sto.scroll_lev_para_ocn.format('li',"i#{$1}")
when /^i([1-9])$/ #indent
format_txt_obj.gsub_body
- para=@sto.scroll_lev_para_ocn.format('p',"i#{$1}")
- when /^center$/; para=@sto.scroll_lev_para_ocn.center
- when /^(?:b|bold)$/; para=@sto.scroll_lev_para_ocn.bold
- when /^(?:verse|group|alt)$/; para=@sto.scroll_lev_para_ocn.para
- when /^code$/; para=@sto.scroll_lev_para_ocn.code
+ @sto.scroll_lev_para_ocn.format('p',"i#{$1}")
+ when /^center$/; @sto.scroll_lev_para_ocn.center
+ when /^(?:b|bold)$/; @sto.scroll_lev_para_ocn.bold
+ when /^(?:verse|group|alt)$/; @sto.scroll_lev_para_ocn.para
+ when /^code$/; @sto.scroll_lev_para_ocn.code
when /ordinary/ # see whether u can improve
- if para !~/#{@vz.margin_txt_0}|#{@vz.margin_txt_1}|#{@vz.margin_txt_2}/
+ para=if para !~/#{@vz.margin_txt_0}|#{@vz.margin_txt_1}|#{@vz.margin_txt_2}/
format_txt_obj.gsub_body
- para=@sto.scroll_lev_para_ocn.para
- if para =~/#{Mx[:gr_o]}Th?.+/ # tables come as single block
+ para=if para =~/#{Mx[:gr_o]}Th?.+/ # tables come as single block
+ #@sto=nil
table=SiSU_HTML_shared::Table.new(para)
- para=table.table_split
+ table.table_split
+ else @sto.scroll_lev_para_ocn.para
end
+ else para
end
+ else para
end
elsif para =~/^#{Mx[:lv_o]}[1-9]:/ \
and para !~/#{Mx[:id_o]}~\d+;(?:[oh]|[0-6]:)\d+;\w\d+#{Mx[:id_c]}#{Mx[:id_c]}#@dp:#@dp#{Mx[:id_c]}$/
diff --git a/lib/sisu/v0/html_table.rb b/lib/sisu/v0/html_table.rb
index 7f28ed93..067a7dd9 100644
--- a/lib/sisu/v0/html_table.rb
+++ b/lib/sisu/v0/html_table.rb
@@ -109,16 +109,16 @@ module SiSU_HTML_table
tablefoot=[]
@@tablefoot.each {|x| tablefoot << ''}
@@tablefoot=[]
- if @parablock =~/#{Mx[:gr_o]}TZ#{Mx[:gr_c]}/; @parablock="
\n" #table_end
+ if @parablock =~/#{Mx[:gr_o]}TZ#{Mx[:gr_c]}/; @parablock="\n" #table_end
end
end
if @@tablehead == 1
if @parablock =~/#{Mx[:tc_p]}#{Mx[:tc_p]}/u
- if @parablock =~/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u
- @parablock.gsub!(/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u,table_row($1,true))
+ while @parablock =~/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u
+ @parablock.sub!(/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u,table_row($1,true))
end
- if @parablock =~/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u
- @parablock.gsub!(/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u,table_cell($1,true))
+ while @parablock =~/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u
+ @parablock.sub!(/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u,table_cell($1,true))
end
if @parablock =~/#{Mx[:tc_c]}/
@parablock.gsub!(/#{Mx[:tc_c]}/,table_row_close(true))
@@ -127,11 +127,11 @@ module SiSU_HTML_table
end
@parablock
else
- if @parablock =~/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u
- @parablock.gsub!(/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u,table_row($1))
+ while @parablock =~/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u
+ @parablock.sub!(/#{Mx[:tc_o]}#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u,table_row($1))
end
- if @parablock =~/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u
- @parablock.gsub!(/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+?)#{Mx[:tc_p]}/u,table_cell($1))
+ while @parablock =~/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u
+ @parablock.sub!(/#{Mx[:tc_p]}#{Mx[:tc_p]}(\d+)#{Mx[:tc_p]}/u,table_cell($1))
end
if @parablock =~/#{Mx[:tc_c]}/
@parablock.gsub!(/#{Mx[:tc_c]}/,table_row_close)
@@ -141,12 +141,12 @@ module SiSU_HTML_table
@parablock
end
def table_split
- @new_content=[]
+ content=[]
@one.split(/\n/).each do |parablock|
table=Table.new("#{parablock}\n")
- @new_content << table.table
+ content << table.table
end
- @new_content.join
+ content.join
end
end
end
--
cgit v1.2.3
From a2d74ab58cdfcb81f49c4a91a28b44ef092164ce Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Thu, 11 Dec 2008 21:50:29 -0500
Subject: sysenv, cosmetic touch
---
lib/sisu/v0/sysenv.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb
index 57695904..ded14951 100644
--- a/lib/sisu/v0/sysenv.rb
+++ b/lib/sisu/v0/sysenv.rb
@@ -1362,7 +1362,7 @@ WOK
def output #web/webserv output directory... subdirectory into which further subdirectories are made based on file names
"#{path.webserv}/#@stub_pwd"
end
- def output_src #web/webserv output directory... subdirectory into which further subdirectories are made based on file names
+ def output_src
"#{path.output}/src"
end
def output_md_harvest
--
cgit v1.2.3
From 4a660c929a7871767966749e2a93035b2eb0d3f7 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Thu, 11 Dec 2008 21:53:41 -0500
Subject: help and changelog update
---
CHANGELOG | 31 +++++++++++++
data/doc/sisu/html/sisu.1.html | 37 ++++++++-------
.../sisu_manual/sisu_markup.sst | 2 +-
lib/sisu/v0/help.rb | 4 +-
man/man1/sisu.1 | 53 +++++++++++++++++-----
5 files changed, 98 insertions(+), 29 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index 8932621d..e8978f2f 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,6 +9,37 @@ Reverse Chronological:
%% STABLE MANIFEST
+%% sisu_0.70.1.orig.tar.gz (2008-12-11:49/4)
+http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.1.orig.tar.gz
+ sisu_0.70.1.orig.tar.gz
+ sisu_0.70.1-1.dsc
+ sisu_0.70.1-1.diff.gz
+
+ * harvest
+ * improved integration with sisu
+ * close output files before remote posting
+ * ensure html output is read by browser as utf-8
+ [integration not quite complete as not added to sql, reason, each addition
+ of a field requires users recreating database, and there are other metadata
+ header additions under consideration, though unavoidable reduce the number
+ by grouping]
+
+ * manifest
+ * show topic register metadata for each document
+
+ * css main html modified
+ * left margin changed, affects html generally
+ * table th and td elements text top aligned
+ * additions for manifest display of topic_register
+ sisu -CC
+
+ * html tables
+ * html structure, fix
+ * column width, fix
+
+ * latex/pdf bullet mark (bug in texlive, missing (at this instant) provide
+ workaround)
+
%% sisu_0.70.0.orig.tar.gz (2008-12-03:48/3)
http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.0.orig.tar.gz
51e4d5c2ac3c490332d8468de2400abcf454b55ac1e21ec625680a346fb41e4a 1540091 sisu_0.70.0.orig.tar.gz
diff --git a/data/doc/sisu/html/sisu.1.html b/data/doc/sisu/html/sisu.1.html
index 1848611b..c17fecc6 100644
--- a/data/doc/sisu/html/sisu.1.html
+++ b/data/doc/sisu/html/sisu.1.html
@@ -723,13 +723,13 @@ up files are available as html with syntax highlighting for viewing: </usr/share/doc/sisu/sisu_markup_samples/non-free
}
end
end
end
diff --git a/lib/sisu/v0/param.rb b/lib/sisu/v0/param.rb
index 0d2095dd..ec80e0dd 100644
--- a/lib/sisu/v0/param.rb
+++ b/lib/sisu/v0/param.rb
@@ -118,9 +118,9 @@ 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,:authors,:authorship,: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,:papersize_array,: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,:book_idx,:topic_register,:topic_register_array,:original_publication_details
+ 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,:author_title,:author_nationality,:authors,:authorship,: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_translated,:date_added_to_site,: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,:papersize_array,: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,:book_idx,:topic_register,:topic_register_array,:original_publication,:original_publication_date,:original_publication_nationality,:original_publication_institution,:writing_focus
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=@topic_register=@original_publication_details=nil
+ @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=@author_title=@author_nationality=@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_translated=@date_added_to_site=@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=@topic_register=@original_publication_details=@original_publication=@original_publication_date=@original_publication_nationality=@original_publication_institution=@writing_focus=nil
@man_section=1
@man_name='man page "name/whatis" information not provided, set in header @man: name=[whatis information]'
@data,@fns,@cmd,@mod,@opt=fns_array,opt.fns,opt.cmd,opt.mod,opt #@data used as data
@@ -324,6 +324,8 @@ module SiSU_Param
names=name_format($1)
@authorship=@dc_creator=names[:name_str]
@authors=names[:name_a_h]
+ when /^@(?:creator|author)\.title:\s+(.+?)$/; @author_title=$1 # Prof. Dr. etc.
+ when /^@(?:creator|author)\.nationality:\s+(.+?)$/; @author_nationality=$1
when /^(?:@(?:translator|translated_by):|0~(?:translator|translated_by))\s+(.+?)$/m #% metainfo
names=name_format($1)
@translator=names[:name_str]
@@ -336,18 +338,20 @@ module SiSU_Param
when /^(?:@digitized_by:|0~digitized_by)\s+(.+?)$/m #% metainfo DC
names=name_format($1)
@digitized_by=names[:name_str]
- when /^(?:@subject:|0~subject)\s+(.+?)$/m #% metainfo DC
- @dc_subject=$1
- when /^(?:@description:|0~description)\s+(.+?)$/m #% metainfo DC & rss feed
- @dc_description=$1
+ when /^(?:@subject:|0~subject)\s+(.+?)$/m; @dc_subject=$1 #% metainfo DC
+ when /^(?:@description:|0~description)\s+(.+?)$/m; @dc_description=$1 #% metainfo DC & rss feed
when /^(?:@contributor:|0~contributor)\s+(.+?)$/m #% metainfo DC
names=name_format($1)
@dc_contributor=names[:name_str]
- when /^(?:@publisher:|0~publisher)\s+(.+?)$/m #% metainfo DC
- @dc_publisher=$1
+ when /^(?:@publisher:|0~publisher)\s+(.+?)$/m; @dc_publisher=$1 #% metainfo DC
+ when /^@original_publication:\s+(.+?)$/m; @original_publication=$1
+ when /^@original_publication\.date:\s+(.+?)$/; @original_publication_date=$1
+ when /^@original_publication\.nationality:\s+(.+?)$/; @original_publication_nationality=$1
+ when /^@original_publication\.institution:\s+(.+?)$/; @original_publication_institution=$1
+ when /^@writing_focus\.nationality:\s+(.+?)$/; @writing_focus=$1 # e.g. Finland (where and article on Finnish law)
when /^(?:@|0~)date.+?$/m #% metainfo DC
if para =~/(?:@date:|0~date)\s+(.+?)$/m
- @dc_date=$1.strip
+ @dc_date=$1.strip #% original publication date unless the substantive text is updated/modified, then date of update
if @dc_date !~regx_date \
and not @dc_date.empty?
tell=SiSU_Screen::Ansi.new(@cmd,'Date Format should be','YYYY-MM-DD','please correct document','Date','field, current value:',@dc_date)
@@ -355,6 +359,15 @@ module SiSU_Param
end
@date_scheme='scheme="ISO-8601"' if @dc_date =~/\d{4}-\d{2}-\d{2}/
end
+ if para =~/(?:@date\.added_to_site:|0~date\.added_to_site)\s+(.+?)$/m
+ @date_added_to_site=$1.strip
+ if @date_added_to_site !~regx_date \
+ and not @date_added_to_site.empty?
+ tell=SiSU_Screen::Ansi.new(@cmd,'Date Format should be','YYYY-MM-DD','please correct document','Date','field, current value:',@date_added_to_site)
+ tell.instruct if @cmd =~/v/
+ end
+ @date_scheme='scheme="ISO-8601"' if @date_added_to_site =~/\d{4}-\d{2}-\d{2}/
+ end
if para =~/(?:@date\.created:|0~date\.created)\s*(.+?)$/m
date=$1.strip
if date !~regx_date \
@@ -405,6 +418,16 @@ module SiSU_Param
@dc_date_modified=date
@date_modified_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
+ if para =~/^(?:@date\.translated:|0~date\.translated)\s*(.+?)$/m
+ date=$1.strip
+ if date !~regx_date \
+ and not date.empty?
+ tell=SiSU_Screen::Ansi.new(@cmd,'Date Format should be','YYYY-MM-DD','please correct document','Date','field, current value:',date)
+ tell.instruct if @cmd =~/v/
+ end
+ @date_translated=date
+ @date_translated_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
+ end
when /^(?:@type:|0~type)\s+(.+?)$/m; @dc_type=$1 #% metainfo DC
when /^(?:@format:|0~format)\s+(.+?)$/m; @dc_format=$1 #% metainfo DC
#when /^(?:@identifier:|0~identifier)\s+(.+?)$/m; @dc_identifier=$1 #% metainfo DC
diff --git a/man/man1/sisu.1 b/man/man1/sisu.1
index a65a3f3e..66b9d47a 100644
--- a/man/man1/sisu.1
+++ b/man/man1/sisu.1
@@ -888,7 +888,7 @@ This current document has a header similar to this one (without the comments):
.BR
@creator: Amissah, Ralph
.BR
- % note formatting on author / creator field, surname comma then other names, if more than one author separate by semi\-colon
+ % note formatting rules on author / creator field, \"Surname, Other names\", if more than one author separate by semi\-colon (if name is of an institution just write name or the name contains a comma enclose in quotation marks)
.BR
@rights: Copyright (C) Ralph Amissah 2007, part of SiSU documentation, License GPL 3
.BR
@@ -899,6 +899,10 @@ This current document has a header similar to this one (without the comments):
@topic_register: text markup language; application:text processing;output:html|xml|latex|pdf|sql
.BR
% note formatting for topic_register topic levels are separated by a colon, a semi\-colon separates main topics
+.BR
+ @date: 2007\-09\-16
+.BR
+ % original publication date unless the substantive text is updated/modified, then date of update
.BR
@date.created: 2002\-08\-28
.BR
@@ -907,8 +911,6 @@ This current document has a header similar to this one (without the comments):
@date.available: 2002\-08\-28
.BR
@date.modified: 2007\-09\-16
-.BR
- @date: 2007\-09\-16
.BR
@level: new=C; break=1; num_top=1
.BR
--
cgit v1.2.3
From fb1e1bf0cb8a2202eda1ab254b01b997df60a6db Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Sat, 13 Dec 2008 14:23:56 -0500
Subject: metadata, variable renaming (requires testing)
metadata, variable renaming (dropped use of dc_ to signify dublin core metadata
as is subset of what is used and cumbersome to identify) - testing required
manpage minor touch
---
lib/sisu/v0/concordance.rb | 7 +-
lib/sisu/v0/dal_metadata.rb | 42 ++--
lib/sisu/v0/dal_syntax.rb | 6 +-
lib/sisu/v0/db_import.rb | 40 ++--
lib/sisu/v0/digests.rb | 14 +-
lib/sisu/v0/html.rb | 10 +-
lib/sisu/v0/html_format.rb | 2 +-
lib/sisu/v0/html_segments.rb | 10 +-
lib/sisu/v0/i18n.rb | 472 ++++++++++++++++++++-------------------
lib/sisu/v0/manifest.rb | 88 ++++----
lib/sisu/v0/manpage.rb | 2 +-
lib/sisu/v0/param.rb | 88 ++++----
lib/sisu/v0/shared_txt.rb | 2 +-
lib/sisu/v0/shared_xml.rb | 184 +++++++--------
lib/sisu/v0/sitemaps.rb | 10 +-
lib/sisu/v0/texinfo_format.rb | 120 +++++-----
lib/sisu/v0/texpdf.rb | 22 +-
lib/sisu/v0/texpdf_format.rb | 6 +-
lib/sisu/v0/xml_fictionbook.rb | 8 +-
lib/sisu/v0/xml_format.rb | 168 +++++++-------
lib/sisu/v0/xml_md_oai_pmh_dc.rb | 86 +++----
21 files changed, 696 insertions(+), 691 deletions(-)
diff --git a/lib/sisu/v0/concordance.rb b/lib/sisu/v0/concordance.rb
index 87b86930..aea5e556 100644
--- a/lib/sisu/v0/concordance.rb
+++ b/lib/sisu/v0/concordance.rb
@@ -111,11 +111,10 @@ module SiSU_Concordance
@vz=SiSU_Env::Get_init.instance.skin
txt_path=%{#{@md.dir_out}}
SiSU_Env::Info_skin.new(@md).select
- @md_title=@md.title
@fnb=@md.fnb
@lex_button=%{}
@doc_details =<
"
else ''
end
head=<***
***
- #{@md.dc_title}
+ #{@md.full_title}
- yyyy
+ yyyy
diff --git a/lib/sisu/v0/xml_format.rb b/lib/sisu/v0/xml_format.rb
index b90200ea..3fe703d7 100644
--- a/lib/sisu/v0/xml_format.rb
+++ b/lib/sisu/v0/xml_format.rb
@@ -84,101 +84,101 @@ module SiSU_XML_format
end
class Head_information
def initialize #dc rdf
- @dc_title=@dc_subtitle=@dc_creator=@dc_subject=@dc_description=@dc_publisher=@dc_contributor=@dc_date=@dc_type=@dc_format=@dc_identifier=@dc_source=@dc_language=@dc_relation=@dc_coverage=@dc_rights=@copyright=@owner=@keywords=''
+ @full_title=@subtitle=@author=@subject=@description=@publisher=@contributor=@date=@type=@format=@identifier=@source=@language=@relation=@coverage=@rights=@copyright=@owner=@keywords=''
@sfx,@pdf,@md=@@md.sfx,@@md.pdf,@@md
# DublinCore 1 - title
@rdfurl=%{ rdf:about="http://www.jus.uio.no/lm/toc"\n}
- if @md.dc_title
- @dc_title=%{\n}
+ if @md.full_title
+ @full_title=%{\n}
#if @md.subtitle
# #@rdf_title=%{ dc.title="#{seg_name}#{@md.title} - #{@md.subtitle}"\n}
- # @dc_title=%{\n}
+ # @full_title=%{\n}
#else
# #@rdf_title=%{ dc.title="#{seg_name}#{@md.title}"\n}
- # @dc_title=%{\n}
+ # @full_title=%{\n}
#end
end
- if @md.dc_creator # DublinCore 2 - creator/author (author)
- @rdf_creator=%{ dc.creator="#{@md.dc_creator}"\n}
- @dc_creator=%{\n}
+ if @md.author # DublinCore 2 - author/creator (author)
+ @rdf_author=%{ dc.author="#{@md.author}"\n}
+ @author=%{\n}
end
- if @md.dc_subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???)
- @rdf_subject=%{ dc.subject="#{@md.dc_subject}"\n}
- @dc_subject=%{\n}
+ if @md.subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???)
+ @rdf_subject=%{ dc.subject="#{@md.subject}"\n}
+ @subject=%{\n}
end
- if @md.dc_description # DublinCore 4 - description
+ if @md.description # DublinCore 4 - description
@rdf_description=%{ dc.description="#{@md.description}"\n}
- @dc_description=%{\n}
+ @description=%{\n}
end
- if @md.dc_publisher # DublinCore 5 - publisher (current copy published by)
- @rdf_publisher=%{ dc.publisher="#{@md.dc_publisher}"\n}
- @dc_publisher=%{\n}
+ if @md.publisher # DublinCore 5 - publisher (current copy published by)
+ @rdf_publisher=%{ dc.publisher="#{@md.publisher}"\n}
+ @publisher=%{\n}
end
- if @md.dc_contributor # DublinCore 6 - contributor
- @rdf_contributor=%{ dc.contributor="#{@md.dc_contributor}"\n}
- @dc_contributor=%{\n}
+ if @md.contributor # DublinCore 6 - contributor
+ @rdf_contributor=%{ dc.contributor="#{@md.contributor}"\n}
+ @contributor=%{\n}
end
- if @md.dc_date # DublinCore 7 - date year-mm-dd
- @rdf_date=%{ dc.date="#{@md.dc_date}"\n}
- @dc_date=%{\n}
+ if @md.date # DublinCore 7 - date year-mm-dd
+ @rdf_date=%{ dc.date="#{@md.date}"\n}
+ @date=%{\n}
end
- if @md.dc_date_created # DublinCore 7 - date.created year-mm-dd
- @rdf_date_created=%{ dc.date.created="#{@md.dc_date_created}"\n}
- @dc_date_created=%{\n}
+ if @md.date_created # DublinCore 7 - date.created year-mm-dd
+ @rdf_date_created=%{ dc.date.created="#{@md.date_created}"\n}
+ @date_created=%{\n}
end
- if @md.dc_date_issued # DublinCore 7 - date.issued year-mm-dd
- @rdf_date_issued=%{ dc.date.issued="#{@md.dc_date_issued}"\n}
- @dc_date_issued=%{\n}
+ if @md.date_issued # DublinCore 7 - date.issued year-mm-dd
+ @rdf_date_issued=%{ dc.date.issued="#{@md.date_issued}"\n}
+ @date_issued=%{\n}
end
- if @md.dc_date_available # DublinCore 7 - date.available year-mm-dd
- @rdf_date_available=%{ dc.date.available="#{@md.dc_date_available}"\n}
- @dc_date_available=%{\n}
+ if @md.date_available # DublinCore 7 - date.available year-mm-dd
+ @rdf_date_available=%{ dc.date.available="#{@md.date_available}"\n}
+ @date_available=%{\n}
end
- if @md.dc_date_valid # DublinCore 7 - date.valid year-mm-dd
- @rdf_date_valid=%{ dc.date.valid="#{@md.dc_date_valid}"\n}
- @dc_date_valid=%{\n}
+ if @md.date_valid # DublinCore 7 - date.valid year-mm-dd
+ @rdf_date_valid=%{ dc.date.valid="#{@md.date_valid}"\n}
+ @date_valid=%{\n}
end
- if @md.dc_date_modified # DublinCore 7 - date.modified year-mm-dd
- @rdf_date_modified=%{ dc.date.modified="#{@md.dc_date_modified}"\n}
- @dc_date_modified=%{\n}
+ if @md.date_modified # DublinCore 7 - date.modified year-mm-dd
+ @rdf_date_modified=%{ dc.date.modified="#{@md.date_modified}"\n}
+ @date_modified=%{\n}
end
- if @md.dc_type # DublinCore 8 - type (genre eg. report, convention etc)
- @rdf_type=%{ dc.type="#{@md.dc_type}"\n}
- @dc_type=%{\n}
+ if @md.type # DublinCore 8 - type (genre eg. report, convention etc)
+ @rdf_type=%{ dc.type="#{@md.type}"\n}
+ @type=%{\n}
end
- if @md.dc_format # DublinCore 9 - format (use your mime type)
- @rdf_format=%{ dc.format="#{@md.dc_format}"\n}
- @dc_format=%{\n}
+ if @md.format # DublinCore 9 - format (use your mime type)
+ @rdf_format=%{ dc.format="#{@md.format}"\n}
+ @format=%{\n}
end
- if @md.dc_identifier # DublinCore 10 - identifier (your identifier, could use urn which is free)
- @rdf_identifier=%{ dc.identifier="#{@md.dc_identifier}"\n}
- @dc_identifier=%{\n}
+ if @md.identifier # DublinCore 10 - identifier (your identifier, could use urn which is free)
+ @rdf_identifier=%{ dc.identifier="#{@md.identifier}"\n}
+ @identifier=%{\n}
end
- if @md.dc_source # DublinCore 11 - source (document source)
- @rdf_source=%{ dc.source="#{@md.dc_source}"\n}
- @dc_source=%{\n}
+ if @md.source # DublinCore 11 - source (document source)
+ @rdf_source=%{ dc.source="#{@md.source}"\n}
+ @source=%{\n}
end
- if @md.dc_language[:name] # DublinCore 12 - language (English)
- @rdf_language=%{ dc.language="#{@md.dc_language[:name]}"\n}
- @dc_language=%{\n}
+ if @md.language[:name] # DublinCore 12 - language (English)
+ @rdf_language=%{ dc.language="#{@md.language[:name]}"\n}
+ @language=%{\n}
end
if @md.language_original[:name] # DublinCore 12 - language (English)
@rdf_language_original=%{ dc.language="#{@md.language_original[:name]}"\n}
@language_original=%{\n}
end
- if @md.dc_relation # DublinCore 13 - relation
- @rdf_relation=%{ dc.relation="#{@md.dc_relation}"\n}
- @dc_relation=%{\n}
+ if @md.relation # DublinCore 13 - relation
+ @rdf_relation=%{ dc.relation="#{@md.relation}"\n}
+ @relation=%{\n}
end
- if @md.dc_coverage # DublinCore 14 - coverage
- @rdf_coverage=%{ dc.coverage="#{@md.dc_coverage}"\n}
- @dc_coverage=%{\n}
+ if @md.coverage # DublinCore 14 - coverage
+ @rdf_coverage=%{ dc.coverage="#{@md.coverage}"\n}
+ @coverage=%{\n}
end
- if @md.dc_rights # DublinCore 15 - rights
- @rdf_rights=%{ dc.rights="#{@md.dc_rights}"\n}
- @dc_rights=%{\n}
+ if @md.rights # DublinCore 15 - rights
+ @rdf_rights=%{ dc.rights="#{@md.rights}"\n}
+ @rights=%{\n}
end
- @copyright=%{\n} if @md.rights # possibly redundant see dc.rights
+ @copyright=%{\n} if @md.rights # possibly redundant see dc.rights
@owner=%{\n} if @md.owner
@keywords=%{\n} if @md.keywords
@vz=SiSU_Env::Get_init.instance.skin #margin,paragraph,table,banner,url,png,txt,color,font,nav_txt,nav_png,credits,js,php
@@ -206,7 +206,7 @@ module SiSU_XML_format
#
#
-#@dc_title
-#@dc_creator
-#@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
-#@dc_type
-#@dc_format
-#@dc_identifier
-#@dc_source
-#@dc_language
-#@dc_relation
-#@dc_coverage
-#@dc_rights
+#@full_title
+#@author
+#@subject
+#@description
+#@publisher
+#@contributor
+#@date
+#@date_created
+#@date_issued
+#@date_available
+#@date_valid
+#@date_modified
+#@type
+#@format
+#@identifier
+#@source
+#@language
+#@relation
+#@coverage
+#@rights
#@copyright
#@owner
#{@png.ico}
diff --git a/lib/sisu/v0/xml_md_oai_pmh_dc.rb b/lib/sisu/v0/xml_md_oai_pmh_dc.rb
index 7c89ee07..527c6c78 100644
--- a/lib/sisu/v0/xml_md_oai_pmh_dc.rb
+++ b/lib/sisu/v0/xml_md_oai_pmh_dc.rb
@@ -82,80 +82,80 @@ module SiSU_XML_metadata
WOK
end
def body
- if @md.dc_title # DublinCore 1 - title
- @oai_pmh << %{ #{@md.dc_title}\n}
- #@oai_pmh << %{ #{seg_name}#{@md.dc_title}\n}
+ if @md.full_title # DublinCore 1 - title
+ @oai_pmh << %{ #{@md.full_title}\n}
+ #@oai_pmh << %{ #{seg_name}#{@md.title}\n}
end
- if @md.dc_creator # DublinCore 2 - creator/author (author)
- txt=meta_content_clean(@md.dc_creator)
- @oai_pmh << %{ #{txt}\n}
+ if @md.author # DublinCore 2 - author/creator (author)
+ txt=meta_content_clean(@md.author)
+ @oai_pmh << %{ #{txt}\n}
end
- if @md.dc_subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???)
- txt=meta_content_clean(@md.dc_subject)
+ if @md.subject # DublinCore 3 - subject (us library of congress, eric or udc, or schema???)
+ txt=meta_content_clean(@md.subject)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_description # DublinCore 4 - description
- txt=meta_content_clean(@md.dc_description)
+ if @md.description # DublinCore 4 - description
+ txt=meta_content_clean(@md.description)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_publisher # DublinCore 5 - publisher (current copy published by)
- txt=meta_content_clean(@md.dc_publisher)
+ if @md.publisher # DublinCore 5 - publisher (current copy published by)
+ txt=meta_content_clean(@md.publisher)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_contributor # DublinCore 6 - contributor
- txt=meta_content_clean(@md.dc_contributor)
+ if @md.contributor # DublinCore 6 - contributor
+ txt=meta_content_clean(@md.contributor)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_date # DublinCore 7 - date year-mm-dd
- @oai_pmh << %{ #{@md.dc_date}\n}
+ if @md.date # DublinCore 7 - date year-mm-dd
+ @oai_pmh << %{ #{@md.date}\n}
end
- if @md.dc_date_created # DublinCore 7 - date.created
- @oai_pmh << %{ #{@md.dc_date_created}\n}
+ if @md.date_created # DublinCore 7 - date.created
+ @oai_pmh << %{ #{@md.date_created}\n}
end
- if @md.dc_date_issued # DublinCore 7 - date.issued
- @oai_pmh << %{ #{@md.dc_date_issued}\n}
+ if @md.date_issued # DublinCore 7 - date.issued
+ @oai_pmh << %{ #{@md.date_issued}\n}
end
- if @md.dc_date_available # DublinCore 7 - date.available
- @oai_pmh << %{ #{@md.dc_date_available}\n}
+ if @md.date_available # DublinCore 7 - date.available
+ @oai_pmh << %{ #{@md.date_available}\n}
end
- if @md.dc_date_valid # DublinCore 7 - date.valid
- @oai_pmh << %{ #{@md.dc_date_valid}\n}
+ if @md.date_valid # DublinCore 7 - date.valid
+ @oai_pmh << %{ #{@md.date_valid}\n}
end
- if @md.dc_date_modified # DublinCore 7 - date.modified
- @oai_pmh << %{ #{@md.dc_date_modified}\n}
+ if @md.date_modified # DublinCore 7 - date.modified
+ @oai_pmh << %{ #{@md.date_modified}\n}
end
- if @md.dc_type # DublinCore 8 - type
- txt=meta_content_clean(@md.dc_type)
+ if @md.type # DublinCore 8 - type
+ txt=meta_content_clean(@md.type)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_format # DublinCore 9 - format
- txt=meta_content_clean(@md.dc_format)
+ if @md.format # DublinCore 9 - format
+ txt=meta_content_clean(@md.format)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_identifier # DublinCore 10 - identifier
- txt=meta_content_clean(@md.dc_identifier)
+ if @md.identifier # DublinCore 10 - identifier
+ txt=meta_content_clean(@md.identifier)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_source # DublinCore 11 - source
- txt=meta_content_clean(@md.dc_source)
+ if @md.source # DublinCore 11 - source
+ txt=meta_content_clean(@md.source)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_language[:name] # DublinCore 12 - language (English)
- @oai_pmh << %{ #{@md.dc_language[:name]}\n}
+ if @md.language[:name] # DublinCore 12 - language (English)
+ @oai_pmh << %{ #{@md.language[:name]}\n}
end
if @md.language_original[:name]
@oai_pmh << %{ #{@md.language_original[:name]}\n}
end
- if @md.dc_relation # DublinCore 13 - relation
- txt=meta_content_clean(@md.dc_relation)
+ if @md.relation # DublinCore 13 - relation
+ txt=meta_content_clean(@md.relation)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_coverage # DublinCore 14 - coverage
- txt=meta_content_clean(@md.dc_coverage)
+ if @md.coverage # DublinCore 14 - coverage
+ txt=meta_content_clean(@md.coverage)
@oai_pmh << %{ #{txt}\n}
end
- if @md.dc_rights # DublinCore 15 - rights
- txt=meta_content_clean(@md.dc_rights)
+ if @md.rights # DublinCore 15 - rights
+ txt=meta_content_clean(@md.rights)
@oai_pmh << %{ #{txt}\n}
end
if @md.keywords
@@ -200,7 +200,7 @@ see also http://dublincore.org/documents/dcmes-xml/
xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/
http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
Grassmann's space analysis
- Hyde, E. W. (Edward Wyllys)
+ Hyde, E. W. (Edward Wyllys)LCSH:Ausdehnungslehre; LCCN QA205.H99J. Wiley & SonsCreated: 1906; Available: 1991
--
cgit v1.2.3
From 3827556849d7c9099c5bb2cbc3493d48f12f3594 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Sun, 14 Dec 2008 00:05:02 -0500
Subject: markup samples, minor updates
---
...edom.richard_stallman_crusade_for_free_software.sam_williams.sst | 6 +++++-
data/doc/sisu/sisu_markup_samples/dfsg/gpl2.fsf.sst | 4 ++++
data/doc/sisu/sisu_markup_samples/dfsg/gpl3.fsf.sst | 4 +++-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/data/doc/sisu/sisu_markup_samples/dfsg/free_as_in_freedom.richard_stallman_crusade_for_free_software.sam_williams.sst b/data/doc/sisu/sisu_markup_samples/dfsg/free_as_in_freedom.richard_stallman_crusade_for_free_software.sam_williams.sst
index 503e6a6d..74b90a4f 100644
--- a/data/doc/sisu/sisu_markup_samples/dfsg/free_as_in_freedom.richard_stallman_crusade_for_free_software.sam_williams.sst
+++ b/data/doc/sisu/sisu_markup_samples/dfsg/free_as_in_freedom.richard_stallman_crusade_for_free_software.sam_williams.sst
@@ -4,10 +4,14 @@
@subtitle: Richard Stallman's Crusade for Free Software
-@author: Sam Williams
+@author: Williams, Sam
@rights: Copyright (C) Sam Williams 2002, published under the GNU Free Documentation License. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Document License, Version 1.1 or any later version published by the Free Software Foundation; with the Invariant Sections being no invariant sections, with the Front-Cover Texts being no invariant sections, and with the Back-Cover Texts being no invariant sections. A copy of the license is included in Appendix C, GNU Free Documentation License. All images are to be included verbatim when the document is copied, distributed, or modified under the terms of the GFDL.
+@topic_register: SiSU:markup sample:book;copyright;GNU/Linux:GPL|copyleft|free software;free software;Software:Software Libré;GPL;Linux:GNU|Software Libré;book:biography
+
+@date: 2002
+
@language: US
@notes: March 2002
diff --git a/data/doc/sisu/sisu_markup_samples/dfsg/gpl2.fsf.sst b/data/doc/sisu/sisu_markup_samples/dfsg/gpl2.fsf.sst
index dfabc14e..b091616b 100644
--- a/data/doc/sisu/sisu_markup_samples/dfsg/gpl2.fsf.sst
+++ b/data/doc/sisu/sisu_markup_samples/dfsg/gpl2.fsf.sst
@@ -6,6 +6,10 @@
@rights: Copyright Copyright 1989, 1991 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+@date: 1991
+
+@topic_register: GPL;Software:license;GNU/Linux:License:GPL
+
@links: {Free Software Foundation}http://www.fsf.org
{GPL @ SiSU}http://www.jus.uio.no/sisu/gpl2.fsf
{Markup}http://www.jus.uio.no/sisu/sample/markup/gpl2.fsf.sst
diff --git a/data/doc/sisu/sisu_markup_samples/dfsg/gpl3.fsf.sst b/data/doc/sisu/sisu_markup_samples/dfsg/gpl3.fsf.sst
index 358accce..10889acf 100644
--- a/data/doc/sisu/sisu_markup_samples/dfsg/gpl3.fsf.sst
+++ b/data/doc/sisu/sisu_markup_samples/dfsg/gpl3.fsf.sst
@@ -6,6 +6,8 @@ SiSU 0.52
@rights: Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+@topic_register: GPL;Software:license
+
@date: 2007-06-29
@date.available: 2007-06-29
@@ -242,7 +244,7 @@ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY C
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
-END OF TERMS AND CONDITIONS
+!_ END OF TERMS AND CONDITIONS
1~ How to Apply These Terms to Your New Programs
--
cgit v1.2.3
From c27f4dff2362e31dc23da5eaf5dc8747028e7c72 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Sun, 14 Dec 2008 00:12:31 -0500
Subject: param & dal, cosmetic, text placement
---
lib/sisu/v0/dal.rb | 4 +-
lib/sisu/v0/param.rb | 142 +++++++++++++++++++++++++--------------------------
2 files changed, 73 insertions(+), 73 deletions(-)
diff --git a/lib/sisu/v0/dal.rb b/lib/sisu/v0/dal.rb
index fbc5de7b..10fb192a 100644
--- a/lib/sisu/v0/dal.rb
+++ b/lib/sisu/v0/dal.rb
@@ -149,8 +149,8 @@ module SiSU_DAL
end
end
meta=file_array.dup
- meta=meta.join.split("\n\n") #check whether can be eliminated, some of these are large objects to have twice
- @md=SiSU_Param::Parameters::Instructions.new(meta,@opt).extract
+ meta=meta.join.split("\n\n") #check whether can be eliminated, some of these are large objects to have twice
+ @md=SiSU_Param::Parameters::Instructions.new(meta,@opt).extract
meta=nil
dal=SiSU_DAL::Make.new(@md,file_array).song
SiSU_Screen::Ansi.new(@md.cmd,@md.fns,"~meta/#{@md.fns}.meta").output if @md.cmd =~/v/
diff --git a/lib/sisu/v0/param.rb b/lib/sisu/v0/param.rb
index bcf6f97b..c78a56b7 100644
--- a/lib/sisu/v0/param.rb
+++ b/lib/sisu/v0/param.rb
@@ -292,7 +292,7 @@ module SiSU_Param
tell.warn unless @cmd =~/q/
end
@code_flag=false
- fns_array.each do |para| #% Scan document
+ fns_array.each do |para| #% Scan document
if para !~/^%+\s/ \
and para =~/|| | )/,'')
@@ -316,42 +316,42 @@ module SiSU_Param
@html_title.chomp!(' ')
tell=SiSU_Screen::Ansi.new(@cmd,'Parameters',@html_title)
tell.txt_grey unless @cmd =~/q/
- when /^(?:@subtitle:|0~subtitle)\s+(.+?)$/m #% metainfo
+ when /^(?:@subtitle:|0~subtitle)\s+(.+?)$/m #% metainfo
@subtitle=$1.strip
@full_title="#{@title} - #{@subtitle}"
@subtitle_tex=@subtitle
- when /^(?:@(?:creator|author)-?:|0~(?:creator|author)-?)\s+(.+?)$/ #% metainfo DC
+ when /^(?:@(?:creator|author)-?:|0~(?:creator|author)-?)\s+(.+?)$/ #% metainfo DC
names=name_format($1)
@authorship=@author=names[:name_str]
@authors=names[:name_a_h]
- when /^@(?:creator|author)\.title:\s+(.+?)$/; @author_title=$1 # Prof. Dr. etc.
+ when /^@(?:creator|author)\.title:\s+(.+?)$/; @author_title=$1 # Prof. Dr. etc.
when /^@(?:creator|author)\.nationality:\s+(.+?)$/; @author_nationality=$1
- when /^(?:@(?:translator|translated_by):|0~(?:translator|translated_by))\s+(.+?)$/m #% metainfo
+ when /^(?:@(?:translator|translated_by):|0~(?:translator|translated_by))\s+(.+?)$/m #% metainfo
names=name_format($1)
@translator=names[:name_str]
- when /^(?:@(?:illustrator|illustrated_by):|0~(?:illustrator|illustrated_by))\s+(.+?)$/m #% metainfo
+ when /^(?:@(?:illustrator|illustrated_by):|0~(?:illustrator|illustrated_by))\s+(.+?)$/m #% metainfo
names=name_format($1)
@illustrator=names[:name_str]
- when /^(?:@prepared_by:|0~prepared_by)\s+(.+?)$/m #% metainfo
+ when /^(?:@prepared_by:|0~prepared_by)\s+(.+?)$/m #% metainfo
names=name_format($1)
@prepared_by=names[:name_str]
- when /^(?:@digitized_by:|0~digitized_by)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@digitized_by:|0~digitized_by)\s+(.+?)$/m #% metainfo DC
names=name_format($1)
@digitized_by=names[:name_str]
- when /^(?:@subject:|0~subject)\s+(.+?)$/m; @subject=$1 #% metainfo DC
- when /^(?:@description:|0~description)\s+(.+?)$/m; @description=$1 #% metainfo DC & rss feed
- when /^(?:@contributor:|0~contributor)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@subject:|0~subject)\s+(.+?)$/m; @subject=$1 #% metainfo DC
+ when /^(?:@description:|0~description)\s+(.+?)$/m; @description=$1 #% metainfo DC & rss feed
+ when /^(?:@contributor:|0~contributor)\s+(.+?)$/m #% metainfo DC
names=name_format($1)
@contributor=names[:name_str]
- when /^(?:@publisher:|0~publisher)\s+(.+?)$/m; @publisher=$1 #% metainfo DC
+ when /^(?:@publisher:|0~publisher)\s+(.+?)$/m; @publisher=$1 #% metainfo DC
when /^@original_publication:\s+(.+?)$/m; @original_publication=$1
when /^@original_publication\.date:\s+(.+?)$/; @original_publication_date=$1
when /^@original_publication\.nationality:\s+(.+?)$/; @original_publication_nationality=$1
when /^@original_publication\.institution:\s+(.+?)$/; @original_publication_institution=$1
- when /^@writing_focus\.nationality:\s+(.+?)$/; @writing_focus=$1 # e.g. Finland (where and article on Finnish law)
- when /^(?:@|0~)date.+?$/m #% metainfo DC
+ when /^@writing_focus\.nationality:\s+(.+?)$/; @writing_focus=$1 # e.g. Finland (where and article on Finnish law)
+ when /^(?:@|0~)date.+?$/m #% metainfo DC
if para =~/(?:@date:|0~date)\s+(.+?)$/m
- @date=$1.strip #% original publication date unless the substantive text is updated/modified, then date of update
+ @date=$1.strip #% original publication date unless the substantive text is updated/modified, then date of update
if @date !~regx_date \
and not @date.empty?
tell=SiSU_Screen::Ansi.new(@cmd,'Date Format should be','YYYY-MM-DD','please correct document','Date','field, current value:',@date)
@@ -408,7 +408,7 @@ module SiSU_Param
@date_valid=date
@date_valid_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
- if para =~/^(?:@date\.modified:|0~date\.modified)\s*(.+?)$/m #% of interest rss feed & sitemap
+ if para =~/^(?:@date\.modified:|0~date\.modified)\s*(.+?)$/m #% of interest rss feed & sitemap
date=$1.strip
if date !~regx_date \
and not date.empty?
@@ -428,32 +428,32 @@ module SiSU_Param
@date_translated=date
@date_translated_scheme='scheme="ISO-8601"' if date =~/\d{4}-\d{2}-\d{2}/
end
- when /^(?:@type:|0~type)\s+(.+?)$/m; @type=$1 #% metainfo DC
- when /^(?:@format:|0~format)\s+(.+?)$/m; @format=$1 #% metainfo DC
+ when /^(?:@type:|0~type)\s+(.+?)$/m; @type=$1 #% metainfo DC
+ when /^(?:@format:|0~format)\s+(.+?)$/m; @format=$1 #% metainfo DC
#when /^(?:@identifier:|0~identifier)\s+(.+?)$/m; @identifier=$1 #% metainfo DC
- when /^(?:@source:|0~source)\s+(.+?)$/m; @source=$1 #% metainfo DC
- when /^(?:@language(?:\.document)?:|0~language(?:\.document)?)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@source:|0~source)\s+(.+?)$/m; @source=$1 #% metainfo DC
+ when /^(?:@language(?:\.document)?:|0~language(?:\.document)?)\s+(.+?)$/m #% metainfo DC
x=$1.strip
lang=SiSU_Env::Standardise_language.new(x.dup)
@language[:code]=lang.code
@language[:name]=lang.title
- when /^(?:@language\.original:|0~language\.original)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@language\.original:|0~language\.original)\s+(.+?)$/m #% metainfo DC
x=$1.strip
lang=SiSU_Env::Standardise_language.new(x.dup)
@language_original[:name]=lang.title
- when /^(?:@relation:|0~relation)\s+(.+?)$/m; @relation=$1 #% metainfo DC
- when /^(?:@coverage:|0~coverage)\s+(.+?)$/m; @coverage=$1 #% metainfo DC
- when /^(?:@rights:|0~rights)\s+(.+?)$/m; @rights=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC copyright, public domain, copyleft, creative commons, etc.
- when /^(?:@papersize:|0~papersize)\s+(.+?)$/m #% metainfo DC
+ when /^(?:@relation:|0~relation)\s+(.+?)$/m; @relation=$1 #% metainfo DC
+ when /^(?:@coverage:|0~coverage)\s+(.+?)$/m; @coverage=$1 #% metainfo DC
+ when /^(?:@rights:|0~rights)\s+(.+?)$/m; @rights=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC copyright, public domain, copyleft, creative commons, etc.
+ when /^(?:@papersize:|0~papersize)\s+(.+?)$/m #% metainfo DC
l=$1
if @mod.inspect !~/--papersize[=-]\S+/
l=determine_papersize(l.dup)
@papersize=l
end
- when /^(?:@keywords?:|0~keywords?)\s+(.+?)$/m; @keywords=$1 #% metainfo DC
- when /^(?:@comments?:|0~comments?)\s+(.+?)$/m; @comments=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
- when /^(?:@abstract:|0~abstract)\s+(.+?)$/m; @abstract=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
- when /^(?:@tags?:|0~tags?)\s+\S/m #% metainfo
+ when /^(?:@keywords?:|0~keywords?)\s+(.+?)$/m; @keywords=$1 #% metainfo DC
+ when /^(?:@comments?:|0~comments?)\s+(.+?)$/m; @comments=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
+ when /^(?:@abstract:|0~abstract)\s+(.+?)$/m; @abstract=$1.gsub(/<(?:\/\s*)?br(?:\s*\/)?>/,Mx[:br_line]) #% metainfo DC
+ when /^(?:@tags?:|0~tags?)\s+\S/m #% metainfo
tags=para.match(/^(?:@tags?:|0~tags?)\s+(.+)\Z/m)[1]
tags.split(/,|$/).each do |tag|
tag.strip!
@@ -463,23 +463,23 @@ module SiSU_Param
tag_a=tag_a.split(/:/).join('][')
@tag_a << tag_a
end
- when /^(?:@catalogue:|0~catalogue)\s+(.+)?$/m #% metainfo
+ when /^(?:@catalogue:|0~catalogue)\s+(.+)?$/m #% metainfo
m=$1
@cls_pg=m.match(/pg=(\S+)/)[1] if m =~/pg=/
@cls_isbn=m.match(/isbn=(\S+)/)[1] if m =~/isbn=/
@cls_dewey=m.match(/dewey=(\S+)/)[1] if m =~/dewey=/
@cls_loc=m.match(/loc=(\S+)/)[1] if m =~/loc=/
- when /^(?:@class(?:ify)?_loc:|0~class(?:ify)?_loc)\s+(.+?)$/m; @cls_loc=$1 #% metainfo
- when /^(?:@class(?:ify)?_dewey:|0~class(?:ify)?_dewey)\s+(.+?)$/m; @cls_dewey=$1 #% metainfo
- when /^(?:@class(?:ify)?_pg:|0~class(?:ify)?_pg)\s+(.+?)$/m; @cls_pg=$1 #% metainfo
- when /^(?:@(?:class(?:ify)?_)?isbn:|0~(?:class(?:ify)?_)?isbn)\s+(\S+?)$/m; @cls_isbn=$1 #% metainfo
- when /^(?:@images?:|0~images?)\s+(.+?)$/m; @image=$1 #% processing
- when /^(?:@(?:toc|structure):|0~(?:toc|structure))\s+(.+?)\Z/m #% processing
+ when /^(?:@class(?:ify)?_loc:|0~class(?:ify)?_loc)\s+(.+?)$/m; @cls_loc=$1 #% metainfo
+ when /^(?:@class(?:ify)?_dewey:|0~class(?:ify)?_dewey)\s+(.+?)$/m; @cls_dewey=$1 #% metainfo
+ when /^(?:@class(?:ify)?_pg:|0~class(?:ify)?_pg)\s+(.+?)$/m; @cls_pg=$1 #% metainfo
+ when /^(?:@(?:class(?:ify)?_)?isbn:|0~(?:class(?:ify)?_)?isbn)\s+(\S+?)$/m; @cls_isbn=$1 #% metainfo
+ when /^(?:@images?:|0~images?)\s+(.+?)$/m; @image=$1 #% processing
+ when /^(?:@(?:toc|structure):|0~(?:toc|structure))\s+(.+?)\Z/m #% processing
doc_toc_str=$1
@toc=doc_toc_str.split(/;\s*/)
@toc=[ @toc ] if @toc == String
#@toc.each {|x| x.gsub!(/\{/,'\{') } #FIX~
- lv1=@toc[0] ||='1~ ' #some arbitrary changes made
+ lv1=@toc[0] ||='1~ ' #some arbitrary changes made
@lv1=/^#{lv1}/
lv2=@toc[1] ||='2~ '
@lv2=/^#{lv2}/
@@ -491,7 +491,7 @@ module SiSU_Param
@lv5=/^#{lv5}/
lv6=@toc[5] ||='6~ '
@lv6=/^#{lv6}/
- when /^(?:@(?:level|page|markup):|0~(?:level|page|markup))\s+(.+?)$/m #% processing revisit..., use syntax 0~level new=1,2,3; break=4
+ when /^(?:@(?:level|page|markup):|0~(?:level|page|markup))\s+(.+?)$/m #% processing revisit..., use syntax 0~level new=1,2,3; break=4
if para =~/(?:@|0~)(?:markup|level|page):?\s+(.+?)\Z/m
page_break_str=$1
pagebreaks=page_break_str.split(/;\s*/)
@@ -509,11 +509,11 @@ module SiSU_Param
@toc_lev_limit=toc_lev_limit if toc_lev_limit
@flag_auto_heading_num=true if para =~/num_top/
end
- if para =~/^(?:@markup:|0~markup)\s+(.+?)$/m #%use of markup depreciated for num_top
+ if para =~/^(?:@markup:|0~markup)\s+(.+?)$/m #%use of markup depreciated for num_top
@markup=$1
@flag_auto_heading_num=true if para =~/num_top/
end
- when /^(?:@bold:|0~bold)\s+(.+?)$/m #% processing
+ when /^(?:@bold:|0~bold)\s+(.+?)$/m #% processing
m=$1.strip
x=case m
when /\/i$/; 'i'
@@ -527,7 +527,7 @@ module SiSU_Param
else /#{rgx}/
end
@make_bold
- when /^(?:@(?:italics?|itali[sz]e):|0~(?:italics?|itali[sz]e))\s+(.+?)$/m #% processing Dublin Core - dublin core within
+ when /^(?:@(?:italics?|itali[sz]e):|0~(?:italics?|itali[sz]e))\s+(.+?)$/m #% processing Dublin Core - dublin core within
m=$1.strip
x=case m
when /\/i$/; 'i'
@@ -541,11 +541,11 @@ module SiSU_Param
else /#{rgx}/
end
@make_italic
- when /^(?:@(?:vocabulary|wordlist):|0~(?:vocabulary|wordlist))\s+(.+?)$/m #% processing
- @vocabulary=$1 #not actually used by concordance
- when /^(?:@skin:|0~skin)\s+(.+?)$/; @doc_skin=$1.strip #% processing
- when /^(?:@(?:css|stylesheet):|0~(?:css|stylesheet))\s+(.+?)$/; @doc_css=$1.strip #% processing
- when /^(?:@links:|0~links)\s+(.+?)\Z/m #% processing
+ when /^(?:@(?:vocabulary|wordlist):|0~(?:vocabulary|wordlist))\s+(.+?)$/m #% processing
+ @vocabulary=$1 #not actually used by concordance
+ when /^(?:@skin:|0~skin)\s+(.+?)$/; @doc_skin=$1.strip #% processing
+ when /^(?:@(?:css|stylesheet):|0~(?:css|stylesheet))\s+(.+?)$/; @doc_css=$1.strip #% processing
+ when /^(?:@links:|0~links)\s+(.+?)\Z/m #% processing
doc_links_str=$1
@lnk=[]
if doc_links_str=~/\{.+?\}(?:(?:https?|file|ftp):\/|\.\.)\/\S+(?:\s|$)/
@@ -569,16 +569,16 @@ module SiSU_Param
end
end
end
- when /^(?:@prefix(?:_[ab])?:|0~prefix(?:_[ab])?)\s/ #% metainfo
+ when /^(?:@prefix(?:_[ab])?:|0~prefix(?:_[ab])?)\s/ #% metainfo
if para =~/prefix_a:?\s+/
@prefix_a=para[/(?:@prefix_a:|0~prefix_a)\s+(.+?)$/im,1]
end
if para =~/prefix(?:_b)?:?\s+/
@prefix_b=para[/(?:@prefix(?:_b)?:|0~prefix(?:_b)?)\s+(.+?)$/im,1]
end
- when /^(?:@suffix:|0~suffix)\s+(.+?)$/m; @suffix=$1 #% metainfo
- when /^(?:@information:|0~information)\s+(.+?)$/m; @information=$1 #% metainfo
- when /^(?:@topic_register:|0~topic_register)\s+(.+?)$/m; @topic_register=$1 #% metainfo, similar syntax to book index, leave out the ={} i.e. use equivalent of ={(.+?)}
+ when /^(?:@suffix:|0~suffix)\s+(.+?)$/m; @suffix=$1 #% metainfo
+ when /^(?:@information:|0~information)\s+(.+?)$/m; @information=$1 #% metainfo
+ when /^(?:@topic_register:|0~topic_register)\s+(.+?)$/m; @topic_register=$1 #% metainfo, similar syntax to book index, leave out the ={} i.e. use equivalent of ={(.+?)}
u=@topic_register.scan(/[^;]+/)
v=[]
u.each do |l|
@@ -589,19 +589,19 @@ module SiSU_Param
@topic_register_array << m
end
@topic_register_array.sort!
- when /^(?:@contact:|0~contact)\s+(.+?)$/m; @contact=$1 #% metainfo
- when /^(?:@original_publication:|0~original_publication)\s+(.+?)$/m; @original_publication=$1 #% details of original publication
- when /^(?:@icon:|0~icon)\s+(.+?)$/m; @icon=$1 #% processing
+ when /^(?:@contact:|0~contact)\s+(.+?)$/m; @contact=$1 #% metainfo
+ when /^(?:@original_publication:|0~original_publication)\s+(.+?)$/m; @original_publication=$1 #% details of original publication
+ when /^(?:@icon:|0~icon)\s+(.+?)$/m; @icon=$1 #% processing
when /^(?:@promo:|0~promo)\s+(.+?)$/m
@flag_promo=true
@promo=$1.split(/[,;]\s*/)
- when /^(?:@ad:|0~ad)\s+(\S+)?\s+(\S+\.png)?\s+(.+?!)\s+(\d+)\s*$/m #% processing
+ when /^(?:@ad:|0~ad)\s+(\S+)?\s+(\S+\.png)?\s+(.+?!)\s+(\d+)\s*$/m #% processing
@ad_url,@ad_png,@ad_alt,@ad_began=$1,$2,$3,$4
- when /0~ad\.home\s+(.+)?\s*$/m #% processing
+ when /0~ad\.home\s+(.+)?\s*$/m #% processing
ad_home_str=$1
@ad_home=ad_home_str.split(/\s+!/)
- when /^(?:@sta?mp(?:ed)?:|0~sta?mp(?:ed)?)\s+(.+?)$/m; @stmp= $1.downcase! #% processing
- when /^(?:@(?:rcs|cvs):|0~(?:rcs|cvs))\+?\s+/ #% processing
+ when /^(?:@sta?mp(?:ed)?:|0~sta?mp(?:ed)?)\s+(.+?)$/m; @stmp= $1.downcase! #% processing
+ when /^(?:@(?:rcs|cvs):|0~(?:rcs|cvs))\+?\s+/ #% processing
m=/(?:@(?:rcs|cvs):|0~(?:rcs|cvs))\+?\s+/ #note the + sign to turn on use of rcs or cvs id
ver=para[/#{m}(.+)/,1] #RCS or CVS ID tag # eg. # $Id$
contains=/[\$]Id:\s+(\S+),v\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+Exp\s+(?:\S+\s+)?[\$]/ # reason for [$] which is apparently unnecessary is that rcs or cvs will otherwise expand id!
@@ -610,9 +610,9 @@ module SiSU_Param
@sc_filename,@sc_number,@sc_date,@sc_time=filename,vnumber,date,time
end
@sc_info=true if para[/(?:@(?:rcs|cvs):|0~(?:rcs|cvs))\+/]
- when /^@base_program:\s+(.+?)$/; @base_program=$1 #% processing
+ when /^@base_program:\s+(.+?)$/; @base_program=$1 #% processing
#% break - break, not necessary to process headers further :-) but necessary to extract endnotes etc. ;-(
- when /^(?:@man:|0~man)\s+(.+?)\Z/m #% man pages
+ when /^(?:@man:|0~man)\s+(.+?)\Z/m #% man pages
maninfo_str=$1
maninfo=maninfo_str.split(/;\s*/m)
maninfo.each do |x|
@@ -627,8 +627,8 @@ module SiSU_Param
@lv4 ||=/^#{Mx[:lv_o]}4:/
@lv5 ||=/^#{Mx[:lv_o]}5:/
@lv6 ||=/^#{Mx[:lv_o]}6:/
- else #%
- if para =~ /^(?:1|:?A)~/ #% processing
+ else #%
+ if para =~ /^(?:1|:?A)~/ #% processing
if para=~/^:?A~/
if @markup.nil? \
or @markup.empty?
@@ -653,13 +653,13 @@ module SiSU_Param
end
unless @code_flag
case para
- when /~\{\s+.+?\}~/m #% processing
+ when /~\{\s+.+?\}~/m #% processing
en=para.scan(/~\{.+?\}~/m)
en.each { |e| @en[:sum] +=1 }
- when /~\^(?:\s|$)/m #% processing
+ when /~\^(?:\s|$)/m #% processing
mk=para.scan(/~\^(?:\s|$)/)
mk.each { |e| @en[:mark] +=1 }
- when /^\^~\s+\S/; @en[:note] +=1 #% processing
+ when /^\^~\s+\S/; @en[:note] +=1 #% processing
end
end
if para =~/~\{|\^~ |~\^|<:ee>|\{.+?\[[1-6]\]\}\S+?\.ss[tm]/m; @flag_auto_endnotes,@flag_endnotes=true,true
@@ -697,11 +697,11 @@ module SiSU_Param
and para =~/^4~\s+(.+)$/
t=$1
end
- unless @heading_seg_first_flag # extract first segment name
+ unless @heading_seg_first_flag # extract first segment name
@heading_seg_first=t
@heading_seg_first_flag=true
end
- if m # list all segment names
+ if m # list all segment names
@seg_names << m
@set_heading_seg=true
if m=~/^\d{1,3}/ \
@@ -719,7 +719,7 @@ module SiSU_Param
unless @sem_tag
@sem_tag=true if para=~/[:;]\{.+?\}[:;][a-z+]/ #refix later
end
- end #% here endeth the document loop
+ end #% here endeth the document loop
if @ec[:image].length > 0
@ec[:image].flatten!
@ec[:image].uniq!
@@ -926,8 +926,8 @@ module SiSU_Param
tell=SiSU_Screen::Ansi.new(@cmd,"doc_skin <- #@doc_skin")
tell.txt_grey if @cmd =~/v/
end
- @data=nil #else whole file's contents are stored in md pstore & is not required to be... big waste actually
- Store.new(self,@env).store #% pstore
+ @data=nil #else whole file's contents are stored in md pstore & is not required to be... big waste actually
+ Store.new(self,@env).store #% pstore
self
end
private
--
cgit v1.2.3
From 1784bcc41af9a6ea7c06abfd01e2f0ac057ab2a8 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Sun, 14 Dec 2008 00:14:21 -0500
Subject: emacs syntax highlighting, updated metadata fields
---
.../sisu/conf/editor-syntax-etc/emacs/sisu-mode.el | 23 ++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/data/sisu/conf/editor-syntax-etc/emacs/sisu-mode.el b/data/sisu/conf/editor-syntax-etc/emacs/sisu-mode.el
index d0027798..ba2633d3 100644
--- a/data/sisu/conf/editor-syntax-etc/emacs/sisu-mode.el
+++ b/data/sisu/conf/editor-syntax-etc/emacs/sisu-mode.el
@@ -1,7 +1,7 @@
;;; sisu-mode.el --- a major-mode for highlighting a hierarchy structured text.
;; @Author: Ambrose Kofi Laing (& Ralph Amissah)
;; @Keywords: text, processes, tools
-;; @Version: 0.69.4 2008-11-02
+;; @Version: 0.70.1 2008-12-14
;; @License: GPLv3
;; @Home URL: SiSU: http://www.jus.uio.no/sisu
;; originally looked at (based on) doc-mode, with kind permission of the author
@@ -297,16 +297,19 @@
"^\\(\\@\\("
"title\\|"
"subtitle\\|"
- "creator\\|author\\|"
+ "author.title\\|"
+ "author.nationality\\|"
+ "author\\|creator\\|"
"translator\\|translated_by\\|"
"illustrator\\|illustrated_by\\|"
"prepared_by\\|"
"digitized_by\\|"
"contributor\\|"
"publisher\\|"
- "subject\\|"
"topic_register\\|"
+ "subject\\|"
"description\\|"
+ "comment\\|"
"type\\|"
"format\\|"
"source\\|"
@@ -321,14 +324,22 @@
"papersize\\|"
"tags\\|"
"catalogue\\|"
- "classify_loc\\|"
- "classify_dewey\\|"
- "classify_isbn\\|"
"date.created\\|"
"date.issued\\|"
"date.available\\|"
"date.modified\\|"
+ "date.valid\\|"
+ "date.added_to_site\\|"
"date\\|"
+ "original_publication.date\\|"
+ "original_publication.nationality\\|"
+ "original_publication.institution\\|"
+ "original_publication\\|"
+ "writing_focus.nationality\\|"
+ "classify_loc\\|"
+ "classify_dewey\\|"
+ "classify_isbn\\|"
+ "classify_pg\\|"
"prefix\\|"
"suffix\\|"
"contact\\|"
--
cgit v1.2.3
From 1deffbefc09b1521f9fac8c0796bebdf93a04698 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Sun, 14 Dec 2008 00:23:45 -0500
Subject: changelog synced and man pages, minor updates
---
CHANGELOG | 9 ++++++---
data/doc/sisu/html/sisu.1.html | 3 ++-
data/doc/sisu/sisu_markup_samples/sisu_manual/sisu.ssm | 4 ++--
data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_markup.sst | 4 ++--
man/man1/sisu.1 | 2 +-
5 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index a5b1a7c9..faa2d6c1 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,7 +9,7 @@ Reverse Chronological:
%% STABLE MANIFEST
-%% sisu_0.70.1.orig.tar.gz (2008-12-12:49/5)
+%% sisu_0.70.1.orig.tar.gz (2008-12-14:49/7)
http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.1.orig.tar.gz
sisu_0.70.1.orig.tar.gz
sisu_0.70.1-1.dsc
@@ -27,11 +27,10 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.1.orig.tar.gz
* manifest, show topic register metadata for each document
- * css main html modified
+ * css main html modified, run: sisu -CC
* left margin changed, affects html generally
* table th and td elements text top aligned
* additions for manifest display of topic_register
- sisu -CC
* html tables
* html structure, fix
@@ -40,11 +39,15 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.1.orig.tar.gz
* latex/pdf bullet mark (bug in texlive, missing (at this instant) provide
workaround)
+ * param, additional metadata fields
+
* sql (postgresql), add proposed metadata fields for though not yet populated
[if changes correctly anticipated, will enable future use of database
structure built with current version, without need to re-create, will not
affect existing sisu databases]
+ * emacs syntax highlighter update (metadata fields)
+
%% sisu_0.70.0.orig.tar.gz (2008-12-03:48/3)
http://www.jus.uio.no/sisu/pkg/src/sisu_0.70.0.orig.tar.gz
51e4d5c2ac3c490332d8468de2400abcf454b55ac1e21ec625680a346fb41e4a 1540091 sisu_0.70.0.orig.tar.gz
diff --git a/data/doc/sisu/html/sisu.1.html b/data/doc/sisu/html/sisu.1.html
index 8f8bff3f..25b6e7e4 100644
--- a/data/doc/sisu/html/sisu.1.html
+++ b/data/doc/sisu/html/sisu.1.html
@@ -743,7 +743,8 @@ one (without the comments):
@title: SiSU
@subtitle: Markup
@creator: Amissah, Ralph
- % note formatting rules on author / creator field,
+ % note formatting on author / creator field, surname comma then other
+names, if more than one author separate using semi-colon
@rights: Copyright (C) Ralph Amissah 2007, part of SiSU documentation,
License GPL 3
@type: information
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 676e23d7..9e891fcb 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-05-22
+@date.modified: 2008-12-14
-@date: 2008-05-22
+@date: 2008-12-14
@level: new=C; break=1; num_top=1
diff --git a/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_markup.sst b/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_markup.sst
index c31a1abe..dd620872 100644
--- a/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_markup.sst
+++ b/data/doc/sisu/sisu_markup_samples/sisu_manual/sisu_markup.sst
@@ -14,7 +14,7 @@
@subject: ebook, epublishing, electronic book, electronic publishing, electronic document, electronic citation, data structure, citation systems, search
-@date: 2008-05-22
+@date: 2008-12-14
@date.created: 2002-08-28
@@ -22,7 +22,7 @@
@date.available: 2002-08-28
-@date.modified: 2008-05-22
+@date.modified: 2008-12-14
@level: new=C; break=1; num_top=1
diff --git a/man/man1/sisu.1 b/man/man1/sisu.1
index 66b9d47a..fc8f3a77 100644
--- a/man/man1/sisu.1
+++ b/man/man1/sisu.1
@@ -1,4 +1,4 @@
-.TH "sisu" "1" "2008-07-21" "0.68.0" "SiSU"
+.TH "sisu" "1" "2008-12-14" "0.70.1" "SiSU"
.SH NAME
sisu \- documents: markup, structuring, publishing in multiple standard formats, and search
.SH SYNOPSIS
--
cgit v1.2.3