aboutsummaryrefslogtreecommitdiff
path: root/libXt/specs/appA.xml
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-04-10 14:58:33 +0200
committermarha <marha@users.sourceforge.net>2012-04-10 14:58:33 +0200
commit5f8448ef6b85a9ff72c5af4cec99183c8bb60dc6 (patch)
treec10939819ba1167cdc905a0c105c7ae4091abbc3 /libXt/specs/appA.xml
parent67326634496ef21b4acbf4cef2f05040d34aef9b (diff)
downloadvcxsrv-5f8448ef6b85a9ff72c5af4cec99183c8bb60dc6.tar.gz
vcxsrv-5f8448ef6b85a9ff72c5af4cec99183c8bb60dc6.tar.bz2
vcxsrv-5f8448ef6b85a9ff72c5af4cec99183c8bb60dc6.zip
Updated following packages:
bigreqsproto-1.1.2 fontsproto-2.1.2 recordproto-1.14.2 scrnsaverproto-1.2.2 xcmiscproto-1.2.2 libXt-1.1.3 xhost-1.0.5 kbproto-1.0.6 libXrender-0.9.7 libxkbfile-1.0.8 freetype-2.4.9 libXaw-1.0.10 libXpm-3.5.10 xproto-7.0.23
Diffstat (limited to 'libXt/specs/appA.xml')
-rw-r--r--libXt/specs/appA.xml112
1 files changed, 112 insertions, 0 deletions
diff --git a/libXt/specs/appA.xml b/libXt/specs/appA.xml
new file mode 100644
index 000000000..daf40eb3c
--- /dev/null
+++ b/libXt/specs/appA.xml
@@ -0,0 +1,112 @@
+<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 | &lt;empty line&gt;</entry>
+ </row>
+ <row>
+ <entry>Comment</entry>
+ <entry>="!" {&lt;any character except null or newline&gt;}</entry>
+ </row>
+ <row>
+ <entry>IncludeFile</entry>
+ <entry>= "#" WhiteSpace "include" WhiteSpace FileName WhiteSpace</entry>
+ </row>
+ <row>
+ <entry>FileName</entry>
+ <entry>= &lt;valid filename for operating system&gt;</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>= {&lt;space> | &lt;horizontal tab&gt;}</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>={&lt;any character except null or unescaped newline&gt;}</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>