GIF87a;
<appendix id='Resource_File_Format'> <title>Resource File Format</title> <para> A resource file contains text representing the default resource values for an application or set of applications. </para> <para> The format of resource files is defined by <emphasis remap='I'>Xlib — C Language X Interface.</emphasis> and is reproduced here for convenience only. </para> <para>The format of a resource specification is</para> <informaltable frame='none'> <?dbfo keep-together="always" ?> <tgroup cols='2' align='left' colsep='0' rowsep='0'> <colspec colwidth='0.3*' colname='c1'/> <colspec colwidth='1.0*' colname='c2'/> <tbody> <row> <entry>ResourceLine</entry> <entry>= Comment | IncludeFile | ResourceSpec | <empty line></entry> </row> <row> <entry>Comment</entry> <entry>="!" {<any character except null or newline>}</entry> </row> <row> <entry>IncludeFile</entry> <entry>= "#" WhiteSpace "include" WhiteSpace FileName WhiteSpace</entry> </row> <row> <entry>FileName</entry> <entry>= <valid filename for operating system></entry> </row> <row> <entry>ResourceSpec</entry> <entry>= WhiteSpace ResourceName WhiteSpace ":" WhiteSpace Value</entry> </row> <row> <entry>ResourceName</entry> <entry>= [Binding] {Component Binding} ComponentName</entry> </row> <row> <entry>Binding</entry> <entry>="." | "*"</entry> </row> <row> <entry>WhiteSpace</entry> <entry>= {<space> | <horizontal tab>}</entry> </row> <row> <entry>Component</entry> <entry>= "?" | ComponentName</entry> </row> <row> <entry>ComponentName</entry> <entry>= NameChar {NameChar}</entry> </row> <row> <entry>NameChar</entry> <entry>= "a"-"z" | "A"-"Z" | "0"-"9" | "_" | "-"</entry> </row> <row> <entry>Value</entry> <entry>={<any character except null or unescaped newline>}</entry> </row> </tbody> </tgroup> </informaltable> <para> Elements separated by vertical bar (|) are alternatives. Curly braces ({...}) indicate zero or more repetitions of the enclosed elements. Square brackets ([...]) indicate that the enclosed element is optional. Quotes ("...") are used around literal characters. </para> <para> If the last character on a line is a backslash (\), that line is assumed to continue on the next line. </para> <para> To allow a Value to begin with whitespace, the two-character sequence "\<emphasis remap='I'>space</emphasis>" (backslash followed by space) is recognized and replaced by a space character, and the two-character sequence "\<emphasis remap='I'>tab</emphasis>" (backslash followed by horizontal tab) is recognized and replaced by a horizontal tab character. </para> <para> To allow a Value to contain embedded newline characters, the two-character sequence "\n" is recognized and replaced by a newline character. To allow a Value to be broken across multiple lines in a text file, the two-character sequence "\<emphasis remap='I'>newline</emphasis>" (backslash followed by newline) is recognized and removed from the value. </para> <para> To allow a Value to contain arbitrary character codes, the four-character sequence "\<emphasis remap='I'>nnn</emphasis>", where each <emphasis remap='I'>n</emphasis> is a digit character in the range of "0"-"7", is recognized and replaced with a single byte that contains the octal value specified by the sequence. Finally, the two-character sequence "\\" is recognized and replaced with a single backslash. </para> </appendix>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
CH01.xml | File | 87.1 KB | 0644 |
|
CH02.xml | File | 139.66 KB | 0644 |
|
CH03.xml | File | 42.83 KB | 0644 |
|
CH04.xml | File | 76.24 KB | 0644 |
|
CH05.xml | File | 30.26 KB | 0644 |
|
CH06.xml | File | 42.49 KB | 0644 |
|
CH07.xml | File | 147.21 KB | 0644 |
|
CH08.xml | File | 17.18 KB | 0644 |
|
CH09.xml | File | 133.29 KB | 0644 |
|
CH10.xml | File | 66.05 KB | 0644 |
|
CH11.xml | File | 164.19 KB | 0644 |
|
CH12.xml | File | 33.07 KB | 0644 |
|
CH13.xml | File | 29.96 KB | 0644 |
|
COPYING | File | 5.54 KB | 0644 |
|
acknowledgement.xml | File | 8.54 KB | 0644 |
|
appA.xml | File | 3.56 KB | 0644 |
|
appB.xml | File | 31.74 KB | 0644 |
|
appC.xml | File | 55.04 KB | 0644 |
|
appD.xml | File | 27.74 KB | 0644 |
|
appE.xml | File | 37.79 KB | 0644 |
|
appF.xml | File | 3.8 KB | 0644 |
|
intrinsics.xml | File | 5.18 KB | 0644 |
|
preface.xml | File | 2.67 KB | 0644 |
|