-
Notifications
You must be signed in to change notification settings - Fork 330
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
No hyphenation for lang: es #8684
Comments
Notice that some special handling was added to tinytex for cases like this: rstudio/tinytex@0f20074 Perhaps they weren't ported to quarto's engine. |
We do support parsing of Babel warnings, but none are emitted in the example that you provided, so there isn't really a reasonable way for us to automatically detect this if the LaTeX engine isn't notifying us of any issue. |
Could you add some note in the documentation, please? The problem I see here is that all is documented as if it worked out of the box but when it doesn't it's hard to figure out why and what to do, because of the additional layers involved. It's even hard to figure out where the latex installation is located. Maybe some note after:
explaining that sometimes it's not possible to automatically install missing hyphenation rules and if you see that hyphenation is not working for language L, then you can find where tinytex is installed with Moreover, basictex, which is about the same size as tinytex, doesn't have this issue. Perhaps it's possible to include more language support out of the box without significantly increasing the size of the installation. Currently a simple Honestly, Spanish hyphenation working OOB (or at least with clear instructions about how to enable it) seems quite a basic requirement to me to just close this like that. |
Let me jump right here. No, it's not documented as such. Since you have been creating a relatively large number of issues here, let me ask you to read documentation carefully. Our documentation states: "The following languages currently have full translations available:" It doesn't say anything about hyphenation support for those languages.
I'm a native speaker of Portuguese, so I understand the desire and value of internationalization. But I think Quarto does an excellent job given our time constraints. If such fine-grained control over your latex output is the utmost priority for you, and you consider basictex to be sufficiently superior, you might want to consider using a system that supports basictex out of the box, and maybe Quarto isn't the system for you right now. |
It's not a problem. But because we look at every single new issue that's filed, and you're filing more issues than the median user, I'm asking you to also be more careful than the median user. In a real sense, it causes a degradation of our ability to attend to the other issues in the repository. |
Is that a problem? I know one of them was a mistake and I already apologized for it, but in general I'm careful and pay attention to the details. But if you feel I'm bothering I'll just stop reporting, no problem.
I did. Obviously I might have missed many things because it's a long document. Now, please let me quote another part of the documentation:
I might be wrong, but it's hard for me not to read there that hyphenation is intended to work OOB. I have analyzed the logs with and without hyphen-spanish installed and there are some differences that seem relevant:
|
Just in case it's not clear, this is part of the log only when hyphen-spanish is not installed:
|
Looking at the logs, there are two issues with
They probably changed the way it's reported, or perhaps the tex source you were generating was different at the time. But it's now possible to identify the message and parse the language from the same line |
Did you look and try what have been discussed in the following discussion? |
Thanks for the link. Disregarding subtleties related to German rules, the log they show there is similar to mine:
I indeed tried what they suggest, yes, I've installed hyphen-spanish, although because it was previously suggested in rstudio/tinytex#97. But this issue is about the automatic handling of missing hyphenation packages. I believe there is room for improvement now that we realize there is a message in the log that's easy to match and parse, but that is not being matched by |
I agree with the assessment that this is a condition we could and should detect - thanks for the additional debugging. I'll get a fix on the way. |
Thanks! |
@dragonstyle looking at your patch, wouldn't it be preferable if you defined |
Indeed - I'll tidy up. |
Bug description
When using the frontmatter:
I expect a pdf rendered using latex to have proper Spanish indentation (or any indentation whatsoever) as described in https://quarto.org/docs/authoring/language.html. That's not the case.
The documentation states:
From which I infer the proper behavior would have been to install the required packages when
lang: es
or to provide them preinstalled in tinytex. Instead, I had to manually install hyphen-spanish using tlmgr.Steps to reproduce
prueba.qmd
Expected behavior
The documented behavior: everything is properly autoinstalled so then hyphenation works for the document's language.
Actual behavior
No hyphenation for Spanish.
Your environment
macOS Sonoma
Quarto check output
The text was updated successfully, but these errors were encountered: