aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v5/html_format.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sisu/v5/html_format.rb')
-rw-r--r--lib/sisu/v5/html_format.rb29
1 files changed, 6 insertions, 23 deletions
diff --git a/lib/sisu/v5/html_format.rb b/lib/sisu/v5/html_format.rb
index b8db9445..c34759cf 100644
--- a/lib/sisu/v5/html_format.rb
+++ b/lib/sisu/v5/html_format.rb
@@ -89,7 +89,7 @@ module SiSU_HTML_Format
end
end
def id #w3c? "tidy" complains about numbers as identifiers ! annoying
- (@ocn==nil || @ocn.empty?) ? '' : %{id="o#{@ocn}"}
+ (@ocn==nil || @ocn.empty?) ? '' : %{id="#{Mx[:ocn_id_char]}#{@ocn}"}
end
def goto
(@ocn==nil || @ocn.empty?) ? '' : %{<a href="##{@ocn_html_identifier}#{@ocn}">}
@@ -173,9 +173,8 @@ module SiSU_HTML_Format
SiSU_XML_Tags::RDF.new(md)
end
def doc_type
- %{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">\n}
+ %{<!DOCTYPE html>
+<html>\n}
end
def table_close
%{ </font>
@@ -414,6 +413,7 @@ WOK
rdf=SiSU_XML_Tags::RDF.new(@md)
%{#{doc_type}
<head>
+ <meta charset="utf-8">
<title>
#{@md.html_title}
</title>
@@ -597,11 +597,7 @@ WOK
#{@vz.credits_splash}
#{@vz.credits_sisu}
<a name="bottom" id="bottom"></a>
-<a name="down" id="down"></a>
<a name="end" id="end"></a>
-<a name="finish" id="finish"></a>
-<a name="stop" id="stop"></a>
-<a name="credits"></a>
</div>
</div>
</div>
@@ -615,11 +611,7 @@ WOK
#{@vz.credits_splash}
#{@vz.credits_sisu}
<a name="bottom" id="bottom"></a>
-<a name="down" id="down"></a>
<a name="end" id="end"></a>
-<a name="finish" id="finish"></a>
-<a name="stop" id="stop"></a>
-<a name="credits"></a>
</div>
}
end
@@ -630,11 +622,7 @@ WOK
#{@vz.credits_splash}
#{@vz.credits_sisu}
<a name="bottom" id="bottom"></a>
-<a name="down" id="down"></a>
<a name="end" id="end"></a>
-<a name="finish" id="finish"></a>
-<a name="stop" id="stop"></a>
-<a name="credits"></a>
</div>
</div>
</div>
@@ -775,11 +763,7 @@ WOK
#{@vz.credits_splash}
#{@vz.credits_sisu}
<a name="bottom" id="bottom"></a>
-<a name="down" id="down"></a>
<a name="end" id="end"></a>
-<a name="finish" id="finish"></a>
-<a name="stop" id="stop"></a>
-<a name="credits" id="credits"></a>
</div></div>
}
end
@@ -832,6 +816,7 @@ WOK
rdf=SiSU_XML_Tags::RDF.new(@md)
%{#{doc_type}
<head>
+ <meta charset="utf-8">
<title>
#{@seg_name_html[@seg_name_html_tracker]} -
#{@md.html_title}
@@ -841,9 +826,7 @@ WOK
#{@stylesheet.css_head_seg}
</head>
#{@vz.color_body}
-<a name="top" id="top"></a>
-<a name="up" id="up"></a>
-<a name="start" id="start"></a>}
+<a name="top" id="top"></a>}
end
def title_banner(title,subtitle,creator)
%{