From: Robert L K. <rl...@al...> - 2000-03-05 20:03:14
|
I've moved all of the printer definitions out of print-util.c to a (pseudo) XML file called printers.xml. I've written a quick and dirty parser using flex and bison to do the deed. In principle, it's now possible to set any of the printer variables (not just density and gamma) this way, although this isn't implemented (in print-util or anywhere) yet. The very obvious next step would be to parse this file at runtime. This would allow people to add their own printer definitions without recompiling anything. I initially generated this file with a one-shot throwaway program (since the original printer definitions have been tossed). I smoke tested it on my printer, but it's likely that there are still a few bugs left. The Ghostscript driver compiles, but I haven't tested it. |