summaryrefslogtreecommitdiff
path: root/tex/context/base/colo-icc.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-03-15 00:17:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-03-15 00:17:00 +0100
commit3df21ff8ee5dcb6a894a74e6c26a9be8486822e3 (patch)
tree4645369d8a408c9bceea793f149ffa1cb411be7b /tex/context/base/colo-icc.lua
parent322515d0cd681a8bdfe6cf61e7c5c438958729e2 (diff)
downloadcontext-3df21ff8ee5dcb6a894a74e6c26a9be8486822e3.tar.gz
beta 2013.03.15 00:17
Diffstat (limited to 'tex/context/base/colo-icc.lua')
-rw-r--r--tex/context/base/colo-icc.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/tex/context/base/colo-icc.lua b/tex/context/base/colo-icc.lua
index 157a03198..f7ed561c1 100644
--- a/tex/context/base/colo-icc.lua
+++ b/tex/context/base/colo-icc.lua
@@ -8,6 +8,7 @@ if not modules then modules = { } end modules ['colo-icc'] = {
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 %a 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 %a cannot be loaded",fullname)
+ report_colors("profile %a cannot be loaded",fullname)
+ return nil, false
end
local header = {
size = readnumber(f,4),
@@ -112,9 +115,6 @@ function colors.iccprofile(filename,verbose)
header = header,
tags = tags,
}
- return profile, true, format("profile %a 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)