summaryrefslogtreecommitdiff
path: root/tex/generic
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-01-28 13:43:45 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-01-28 13:43:45 +0100
commit8bbd1dc6d3db576e4313277ac558f8fe7e0595ef (patch)
treefe409ac17c124c50163b1af03809554b9f80b4b5 /tex/generic
parent55575b7cad42dac55b4a5f699c33363489cb502d (diff)
downloadcontext-8bbd1dc6d3db576e4313277ac558f8fe7e0595ef.tar.gz
2019-01-28 12:34:00
Diffstat (limited to 'tex/generic')
-rw-r--r--tex/generic/context/luatex/luatex-fonts-merged.lua39
1 files changed, 18 insertions, 21 deletions
diff --git a/tex/generic/context/luatex/luatex-fonts-merged.lua b/tex/generic/context/luatex/luatex-fonts-merged.lua
index 02f50d6e7..5c6661592 100644
--- a/tex/generic/context/luatex/luatex-fonts-merged.lua
+++ b/tex/generic/context/luatex/luatex-fonts-merged.lua
@@ -1,6 +1,6 @@
-- merged file : c:/data/develop/context/sources/luatex-fonts-merged.lua
-- parent file : c:/data/develop/context/sources/luatex-fonts.lua
--- merge date : 01/25/19 20:06:50
+-- merge date : 01/28/19 12:25:54
do -- begin closure to overcome local limits and interference
@@ -23952,15 +23952,9 @@ function injections.setmark(start,base,factor,rlmode,ba,ma,tfmbase,mkmk,checkmar
if i then
if i.markmark then
else
- if dx~=0 then
- i.markx=dx
- end
- if y~=0 then
- i.marky=dy
- end
- if rlmode then
- i.markdir=rlmode
- end
+ i.markx=dx
+ i.marky=dy
+ i.markdir=rlmode or 0
i.markbase=nofregisteredmarks
i.markbasenode=base
i.markmark=mkmk
@@ -24154,7 +24148,8 @@ local function inject_kerns_only(head,where)
if i then
local leftkern=i.leftkern
if leftkern and leftkern~=0 then
- setfield(prev,"replace",fontkern(leftkern))
+ replace=fontkern(leftkern)
+ done=true
end
end
end
@@ -24282,7 +24277,8 @@ local function inject_positions_only(head,where)
if next and getid(next)==disc_code then
if replace then
else
- setfield(next,"replace",fontkern(rightkern))
+ replace=fontkern(rightkern)
+ done=true
end
end
end
@@ -24314,7 +24310,8 @@ local function inject_positions_only(head,where)
if i then
local leftkern=i.leftkern
if leftkern and leftkern~=0 then
- setfield(prev,"replace",fontkern(leftkern))
+ replace=fontkern(leftkern)
+ done=true
end
end
end
@@ -24634,7 +24631,8 @@ local function inject_everything(head,where)
if next and getid(next)==disc_code then
if replace then
else
- setfield(next,"replace",fontkern(rightkern))
+ replace=fontkern(rightkern)
+ done=true
end
end
end
@@ -24667,7 +24665,8 @@ local function inject_everything(head,where)
if i then
local leftkern=i.leftkern
if leftkern and leftkern~=0 then
- setfield(prev,"replace",fontkern(leftkern))
+ replace=fontkern(leftkern)
+ done=true
end
end
end
@@ -26014,7 +26013,7 @@ function handlers.gsub_ligature(head,start,dataset,sequence,ligature,rlmode,skip
local tail=getprev(stop)
local copy=copy_node_list(start)
local liat=find_node_tail(copy)
- if pre and replace then
+ if pre then
setlink(liat,pre)
end
if replace then
@@ -27563,7 +27562,6 @@ local function handle_contextchain(head,start,dataset,sequence,contexts,rlmode,s
end
end
else
- notmatchreplace[prev]=true
end
end
prev=getprev(prev)
@@ -27683,7 +27681,6 @@ local function handle_contextchain(head,start,dataset,sequence,contexts,rlmode,s
end
end
else
- notmatchreplace[current]=true
end
current=getnext(current)
elseif id==glue_code then
@@ -27999,7 +27996,7 @@ local function testrun(disc,t_run,c_run,...)
local d=d_replace>d_post and d_replace or d_post
local head=getnext(disc)
local tail=head
- for i=1,d do
+ for i=2,d do
local nx=getnext(tail)
local id=getid(nx)
if id==disc_code then
@@ -34206,7 +34203,7 @@ local function checkfeatures(tfmdata)
else
for script,languages in next,scripts do
if languages["*"] then
- elseif not languages[usedlanguage] then
+ elseif context and not languages[usedlanguage] then
report_defining("font %!font:name!, feature %a, script %a, no language %a",
tfmdata,feature,script,usedlanguage)
end
@@ -34226,7 +34223,7 @@ local function checkfeatures(tfmdata)
if not languages["*"] then
for i=1,#foundlanguages do
local language=foundlanguages[i]
- if not languages[language] then
+ if context and not languages[language] then
report_defining("font %!font:name!, feature %a, script %a, no language %a",
tfmdata,feature,script,language)
end