aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v2/shared_metadata.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2010-05-05 12:22:46 -0400
committerRalph Amissah <ralph@amissah.com>2010-05-05 12:22:46 -0400
commit221cc9595963f8fe1ec92fdc6d7d3e0d429bb7c6 (patch)
tree80d43b16f492252a82819832918bf0bd3e09d452 /lib/sisu/v2/shared_metadata.rb
parentsysenv, sisurc.yml, default shortform command flags (diff)
texpdf, special word and number optional break points
Diffstat (limited to 'lib/sisu/v2/shared_metadata.rb')
-rw-r--r--lib/sisu/v2/shared_metadata.rb16
1 files changed, 14 insertions, 2 deletions
diff --git a/lib/sisu/v2/shared_metadata.rb b/lib/sisu/v2/shared_metadata.rb
index bd1fe73a..dac6f914 100644
--- a/lib/sisu/v2/shared_metadata.rb
+++ b/lib/sisu/v2/shared_metadata.rb
@@ -533,6 +533,12 @@ WOK
def spec_char(inf)
SiSU_TeX_Pdf::Special_characters.new(@md,inf).special_characters
end
+ def word_break_points(inf)
+ SiSU_TeX_Pdf::Special_characters.new(@md,inf).special_word_break_points
+ end
+ def number_break_points(inf)
+ SiSU_TeX_Pdf::Special_characters.new(@md,inf).special_number_break_points
+ end
def metadata_tex
meta=[]
dir=SiSU_Env::Info_env.new(@md.fns)
@@ -636,6 +642,7 @@ WOK
if defined? @md.classify.topic_register \
and @md.classify.topic_register=~/\S+/
tag,inf=tr.topic_register,@md.classify.topic_register
+ inf=word_break_points(inf)
meta << meta_para(tag,inf)
end
if defined? @md.classify.loc \
@@ -722,6 +729,7 @@ WOK
if defined? @md.fns \
and @md.fns=~/\S+/
fn=spec_char(@md.fns)
+ fn=word_break_points(fn)
fn="\\begin\{footnotesize\}#{fn}\\end\{footnotesize\}"
tag,inf=tr.sourcefile,fn
meta << meta_para(tag,inf,false)
@@ -734,13 +742,17 @@ WOK
if defined? @md.dgst \
and @md.dgst.class==Array
hash_of=spec_char(@md.dgst[0])
- tag,inf='Source Digest',"\\begin\{footnotesize\}#{hash_of}\\end\{footnotesize\} #{@br}#{@md.dgst[1]}"
+ hash_of=word_break_points(hash_of)
+ dgst=number_break_points(@md.dgst[1])
+ tag,inf='Source Digest',"\\begin\{footnotesize\}#{hash_of}\\end\{footnotesize\}\\-#{dgst}"
meta << meta_para(tag,inf,false)
end
if defined? @md.dgst_skin \
and @md.dgst_skin.class==Array
hash_of=spec_char(@md.dgst_skin[0])
- tag,inf='Skin Digest',"\\begin\{footnotesize\}#{hash_of}\\end\{footnotesize\} #{@br}#{@md.dgst_skin[1]}"
+ hash_of=word_break_points(hash_of)
+ dgst=number_break_points(@md.dgst_skin[1])
+ tag,inf='Skin Digest',"\\begin\{footnotesize\}#{hash_of}\\end\{footnotesize\}\\-#{dgst}"
meta << meta_para(tag,inf,false)
end
meta << %{#{@br}\\begin\{bfseries\}Generated \\end\{bfseries\}}