diff options
author | Ralph Amissah <ralph@amissah.com> | 2012-10-03 00:24:05 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2012-10-03 00:24:05 -0400 |
commit | c041ea2efdc0f1c6d2ecb07f9f29ba3ddf37a39f (patch) | |
tree | 0e2118774a19509ac47732424d04d5baa670c486 | |
parent | v4: param (header make), html, home button: text button; image/icon button (diff) |
v4: param (header make), pdf, footer
-rw-r--r-- | data/doc/sisu/CHANGELOG_v4 | 1 | ||||
-rw-r--r-- | lib/sisu/v4/param.rb | 26 | ||||
-rw-r--r-- | lib/sisu/v4/texpdf_format.rb | 13 |
3 files changed, 30 insertions, 10 deletions
diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4 index 27a4aa17..a9174dce 100644 --- a/data/doc/sisu/CHANGELOG_v4 +++ b/data/doc/sisu/CHANGELOG_v4 @@ -53,3 +53,4 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.0.orig.tar.xz * html, home button * text button * image/icon button + * pdf, footer diff --git a/lib/sisu/v4/param.rb b/lib/sisu/v4/param.rb index 740a7598..f9607df2 100644 --- a/lib/sisu/v4/param.rb +++ b/lib/sisu/v4/param.rb @@ -1071,6 +1071,12 @@ module SiSU_Param else nil end end + def footer + s=if @h['footer'] + @h['footer'].split(/\s*;\s*/) + else nil + end + end self end def current_publisher @@ -1162,6 +1168,7 @@ module SiSU_Param else ".#{@opt.lng}" end + @footer_links= { left: { say: '', url: '' }, center: { say: '', url: '' } } @rgx_image=/(?:^|[^_\\])\{(?:\s*|\~\^\s+)(\S+?\.(?:png|jpg|gif)\b)/m @rgx_audio=/\{\s*(\S+?\.(?:mp3|ogg))/ @rgx_mm=/\{\s*(\S+?\.(?:ogg|mpeg))/ #expand and distinguish ogg @@ -1361,6 +1368,25 @@ module SiSU_Param ? @make.manpage.section : 1 end |