diff options
Diffstat (limited to 'tex/context/base/buff-ini.lua')
-rw-r--r-- | tex/context/base/buff-ini.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/buff-ini.lua b/tex/context/base/buff-ini.lua index a590cf81a..0564c70cf 100644 --- a/tex/context/base/buff-ini.lua +++ b/tex/context/base/buff-ini.lua @@ -242,8 +242,12 @@ function buffers.loaddata(filename) -- this one might go away end end -function buffers.typefile(name,realign,range) -- still somewhat messy, since name can be be suffixless +function buffers.typefile(name,realign,range,regime) -- still somewhat messy, since name can be be suffixless local str = buffers.loaddata(name) + if regime and regime ~= "" then + regimes.load(regime) + str = regimes.translate(str,regime) + end if str and str~= "" then local lines = str:splitlines() if realign then |