From 64f037d91e0c9296dcaef9a0ff3eb33b19a2ed34 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 Feb 2017 00:05:38 -0800 Subject: Import Upstream version 3a5 --- mkclrnam.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'mkclrnam.scm') diff --git a/mkclrnam.scm b/mkclrnam.scm index 47acd1a..341f6eb 100644 --- a/mkclrnam.scm +++ b/mkclrnam.scm @@ -1,5 +1,5 @@ ;;; "mkclrnam.scm" create color name databases -;Copyright 2001, 2002, 2003 Aubrey Jaffer +;Copyright 2001, 2002, 2003, 2007 Aubrey Jaffer ; ;Permission to copy this software, to modify it, to redistribute it, ;to distribute modified versions, and to use it for any purpose is @@ -94,6 +94,15 @@ (display method-id) (newline) (set! parse-rgb-line method)))))) (list + (lambda (line) + (define use #f) + (case (sscanf line "%[^;]; red=%d, green=%d, blue=%d; hex=%6x; %[^.].%s" + name r g b rgbx use junk) + ((6) + (set! method-id 'm6e) + (list (check-match line (xrgb->color rgbx) (color:sRGB r g b)) + (color-name:canonicalize name))) + (else #f))) (lambda (line) (define en #f) (define fr #f) (define de #f) (define es #f) (define cz #f) (define hu #f) @@ -153,7 +162,7 @@ (lambda (line) (case (sscanf line "\" Resene %[^\"]\" %d %d %d %s" name r g b junk) - ((4) (set! method-id 'm4b) + ((4) (set! method-id 'm4d) (list (check-match line (color:sRGB r g b)) (color-name:canonicalize name))) (else #f))) @@ -215,7 +224,7 @@ (set! *idx* (+ 1 *idx*)) (color-table:row-insert (list name (car colin) *idx*))) - (else (slib:warn 'collision name oclin))))) + (else (slib:warn 'collision colin oclin))))) (cdr colin)))))))))) ;;@noindent -- cgit v1.2.3