-
Notifications
You must be signed in to change notification settings - Fork 164
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
Large amount of warnings when setting font (re-opening closed issue 819) #924
Comments
Linking the mentioned issue: #819 I think that there are two main things here:
Tectonic's handling of warnings / diagnostics.
This is weird in and of itself. But the venerable " Maybe most of tracings shouldn't have calls to
I don't expect any warnings from the above, but as of now each line of tracing output is a warning. But maybe it was intended, since if the user explicitly asks for those messages, they should see them prominently? As a user of Tectonic I know that I don't get the log file by default, but that's fine because I can still get it and look at the traces. I also think that ignoring
I expect that the above doesn't write " Use of
|
The following has been suggested to me as a justification for enabling xelatex font tracing by default: If you compile with lualatex or pdflatex you see in the log at the c:/texlive/2022/texmf-dist/fonts/opentype/google/roboto/Roboto-Regular.otf This info isn't provided by xelatex (as the actual font is included |
Apologies for being slow in following up here — thanks @vlasakm for giving a nice summary of the situation with Tectonic. I have to say that, even if @rdtennent hasn't gotten any complaints about it, I really feel quite strongly, like @vlasakm, that it's not a good practice for packages to unconditionally turn on any of the TeX tracing options. They are debugging mechanisms and I think that they should remain off unless the document author is, well, explicitly debugging something. The quoted debugging advice of "add \XeTeXtracingfonts=1 and then show the log-file" seems perfectly fine to me! That being said, this is basically an aesthetic stance — the main "cost" to turning on tracing in TeX is that there's a some additional output, and traditional TeX emits a lot of output to begin with. I believe this is precisely the reason that Roboto users haven't complained thus far. @vlasakm is also correct that it's not ideal for Tectonic to surface tracing output as warnings. Doing so was just an expedient way to deal with those outputs, founded on the assumption that they'd only ever be emitted if/when the user intentionally turns them on. It would be more correct to add a separate "trace" output category, which could potentially be handled slightly differently than warnings. In terms of what's actionable here, @rdtennent, I do continue to encourage you to remove the always-on tracing behavior. But under the assumption that you haven't changed your mind about that, I think probably the most sensible approach for Tectonic would be to turn the A slightly more elaborate solution would maybe be to add that "trace" output category and then only surface that output to the user if |
Unfortunately, I can't turn off XeTextracingfonts in some 60 or so font
packages by waving a magic wand; it requires separately revising and
uploading each individual package. I'll have to do it incrementally. I'll
start with roboto.
Bob Tennent
…On Sat, Sep 10, 2022 at 3:35 PM Peter Williams ***@***.***> wrote:
Apologies for being slow in following up here — thanks @vlasakm
<https://github.com/vlasakm> for giving a nice summary of the situation
with Tectonic.
I have to say that, even if @rdtennent <https://github.com/rdtennent>
hasn't gotten any complaints about it, I really feel quite strongly, like
@vlasakm <https://github.com/vlasakm>, that it's not a good practice for
packages to unconditionally turn on any of the TeX tracing options. They
are debugging mechanisms and I think that they should remain off unless the
document author is, well, explicitly debugging something. The quoted
debugging advice of "add \XeTeXtracingfonts=1 and then show the log-file"
seems perfectly fine to me!
That being said, this is basically an aesthetic stance — the main "cost"
to turning on tracing in TeX is that there's a some additional output, and
traditional TeX emits a lot of output to begin with. I believe this is
precisely the reason that Roboto users haven't complained thus far.
@vlasakm <https://github.com/vlasakm> is also correct that it's not ideal
for Tectonic to surface tracing output as warnings. Doing so was just an
expedient way to deal with those outputs, founded on the assumption that
they'd only ever be emitted if/when the user intentionally turns them on.
It would be more correct to add a separate "trace" output category, which
could potentially be handled slightly differently than warnings.
In terms of what's actionable here, @rdtennent
<https://github.com/rdtennent>, I do continue to encourage you to remove
the always-on tracing behavior. But under the assumption that you haven't
changed your mind about that, I think probably the most sensible approach
for Tectonic would be to turn the XeTeXtracingfonts output into regular
output and not report it as a warning.
A slightly more elaborate solution would maybe be to add that "trace"
output category and then only surface that output to the user if
\tracingonline=1. Granting that I don't feel like I fully understand the
semantics of \tracingonline, I *think* that would be sensible, and
prevent the user from being barraged with messages when using roboto in a
standard way?
—
Reply to this email directly, view it on GitHub
<#924 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUZWNVQGWH5OIQVTXOYLODV5TPI5ANCNFSM565CGMPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you for even considering such an undertaking! Tectonic's users will be grateful. |
Hello @rdtennent, I'm not aware: is this an issue of locating where the macro is or do manual modifications because other code relies on it? @pkgw @vlasakm interestingly, as of $ rg -l '\\XeTeXtracingfonts=1'
./texmf-dist/tex/latex/opensans/opensans.sty
./texmf-dist/tex/latex/xcharter/XCharter.sty
./texmf-dist/tex/latex/firamath-otf/firamath-otf.sty
./texmf-dist/tex/latex/poiretone/PoiretOne.sty
./texmf-dist/tex/latex/heros-otf/heros-otf.sty
./texmf-dist/tex/latex/gillius/gillius.sty
./texmf-dist/tex/latex/gillius/gillius2.sty
./texmf-dist/tex/latex/accanthis/accanthis.sty
./texmf-dist/tex/latex/inter/inter.sty
./texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
./texmf-dist/tex/latex/cochineal/cochineal.sty
./texmf-dist/tex/latex/pagella-otf/pagella-otf.sty
./texmf-dist/tex/latex/schola-otf/schola-otf.sty
./texmf-dist/tex/latex/comfortaa/comfortaa.sty
./texmf-dist/tex/latex/newpx/newpxtext.sty
./texmf-dist/tex/latex/lato/lato.sty
./texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty
./texmf-dist/tex/latex/newtx/newtxtext.sty
./texmf-dist/tex/latex/cantarell/cantarell.sty
./texmf-dist/tex/latex/termes-otf/termes-otf.sty
./texmf-dist/tex/latex/playfair/PlayfairDisplay.sty
./texmf-dist/tex/latex/droid/droidsansmono.sty
./texmf-dist/tex/latex/droid/droidsans.sty
./texmf-dist/tex/latex/droid/droidserif.sty |
@mnrvwl I believe that @rdtennent maintains most of those packages and was talking about changing them upstream. |
I believe I have revised all of my font packages by removing the command
that was causing the warnings. Perhaps tectonic needs to update.
Bob Tennent
…On Fri, Oct 28, 2022 at 10:05 AM Peter Williams ***@***.***> wrote:
@mnrvwl <https://github.com/mnrvwl> I believe that @rdtennent
<https://github.com/rdtennent> maintains most of those packages and was
talking about changing them upstream.
—
Reply to this email directly, view it on GitHub
<#924 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUZWNUSQZ6LQIQ2PYTCIJDWFPMTBANCNFSM565CGMPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK, some of those are mine. I'll revise them ASAP. But the others are not
mine to edit.
Bob T.
…On Fri, Oct 28, 2022 at 10:02 AM ⑆ Neveda ⑈ ***@***.***> wrote:
Hello @rdtennent <https://github.com/rdtennent>, I'm not aware: is this
an issue of locating where the macro is *or* do manual modifications
because other code relies on it?
@pkgw <https://github.com/pkgw> @vlasakm <https://github.com/vlasakm>
interestingly, as of 2022-10-28, TeX Live 2022 has a total of *24*
packages that use \XeTeXtracingfonts=1:
$ rg -l '\\XeTeXtracingfonts=1'./texmf-dist/tex/latex/opensans/opensans.sty./texmf-dist/tex/latex/xcharter/XCharter.sty./texmf-dist/tex/latex/firamath-otf/firamath-otf.sty./texmf-dist/tex/latex/poiretone/PoiretOne.sty./texmf-dist/tex/latex/heros-otf/heros-otf.sty./texmf-dist/tex/latex/gillius/gillius.sty./texmf-dist/tex/latex/gillius/gillius2.sty./texmf-dist/tex/latex/accanthis/accanthis.sty./texmf-dist/tex/latex/inter/inter.sty./texmf-dist/tex/latex/linguisticspro/linguisticspro.sty./texmf-dist/tex/latex/cochineal/cochineal.sty./texmf-dist/tex/latex/pagella-otf/pagella-otf.sty./texmf-dist/tex/latex/schola-otf/schola-otf.sty./texmf-dist/tex/latex/comfortaa/comfortaa.sty./texmf-dist/tex/latex/newpx/newpxtext.sty./texmf-dist/tex/latex/lato/lato.sty./texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty./texmf-dist/tex/latex/newtx/newtxtext.sty./texmf-dist/tex/latex/cantarell/cantarell.sty./texmf-dist/tex/latex/termes-otf/termes-otf.sty./texmf-dist/tex/latex/playfair/PlayfairDisplay.sty./texmf-dist/tex/latex/droid/droidsansmono.sty./texmf-dist/tex/latex/droid/droidsans.sty./texmf-dist/tex/latex/droid/droidserif.sty
—
Reply to this email directly, view it on GitHub
<#924 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUZWNRPD7KUQSXGHKMA2ALWFPMGXANCNFSM565CGMPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks so much for the undertaking! You're right, I was reviewing TeX Live sources instead of |
I've uploaded revised gillius, linguisticspro, playfair and poiretone but
it may take a couple of days for the changes to hit TeXLive. A couple were
already updated in my files but apparently never reached CTAN. The other
fonts listed are not mine I don't think. You'd have to contact the
relevant maintainer.
Bob T.
…On Fri, Oct 28, 2022 at 10:02 AM ⑆ Neveda ⑈ ***@***.***> wrote:
Hello @rdtennent <https://github.com/rdtennent>, I'm not aware: is this
an issue of locating where the macro is *or* do manual modifications
because other code relies on it?
@pkgw <https://github.com/pkgw> @vlasakm <https://github.com/vlasakm>
interestingly, as of 2022-10-28, TeX Live 2022 has a total of *24*
packages that use \XeTeXtracingfonts=1:
$ rg -l '\\XeTeXtracingfonts=1'./texmf-dist/tex/latex/opensans/opensans.sty./texmf-dist/tex/latex/xcharter/XCharter.sty./texmf-dist/tex/latex/firamath-otf/firamath-otf.sty./texmf-dist/tex/latex/poiretone/PoiretOne.sty./texmf-dist/tex/latex/heros-otf/heros-otf.sty./texmf-dist/tex/latex/gillius/gillius.sty./texmf-dist/tex/latex/gillius/gillius2.sty./texmf-dist/tex/latex/accanthis/accanthis.sty./texmf-dist/tex/latex/inter/inter.sty./texmf-dist/tex/latex/linguisticspro/linguisticspro.sty./texmf-dist/tex/latex/cochineal/cochineal.sty./texmf-dist/tex/latex/pagella-otf/pagella-otf.sty./texmf-dist/tex/latex/schola-otf/schola-otf.sty./texmf-dist/tex/latex/comfortaa/comfortaa.sty./texmf-dist/tex/latex/newpx/newpxtext.sty./texmf-dist/tex/latex/lato/lato.sty./texmf-dist/tex/latex/libertinus-otf/libertinus-otf.sty./texmf-dist/tex/latex/newtx/newtxtext.sty./texmf-dist/tex/latex/cantarell/cantarell.sty./texmf-dist/tex/latex/termes-otf/termes-otf.sty./texmf-dist/tex/latex/playfair/PlayfairDisplay.sty./texmf-dist/tex/latex/droid/droidsansmono.sty./texmf-dist/tex/latex/droid/droidsans.sty./texmf-dist/tex/latex/droid/droidserif.sty
—
Reply to this email directly, view it on GitHub
<#924 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUZWNRPD7KUQSXGHKMA2ALWFPMGXANCNFSM565CGMPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I've sent an e-mail requesting removal of \XeTeXtracingfonts=1 to the following font-package maintainers: [email protected], The following are the font packages that require editing: cantarell Bob T. |
@rdtennent Thx a lot! I can check this with a |
@mnrvwl do you know when the bundles typically get updated btw? For now I'm using a manual installation of roboto to avoid this, but would love to switch ASAP, and this could also serve as a test ;-). Otherwise, these fixes will take some time to trickle downstream to here, but this could probably be closed at some point if you dont want to keep it open until all changes arrived. |
The roboto package was revised and uploaded to CTAN over a month ago.
TeXLive updated soon after.
Bob Tennent
…On Fri, Nov 11, 2022 at 3:30 AM 9SMTM6 ***@***.***> wrote:
@mnrvwl <https://github.com/mnrvwl> do you know when the bundles
typically get updated btw? For now I'm using a manual installation of
roboto to avoid this, but would love to switch ASAP, and this could also
serve as a test ;-).
Otherwise, these fixes will take some time to trickle downstream to here,
but this could probably be closed at some point if you dont want to keep it
open until all changes arrived.
—
Reply to this email directly, view it on GitHub
<#924 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUZWNSMJKNNONTE4V6YUXDWHX73FANCNFSM565CGMPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@9SMTM6 I'd say at least ~6 months after a new TeX Live official release, so around October 2023. |
6 months after an annual release? Seems unreasonably long. Font packages don't have any binary components and are updated continuously at TeXLive; is there some reason why tectonic doesn't update its font packages regularly? |
I think it's one blob with all packages etc. I don't know precisely what role it fulfills, but in that context it's not entirely difficult to understand. One could still perhaps make an exception, ultimately I'll live with it though. |
@rdtennent updating the bundles takes a lot, see: tectonic-typesetting/tectonic-staging#17 (comment) In the past releases we had ⪆ 12 months delay from last TeX Live. |
Updating of the tectonic "bundle" isn't my concern. The issue I've been
dealing with is updating of the font packages that generate warnings. If
tectonic can't update these packages except as part of an annual "bundle"
then users should download and install the relevant packages from CTAN.
Installation using the provided .tds.zip archives should be
straightforward. I'm assuming that tectonic allows users to set up local
or personal texmf trees.
…On Mon, Nov 14, 2022 at 4:56 PM ⑆ Neveda ⑈ ***@***.***> wrote:
@rdtennent <https://github.com/rdtennent> updating the bundles takes a
lot, see: tectonic-typesetting/tectonic-staging#17 (comment)
<tectonic-typesetting/tectonic-staging#17 (comment)>
In the past releases we had around 12 months or more delay from last TeX
Live.
Thanks to recent changes the time span can be reduced, but it still is a
lot of manual work.
—
Reply to this email directly, view it on GitHub
<#924 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAUZWNSM5FPOAD7J2TTI2ULWIKYP7ANCNFSM565CGMPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
A workaround to silence the warnings is to add the following before the offending font packages are loaded: \newcount\XeTeXtracingfonts This makes It is of course also possible to do this at the engine level. Though a radical solution and a one that disables the possibility of tracing for everyone, could this be a temporary workaround in Tectonic until fixes in packages propagate? Or could we patch the packages in bundle? Or should we just not go through the "warning code path" for |
FWIW, at this point, I'd be happy to accept PRs to the tectonic-texlive-bundles repo to patch the relevant packages — I want to avoid patches where possible, but in this circumstance it's a small effort for a nice quality-of-life win here. |
This issue was closed because a developer denied that it was a tectonic issue. I believe he's mistaken. If I compile a simple test document that uses roboto with xelatex, no Requested font messages are output to the terminal; they go to the log file. So I believe tectonic should elide Requested font messages from the user output.
I'm the maintainer of the roboto package and many other font packages; I've never had any complaints about this and I would think some users depend on \XeTeXtracingfonts.
Bob Tennent
The text was updated successfully, but these errors were encountered: