diff options
author | Karl Berry <karl@freefriends.org> | 2013-04-08 00:43:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-04-08 00:43:40 +0000 |
commit | 824f7b0903de8ad7f6ee3d7656005e4c59155e06 (patch) | |
tree | abfc8673ef9916f3ab7074e811207384c301492b /Master/texmf-dist/tex/context/base/colo-icc.lua | |
parent | 689aefb0727676ed3cddf331337b4be226495e72 (diff) |
context import for TL13, from www.pragma-ade.com/context/beta/cont-tmf.zip
git-svn-id: svn://tug.org/texlive/trunk@29731 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/colo-icc.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/colo-icc.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/context/base/colo-icc.lua b/Master/texmf-dist/tex/context/base/colo-icc.lua index 904d42143d4..f7ed561c1bf 100644 --- a/Master/texmf-dist/tex/context/base/colo-icc.lua +++ b/Master/texmf-dist/tex/context/base/colo-icc.lua @@ -1,4 +1,4 @@ -if not modules then modules = { } end modules ['colo-ini'] = { +if not modules then modules = { } end modules ['colo-icc'] = { version = 1.000, comment = "companion to colo-ini.mkiv", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", @@ -8,6 +8,7 @@ if not modules then modules = { } end modules ['colo-ini'] = { local char, byte, gsub, match, format, strip = string.char, string.byte, string.gsub, string.match, string.format, string.strip local readstring, readnumber = io.readstring, io.readnumber +local formatters = string.formatters local colors = attributes and attributes.colors or { } -- when used in mtxrun @@ -27,11 +28,13 @@ function colors.iccprofile(filename,verbose) end end if fullname == "" then - return nil, false, format("profile '%s' cannot be found",filename) + report_colors("profile %a cannot be found",filename) + return nil, false end local f = io.open(fullname,"rb") if not f then - return nil, false, format("profile '%s'cannot be loaded",fullname) + report_colors("profile %a cannot be loaded",fullname) + return nil, false end local header = { size = readnumber(f,4), @@ -99,7 +102,7 @@ function colors.iccprofile(filename,verbose) } else if verbose then - report_colors("ignoring tag '%s' or type '%s' in profile '%s'",tag,variant,fullname) + report_colors("ignoring tag %a or type %a in profile %a",tag,variant,fullname) end tags[tag] = nil end @@ -112,9 +115,6 @@ function colors.iccprofile(filename,verbose) header = header, tags = tags, } - return profile, true, format("profile '%s' loaded",fullname) + report_colors("profile %a loaded",fullname) + return profile, true end - ---~ local profile, error, message = colors.iccprofile("ussheetfedcoated.icc") ---~ print(error,message) ---~ table.print(profile) |