summaryrefslogtreecommitdiff
path: root/tex/context/base/typo-drp.lua
diff options
context:
space:
mode:
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