Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polyglossia error with htlatex for Kannada language #419

Closed
diwakarshastri opened this issue May 17, 2020 · 8 comments
Closed

Polyglossia error with htlatex for Kannada language #419

diwakarshastri opened this issue May 17, 2020 · 8 comments

Comments

@diwakarshastri
Copy link

Hello,
I am trying to use tex4ebook for Kannada book. I am getting the following error. I have tried on Windows with Miktex and on Ubuntu with TexLive. Initially, I got a similar error in windows, but for some unknown reason, I am getting a different error.
Example.zip

I have attached the .tex and the screenshot of the error.

I used the tex4ebook -x kannada.tex command to convert the .tex to ebook format. I have also attached font Tunga.ttf which I have used in the document.

@jspitz
Copy link
Collaborator

jspitz commented May 21, 2020

I don't know why this does not work with tex4ht (might be a problem or limitation of tex4ht), but it seems to help to add the following line:

\newfontfamily\kannadafont[Script=Kannada]{Tunga}

At least compilation succeeds then.

@jspitz
Copy link
Collaborator

jspitz commented May 21, 2020

As to the problem I suggest you file a report at tex4ht's tracker:
https://puszcza.gnu.org.ua/bugs/?group=tex4ht

It seems that the Script option in \setmainfont is not yet supported in tex4ht (at least the examples given by the package maintainer suggest that)

@jspitz
Copy link
Collaborator

jspitz commented May 24, 2020

@michal-h21 is the assumption correct that tex4ht currently does not consider the Script option of polyglossia's \setmainlanguage/\setdefaultlanguage and \setotherlanguage but rather requires fontspec's \newfontfamily\<script>font?

If so, is this worth a feature request at the tex4ht tracker?

@michal-h21
Copy link

@jspitz you are right, the script option didn't have an effect. I've just added the support to TeX4ht sources, so it should work after TL update.

@jspitz
Copy link
Collaborator

jspitz commented May 25, 2020

Cool, thanks @michal-h21.

@jspitz jspitz closed this as completed May 25, 2020
@diwakarshastri
Copy link
Author

@michal-h21 and @jspitz Thank you for the update. Although now the book is compiling, I am still getting the same error at places where I have used tables.

@jspitz
Copy link
Collaborator

jspitz commented May 26, 2020

@diwakarshastri please report this to the tex4ht tracker.

@diwakarshastri
Copy link
Author

@jspitz Ok thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants