[tex4ht] [bug #189] French babel

Michal Hoftich puszcza-hackers at gnu.org.ua
Tue Aug 6 11:07:12 CEST 2013


URL:
  <http://puszcza.gnu.org.ua/bugs/?189>

                 Summary: French babel
                 Project: tex4ht
            Submitted by: michal_h21
            Submitted on: Tue 06 Aug 2013 12:07:12 EEST
                Category: None
                Priority: 5 - Normal
                Severity: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

There are two issues with French babel:

1. 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.

2. 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. There is a fix for this error:

\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}

This code should be put to the file tex4ht-4ht.tex, section frenchb.ldf.
Unfortunately, I don't really understand structure of tex4ht literate sources
and my attemps to process them for generating the output files end with
errors, so I posted this only as a code snippet.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 06 Aug 2013 12:07:12 EEST  Name: tex4ht-html4.patch  Size: 783B  
By: michal_h21

<http://puszcza.gnu.org.ua/bugs/download.php?file_id=143>

    _______________________________________________________

Reply to this item at:

  <http://puszcza.gnu.org.ua/bugs/?189>

_______________________________________________
  Message sent via/by Puszcza
  http://puszcza.gnu.org.ua/



More information about the tex4ht mailing list