summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/publ-aut.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-12 22:43:26 +0000
committerKarl Berry <karl@freefriends.org>2015-05-12 22:43:26 +0000
commit064ff9e4245f101ee0f01334f3dcba961ba37422 (patch)
tree3ff0c42d02cace1a9ec7d2d4a21694f53251466b /Master/texmf-dist/tex/context/base/publ-aut.lua
parentdd49ede637852eb76aa7eac92a18e3c10987cfc4 (diff)
context
git-svn-id: svn://tug.org/texlive/trunk@37364 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/publ-aut.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/publ-aut.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/context/base/publ-aut.lua b/Master/texmf-dist/tex/context/base/publ-aut.lua
index 4c95d002521..185d99efcec 100644
--- a/Master/texmf-dist/tex/context/base/publ-aut.lua
+++ b/Master/texmf-dist/tex/context/base/publ-aut.lua
@@ -261,9 +261,7 @@ local function splitauthor(author)
end
local function splitauthorstring(str)
- if str then
- -- str = lpegmatch(cleaner,str)
- else
+ if not str or str == "" then
return
end
nofused = nofused + 1
@@ -284,7 +282,7 @@ local function splitauthorstring(str)
-- we could cache these too but it can become messy .. leave that for later
- local authors = lpegmatch(andsplitter,str)
+ local authors = lpegmatch(andsplitter,str) or { } -- maybe fake an author
local nofauthors = #authors
for i=1,nofauthors do
authors[i] = splitauthor(authors[i])
@@ -763,7 +761,7 @@ authorhashers.short = function(authors)
return concat(t)
end
else
- return utfsub(authors,1,4)
+ return utfsub(authors,1,3)
end
end
@@ -854,7 +852,7 @@ publications.components.author = components
publications.sortmethods.authoryear = {
sequence = {
- { field = "key", default = "", unknown = "" },
+ { field = "key", default = "ZZZZ", unknown = "ZZZZ" },
{ field = "author", default = "", unknown = "" },
{ field = "year", default = "9998", unknown = "9999" },
-- { field = "suffix", default = " ", unknown = " " },