summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-drp.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2014-01-27 13:20:15 +0200
committerMarius <mariausol@gmail.com>2014-01-27 13:20:15 +0200
commitb71a2c6808fc2c379aa0f6d2f1dfd052d8df12d8 (patch)
treeeada5783214d0cf19a544aafd804d4c8b0ef752f /tex/context/base/typo-drp.lua
parent01f653d381b0de0377031007071a033cfbad316e (diff)
downloadcontext-b71a2c6808fc2c379aa0f6d2f1dfd052d8df12d8.tar.gz
beta 2014.01.27 11:35
Diffstat (limited to 'tex/context/base/typo-drp.lua')
-rw-r--r--tex/context/base/typo-drp.lua11
1 files changed, 10 insertions, 1 deletions
diff --git a/tex/context/base/typo-drp.lua b/tex/context/base/typo-drp.lua
index 34ad00078..3a87d94b3 100644
--- a/tex/context/base/typo-drp.lua
+++ b/tex/context/base/typo-drp.lua
@@ -234,7 +234,15 @@ actions[v_default] = function(head,setting)
--
-- 1 char | n chars | skip first quote | ignore punct | keep punct
--
- if method[v_auto] then
+ if getattr(first,a_initial) then
+ for current in traverse(getnext(first)) do
+ if getattr(current,a_initial) then
+ last = current
+ else
+ break
+ end
+ end
+ elseif method[v_auto] then
local char = getchar(first)
local kind = category(char)
if kind == "po" or kind == "pi" then
@@ -276,6 +284,7 @@ actions[v_default] = function(head,setting)
else
-- okay
end
+ -- maybe also: get all A. B. etc
local next = getnext(first)
if next then
for current in traverse_id(glyph_code,next) do