v5 v6: html, epub, set document body language
authorRalph Amissah <ralph@amissah.com>
Sun, 12 Oct 2014 14:40:09 +0000 (10:40 -0400)
committerRalph Amissah <ralph@amissah.com>
Sun, 12 Oct 2014 14:40:09 +0000 (10:40 -0400)
data/doc/sisu/CHANGELOG_v5
data/doc/sisu/CHANGELOG_v6
lib/sisu/v5/html_format.rb
lib/sisu/v5/html_manifest.rb
lib/sisu/v5/xhtml_epub2_format.rb
lib/sisu/v6/html_format.rb
lib/sisu/v6/html_manifest.rb
lib/sisu/v6/xhtml_epub2_format.rb

index 986932b9f26e81c141130d54c2e7649af438cc69..235d4db5efce516a6ac6a18c8121851aa125f631 100644 (file)
@@ -38,6 +38,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_5.7.0.orig.tar.xz
   sisu_5.7.0.orig.tar.xz
   sisu_5.7.0-1.dsc
 
+* html, epub, set document body language
+
 * html_format, label, re: object number object names
 
 * constants, remove ocn html leader (resulting hashtag #1 instead of #o1)
index 50f3c72efe245535522b9acd393ffa7516e637d9..b41d171f154c3ce88503db566a049420362a0a13 100644 (file)
@@ -28,6 +28,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_6.3.0.orig.tar.xz
   sisu_6.3.0.orig.tar.xz
   sisu_6.3.0-1.dsc
 
+* html, epub, set document body language
+
 * html_format, label, re: object number object names
 
 * constants, remove ocn html leader (resulting hashtag #1 instead of #o1)
index 3cfa9268edecafd49a0fc65052d982ed69ab9d6c..75bacdc200d25c7dc10b028bb9e5881279b69a5c 100644 (file)
@@ -421,7 +421,7 @@ WOK
 #{rdf.metatag_html}
 #{@stylesheet.css_head}
 </head>
-#{@vz.color_body}
+<body lang="#{@md.opt.lng}">
 <a name="top" id="top"></a>}
     end
     def concordance
@@ -823,7 +823,7 @@ WOK
 #{rdf.metatag_html}
 #{@stylesheet.css_head_seg}
 </head>
-#{@vz.color_body}
+<body lang="#{@md.opt.lng}">
 <a name="top" id="top"></a>}
     end
     def title_banner(title,subtitle,creator)
index d2c1360f53e52a865a94dc23d4bbe339077b467e..de629d6165746584a53613cb177c768d0883bd90 100644 (file)
@@ -901,7 +901,7 @@ SiSU manifest: #{@md.title.full}
 <link rel="shortcut icon" href="#{@f.path_rel_links.html_scroll_css}_sisu/image_sys/rb7.ico" />
 #{@stylesheet.css_head}
 </head>
-<body lang="en" xml:lang="en">
+<body lang="#{@md.opt.lng}">
 #{format_head_toc.seg_head_navigation_band(:manifest)}
 WOK
           if make.build.manifest_minitoc?
index 751aa32bc544ff71d23df6e146ce0237174f0970..4004a446eb84c6f93ab5b3c4747d843c6c0ab137 100644 (file)
@@ -1330,7 +1330,7 @@ application/epub+zip
     <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
     #{@css.xhtml_epub}
   </head>
-  #{@vz.color_body}
+    <body lang="#{@md.opt.lng}">
     <div class="content">
       <div class="substance">
         <label class="ocn"><a href="#o#{dob.ocn}" class="lnkocn">#{dob.ocn}</a></label>
@@ -1753,7 +1753,7 @@ output_epub_cont_seg.close
     <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
     #{@css.xhtml_epub}
   </head>
-  #{@vz.color_body}}
+    <body lang="#{@md.opt.lng}">}
     end
     def concordance
       if @md.concord_make
@@ -1837,7 +1837,7 @@ output_epub_cont_seg.close
     <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
     #{@css.xhtml_epub}
   </head>
-  #{@vz.color_body}}
+    <body lang="#{@md.opt.lng}">}
     end
     def endnote_mark
 %{
index 61fedba1bae9bd54371bf14bfcd8bda9bd98b7e9..a8e3fa28d6a6fef75e959a4d011a4431d82b9e2e 100644 (file)
@@ -422,7 +422,7 @@ WOK
 #{rdf.metatag_html}
 #{@stylesheet.css_head}
 </head>
-#{@vz.color_body}
+<body lang="#{@md.opt.lng}">
 <a name="top" id="top"></a>}
     end
     def concordance
@@ -824,7 +824,7 @@ WOK
 #{rdf.metatag_html}
 #{@stylesheet.css_head_seg}
 </head>
-#{@vz.color_body}
+<body lang="#{@md.opt.lng}">
 <a name="top" id="top"></a>}
     end
     def title_banner(title,subtitle,creator)
index 1ac7f4d4d4b35e938cd825b0074bc7ee5837cf90..3cc41b105817b6df8b09c32b404f51ca3b75fbaa 100644 (file)
@@ -901,7 +901,7 @@ SiSU manifest: #{@md.title.full}
 <link rel="shortcut icon" href="#{@f.path_rel_links.html_scroll_css}_sisu/image_sys/rb7.ico" />
 #{@stylesheet.css_head}
 </head>
-<body lang="en" xml:lang="en">
+<body lang="#{@md.opt.lng}">
 #{format_head_toc.seg_head_navigation_band(:manifest)}
 WOK
           if make.build.manifest_minitoc?
index d654937e9e8d7acf7f2f8d6883bbf19181e0b5a9..73c5a1abcb5492d2721f4b6f01976a9173c634dd 100644 (file)
@@ -1330,7 +1330,7 @@ application/epub+zip
     <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
     #{@css.xhtml_epub}
   </head>
-  #{@vz.color_body}
+    <body lang="#{@md.opt.lng}">
     <div class="content">
       <div class="substance">
         <label class="ocn"><a href="#o#{dob.ocn}" class="lnkocn">#{dob.ocn}</a></label>
@@ -1753,7 +1753,7 @@ output_epub_cont_seg.close
     <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
     #{@css.xhtml_epub}
   </head>
-  #{@vz.color_body}}
+    <body lang="#{@md.opt.lng}">}
     end
     def concordance
       if @md.concord_make
@@ -1837,7 +1837,7 @@ output_epub_cont_seg.close
     <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />
     #{@css.xhtml_epub}
   </head>
-  #{@vz.color_body}}
+    <body lang="#{@md.opt.lng}">}
     end
     def endnote_mark
 %{