Ubuntu LibreOffice plugin don't accept ABNT styles

Ubuntu LibreOffice most recent plugin don't accept brazilian ABNT styles, but accept styles like Chicago.

Error report:
[JavaScript Error: "too much recursion" {file: "chrome://zotero/content/xpcom/citeproc.js" line: 5697}]

[JavaScript Error: "O estilo que você selecionou não parece ser válido. Se você mesmo criou esse estilo, por favor, certifique-se de que ele satisfaz as condições de validação tal qual descrito em http://zotero.org/support/dev/citation_styles. Como alternativa, tente selecionar outro estilo."]

(The Style you select don't seems valid etc...)

1. Styles are validated.
2. Styles works in LibreOffice Windows.
3. Styles works exporting in Firefoox.
4. Styles works in Multilingual Zotero ver. 4.0m400

* LibreOffice 4.1.1.2
* Ubuntu 13.04 portuguese brazilian locales. System variables:
LANG=pt_BR.UTF-8
LANGUAGE=pt_BR:en
LC_ADDRESS=pt_BR.UTF-8
LC_COLLATE=pt_BR.UTF-8
LC_CTYPE=pt_BR.UTF-8
LC_IDENTIFICATION=pt_BR.UTF-8
LC_MEASUREMENT=pt_BR.UTF-8
LC_MESSAGES=pt_BR.UTF-8
LC_MONETARY=pt_BR.UTF-8
LC_NAME=pt_BR.UTF-8
LC_NUMERIC=pt_BR.UTF-8
LC_PAPER=pt_BR.UTF-8
LC_TELEPHONE=pt_BR.UTF-8
LC_TIME=pt_BR.UTF-8
  • I hit this same error myself recently. The error is caused by a poorly-written function in citeproc-js hitting stricter constraints in the Firefox 24 JavaScript engine.

    I've rewritten that function, and it's working with the style that was failing here. You can try out the fix by installing the processor patch plugin. All it does is swap the latest CSL into your running Zotero. The plugin can (and should) be removed after the next Zotero release.

    Let us know whether this clears the problem for you. If it clears up the error, the core devs can pull the new processor version in at the next release.
  • (Ah. MLZ 4.0m400 has the new processor version, so it likely does fix the problem. Do check with the patch plugin though, to be sure Zotero is happy with it as well.)
  • Thank you!
    The patch fix the problem!
  • Great to hear, thanks for reporting back. It's likely the updated processor will appear in Zotero 4.0.13 when it comes out.

    The fix went in at citeproc-js version 1.0.489.
    The current version is 1.0.491.

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.