diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-01-27 11:35:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-01-27 11:35:00 +0100 |
commit | 3de965f1cef56fead23a4c632dce7acf15c424d0 (patch) | |
tree | f06fd5c1e20bb190ec684193310cb87657fb4036 /tex/context/base/typo-drp.lua | |
parent | 3e36a8634d524350c4d010b5f45440f813338b1c (diff) | |
download | context-3de965f1cef56fead23a4c632dce7acf15c424d0.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.lua | 11 |
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 |