aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/shared_markup_alt.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-03-02 22:54:28 -0500
committerRalph Amissah <ralph@amissah.com>2011-03-02 22:54:28 -0500
commit0569fd776ab4ce33689ca3337acd62f2415b6348 (patch)
tree4644037b28d876d8637a610f5df1a29535a4ef9a /lib/sisu/v3/shared_markup_alt.rb
parentdebian/changelog (3.0.1-1) (diff)
parentCHANGELOG_v{1,2,3}, syslink, avoid duplication (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v3/shared_markup_alt.rb')
-rw-r--r--lib/sisu/v3/shared_markup_alt.rb13
1 files changed, 6 insertions, 7 deletions
diff --git a/lib/sisu/v3/shared_markup_alt.rb b/lib/sisu/v3/shared_markup_alt.rb
index 8eebea29..738ec75a 100644
--- a/lib/sisu/v3/shared_markup_alt.rb
+++ b/lib/sisu/v3/shared_markup_alt.rb
@@ -1,10 +1,9 @@
-# coding: utf-8
+# encoding: utf-8
=begin
* Name: SiSU
* Description: a framework for document structuring, publishing and search
- #___#
* Author: Ralph Amissah
@@ -227,7 +226,7 @@ module SiSU_text_representation
def dgst
en_dgst,img_dgst={},{}
txt_dgst=digest(txt)
- {:txt=>txt,:dgst_txt=>txt_dgst}
+ { txt: txt, dgst_txt: txt_dgst }
end
self
end
@@ -237,7 +236,7 @@ module SiSU_text_representation
end
def dgst
txt_dgst=digest(txt)
- {:txt=>txt,:dgst_txt=>txt_dgst}
+ { txt: txt, dgst_txt: txt_dgst }
end
self
end
@@ -275,7 +274,7 @@ module SiSU_text_representation
image_name = i + ' [image missing]'
image_dgst = ''
end
- line_image << {:img_dgst=>image_dgst[1],:img_name=>image_name,:img_type=>img_type}
+ line_image << { img_dgst: image_dgst[1], img_name: image_name, img_type: img_type }
end
end
line_image
@@ -287,7 +286,7 @@ module SiSU_text_representation
note_no=e.gsub(/^([\d*+]+)\s+.+/,'\1')
e=digest(stripped_clean(e))
note_dgst=digest(e)
- en_dgst << {:note_number=>note_no,:note_dgst=>note_dgst}
+ en_dgst << { note_number: note_no, note_dgst: note_dgst }
end
end
en_dgst
@@ -307,7 +306,7 @@ module SiSU_text_representation
imgs=@t_o.obj.scan(rgx_image).flatten
line_image=images(imgs)
end
- dgst={:is=>@t_o.is,:ocn=>@t_o.ocn,:dgst_stripped_txt=>txt_stripped_dgst,:dgst_markedup_txt=>txt_markup_reverted_dgst}
+ dgst={ is: @t_o.is, ocn: @t_o.ocn, dgst_stripped_txt: txt_stripped_dgst, dgst_markedup_txt: txt_markup_reverted_dgst }
dgst[:endnotes]=endnotes_dgst if endnotes_dgst and endnotes_dgst.length > 0
dgst[:images]=line_image if line_image and line_image.length > 0
end