bugtex4ht - Bugs: bug #441, tex4ht+fontspec+textbf produces...

 
 
Show feedback again

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

bug #441: tex4ht+fontspec+textbf produces incorrectly nested html

Submitted by:  Alex Watson <rotprsl2>
Submitted on:  Wed 16 Oct 2019 05:43:31 PM EEST  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 17 Dec 2019 01:56:08 AM EET, comment #3:

committed to tl (some time ago), closing.

Karl Berry <karl>
Project Administrator
Thu 17 Oct 2019 10:43:38 AM EEST, comment #2:

This fixes the issue for me. Thank you, Michal.

Alex

Alex Watson <rotprsl2>
Wed 16 Oct 2019 08:48:08 PM EEST, comment #1:

Hi Alex,

you are right, there is tag mismatch. Try the following .cfg file:

\Preamble{xhtml}
\Configure{textit}{\HCode{<i>}\NoFonts}{\EndNoFonts\Tg</i>}
\Configure{textbf}{\HCode{<strong>}\NoFonts}{\EndNoFonts\Tg</strong>}
\Configure{textsc}{\HCode{<span class="small-caps">}\NoFonts}{\EndNoFonts\Tg</span>}
\begin{document}
\EndPreamble

I've added the fix to tex4ht sources.

Best,
Michal

Michal Hoftich <michal_h21>
Project Member
Wed 16 Oct 2019 05:43:31 PM EEST, original submission:

The attached file, which uses fontspec, when run with `make4ht -uf html5 -l ht-nesting.tex` (or with xhtml format), produces the attached HTML document.

The tags are nested incorrectly: a `strong' element is opened before the `p' element is closed. The document does not validate with W3C validator.

The `tidy' extension corrects this, but there must be something going wrong internally to produce an incorrectly nested file.

Alex Watson <rotprsl2>

 

Attached Files
file #323:  ht-nesting.tex added by rotprsl2 (128B - text/x-tex)
file #324:  ht-nesting.html added by rotprsl2 (562B - text/html)

 

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 michal_h21 (Posted a comment)
  • -unavailable- added by rotprsl2 (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):

     

     

    3 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 17 Dec 2019 01:56:08 AM EETkarlOpen/ClosedOpen=>Closed
    Wed 16 Oct 2019 05:43:31 PM EESTrotprsl2Attached File-=>Added ht-nesting.tex, #323
      Attached File-=>Added ht-nesting.html, #324
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray