bugtex4ht - Bugs: bug #352, LuaLaTeX and XeLaTeX broken again

 
 
Show feedback again

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

bug #352: LuaLaTeX and XeLaTeX broken again

Submitted by:  Michal Hoftich <michal_h21>
Submitted on:  Mon Jan 23 16:19:14 2017  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Tue Jun 30 21:02:25 2020, comment #10:

I don't remember what issues were that I mentioned in my previous post, but I think it is mostly fixed now.

Michal Hoftich <michal_h21>
Project Member
Mon Mar 20 20:47:17 2017, comment #9:

I've fixed some issues with Babel, notably Russian support and some text encoding issues. There are more issues though. Greek is broken and accents are lost with LuaLaTeX if you use `\selectlanguage{russian}` and then select some other language.

Michal Hoftich <michal_h21>
Project Member
Mon Mar 20 17:56:44 2017, comment #8:

Michal, is there more here? Something with babel?

Karl Berry <karl>
Project Administrator
Tue Jan 31 23:49:14 2017, comment #7:

I installed those new updates in TL, thanks.

No big deal, but when making example files that aren't 7-bit ASCII, it is better to make them 'attachments' to the report instead of pasting them inline. Better chance of reliable transmission that way :).

Karl Berry <karl>
Project Administrator
Tue Jan 31 16:49:53 2017, comment #6:

I've uploaded new configurations for Fontspec. New approach is used, user comamnds are redefined instead of internal Fontspec macros, as was in the previous version. I hope that it works in all real world examples.

It works with Polyglossia, some minor errors are produced with Babel. I will investigate that.

Here is a small example:

-----
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Latin Modern Roman}
\usepackage{polyglossia}
\setmainlanguage{czech}

\newfontfamily\greekfont{Linux Libertine O}[Script=Greek]
\newfontfamily\cyrillicfont{Linux Libertine O}[Script=Cyrillic]
\setotherlanguages{greek,russian}

\begin{document}
Příliš žluťoučký \textit{kůň}

\fontspec{Gentium}

\begin{greek}
Η Πράγα (τσέχικα: Praha), είναι η πρωτεύουσα και μεγαλύτερη πόλη της Τσεχίας.
Χτισμένη στον ποταμό \textbf{Μολδάβα} (Vltava), στην κεντρική Βοημία, έχει 1,2
εκατομμύριο κατοίκους. Αποκαλείται επίσης «η χρυσή πόλη» και «μητέρα των
πόλεων». Από το 1992, το ιστορικό κέντρο της Πράγας ανήκει στον κατάλογο
μνημείων παγκόσμιας κληρονομιάς της UNESCO.
\end{greek}

\begin{russian}
Пра́га (чеш. Praha [ˈpraɦa]) — город и столица Чехии; административный центр
Среднечешского края и двух его районов — Прага-Восток и Прага-Запад. Образует
самостоятельную административную единицу страны.
\end{russian}
\end{document}
-----

Michal Hoftich <michal_h21>
Project Member
Wed Jan 25 08:13:18 2017, comment #5:

> Excellent, of course. Minor points:
>
> 1) do you really intend "Michal However" in the ChangeLog,
> instead of "Hoftich"?


You are right, I've really put However to the changeLog. I think that I used Vim's auto-completion to input my surname and didn't notice that it produced something different than I wanted.

>
> 2) I don't like \batchmode behavior, because I've seen it end up asking for
> input upon error, without any preceding output. If you want to avoid all the
> insanely verbose output, I'll insert a shell redirection.
>


This change wasn't intentional, sorry. I played with the compilation options some time ago and forgot to return it back to the original state.

> 3) The recipe I sent you before for copyright stuff isn't right for brand-new
> files (sorry; thanks for trying), but rather for messing with Eitan-initiated
> files. For brand-new files, what's needed is:
> % newfile.4ht, generated from |jobname.tex
> % Copyright 2017 TeX Users Group
> |<TeX4ht license text|>
>


No, that's my bad, I copied the license text from existing configurations (but the ones for fontspec, so it were not Eitan's files)

> 4) I committed the new .4ht files to TL.
>


Thanks and sorry for my chaos.

Michal Hoftich <michal_h21>
Project Member
Tue Jan 24 23:27:14 2017, comment #4:

Excellent, of course. Minor points:

1) do you really intend "Michal However" in the ChangeLog,
instead of "Hoftich"?

2) I don't like \batchmode behavior, because I've seen it end up asking for input upon error, without any preceding output. If you want to avoid all the insanely verbose output, I'll insert a shell redirection.

3) The recipe I sent you before for copyright stuff isn't right for brand-new files (sorry; thanks for trying), but rather for messing with Eitan-initiated files. For brand-new files, what's needed is:
% newfile.4ht, generated from |jobname.tex
% Copyright 2017 TeX Users Group
|<TeX4ht license text|>

4) I committed the new .4ht files to TL.

Karl Berry <karl>
Project Administrator
Tue Jan 24 10:51:38 2017, comment #3:

I've added support for basic Latin diacritics in vanilla LaTeX. This means that

\documentclass{article}
\begin{document}
Příliš žluťoučký kůň
\end{document}

should produce diacritics in both HTML and PDF.

Michal Hoftich <michal_h21>
Project Member
Mon Jan 23 23:55:30 2017, comment #2:

committed new latex.4ht to TL. Thanks much.

Karl Berry <karl>
Project Administrator
Mon Jan 23 21:41:34 2017, comment #1:

I've committed quick fix to the repo. It tests for presence of TU font encoding in latex.4ht and sets the font encoding to OT1 when it's used.

There is still an issue with Fontspec, support for \newfontfamily is broken.

Michal Hoftich <michal_h21>
Project Member
Mon Jan 23 16:19:14 2017, original submission:

LaTeX team released new LaTeX kernel, which uses new font encoding, TU, when Unicode engines are used. TU font encoding selects OpenType fonts by default.

I've tested it some time ago and it worked with tex4ht, but there were some additional changes apparently - because tex4ht now totally crashes with both LuaLaTeX and XeLaTeX. Even when you don't use Fontspec package, which was updated as well.

As a workaround, you can use

\usepackage[T1]{fontenc}

in the premble. It will disable the TU font encoding and the document should compile. But without diacritics.

You can use

\usepackage[utf8]{luainputenc}

with LuaTeX to get Latin diacritics.

Fontspec support is broken totally.

Michal Hoftich <michal_h21>
Project Member

 

No files currently attached

 

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 (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):

     

     

    1 latest change follows.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Jun 30 21:02:25 2020michal_h21Open/ClosedOpen=>Closed
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray