CAPS Universe documentation  1.0.4
All you need to know to be successful
Data Fields
caps_ppd_option Struct Reference

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
 

Detailed Description

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"
keyword = "SomeKeyword"
name = NULL
value = "some value"
const char * keyword
Definition: libcapsppd-api.h:152
const char * description
Definition: libcapsppd-api.h:156
const char * value
Definition: libcapsppd-api.h:158
const char * name
Definition: libcapsppd-api.h:154


   *SomeKeyword SomeOption/SomeDescription: "some code"
keyword = "SomeKeyword"
name = "SomeOption"
description = "SomeDescription"
value = "some code"


   *OrderDependency: 10 AnySetup *SomeKeyword
keyword = "OrderDependency"
name = NULL
value = "10 AnySetup *SomeKeyword"


   *OpenUI *SomeKeyword/SomeDescription: SomeAction
keyword = "OpenUI"
name = "*SomeKeyword"
description = "SomeDescription"
value = "SomeAction"
Todo:
The "const char *" is useless, due to strdup()!

Field Documentation

◆ keyword

const char* keyword

First string in each line (e.g. KEYWORD), encoding is ISOLatin1, allowed chars are [:alpha:][:digit:]_.-

◆ name

const char* name

Optional second string in each line (e.g. NAME), encoding is ISOLatin1, allowed chars are [:alpha:][:digit:]_.- (and '*'!)

◆ description

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 ':'

◆ value

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


The documentation for this struct was generated from the following file: