summaryrefslogtreecommitdiff
path: root/tex/context/base/colo-icc.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-15 01:20:18 +0200
committerMarius <mariausol@gmail.com>2013-03-15 01:20:18 +0200
commit0dafe07d051a7cf5430ca0552bca8ee20800f41a (patch)
treebc38b4fdeb2539b39402256a30e9e754f016b3f2 /tex/context/base/colo-icc.lua
parent08a4681010e0cb1e092218b0308f301a8f008231 (diff)
downloadcontext-0dafe07d051a7cf5430ca0552bca8ee20800f41a.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)