PreTeXtBook / pretext

PreTeXt: an authoring and publishing system for scholarly documents
https://pretextbook.org
Other
254 stars 203 forks source link

French quotation marks html and Latex #1906

Open JeanSebastienTurcotte opened 1 year ago

JeanSebastienTurcotte commented 1 year ago

Added code so that , and are french when fr-CA or fr-FR are selected as document language.

rbeezer commented 1 year ago

@JeanSebastienTurcotte, thanks for taking the initiative on this one. We just moved away from the "document-language" being the only language in play. Motivated by Doob's French-English Canadian Olympiad project.

So something more general needs to be put in place. Like a "local" language being a parameter to the templates for the characters (or the context itself). I haven't yet come to a conclusion on the best approach.

Related question: how does French look for a mix of quotes, like you might see in a novel? Single quotes inside of double quotes. Some very old LaTeX code tries to make sure 8 backticks in a row resolve to the right mix of single and double. Can't illustrate this in markdown!!!

JeanSebastienTurcotte commented 1 year ago

@rbeezer A quote inside a quote is depicted with standard english double quote. So you'd write << Rob asked me: "How does French look for a mix of quotes" in Github >>.

I was aware that double language was now a thing. Maybe this can help when it's decided how to implemented. While looking at how spaces behave in French (We need thin spaces before some punctuation, which english does not have, I'll have a post on -dev later).

I guess the easy way would be to create a and for french left quote and french right quote and treat them as something more available. But I understand not wanting more element.