![]() |
CAPS Universe documentation
1.0.4
All you need to know to be successful
|
Structure to keep the information read-in from an external PPD files. More...
Data Fields | |
| const char * | keyword |
| const char * | name |
| const char * | description |
| const char * | value |
Reading the "PostScript Printer Description File Format Specification" each line in a PPD file conforms to:
*KEYWORD[ [*]NAME[/DESCRIPTION]]:[ ]VALUE *
Due to this simplification, the lines shown above will be differently separated into the structure caps_ppd_option. Honor this when interpreting the values by yourself.
Examples:
*SomeKeyword: "some value"
*SomeKeyword SomeOption/SomeDescription: "some code"
*OrderDependency: 10 AnySetup *SomeKeyword
*OpenUI *SomeKeyword/SomeDescription: SomeAction
| const char* keyword |
First string in each line (e.g. KEYWORD), encoding is ISOLatin1, allowed chars are [:alpha:][:digit:]_.-
| const char* name |
Optional second string in each line (e.g. NAME), encoding is ISOLatin1, allowed chars are [:alpha:][:digit:]_.- (and '*'!)
| const char* description |
Optional third string in each line (e.g. DESCRIPTION), according to the spec: translation, encoding is UTF8, all printable chars are allowed, except ':'
| const char* value |
Last string in each line (e.g. VALUE), according to the spec: code, encoding is ISOLatin1, all printable chars are allowed, NL terminates VALUE, to include NL into VALUE, it must be double quoted