-
Notifications
You must be signed in to change notification settings - Fork 205
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
Fillin overhaul #1727
Fillin overhaul #1727
Conversation
This replaces #1710 . |
A lot of work here! ;-) Comments based on visual review. Feel free to pile on commits, or force-push, neither is a problem.
|
Oh! I had that for something that was cut once I found a way to do The new publisher variables here apply to all output forms. But the old stringparam latex.fillin.style is only for LaTeX. So I don't see a way to make the new publisher variables respect the old stringparam. The only way I see to continue to respect the old stringparam is to do things with it inside the LaTeX stylesheet. I will do that if you'd like. The change here would affect anyone who uses In the next force push I will modularize the latex macro definition so that the beamer template just calls it instead of repeating that code. |
OK, I see. Make that distinction clear then for And maybe review the deprecation message. We want to reduce panic. ;-) |
Will the schema be able to say that a |
Yes. Easy-peasy. (I think.) |
OK, Take 2 is ready. Even if everything here looks good, still need:
Should I try the schema updates or is it trivial for you? |
@rbeezer can do the schema.
We don't need to wait on CSS, right? That'll end up with @davidfarmer post-facto?
…-announce is for @Alex-Jordan.
On May 30, 2022 5:01:19 PM PDT, Alex Jordan ***@***.***> wrote:
OK, Take 2 is ready.
Even if everything here looks good, still need:
- schema updates
- CSS for `.fillin.underline`, `.fillin.box`, `.fillin.shade`
- message to -announce
Should I try the schema updates or is it trivial for you?
|
Got it. @davidfarmer At Subsection 4.7: Some Paragraph-Level Markup The first paragraph has We need plain
I would add these except I know CSS is in so much transition right now. |
I can do the CSS once an example is posted.
…On Mon, 30 May 2022, Rob Beezer wrote:
@rbeezer can do the schema.
We don't need to wait on CSS, right? That'll end up with @davidfarmer post-facto?
-announce is for @Alex-Jordan.
On May 30, 2022 5:01:19 PM PDT, Alex Jordan ***@***.***> wrote:
>OK, Take 2 is ready.
>
>Even if everything here looks good, still need:
>
>- schema updates
>- CSS for `.fillin.underline`, `.fillin.box`, `.fillin.shade`
>- message to -announce
>
>Should I try the schema updates or is it trivial for you?
>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you werementioned.[AABTULCWOTFPLYUXWZTJMFLVMWTUVA5CNFSM5XJW6PZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTD
N5WW2ZLOORPWSZGOIQGPNJQ.gif] Message ID: ***@***.***>
|
My most recent message here has an example posted. A "real" example will only have one of the fillin classes so I doctored that one to have all three. |
Very good! That's all a big improvement. I'll rebuild website shortly. Removed a mention in the sample article of |
Closed this too soon. But schema work is now done at: b65452b I classified a fill-in blank for text as a "generator" rather than a "character". May have lost a few odd-ball uses that didn't really make any sense anyway. And a new pattern for the math context. Tests well against the sample article. |
Thanks! Is it ready for an announce message? Maybe after @davidfarmer styles the HTML blanks? |
Knew I was forgetting something. Yes, fire away proudly on -announce. I thought |
Math fillin in HTML is covered. CSS is needed for HTML text fillin. But the default is |
My most recent message here has an example posted. A "real" example will
only have one of the fillin classes so I doctored that one to have all
three.
On Tue, May 31, 2022, 4:38 AM David W. Farmer ***@***.***>
wrote:
…
I can do the CSS once an example is posted.
On Mon, 30 May 2022, Rob Beezer wrote:
>
> @rbeezer can do the schema.
>
> We don't need to wait on CSS, right? That'll end up with @davidfarmer
post-facto?
>
> -announce is for @Alex-Jordan.
>
> On May 30, 2022 5:01:19 PM PDT, Alex Jordan ***@***.***> wrote:
> >OK, Take 2 is ready.
> >
> >Even if everything here looks good, still need:
> >
> >- schema updates
> >- CSS for `.fillin.underline`, `.fillin.box`, `.fillin.shade`
> >- message to -announce
> >
> >Should I try the schema updates or is it trivial for you?
> >
>
> —
> Reply to this email directly, view it on GitHub, or unsubscribe.
> You are receiving this because you
werementioned.[AABTULCWOTFPLYUXWZTJMFLVMWTUVA5CNFSM5XJW6PZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTD
> N5WW2ZLOORPWSZGOIQGPNJQ.gif] Message ID: ***@***.***>
>
>
>
—
Reply to this email directly, view it on GitHub
<#1727 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABEDOAD57IAPTMHZE6XN6OLVMX22FANCNFSM5XJW6PZQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think the CSS changes for this was either never done, or reverted during the overhaul. It has gone unnoticed this long because the default is OK. However, in ORCCA I think I will make text fillins have the shade style, and I noticed it was not working. If you go here: Paragraph There is a |
I added CSS for:
span.fillin.underline
span.fillin.box
span.fillin.shade
Formerly there was only span.fillin , which is the same as what now is
span.fillin.underline .
Let me know if something does not look right when those are actually
in the sample article.
…On Wed, 22 Mar 2023, Alex Jordan wrote:
I think the CSS changes for this was either never done, or reverted during the overhaul. It has gone unnoticed this long because
the default is OK. However, in ORCCA I think I will make text fillins have the shade style, and I noticed it was not working.
If you go here: Paragraph
https://pretextbook.org/examples/sample-article/html/interesting-corollary.html#p-238
There is a span.fillin.underline. It looks fine. Use the inspector to change it to span.fillin.box or span.fillin.shade, and
nothing changes. I'm comfortable going in to make these CSS additions, but I want to check in with @davidfarmer first.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were
mentioned.[AABTULF5ZKQ6D6HG7DXQZNTW5NBYZA5CNFSM5XJW6PZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOLA4EEPI.gif]
Message ID: ***@***.***>
|
It is a publisher switch to use one of the options globally, so it will never be the case that you can see them all on the same page with the untouched sample article. But using the inspector to change a class should be OK to get a glimpse of the other two styles. @rbeezer had some suggestions at last week's drop-in about where the baseline of these things should be. Rob, if you look here, what would you change? I can't recall the differences (if any) for the baseline between underline, box, and shade. |
This removes
latex.fillin.style
(so there will need to be an -announce message) just for that.It puts
publication/common/fillin/@textstyle
and@mathstyle
in place in publication files. Each may beunderline
(default for text),box
, orshade
(default for math).With shade becoming default for math (an improvement, I think), that is another reason for an -announce message.
The text fillin can compress in LaTeX up to 20% to help with line fitting. The text fillin in HTML puts classes in place, but a separate CSS PR is needed to actually make things happen there.
The math fillin templates are all in -common. In the end I found a way to make that work either way.
Text fillin uses
@characters
with default 10. Math fillin can use@characters
or like@fill="\frac{x+1}{2}"
with default@fill="XXX"
. fill trumps characters.This does not improve accessibility for fillins. It's already OK for fillins in text. And things are not good for fillins in math and it stays that way with these commits. But I have a lead on @pkra's aria-label MathJax extension that might work out separately, later. That extension is not playing will with
\phantom
right now.Lots of doc cutting and editing for this. I tried to pay lots of attention, but a second set of eyes on that would be good.
Not sure how you want to handle schema here. Now two types of fillin, one in math and one not?