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
Language option doesn't work #757
Comments
I'll admit that the way the
in the documentation of the Consequently % !TeX program = xelatex
% !TeX encoding = UTF-8
% !TeX spellcheck = it_IT
\begin{filecontents}{biblio.bib}
@Article{Cufalo2017,
author = {Cufalo, Domenico},
journaltitle = {Exemplaria Classica},
pages = {227--242},
title = {{\em Scholia in scholia}: su una nuova edizione di Hermias di Alessandria},
volume = {21},
date = {2017},
journalsubtitle = {Journal of Classical Philology},
}
@Book{Cufalo2007,
Title = {Scholia Graeca in Platonem},
Author = {Cufalo, Domenico},
Location = {Roma},
Publisher = {Edizioni di Storia e Letteratura},
Year = {2007},
Number = {5.1},
Series = {«Pleiadi»},
Titleaddon = {I: Scholia ad dialogos tetralogiarum I--VII continens},
}
\end{filecontents}
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage[variant=ancient]{greek}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\usepackage{filecontents}
\usepackage[%
backend=biber,%
language=italian,%
autolang=other,
style=authoryear,
]{biblatex}
\addbibresource{biblio.bib}
\begin{document}
\section{Italian}
In this section, according to main language definition, the sigla “pp.” are written in Italian.
\cite[230-231]{Cufalo2017}
\cite[230-231]{Cufalo2007}
\section{Greek}
\begin{greek}
In this section I have instead “σσ.” in Greek. It seems therefore that “language” option of Biblatex is not working.
\cite[230-231]{Cufalo2017}
\cite[230-231]{Cufalo2007}
\end{greek}
\end{document} should do what you want. |
GREAT! Many thanks, |
Very good. As unintuitive as the situation might be I don't think there is a simple way out. If we force a language we really must use a language switching environment as soon as the surrounding language differs from the forced language. Otherwise hyphenation and possibly other things might be off. So Is the quoted passage in the documentation clear enough or do you thing it needs to be extended? |
Maybe the problem is due to the myriad of options of this extraordinary tool. 😄 Certainly, the documentation can be expanded. In short, there are many obscure points in the documentation, at least for me, and any other clarification would be much appreciated. |
The In you case that means
So with manual intervention you could do something like this %\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Cufalo2017,
author = {Cufalo, Domenico},
journaltitle = {Exemplaria Classica},
pages = {227--242},
title = {{\em Scholia in scholia}: su una nuova edizione di Hermias di Alessandria},
volume = {21},
date = {2017},
journalsubtitle = {Journal of Classical Philology},
langid = {italian},
}
@Book{Cufalo2007,
Title = {Scholia Graeca in Platonem},
Author = {Cufalo, Domenico},
Location = {Roma},
Publisher = {Edizioni di Storia e Letteratura},
Year = {2007},
Number = {5.1},
Series = {«Pleiadi»},
Titleaddon = {I: Scholia ad dialogos tetralogiarum I--VII continens},
langid = {latin},
}
\end{filecontents}
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage[variant=ancient]{greek}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\usepackage{filecontents}
\usepackage[%
backend=biber,%
language=autobib,%
autolang=hyphen,
style=authoryear,
]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\section{Italian}
In this section, according to main language definition, the sigla “pp.” are written in Italian.
\cite[230-231]{Cufalo2017}
\cite[230-231]{Cufalo2007}
\section{Greek}
\begin{greek}
In this section I have instead “σσ.” in Greek. It seems therefore that “language” option of Biblatex is not working.
\textitalian{\cite[230-231]{Cufalo2017}}
\textitalian{\cite[230-231]{Cufalo2007}}
\end{greek}
\printbibliography
\end{document} |
Yes, thank you! Anyway, many thanks for your kindly explanations! |
- Emphasise default automatic language switching and that the options only add an additional layer. - Zap whitespace at end of lines. - Tweak (min|max)sortnames docs (plk#755).
Some clarifications about the language options are in 3b8bbdc?w=1 Does that make the docs easier to understand? |
Yes, this version is by far better! |
That is correct as %\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@Article{Cufalo2017,
author = {Cufalo, Domenico},
journaltitle = {Exemplaria Classica},
pages = {227--242},
title = {{\em Scholia in scholia}: su una nuova edizione di Hermias di Alessandria},
volume = {21},
date = {2017},
journalsubtitle = {Journal of Classical Philology},
langid = {italian},
}
@Book{Cufalo2007,
Title = {Scholia Graeca in Platonem},
Author = {Cufalo, Domenico},
Location = {Roma},
Publisher = {Edizioni di Storia e Letteratura},
Year = {2007},
Number = {5.1},
Series = {«Pleiadi»},
Titleaddon = {I: Scholia ad dialogos tetralogiarum I--VII continens},
langid = {latin},
}
\end{filecontents}
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{italian}
\setotherlanguage[variant=ancient]{greek}
\usepackage{fontspec}
\setmainfont{Libertinus Serif}
\usepackage{filecontents}
\usepackage[%
backend=biber,%
language=autobib,%
autolang=hyphen,
style=authoryear,
]{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\section{Italian}
In this section, according to main language definition, the sigla “pp.” are written in Italian.
\cite[230-231]{Cufalo2017}
\cite[230-231]{Cufalo2007}
\section{Greek}
\begin{greek}
In this section I have instead “σσ.” in Greek. It seems therefore that “language” option of Biblatex is not working.
\cite[230-231]{Cufalo2017}
\textitalian{\cite[230-231]{Cufalo2007}}
\begin{italian}
\printbibliography
\end{italian}
\end{greek}
\printbibliography
\end{document} shows. You can't get what you want fully automatically, unfortunately. You would have to wrap all |
Yes, many thanks for all your clarifications! In this case, I'll stay with Issue solved, for me! 👍 |
A similar problem ( If anyone has a good idea how to tackle this, please share ... |
@moewew I'll have a look |
@josephwright Cool, thank you. No need to hurry, though, I know you have a lot of other things on your plate. |
This is probably better closed now and a link from the multiscript issue made? |
Yeah, but it would be great to have an MWE using the multiscript code based on the code from above. I can look into that once the multscript |
Not released yet as a stand-alone package. I can try to get that done but it needs a |
No need to hurry for me. It's just more convenient to have the example here and only close the issue when one is available, so things don't get lost in the multiscript megathread. |
|
Dear Devs, if I well understand the manual (pag. 48), it seems that
language
option doens't work as expected.Here is a MWE with explanations within it:
Many thanks in advance,
DC
The text was updated successfully, but these errors were encountered: