WHITEy = 0.3162
munsell-data.el: all.dat
- awk 'NR != 1 {printf("(\"%s%s/%s\" . \"CIExyY:%s/%s/%s\")\n", $$1, $$2, $$3, $$4, $$5, $$6 / 100)}' all.dat > _generated
- awk 'NR != 1 {printf("(\"N%s\" . \"CIExyY:%s/%s/%s\")\n", $$2, $(WHITEx), $(WHITEy), $$6 / 100)}' all.dat|uniq >> _generated
+ awk 'NR != 1 {v = $$2; Y = 1.1913*v - 0.22532*v**2 + 0.23351*v**3 - 0.020483*v**4 +0.00081936*v**5; printf("(\"%s%s/%s\" . \"CIExyY:%s/%s/%s\")\n", $$1, $$2, $$3, $$4, $$5, Y / 100)}' all.dat > _generated
+ awk 'NR != 1 {v = $$2; Y = 1.1913*v - 0.22532*v**2 + 0.23351*v**3 - 0.020483*v**4 +0.00081936*v**5; printf("(\"N%s\" . \"CIExyY:%s/%s/%s\")\n", $$2, $(WHITEx), $(WHITEy), Y / 100)}' all.dat|uniq >> _generated
m4 munsell-data.template > munsell-data.el
all.dat: