diff options
Diffstat (limited to 'Master/texmf-dist/scripts/citation-style-language/citeproc-engine.lua')
-rw-r--r-- | Master/texmf-dist/scripts/citation-style-language/citeproc-engine.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Master/texmf-dist/scripts/citation-style-language/citeproc-engine.lua b/Master/texmf-dist/scripts/citation-style-language/citeproc-engine.lua index 01966fe2193..0ad525cae6a 100644 --- a/Master/texmf-dist/scripts/citation-style-language/citeproc-engine.lua +++ b/Master/texmf-dist/scripts/citation-style-language/citeproc-engine.lua @@ -1,5 +1,5 @@ -- --- Copyright (c) 2021-2024 Zeping Lee +-- Copyright (c) 2021-2025 Zeping Lee -- Released under the MIT license. -- Repository: https://github.com/zepinglee/citeproc-lua -- @@ -15,7 +15,8 @@ local node_style local output local util -if kpse then +local using_luatex, kpse = pcall(require, "kpse") +if using_luatex then dom = require("luaxml-domobject") context = require("citeproc-context") element = require("citeproc-element") @@ -1233,6 +1234,8 @@ function CiteProc:sort_bibliography() self.registry.requires_sorting = false end +---@param lang string +---@return Locale function CiteProc:get_locale(lang) lang = util.primary_dialects[lang] or lang local locale = self.locales[lang] or self:get_merged_locales(lang) |