-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
Series changes (a version of #1396) #1583
Conversation
# Conflicts: # base/ltfssaxes.dtx
…hanges # Conflicts: # base/ltfssaxes.dtx
Is it possible to predict the chosen rules? In most cases, the reasoning is obvious, but it is not always clear why weight is given priority over width in some cases but not in others (or the other way around). I also wonder how easy it would be to enable users to [I am somewhat tempted to remove code which subverts the series change rules from |
it is pretty difficult to come up with consistent defaults when a falback is required. Could be that during all this editing some leftovers are still there. My basic guiding principle for the few cases with the forth argument non-empty was
I guess that's all behind the current choices.
maybe. but it is already logged if a substitution happens ie if the 4th argument is used rather than the 3rd if I remember correctly, but I can have a look to see if some "debugging" cna be easily implemented.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firstly, a few minor comments (another review will follow)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two more minor comments (another review will follow)
Co-authored-by: user227621 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fully implement the "stay with some sort of bold if a request for sb, eb or ub cannot be fulfilled" logic, the following rules are missing.
(another review will follow)
Co-authored-by: user227621 <[email protected]>
something like this?
After cleanup and some integration with tracefnt perhaps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some rewordings
Three further comments:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve alignment
That's more elaborate than I had in mind, but, yes, that would be useful, I think. On line 24: Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not checked: approx. one million? Change Rules . . .
so I cannot guarantee that all the alignments are spot on!
A few wording changes are either essential, or recommended.
I think using a more probable series in the fourth argument makes more sense than repeating the series from the first, unless there is some guarantee that the first actually exists. Probably I'm missing something here, but there is certainly no general guarantee that the current font name reflects the actual font series (or shape etc.). After \DeclareFontSeriesChangeRule {zzz}{eb}{eb}{zzz} because |
Co-authored-by: user227621 <[email protected]>
Given that one doesn't know what 'zzzz' it is hard to say if that is a good rule or not, but if the user wanted 'zzz' and now wants to switch to 'eb' and 'eb' doesn't exist then your rule says stay with the series you are in, so it is not an unreasonable rule even for that case. Of course, if you want to ensure that there is always some "boldness" as the result and using 'b' is a better choice (which is what I wrote earlier). But the statement wasn't that any arbitray zzzz is good approximation for eb, the argument was that ebuc is a better approroximation to ubuc than b or buc. |
Yes, but the current series being |
But, thinking about this again, maybe the rules do now guarantee the current font is the best available substitute, even if it is not what it says on the tin? |
No it does not, i.e., if somebody did \fontseries{ebuc} in one go an this didn't exist, but as I tried to explain in my other reply, if ubuc and ebuc doesn't exist trying the latter one more time doesn't really hurt. Any such fallback is only helping so much and if you are making an important document then you better make sure that all that is requested as font faces is really to your liking and if not do some adjustments. |
Sorry. I do not really understand how to navigate GitHub replies as the link always just dumps me at the top of the page.
Well, yes. I don't really have a view on what the rule should be. I just wasn't convinced by the reason for changing your initial proposal. Indeed, there is a limit to what you can do. I keep track of fake fonts and it still isn't always clear what to do. |
you are not the only one. I find that difficult too and largely rely on the additional mails I get as well
I'm not 100% convinced either, but my current feeling is that is not a bad idea the way it is now. Maybe it has to be revisited at some point if mre real life usage shows what works best. @user227621 any more comments from you (you still request changes)? |
And the (hopefully) final comment: In line 244, replace
with
(I think we've thought about it enough now.) |
Co-authored-by: user227621 <[email protected]>
…ything that hasn't changed between 2024 and 2020)
unless I overlooked something I think this PR is done from my side |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could remove the unnecessary <-----
comments in the rollback section (they just produce overfull boxes). Otherwise, I think this PR is ready.
Co-authored-by: user227621 <[email protected]>
thanks @car222222, @cfr42 and @car222222 for helping to get this done |
correction: thanks @user227621 ... ! |
@FrankMittelbach You're welcome. |
You don't need to thank me for sticking my nose in where it wasn't wanted. ;) |
any constructive feedback is wanted (by me at least). Doesn't necessarily me I follow a suggestion (though often enough I do), but just tihnk about it or clarify, if something is not clear, is a Good Thing (TM). And it resulted, for example, in some draft code for debugging which eventually wil be useful, once integrated |
Internal housekeeping
Status of pull request
Checklist of required changes before merge will be approved
\changes
entries in source includedchanges.txt
updatedltnewsX.tex
(and/orlatexchanges.tex
) updatedThis is a slightly adjusted version of #1396 because that pull request would be difficult to merge after all several changes to ltfssaxes.dtx. It contains the pull request #1582 as the two are somewhat interwined.