Skip to content
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 of citation keys #1402

Closed
pauloney opened this issue Dec 5, 2024 · 2 comments
Closed

Language of citation keys #1402

pauloney opened this issue Dec 5, 2024 · 2 comments
Labels
invalid localisation concerns lbx files or localisation in general

Comments

@pauloney
Copy link
Collaborator

pauloney commented Dec 5, 2024

Can anyone shed light on what is going on here?

In the first entry the citation keys are -- in the respective language of the entries:
Hoffman e Kunze (1979)
Hoffman y Kunze (1973)

In the second they use the language of the entry.
Hoffman y Kunze (1961)

In the third they use English -- which is NOT the language of the entry!
Hoffman and Kunze (1961)

I would expect that they would follow the language of the entry, but I am not sure I even understand what is happening.

I did check the portuguese.lbx file and it does contain the correct:

  and              = {{e}{e}},
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{polyglossia}
\usepackage{csquotes}

\setmainlanguage{english}
\setotherlanguage{portuguese}
\setotherlanguage{spanish}

%% Bibliographical citations:
\usepackage[style=authoryear,
            sorting=nyt,
            language=auto,
            autolang=other,
            backend=biber]{biblatex}

\begin{filecontents}{\jobname.bib}
@BOOK{Hoffman:71,
    title = {Linear Algebra},
    author = {Hoffman, K. and Kunze, R. A.},
    publisher = {Prentice-Hall},
    series = {Prentice-Hall Mathematics Series},
    address = {Englewood Cliffs, NJ},
    note = {Also available in Portuguese in \textcite{Hoffman-por} and Spanish in \textcite{Hoffman-spa}},
    year = {1961},
    langid = {english},
}

@BOOK{Hoffman-spa,
    address = {México},
    author = {Hoffman, K. and Kunze, R. A.},
    note = {Original en inglés en \textcite{Hoffman:71}},
    publisher = {Prentice-Hall Hispanoamericana},
    title = {Algebra Lineal},
    year = {1973},
    langid = {spanish},
}

@BOOK{Hoffman-por,
    title = {Algebra Linear},
    author = {Hoffman, K. and Kunze, R. A.},
    translator = {Adalberto P. Bergamasco},
    note = {Original em inglês em \textcite{Hoffman:71}},
    publisher = {Livros Técnicos e Científicos Editora S.A.},
    address = {Rio de Janeiro},
    year = {1979},
    pages = {356},
    langid = {portuguese},
}

\end{filecontents}
\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
Lorem ipsum dolor!
\printbibliography
\end{document}
@pauloney pauloney added the localisation concerns lbx files or localisation in general label Dec 5, 2024
@moewew
Copy link
Collaborator

moewew commented Dec 5, 2024

With biblatex v3.20 I get
Hoffman, K. and R. A. Kunze (1961). Linear Algebra. Prentice-Hall Mathematics Series. Also available in Portuguese in Hoffman e Kunze (1979) and Spanish in Hoffman y Kunze (1973). Englewood Cliffs, NJ: Prentice-Hall. — (1973). Algebra Lineal. Original en inglés en Hoffman and Kunze (1961). México: Prentice-Hall Hispanoamericana. — (1979). Algebra Linear. Trad. por Adalberto P. Bergamasco. Original em inglês em Hoffman and Kunze (1961). Rio de Janeiro: Livros Técnicos e Científicos Editora S.A., p. 356.
So it appears to me that each "and" uses the language of the cited entry in each case.

This is what I expected, because auto changes the language of both citations and the bibliography. That said, citations in the bibliography are always a bit tricky (see e.g. #988 and linked discussions/posts): They can mess up punctuation tracking, since the punctuation tracker is global and not local. So if anything is wrong, it could be that the answer is: Citations in the bibliography are weird.

@pauloney
Copy link
Collaborator Author

pauloney commented Dec 5, 2024 via email

@pauloney pauloney closed this as completed Dec 5, 2024
@moewew moewew added the invalid label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid localisation concerns lbx files or localisation in general
Projects
None yet
Development

No branches or pull requests

2 participants