Rudolf Adamkovič writes: > I compiled Emacs from "master" (2e92f90a5d) to try the new > citations. > [...] > > When I try to export HTML with APA/CSL citations (C-c C-e h o), > Emacs says: > >> The default CSL locale file >> /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/etc/csl/locales-en-US.xml >> >> doesn’t exist or is unreadable > > (I checked, and no 'etc' directory exists in 'lisp/org'.)
Thanks for the report. Indeed I didn't check for new files outside of lisp/, and etc/csl/ wasn't synced to Emacs. Though even if those files were present, you would have seen the same failure due to the way things are written on our end. I've pushed a set of commits to the Org repo (60b178e59, 0f11a44e0, and 9cc7f8bd1) that should prepare things on our end. And I've done a local sync to Emacs and verified that org-cite-csl--etc-dir looks to point to the right place when running from Emacs and when installed to the system. Before we sync these etc/csl/ files to the Emacs repo (which hopefully won't be a point of contention), I have a question about these files. After a bit of digging, I traced their origin. As I say in 9cc7f8bd1 (etc/csl: Add a README in preparation for Emacs sync): I did not add these files, but I have verified that - etc/csl/chicago-author-date.csl is identical to 9821a884d2cbf919a064426999b05aa78e98da8d:chicago-author-date.csl from https://github.com/citation-style-language/styles - etc/csl/locales-en-US.xml is identical to a2b76b20ee120979ec66cfdcfa798b36fc5a7f0b:locales-en-US.xml from https://github.com/citation-style-language/locales However, both of those files have newer versions. $ git log --oneline --format="%ch | %h %s" 9821a88.. -- chicago-author-date.csl Sun Sep 19 03:19 | ccb71844f Update chicago-author-date.csl (#5605) Apr 26 2020 | a78997329 Chicago: Uppercase "Presentated at" if no `genre` (#4729) Aug 13 2019 | d9852a293 Update chicago-author-date.csl and other author date variants (#4250) Jan 3 2019 | 246ce5fdf Chicago: Correct dictionary/encyclopedia entries May 21 2018 | 9296c8c15 Fix redundant terms (#3517) May 13 2018 | e4db3699d update chicago-author-date.csl; close issue #3386 (#3455) Jan 25 2018 | f601d1af5 Fix missing space before locators. (#3288) Dec 6 2017 | 04cbd1787 Reindent/reorder --- $ git log --oneline --format="%ch | %h %s" a2b76b2.. -- locales-en-US.xml Dec 29 2017 | 9a4eb48 Replace some usernames by real names Dec 29 2017 | f01d92a Drop email addresses from translator tags Dec 29 2017 | f6fa898 Add translators from git log to the locale files. Is there a reason to avoid updating to the latest version?