#{@translate.topic_register}: | \n}
@md.topic_register_array.each do |t|
t.each_with_index do |st,i|
diff --git a/lib/sisu/v2/param.rb b/lib/sisu/v2/param.rb
index 87dd9aab..bf32fc59 100644
--- a/lib/sisu/v2/param.rb
+++ b/lib/sisu/v2/param.rb
@@ -514,6 +514,11 @@ module SiSU_Param
l,n=Db[:col_classify_library],'classify.dewey'
validate_length(s,l,n)
end
+ def oclc
+ s=@h['oclc']
+ l,n=Db[:col_classify_library],'classify.oclc'
+ validate_length(s,l,n)
+ end
def pg
s=@h['pg']
l,n=Db[:col_classify_small],'classify.pg'
@@ -927,7 +932,7 @@ module SiSU_Param
l=determine_papersize(l.dup)
@papersize=l
end
- when /^@make:(.+)/m #% metainfo DC
+ when /^@make:(.+)/m #% metainfo DC
@make=Md.new($1.strip,@opt).make
if defined? @make.breaks \
and @make.breaks[:page_new] #clearpage
@@ -1097,6 +1102,20 @@ module SiSU_Param
@rights=Md_default.new.rights("[#{@creator.author}]",'')
end
end
+ if defined? @classify.topic_register \
+ and @classify.topic_register.length >3
+ topic_register=@classify.topic_register
+ 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
+ @topic_register_array.sort!
+ end
if @markup_version.to_f >= 0.38 #convert values in headers to internal representation
translated=[]
translate_list=[@pagenew,@pagebreak,@num_top,@toc_lev_limit]
diff --git a/lib/sisu/v2/shared_metadata.rb b/lib/sisu/v2/shared_metadata.rb
index 07f87e2c..bd1fe73a 100644
--- a/lib/sisu/v2/shared_metadata.rb
+++ b/lib/sisu/v2/shared_metadata.rb
@@ -633,6 +633,11 @@ WOK
tag,inf=tr.date,@md.date.published
meta << meta_para(tag,inf)
end
+ if defined? @md.classify.topic_register \
+ and @md.classify.topic_register=~/\S+/
+ tag,inf=tr.topic_register,@md.classify.topic_register
+ meta << meta_para(tag,inf)
+ end
if defined? @md.classify.loc \
and @md.classify.loc=~/\S+/
tag,inf=tr.cls_loc,@md.classify.loc
@@ -643,6 +648,11 @@ WOK
tag,inf=tr.cls_dewey,@md.classify.dewey
meta << meta_para(tag,inf)
end
+ if defined? @md.classify.oclc \
+ and @md.classify.oclc=~/\S+/
+ tag,inf=tr.cls_oclc,@md.classify.oclc
+ meta << meta_para(tag,inf)
+ end
if defined? @md.classify.pg \
and @md.classify.pg=~/\S+/
tag,inf=tr.cls_gutenberg,@md.classify.pg
--
cgit v1.2.3
From 02afaef5fe0b35ee2554b86a98dc9563cd6b5c5f Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Tue, 27 Apr 2010 11:42:07 -0400
Subject: plaintext, clean up bulleted grouped text output (still not
line-wrapped though)
---
lib/sisu/v2/plaintext.rb | 1 +
1 file changed, 1 insertion(+)
(limited to 'lib')
diff --git a/lib/sisu/v2/plaintext.rb b/lib/sisu/v2/plaintext.rb
index ddc82839..851da3f8 100644
--- a/lib/sisu/v2/plaintext.rb
+++ b/lib/sisu/v2/plaintext.rb
@@ -310,6 +310,7 @@ WOK
dob.obj.gsub!(/#{Mx[:gl_o]}#169#{Mx[:gl_c]}/,'©')
end
if dob.of=='group' # watch
+ dob.obj.gsub!(/#{Mx[:gl_o]}●#{Mx[:gl_c]}/,"* ")
dob.obj.gsub!(/#{Mx[:br_line]}|#{Mx[:br_nl]}/,"\n")
else dob.obj.gsub!(/#{Mx[:br_line]}|#{Mx[:br_nl]}/,"\n\n")
end
--
cgit v1.2.3
From 39943bc95dc5bc96cb2af1ac431c395b938e515c Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Tue, 27 Apr 2010 15:10:57 -0400
Subject: switch markup for bold and emphasis, now !{bold}! and *{emphasis}*
(emphais output defaults to bold, later make it possible to configure emphasis
output optionally as being represented by italics)
---
lib/sisu/v2/dal_syntax.rb | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
(limited to 'lib')
diff --git a/lib/sisu/v2/dal_syntax.rb b/lib/sisu/v2/dal_syntax.rb
index 4a13b069..b7b9ec4b 100644
--- a/lib/sisu/v2/dal_syntax.rb
+++ b/lib/sisu/v2/dal_syntax.rb
@@ -215,8 +215,8 @@ module SiSU_Syntax
def bodymarkup(dob)
# << http://www.jus.uio.no/sisu/sisu_markup_table/markup >>
# See: data/sisu/sample/document_samples_sisu_markup/
- # !{emphasis}! e{emphasis}e emphasis
- # *{bold text}* b{bold}b bold text
+ # *{emphasis}* e{emphasis}e emphasis
+ # !{bold text}! b{bold}b bold text
# _{underline}_ u{underline}u underline
# /{italics}/ i{italics}i italics
# "{citation}" c{citation}c citation #blockquote?
@@ -411,8 +411,8 @@ module SiSU_Syntax
dob
end
def tech #script markup planned to be more strict for technical documents
- # !{emphasis}! e{emphasis}e emphasis
- # *{bold text}* b{bold}b bold text
+ # *{emphasis}* e{emphasis}e emphasis
+ # !{bold text}! b{bold}b bold text
# _{underline}_ u{underline}u underline
# /{italics}/ i{italics}i italics
# "{citation}" c{citation}c citation
--
cgit v1.2.3
From 74e7af807d62161e13335a501bfc1124175a78da Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Tue, 27 Apr 2010 19:43:04 -0400
Subject: i18n, mark OCLC number for translation
---
lib/sisu/v2/i18n.rb | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'lib')
diff --git a/lib/sisu/v2/i18n.rb b/lib/sisu/v2/i18n.rb
index 1f81a941..2aa730be 100644
--- a/lib/sisu/v2/i18n.rb
+++ b/lib/sisu/v2/i18n.rb
@@ -645,6 +645,9 @@ module SiSU_Translate
def cls_dewey
'Classification Dewey'
end
+ def cls_oclc # fix
+ 'Classify OCLC number'
+ end
def cls_gutenberg
'Classification du project Gutenberg'
end
@@ -853,6 +856,9 @@ module SiSU_Translate
def cls_dewey
'Klassifikation nach Dewey'
end
+ def cls_oclc # fix
+ 'Classify OCLC number'
+ end
def cls_gutenberg
'Klassifikation nach Projekt Gutenberg'
end
@@ -1061,6 +1067,9 @@ module SiSU_Translate
def cls_dewey
'Clasificación Dewey'
end
+ def cls_oclc # fix
+ 'Classify OCLC number'
+ end
def cls_gutenberg
'Clasificación Proyecto Gutenberg'
end
@@ -1269,6 +1278,9 @@ module SiSU_Translate
def cls_dewey
'Classificazione Dewey'
end
+ def cls_oclc # fix
+ 'Classify OCLC number'
+ end
def cls_gutenberg
'Classificazione del Progetto Gutenberg'
end
@@ -1477,6 +1489,9 @@ module SiSU_Translate
def cls_dewey
'Classify Dewey'
end
+ def cls_oclc # fix
+ 'Classify OCLC number'
+ end
def cls_gutenberg
'Classify Project Gutenberg'
end
--
cgit v1.2.3
|
---|