bugtex4ht - Bugs: bug #189, French babel

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #189: French babel

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Tue Aug 6 09:07:12 2013  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: CV Radhakrishnan <cvr>
Open/Closed: Closed

Sat Feb 22 08:46:25 2014, comment #4:

Thank you Karl.

Raphaël Pinson <raphink>
Project Member
Fri Feb 21 23:56:38 2014, comment #3:

Hi Raphael - thanks very much. I changed to \% in tex4ht-html4.tex and in the current version in TeX Live.

I gather it worked ok except for that, so marking this closed. Of course if other problems arise, please report them.

Thanks,
Karl

Karl Berry <karl>
Project Administrator
Wed Feb 19 13:28:02 2014, comment #2:

The code submitted to fix this issue generates a 'font-size:70' for sup.french, which is obviously quite large…

Escaping the '%' sign fixes this issue:

--- html4.4ht 2014-02-19 14:10:25.634970719 +0100
+++ html4.4ht.new 2014-02-19 14:10:41.518970055 +0100
@@ -30066,7 +30066,7 @@
\Configure{frenchup}{\HCode{<sup class="french">}}{\HCode{</sup>}}
\Css{sup.french{
vertical-align:super;
-font-size:70%;
+font-size:70\%;
}}
\renewcommand\fup[1]{\a:frenchup#1\b:frenchup}

Raphaël Pinson <raphink>
Project Member
Wed Aug 7 02:43:40 2013, comment #1:

tex4ht-4ht.tex has been patched with patch submitted by Machal Hoftich, extra macros added to frenchb configuration. New html4.4ht generated and submitted for testing.

(file #144)

CV Radhakrishnan <cvr>
Project AdministratorIn charge of this item.
Tue Aug 6 09:07:12 2013, original submission:

There are two issues with French babel:

1. html entity &nbsp; 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.

Michal Hoftich <michal_h21>
Project Member

 

Attached Files
file #144:  html4.4ht.gz added by cvr (128kB - application/x-gzip)
file #143:  tex4ht-html4.patch added by michal_h21 (783B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by karl (Posted a comment)
  • -unavailable- added by raphink (Posted a comment)
  • -unavailable- added by cvr (Updated the item)
  • -unavailable- added by michal_h21 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    7 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Feb 21 23:56:38 2014karlStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Wed Aug 7 02:43:40 2013cvrAttached File-=>Added html4.4ht.gz, #144
      StatusIn Progress=>Ready For Test
    Tue Aug 6 23:22:17 2013cvrStatusNone=>In Progress
      Assigned toNone=>cvr
    Tue Aug 6 09:07:12 2013michal_h21Attached File-=>Added tex4ht-html4.patch, #143
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray