On 2/18/26 11:27, Alex Jordan wrote:
> > Would it be just as happy with Unicode smart quotes?
>
> Not presently "happy". Somewhere closer to "reluctantly accepting".
<audible-chuckle/>
> The one thing that occurs to me is that if you put unicode quotes here, PG will
> leave them alone. That is, it's not currently going to do anything to convert
> them back to apostrophes. And so if that PG problem lands in a WeBWorK server
> and is used in a WeBWorK course problem set, a student might want to make a PDF
> hardcopy of the set. And behind the scenes, there will be a .tex file with those
> unicode quotes in it. And I haven't tried, but I expect pdflatex to either choke
> or do something bad with that character like represent it as a "?". (Some
> webwork2 servers use pdflatex, some use xelatex.)
Sort of as I expected. Thanks. We will just leave things as they are (which is
what I was about to do anyway). But now I can drop an informed comment in the
code, instead of saying we are punting.
A twist of sorts. A WW problem goes to the server and comes back in a static
(legal PreTeXt) form which includes a #q element (say). I think that must be a
real possibility. Now an author's overall document is marked as French (say) so
they get English quotes in the HTML interactive problem and guillemets in the
PDF version.
__ No problem, I like it.
__ We can have the server put an @xml:lang="en-US" on the #q element (and
cousins).
__ The pre-processor can match on "webwork/../q" and add @xml:lang="en-US" to
static versions.
> Over in the PG developers group, I could propose making PGML recognize raw smart
> quotes and convert them to something else for PG's TeX output. Not sure if that
> would happen, but if it did, it would not be in production until this summer.
Your call. I don't think we want WW devs to haveto go down this rabbit hole
unprepared. I've enjoyed it, but I've been saving it for the right moment.
(See the oldest outstanding PR!) Likely depends on your reaction to the
non-exclusive-or listed above.
Just an aside. There are LaTeX macros for the four English style of quotes
(left/right, single/double). Consider that three backticks may not render the
way it was intended. Rare, but still another gotcha for LaTeX. Perhaps WW
might like to output those, just for openers.
Thanks for the assist.
Rob