[tex4ht-commits] [SCM] tex4ht updated: r109 - trunk/lit

cvr at gnu.org.ua cvr at gnu.org.ua
Wed Aug 7 04:48:57 CEST 2013


Author: cvr
Date: 2013-08-07 05:48:57 +0300 (Wed, 07 Aug 2013)
New Revision: 109

Modified:
   trunk/lit/tex4ht-html4.tex
Log:
frenchb configuration had bugs which has been fixed by Michal Hoftich. 

html entity   is inserted before colon. This causes validation
error in some xml environments, where this entity is not defined, for
example in epub3. macro \:nbsp should be used instead. Patch for the
file tex4ht-html4.tex is provided in the attachment.  

french babel provides some macros which put some text to the
superscript. standard macros for superscripts aren't used, so these
superscripts doesn't show in the html output. A new configuration added.



Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2013-07-31 02:47:52 UTC (rev 108)
+++ trunk/lit/tex4ht-html4.tex	2013-08-07 02:48:57 UTC (rev 109)
@@ -14803,8 +14803,8 @@
 >>>
 
 The `59' stands for semicolon. Explicit character might be problematic
-for languages (e.g., French) where the cahacter is active and may be imported from
-aux or another file.  
+for languages (e.g., French) where the cahacter is active and may be
+imported from aux or another file.  
 
 
 \<lynx separator\><<<
@@ -17394,11 +17394,18 @@
    {\ht:special{t4ht@]unhskip}}
 >>>
 
+Patch submitted by Michal Hoftich:
+
+html entity \verb= = is inserted before colon. This causes validation
+error in some xml environments, where this entity is not defined, for
+example in epub3. macro \verb=\:nbsp= should be used instead. Patch for the
+file tex4ht-html4.tex is provided in the attachment.  
+
 \<configure html4 frenchb\><<<
 \ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi
 \Configure{frenchb-nbsp}
    {\ht:special{t4ht@?unhskip}\HCode{<span class="frenchb-nbsp">}%
-    \HCode{ }\setbox\tmp:bx=\hbox\bgroup}
+    \:nbsp\setbox\tmp:bx=\hbox\bgroup}
    {\egroup \HCode{</span>}}
 \Css{.frenchb-nbsp{font-size:75\%;}}
 >>>  
@@ -17407,14 +17414,28 @@
 \<configure html4 frenchb\><<<    
 \Configure{frenchb-thinspace}
    {\ht:special{t4ht@?unhskip}\HCode{<span class="frenchb-thinspace">}%
-    \HCode{ }\setbox\tmp:bx=\hbox\bgroup}
+    \:nbsp\setbox\tmp:bx=\hbox\bgroup}
    {\egroup \HCode{</span>}}
 \Css{.frenchb-thinspace{font-size:75\%;}}
 >>>
 
+french babel provides some macros which put some text to the
+superscript. standard macros for superscripts aren't used, so these
+superscripts doesn't show in the html output. 
 
+\<configure html4 frenchb\><<<    
+\NewConfigure{frenchup}{2}
+\Configure{frenchup}{\HCode{<sup class="french">}}{\HCode{</sup>}}
+\Css{sup.french{
+vertical-align:super;
+font-size:70%;
+}}
+\renewcommand\fup[1]{\a:frenchup#1\b:frenchup} 
+>>>
 
 
+
+
 \<configure html4 galician\><<<
 \def\A:charset{charset=iso-8859-1}
 >>>



More information about the tex4ht-commits mailing list