diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-05-24 00:15:14 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-05-24 00:15:14 +0200 |
commit | 5ab52ddd294de212566b7cc9d453e127ffcbd2e8 (patch) | |
tree | 89a2796d10f34b110e2235334471aa4a02de2af1 /tex/context/base/publ-fnd.lua | |
parent | 2203b3638071de2b52e036ef5cfa400aeefd3b6e (diff) | |
download | context-5ab52ddd294de212566b7cc9d453e127ffcbd2e8.tar.gz |
2014-05-23 23:26:00
Diffstat (limited to 'tex/context/base/publ-fnd.lua')
-rw-r--r-- | tex/context/base/publ-fnd.lua | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tex/context/base/publ-fnd.lua b/tex/context/base/publ-fnd.lua index 383bcac73..7dd4fd74c 100644 --- a/tex/context/base/publ-fnd.lua +++ b/tex/context/base/publ-fnd.lua @@ -14,16 +14,16 @@ local concat = table.concat local formatters = string.formatters local lowercase = characters.lower -local colon = P(":") -local dash = P("-") -local lparent = P("(") -local rparent = P(")") -local space = lpeg.patterns.whitespace -local valid = 1 - colon - space - lparent - rparent ------ key = C(valid^1) -local key = C(R("az","AZ")^1) -local word = Cs(lpeg.patterns.unquoted + valid^1) -local number = C(valid^1) +local colon = P(":") +local dash = P("-") +local lparent = P("(") +local rparent = P(")") +local space = lpeg.patterns.whitespace +local valid = 1 - colon - space - lparent - rparent +----- key = C(valid^1) +local key = C(R("az","AZ")^1) +local word = Cs(lpeg.patterns.unquoted + valid^1) +local number = C(valid^1) ----- f_string_key = formatters[" local s_%s = entry[%q]"] local f_string_key = formatters[" local s_%s = entry[%q] if s_%s then s_%s = lower(s_%s) end "] @@ -135,7 +135,6 @@ function publications.search(dataset,expression) end end - -- local dataset = publications.new() -- publications.load(dataset,"t:/manuals/hybrid/tugboat.bib") -- |