a bunch of (mostly) latex-leftover typos

svn: r11449
This commit is contained in:
Eli Barzilay 2008-08-27 07:07:59 +00:00
parent 381bc9351c
commit 6cd75acb0a
21 changed files with 41 additions and 45 deletions

View File

@ -10,10 +10,10 @@
@defmixin[canvas:basic-mixin (editor-canvas%) (canvas:basic<%>)]{
}
@definterface[canvas:color<%> (canvas:basic<%>)]{
\index{background color}
@index{background color}
Mixins that implement this interface initialize the
background color of the canvas to the value of the
\index{'framework:basic-canvas-background}
@index{'framework:basic-canvas-background}
@scheme['framework:basic-canvas-background] preference.
Adds a callback so that when that preference is modified,
the background color changes.

View File

@ -18,7 +18,7 @@
}
@definterface[menu:can-restore-underscore<%> (labelled-menu-item<%>)]{
These menus can save and restore the underscores (indicated
via the \& characters in the original labels) in their
via the @litchar{&} characters in the original labels) in their
labels.
If the preference @scheme['framework:menu-bindings]

View File

@ -255,7 +255,7 @@ More complex shapes are typically best implemented with
[parent f]
[paint-callback
(lambda (c dc)
(send dc #,(:: dc<%> set-background) (make-object color\% 220 200 255))
(send dc #,(:: dc<%> set-background) (make-object color% 220 200 255))
(send dc #,(:: dc<%> clear))
(send dc #,(:: dc<%> set-smoothing) 'smoothed)
(send dc #,(:: dc<%> set-origin) 5 5)

View File

@ -137,7 +137,7 @@ A second (optional) boolean argument indicates whether the callback
boolean?]
[(yield [v (or/c (one-of/c 'wait) evt?)])
any/c])]{
@;\index{pause}\index{wait}
@;@index{pause}@index{wait}
Yields control to event dispatching. See
@secref["eventspaceinfo"] for details.

View File

@ -11,7 +11,7 @@ A @defterm{font} is an object which determines the appearance of text,
@item{size --- The size of the text, either in points (the default)
or logical drawing units, depending on the
``size-in-pixels?''\ property (see below).}
``size-in-pixels?'' property (see below).}
@item{family --- A platform- and device-independent font
designation. The families are:

View File

@ -14,7 +14,7 @@ There is one @scheme[font-name-directory<%>] object:
PostScript font name, which encapsulates the style and weight. When
drawing to a bitmap in X, the rendering information is an X font
string, which encapsulates the style and weight, parameterized over
the size (using a ``\%d'' placeholder).
the size (using a ``%d'' placeholder).
Programmers rarely need to directly invoke methods of
@scheme[the-font-name-directory]. It is used automatically when

View File

@ -134,7 +134,7 @@ Gets the virtual key code for the key event. The virtual key code is
@item{@indexed-scheme['f24]}
@item{@indexed-scheme['numlock]}
@item{@indexed-scheme['scroll]}
@item{@indexed-scheme['wheel-up] --- \index["wheel on mouse"]{mouse} wheel up one notch}
@item{@indexed-scheme['wheel-up] --- @index["wheel on mouse"]{mouse} wheel up one notch}
@item{@indexed-scheme['wheel-down] --- mouse wheel down one notch}
@item{@indexed-scheme['release] --- indicates a key-release event}
@item{@indexed-scheme['press] --- indicates a key-press event; usually only from @scheme[get-key-release-code]}

View File

@ -70,7 +70,7 @@ Starts (or restarts) the timer. If the timer is already running, its
The timer's alarm expires after @scheme[msec] milliseconds, at which
point @method[timer% notify] is called (on an event boundary). If
@scheme[just-once?]\ is @scheme[#f], the timer expires @italic{every}
@scheme[just-once?] is @scheme[#f], the timer expires @italic{every}
@scheme[msec] milliseconds until the timer is explicitly
stopped;\footnote{More precisely, the timer expires @scheme[msec]
milliseconds after @method[timer% notify] returns each time}

View File

@ -278,7 +278,7 @@ In a dialog, if @scheme[event] is an Escape key event, the event is
@item{
If @scheme[event] is an alphanumeric key event and the current top-level
window contains a control with a mnemonic matching the key (which is
installed via a label that contains ``\&''; see
installed via a label that contains @litchar{&}; see
@method[window<%> get-label] for more information), then the
keyboard focus is moved to the matching control. Furthermore, if the
matching control is a @scheme[button%], @scheme[check-box%], or

View File

@ -345,7 +345,7 @@ with the following program:
@schemeblock[
(code:comment #, @t{Create a dialog})
(define dialog (instantiate dialog\% ("Example")))
(define dialog (instantiate dialog% ("Example")))
(code:comment #, @t{Add a text field to the dialog})
(new text-field% [parent dialog] [label "Your name"])

View File

@ -110,7 +110,7 @@ Returns the window's cursor, or @scheme[#f] if this window's cursor
exact-integer?]{
Returns an exact integer representing a handle to the window in the
current platform's GUI toolbox. Cast this number from a C \cpp{long}
current platform's GUI toolbox. Cast this number from a C @cpp{long}
to a platform-specific C type:
@itemize{
@ -153,7 +153,7 @@ Gets a window's label, if any. Control windows generally display their
label can be an icon symbol @scheme['app], @scheme['caution], or
@scheme['stop].
The label string may contain ampersands (``\&''), which serve as
The label string may contain ampersands (@litchar{&}), which serve as
keyboard navigation annotations for controls under Windows and X. The
ampersands are not part of the displayed label of a control; instead,
ampersands are removed in the displayed label (under all platforms),

View File

@ -219,9 +219,7 @@ scheme
(define (has-decimal? str)
(define L (string-length str))
(and (>= L 3)
(char=?
#\.
(string-ref result (- L 3)))))
(char=? #\. (string-ref result (- L 3)))))
(provide/contract
(code:comment "convert a random number to a string")
@ -255,9 +253,7 @@ scheme
(define (has-decimal? str)
(define L (string-length str))
(and (>= L 3)
(char=?
#\.
(string-ref result (- L 3)))))
(char=? #\. (string-ref result (- L 3)))))
(define (is-decimal-string? str)
(define L (string-length str))

View File

@ -172,7 +172,7 @@ finalizations.}
[Scheme_Object** argv])]{
Creates and returns a new namespace. This values can be cast to
@scheme[Scheme\_Env *]. It can also be installed in
@cpp[Scheme_Env *]. It can also be installed in
a parameterization using @cppi{scheme_set_param} with
@cppi{MZCONFIG_ENV}.

View File

@ -275,7 +275,7 @@ for @cpp{printf}, but with the following format directives:
@item{@FormatD{Z} : a potential platform-specific error value and a
@cpp{char} string; if the string is non-@cpp{NULL}, then the error
value is ignored, otherwise the error value is used as for \Format{E}.}
value is ignored, otherwise the error value is used as for @FormatD{E}.}
@item{@FormatD{%} : a percent sign}

View File

@ -40,12 +40,12 @@ Returns 1 if the Scheme values are @scheme[equal?].}
@function[(long scheme_equal_hash_key
[Scheme_Object* obj])]{
Returns the primary @scheme[equal?]-hash key for \var{obj}.}
Returns the primary @scheme[equal?]-hash key for @var{obj}.}
@function[(long scheme_equal_hash_key2
[Scheme_Object* obj])]{
Returns the secondary @scheme[equal?]-hash key for \var{obj}.}
Returns the secondary @scheme[equal?]-hash key for @var{obj}.}
@function[(long scheme_recur_equal_hash_key
[Scheme_Object* obj]
@ -55,7 +55,7 @@ Like @cpp{scheme_equal_hash_key}, but accepts an extra value for cycle
tracking. This procedure is meant to be called by a hasing procedure
installed with @cpp{scheme_set_type_equality}.}
Returns the primary @scheme[equal?]-hash key for \var{obj}.}
Returns the primary @scheme[equal?]-hash key for @var{obj}.}
@function[(long scheme_recur_equal_hash_key2
[Scheme_Object* obj]
@ -212,7 +212,7 @@ that will be encountered.}
@function[(Scheme_Hash_Table* scheme_make_hash_table_equal)]{
Like @cpp{scheme_make_hash_table}, except that keys are treated as
Scheme values and hashed based on @scheme[equal?]\ instead of
Scheme values and hashed based on @scheme[equal?] instead of
@scheme[eq?].}
@function[(void scheme_hash_set

View File

@ -435,7 +435,7 @@ value.}
[Scheme_Object* carv]
[Scheme_Object* cdrv])]{
Makes a \scmi{cons} pair.}
Makes a @scheme[cons] pair.}
@function[(Scheme_Object* scheme_make_byte_string
[char* bytes])]{

View File

@ -854,10 +854,10 @@ Produces an integer hash code consistent with
(define-values (fc% key) (fresh-c%))]
(send (new fc%) m) ; {\Is} error: no method @scheme[m]
(send (new fc%) m)
(let ()
(define-member-name p key)
(send (new fc%) p)) ; {\Is} \schemeresult{10}
(send (new fc%) p))
]

View File

@ -6,7 +6,7 @@
See @secref["cont-model"] and @secref["prompt-model"] for general
information about continuations. PLT Scheme's support for prompts and
composable continuations most closely resembles Dorai Sitaram's
@scheme[\%] and @scheme[fcontrol] operator @cite["Sitaram93"].
@scheme[%] and @scheme[fcontrol] operator @cite["Sitaram93"].
Scheme installs a @defterm{continuation barrier} around evaluation in
the following contexts, preventing full-continuation jumps across the

View File

@ -190,7 +190,7 @@ If the listener has already been closed, the @exnraise[exn:fail:network].
The listener's port number may not become immediately available for
new listeners (with the default @scheme[reuse?] argument of
@scheme[tcp-listen]). For further information, see Stevens's
explanation of the @tt{TIME\_WAIT} TCP state.}
explanation of the @tt{TIME_WAIT} TCP state.}
@defproc[(tcp-listener? [v any/c]) boolean?]{

View File

@ -174,7 +174,7 @@ parse takes precedence over a symbol parse.
@index["case-sensitivity"]{@index["case-insensitive"]{When}} the
@scheme[read-case-sensitive] @tech{parameter} is set to @scheme[#f],
characters in the sequence that are not quoted by @litchar["|"] or
@litchar["\\"] are first case-normalized. If the reader encounters
@litchar{\} are first case-normalized. If the reader encounters
@as-index{@litchar{#ci}}, @litchar{#CI}, @litchar{#Ci}, or
@litchar{#cI}, then it recursively reads the following datum in
case-insensitive mode. If the reader encounters
@ -386,14 +386,14 @@ Within a string sequence, the following escape sequences are
@itemize{
@item{@as-index{@litchar["\\a"]}: alarm (ASCII 7)}
@item{@as-index{@litchar["\\b"]}: backspace (ASCII 8)}
@item{@as-index{@litchar["\\t"]}: tab (ASCII 9)}
@item{@as-index{@litchar["\\n"]}: linefeed (ASCII 10)}
@item{@as-index{@litchar["\\v"]}: vertical tab (ASCII 11)}
@item{@as-index{@litchar["\\f"]}: formfeed (ASCII 12)}
@item{@as-index{@litchar["\\r"]}: return (ASCII 13)}
@item{@as-index{@litchar["\\e"]}: escape (ASCII 27)}
@item{@as-index{@litchar{\a}}: alarm (ASCII 7)}
@item{@as-index{@litchar{\b}}: backspace (ASCII 8)}
@item{@as-index{@litchar{\t}}: tab (ASCII 9)}
@item{@as-index{@litchar{\n}}: linefeed (ASCII 10)}
@item{@as-index{@litchar{\v}}: vertical tab (ASCII 11)}
@item{@as-index{@litchar{\f}}: formfeed (ASCII 12)}
@item{@as-index{@litchar{\r}}: return (ASCII 13)}
@item{@as-index{@litchar{\e}}: escape (ASCII 27)}
@item{@as-index{@litchar["\\\""]}: double-quotes (without terminating the string)}
@item{@as-index{@litchar["\\'"]}: quote (i.e., the backslash has no effect)}