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

Issue translating author delimiter in associacao-brasileira-de-normas-tecnicas-ipea.csl #7029

Open
baarthur opened this issue Apr 26, 2024 · 5 comments
Labels
waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor

Comments

@baarthur
Copy link

baarthur commented Apr 26, 2024

Hey there,

It seems like the Ipea CSL style doesn't translate correctly the author delimiter, since it uses " e " instead of " and " even if I change the language to English (US). However, I couldn't find any " e " connector in the .csl file to edit it.

As you can see by the zotero preview, the style still uses the Portuguese "e" instead of the English "and".
image

I am not very expert in .csl, could you help me with this one?

Here's the author macro: weirdly enough, there's no " e " connector but still it appears there, maybe it's inherited from the main ABNT style?

<!--A macro 'author' e responsavel por mostrar os nomes dos autores na bibliografia, serao no formato SOBRENOME, INICIAIS PRENOMES, tendo 
      as inicias separadas por ponto. Quando houver mais de tres autores, somente o primeiro sera mostrado e no lugar dos outros
      aparecera a expess o 'et. al.'. Na regra da ABNT essa expressao deve aparecer em fonte normal, mas o IPEA utiliza ela em italico.-->
  <macro name="author">
    <names variable="author">
      <name name-as-sort-order="all" sort-separator=", " initialize-with=". " delimiter="; " delimiter-precedes-last="always">
        <name-part name="family" text-case="uppercase"/>
        <name-part name="given" text-case="uppercase"/>
      </name>
      <et-al font-style="italic"/>
      <label form="short" prefix=" (" suffix=".)" text-case="uppercase"/>
      <substitute>
        <names variable="editor"/>
        <names variable="translator"/>
        <text macro="title"/>
      </substitute>
    </names>
  </macro>
@POBrien333
Copy link
Contributor

The author macro has nothing to do with this.
The style is hardcoded to be in portuguese.
You either switch the language in line 2 to English, like so: default-locale="en-GB"
Or redefine the term in the locale section, but I don't think you want that.

@baarthur
Copy link
Author

hey Brien, thanks for the reply. I thought the " e " connector was supposed to be on the author area. But I don't understand why I would need to switch the default language in the .csl, since I define it as en-US in my .tex and other Brazilian citation styles automatically change from " e " to " and "

@bwiernik
Copy link
Member

TeX doesn't use CSL styles at all. They are completely different systems.

If you use the citeproc-lua package or write your document with pandoc, you can use CSL styles. But otherwise TeX has nothing to do with CSL, and BibTeX/BibLaTeX styles work very differently than CSL styles.

@github-actions github-actions bot added the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Apr 29, 2024
@baarthur
Copy link
Author

Ohh okay, got it! Yeah, I use Quarto, which uses pandoc under the hood and I include .tex files for additional parameters.

@github-actions github-actions bot removed the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Apr 29, 2024
@bwiernik
Copy link
Member

Pandoc generates its citations before passing the document to TeX, so anything that affects citation formatting will be done on the CSL side not the TeX side.

@github-actions github-actions bot added the waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-response-from-contributor The ticket/pull request is awaiting input from the contributor/depositor
Projects
None yet
Development

No branches or pull requests

3 participants