From 78806c9fc4be8da93581dcbdafbd668cac9f2d8b Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 4 Dec 2010 17:57:24 -0800 Subject: spec: Convert .DS/.DE nroff sections to tags Signed-off-by: Alan Coopersmith --- specs/sect1-9.xml | 166 +++++++++++++++++++++++++++--------------------------- 1 file changed, 83 insertions(+), 83 deletions(-) (limited to 'specs') diff --git a/specs/sect1-9.xml b/specs/sect1-9.xml index fb6ce6d..91e3cac 100644 --- a/specs/sect1-9.xml +++ b/specs/sect1-9.xml @@ -3913,14 +3913,14 @@ is specified or the specified type matches the actual type of the property, then the return type is the actual type of the property, the format is the actual format of the property (never zero), and the bytes-after and value are as follows, given: - -N = actual length of the stored property in bytes -\ \ \ \ (even if the format is 16 or 32) -I = 4 * long-offset -T = N - I -L = MINIMUM(T, 4 * long-length) -A = N - (I + L) - + + N = actual length of the stored property in bytes + (even if the format is 16 or 32) + I = 4 * long-offset + T = N - I + L = MINIMUM(T, 4 * long-length) + A = N - (I + L) + The returned value starts at byte index I in the property (indexing from 0), @@ -6161,26 +6161,26 @@ If either min-byte1 or max-byte1 are nonzero, then both min-char-or-byte2 and max-char-or-byte2 will be less than 256, and the 2-byte character index values corresponding to char-infos element N (counting from 0) are: - -byte1 = N/D + min-byte1 -byte2 = N\\\\D + min-char-or-byte2 - + + byte1 = N/D + min-byte1 + byte2 = N\\D + min-char-or-byte2 + where: - -D = max-char-or-byte2 - min-char-or-byte2 + 1 -/ = integer division -\\\\ = integer modulus - + + D = max-char-or-byte2 - min-char-or-byte2 + 1 + / = integer division + \\ = integer modulus + If char-infos has length zero, then min-bounds and max-bounds will be identical, and the effective char-infos is one filled with this char-info, of length: - -L = D * (max-byte1 - min-byte1 + 1) - + + L = D * (max-byte1 - min-byte1 + 1) + That is, @@ -6207,19 +6207,19 @@ nonexistent characters). The bounding box of the font (that is, the smallest rectangle enclosing the shape obtained by superimposing all characters at the same origin [x,y]) has its upper-left coordinate at: - -[x + min-bounds.left-side-bearing, y - max-bounds.ascent] - + + [x + min-bounds.left-side-bearing, y - max-bounds.ascent] + with a width of: - -max-bounds.right-side-bearing - min-bounds.left-side-bearing - + + max-bounds.right-side-bearing - min-bounds.left-side-bearing + and a height of: - -max-bounds.ascent + max-bounds.descent - + + max-bounds.ascent + max-bounds.descent + The font-ascent is the logical extent of the font above the baseline @@ -6244,27 +6244,27 @@ For a character origin at [x,y], the bounding box of a character (that is, the smallest rectangle enclosing the character's shape), described in terms of CHARINFO components, is a rectangle with its upper-left corner at: - -[x + left-side-bearing, y - ascent] - + + [x + left-side-bearing, y - ascent] + with a width of: - -right-side-bearing - left-side-bearing - + + right-side-bearing - left-side-bearing + and a height of: - -ascent + descent - + + ascent + descent + and the origin for the next character is defined to be: - -[x + character-width, y] - + + [x + character-width, y] + Note that the baseline is logically viewed as being just below @@ -6933,7 +6933,7 @@ so the result is: -((src FUNC dst) AND plane-mask) OR (dst AND (NOT plane-mask)) + ((src FUNC dst) AND plane-mask) OR (dst AND (NOT plane-mask)) @@ -7070,8 +7070,8 @@ width w is a rectangle with vertices at the following real coordinates: -[x1-(w*sn/2), y1+(w*cs/2)], [x1+(w*sn/2), y1-(w*cs/2)], -[x2-(w*sn/2), y2+(w*cs/2)], [x2+(w*sn/2), y2-(w*cs/2)] + [x1-(w*sn/2), y1+(w*cs/2)], [x1+(w*sn/2), y1-(w*cs/2)], + [x2-(w*sn/2), y2+(w*cs/2)], [x2+(w*sn/2), y2-(w*cs/2)] @@ -8598,9 +8598,9 @@ This request draws the outlines of the specified rectangles, as if a five-point were specified for each rectangle: - -[x,y] [x+width,y] [x+width,y+height] [x,y+height] [x,y] - + + [x,y] [x+width,y] [x+width,y+height] [x,y+height] [x,y] + The x and y coordinates of each rectangle are relative to the drawable's origin @@ -8730,9 +8730,9 @@ the ellipse (for a circle, the angles and coordinate systems are identical). The relationship between these angles and angles expressed in the normal coordinate system of the screen (as measured with a protractor) is as follows: - -skewed-angle = atan(tan(normal-angle) * w/h) + adjust - + + skewed-angle = atan(tan(normal-angle) * w/h) + adjust + The skewed-angle and normal-angle are expressed in radians (rather @@ -8952,9 +8952,9 @@ Errors: This request fills the specified rectangles, as if a four-point FillPoly were specified for each rectangle: - -[x,y] [x+width,y] [x+width,y+height] [x,y+height] - + + [x,y] [x+width,y] [x+width,y+height] [x,y+height] + The x and y coordinates of each rectangle are relative to the drawable's origin @@ -9574,21 +9574,21 @@ and specify the baseline starting position (the initial character origin). The effect is first to fill a destination rectangle with the background pixel defined in gc and then to paint the text with the foreground pixel. The upper-left corner of the filled rectangle is at: - -[x, y - font-ascent] - + + [x, y - font-ascent] + the width is: - -overall-width - + + overall-width + and the height is: - -font-ascent + font-descent - + + font-ascent + font-descent + The overall-width, font-ascent, and font-descent are as @@ -11374,9 +11374,9 @@ The first-keycode must be greater than or equal to min-keycode as returned in the connection setup (or a Value error results) and: - -first-keycode + (keysyms-length / keysyms-per-keycode) - 1 - + + first-keycode + (keysyms-length / keysyms-per-keycode) - 1 + must be less than or equal to max-keycode as returned in the connection @@ -11385,9 +11385,9 @@ setup (or a error results). KEYSYM number N (counting from zero) for keycode K has an index (counting from zero) of: - -(K - first-keycode) * keysyms-per-keycode + N - + + (K - first-keycode) * keysyms-per-keycode + N + in keysyms. @@ -11468,9 +11468,9 @@ The first-keycode must be greater than or equal to min-keycode as returned in the connection setup (or a Value error results), and: - -first-keycode + count - 1 - + + first-keycode + count - 1 + must be less than or equal to max-keycode as returned in the connection setup @@ -11478,16 +11478,16 @@ must be less than or equal to max-keycode as returned in the connection setup Value error results). The number of elements in the keysyms list is: - -count * keysyms-per-keycode - + + count * keysyms-per-keycode + and KEYSYM number N (counting from zero) for keycode K has an index (counting from zero) of: - -(K - first-keycode) * keysyms-per-keycode + N - + + (K - first-keycode) * keysyms-per-keycode + N + in keysyms. @@ -11773,15 +11773,15 @@ Percent can range from -100 to 100 inclusive (or a Value error results). The volume at which the bell is rung when percent is nonnegative is: - -base - [(base * percent) / 100] + percent - + + base - [(base * percent) / 100] + percent + When percent is negative, it is: - -base + [(base * percent) / 100] - + + base + [(base * percent) / 100] + -- cgit v1.2.3