diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-09-25 02:19:11 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-09-25 02:19:11 +0100 |
commit | 9208f7117032849695e061e1fdd375f85a50ccac (patch) | |
tree | e04ccd671decb64df1abbfda2823075e0b44f9f7 | |
parent | documentation regenerated, large diff (diff) |
cosmetic: html table of contents; urls html output
-rw-r--r-- | lib/sisu/v0/html.rb | 11 | ||||
-rw-r--r-- | lib/sisu/v0/odf.rb | 1 | ||||
-rw-r--r-- | lib/sisu/v0/urls.rb | 2 |
3 files changed, 9 insertions, 5 deletions
diff --git a/lib/sisu/v0/html.rb b/lib/sisu/v0/html.rb index 89c6d463..b23a24b9 100644 --- a/lib/sisu/v0/html.rb +++ b/lib/sisu/v0/html.rb @@ -390,6 +390,10 @@ WOK end toc={} format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title) + toc[:seg]=if para =~/^\d~\s+Document Information/ + format_toc.lev0 + else format_toc.lev1 + end title=if para =~/(<~0;(?:\w|[0-6]:)\d+;\w\d+><#@dp:#@dp>)$/ m=/#{$1}/ para.gsub!(m,'') @@ -405,10 +409,9 @@ WOK %{<b><a href="##{link}">#{linkname}</a></b>} end format_toc=SiSU_HTML_Format_type::Format_toc.new(@md,title) - if para =~/^\d~\s+Document Information/ - toc[:seg]=toc[:scr]=format_toc.lev0 - else - toc[:seg]=toc[:scr]=format_toc.lev1 + toc[:scr]=if para =~/^\d~\s+Document Information/ + format_toc.lev0 + else format_toc.lev1 end toc end diff --git a/lib/sisu/v0/odf.rb b/lib/sisu/v0/odf.rb index 15b95a3c..d4d4fd2f 100644 --- a/lib/sisu/v0/odf.rb +++ b/lib/sisu/v0/odf.rb @@ -470,6 +470,7 @@ module SiSU_ODF para=para.strip end para.gsub!(/_</m,'<'); para.gsub!(/_>/m,'>') #code-block: angle brackets special characters + #para.gsub!(/</,'<'); para.gsub!(/>/,'>') para.gsub!(/^(<:i[1-9]>\s+)?_\*\s+/,'\1<draw:frame draw:style-name="gr1" text:anchor-type="as-char" svg:width="0.22cm" svg:height="0.22cm" draw:z-index="2"><draw:image xlink:href="Pictures/bullet_09.png" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/></draw:frame> ') # bullet_09.png #para.gsub!(/^(<:i[1-9]>\s+)?_\*\s+/,'\1<text:span text:style-name="T6">●</text:span> ') #bullet #para.gsub!(/^(<:i[1-9]>\s+)?_\*\s+/,'\1● ') # bullet utf8, make smaller if used diff --git a/lib/sisu/v0/urls.rb b/lib/sisu/v0/urls.rb index 2a69040a..5d5d8795 100644 --- a/lib/sisu/v0/urls.rb +++ b/lib/sisu/v0/urls.rb @@ -228,7 +228,7 @@ module SiSU_urls tell=case x when /^m/ SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#{@env.program.text_editor} ~#{y}/#@fnb.#{y}") - when /^[abBcdhHNopswxXy]/ + when /^[abBcdhNopswxXy]/ tellx=SiSU_Screen::Ansi.new(@opt.cmd,"-p (LaTeX)","#{@env.program.text_editor} ~work/tex_rz/#@fnb.tex") if y=~/landscape/ SiSU_Screen::Ansi.new(@opt.cmd,"-#{x}","#@browser #@webserv_url/#@fnb/#{y}") when /^Y/ |