Commit 0d6e2516 authored by Peter Pentchev's avatar Peter Pentchev

Correct some typographical and hyphenation errors.

parent 1532ac89
......@@ -19,6 +19,7 @@ Change log for hexer, the multi-view binary editor
- assume a POSIX environment and declare some of the configuration
settings as deprecated; no tests are done for them, and
the deactivated tests will be removed in a future Hexer release
- correct some typographical and hyphenation errors
0.2.3 2015/12/10
- build with large file support on Linux
......
......@@ -90,7 +90,7 @@ press_any_key(struct he_s *hedit)
* semicolons. if a command finds a semicolon at the end of its input,
* a pointer to the character immediately following the semicolon is
* returned. if a separating semicolon is not found in the input, a
* null-pointer is returned.
* null pointer is returned.
*/
static const char *
......
......@@ -278,10 +278,10 @@ HEXER(1) HEXER(1)
In IInnsseerrtt MMooddee the bytes you type are inserted at the
current position of the cursor. At any time, you can
toggle the active column (hex column or text column)
by pressing the TTAABB-key. If the hex column is active
by pressing the TTAABB key. If the hex column is active
the bytes are entered as two digit hex numbers, if the
text column is active, the bytes are entered as ASCII
text. The DDeelleettee- or BBaacckkSSppaaccee-key deletes the previ-
text. The DDeelleettee or BBaacckkSSppaaccee key deletes the previ-
ously inserted byte. If the hex column is active, the
previously inserted nibble (hex digit) is deleted. It
is not possible to delete more bytes than have been
......@@ -643,7 +643,7 @@ CCOOMMMMAANNDD LLIINNEE EEDDIITTIINNGG
TTAABB Try to complete currently typed word. If the com-
pletion is not unique, the word is completed as far
as unique. If the TTAABB-key is hit twice on the same
as unique. If the TTAABB key is hit twice on the same
position, a list of all possible completions is
displayed.
......
......@@ -412,14 +412,15 @@ In
the bytes you type are inserted at the current position of the cursor.
At any time, you can toggle the active column (hex column or text column)
by pressing the
.BR TAB -key.
.BR TAB
key.
If the hex column is active the bytes are entered as two digit hex numbers,
if the text column is active, the bytes are entered as ASCII text.
The
.BR Delete -
.BR Delete
or
.BR BackSpace -key
deletes the previously inserted byte. If the hex column is active, the
.BR BackSpace
key deletes the previously inserted byte. If the hex column is active, the
previously inserted nibble (hex digit) is deleted. It is not possible
to delete more bytes than have been inserted in the current insert command.
While in
......@@ -901,8 +902,8 @@ This is different from
.B TAB
Try to complete currently typed word. If the completion is not unique,
the word is completed as far as unique. If the
.BR TAB -key
is hit twice on the same position, a list of all possible completions is
.BR TAB
key is hit twice on the same position, a list of all possible completions is
displayed.
.\"
.\" --- Section -- REGULAR EXPRESSIONS ----------------------------------------
......
......@@ -225,10 +225,10 @@ EDITOR COMMANDS
In Insert Mode the bytes you type are inserted at the
current position of the cursor. At any time, you can
toggle the active column (hex column or text column)
by pressing the TAB-key. If the hex column is active
by pressing the TAB key. If the hex column is active
the bytes are entered as two digit hex numbers, if the
text column is active, the bytes are entered as ASCII
text. The Delete- or BackSpace-key deletes the previ-
text. The Delete or BackSpace key deletes the previ-
ously inserted byte. If the hex column is active, the
previously inserted nibble (hex digit) is deleted. It
is not possible to delete more bytes than have been
......@@ -530,7 +530,7 @@ COMMAND LINE EDITING
TAB Try to complete currently typed word. If the com-
pletion is not unique, the word is completed as far
as unique. If the TAB-key is hit twice on the same
as unique. If the TAB key is hit twice on the same
position, a list of all possible completions is
displayed.
......
......@@ -157,13 +157,13 @@ struct he_command_s {
*/
struct he_command_s *next_command;
/* The next command in the undo list. This pointer is set only for
* the first command of a compound command. A null-value in the first
* the first command of a compound command. A null value in the first
* command of a compound command indicates the end of the list.
* NOTE: For all subcommands that are not the first command in a compound
* command, `next_command' has to be set to zero.
*/
struct he_command_s *prev_command;
/* The previous command in the undo list. A null-value in the first
/* The previous command in the undo list. A null value in the first
* command of a compound command indicates the beginning of the list.
* For all subcommands that are not the first command in a compound
* command, the value of `prev_command' is ignored.
......
......@@ -70,14 +70,14 @@
/* strings:
* `readline()' returns strings of characters. special characters (like
* cursor-keys) are represented as escape-sequences. an escape-sequence
* cursor keys) are represented as escape sequences. an escape sequence
* is made up of an escape character `\E' (0x1b) followed by the internal
* representation of the key minus 254 (== HXKEY_BIAS) (we don't use 256 to
* avoid null-characters). we'll write down an escape-sequence as
* avoid null characters). we'll write down an escape sequence as
* `\E(HXKEY_keyname)'. all characters will be stored as characters, even if
* a `HXKEY_keyname' entry in the keylist exists. the only two exeptions to
* that rule are the null-character (represented as `\E(HXKEY_NULL)') and the
* escape-character, which is represented as `\E\001' (that's why an offset
* a `HXKEY_keyname' entry in the keylist exists. the only two exceptions to
* that rule are the null character (represented as `\E(HXKEY_NULL)') and the
* escape character, which is represented as `\E\001' (that's why an offset
* of 254 (== HXKEY_BIAS) is used for the other keys).
*/
......@@ -91,7 +91,7 @@ static char rl_vline[LINE_MAXLEN];
/* buffer for the "visible" line */
static size_t rl_position; /* position of the cursor. the position of the
* cursor is number of the character under the
* cursor. note that escape-sequences are
* cursor. note that escape sequences are
* considered to be a single character. */
static size_t rl_offset; /* number of characters scrolled out to the
* left, so the first character displayed on
......@@ -118,7 +118,7 @@ int rl_backspace_jump;
int rl_cancel_on_bs;
/* if `rl_cancel_on_bs' is non-zero, hitting backspace on an empty line
* will return a null-pointer - just as if escape had been pressed.
* will return a null pointer - just as if escape had been pressed.
*/
int rl_redisplay;
......@@ -268,7 +268,7 @@ rl_query_yn(char *prompt, int dfl)
* if `dfl == -1', the return key is ignored. if case fo a windowchange
* and if `rl_winch != 0', the function `(*rl_winch)()' is called.
* return values:
* -1: the ESCAPE-key has been pressed.
* -1: the ESCAPE key has been pressed.
* 0: no.
* 1: yes.
*/
......@@ -359,10 +359,10 @@ rl_get_vposition(void)
else {
++i;
if (rl.line[i] == 1)
/* ESCAPE-character */
/* ESCAPE character */
vposition += strlen(tio_keyrep(HXKEY_ESCAPE));
else if (rl.line[i] == (int)HXKEY_NULL - HXKEY_BIAS)
/* null-character */
/* null character */
vposition += strlen(tio_keyrep(HXKEY_NULL));
else {
key = rl.line[i] + HXKEY_BIAS;
......@@ -411,11 +411,11 @@ rl_make_vline_(struct rl_line_s *rrl)
else {
++i;
if (rrl->line[i] == 1) {
/* ESCAPE-character */
/* ESCAPE character */
strcpy(rrl->vline + vposition, rep = tio_keyrep(HXKEY_ESCAPE));
vposition += strlen(rep);
} else if (rrl->line[i] == (int)HXKEY_NULL - HXKEY_BIAS) {
/* null-character */
/* null character */
strcpy(rrl->vline + vposition, rep = tio_keyrep(HXKEY_NULL));
vposition += strlen(rep);
} else {
......@@ -911,7 +911,7 @@ rl_complete(int context, int again)
prefix[i] = 0;
if (stop_f) {
if (again) {
/* the completer-key has been hit twice on the same position.
/* the completer key has been hit twice on the same position.
* print out a completion list. */
int k, l, m, n;
char **list2;
......
......@@ -109,7 +109,7 @@ enum regex_e { /* arguments
CHAR, /* (char c)
* matches the character `c'. */
STRING, /* (long n) <string of length `n'>
* matches the given string exactly. the null-character is
* matches the given string exactly. the null character is
* *not* interpreted as the end of the string. */
PAR_OPEN, /* opening parenthesis. */
PAR_CLOSE, /* (long slot)
......
......@@ -659,7 +659,7 @@ tio_init(const char * const prog)
break;
}
/* Read string capabilities an check if we found all needed capabilies.
/* Read string capabilities and check if we found all needed capabilities.
*/
for (i = 0; t_strings[i].id; ++i)
*(t_strings[i].string) = tgetstr(t_strings[i].id, area);
......@@ -913,7 +913,7 @@ tio_keypad(const int on)
/* Set the keypad mode.
* on=0: numeric keypad.
* on=1: application keypad. Select this mode if you want to use the
* keypad (i.e. arrow-keys).
* keypad (i.e. arrow keys).
*/
{
if (!on == !t_keypad_transmit) return;
......@@ -1902,7 +1902,7 @@ tio_display(char *text, int indent_arg)
void
tio_message(char **message, int indent)
/* displays the array of strings `message' via `tio_display()' providing
* a simple pager. this function assumes, that every string in
* a simple pager. this function assumes that every string in
* `message' displays as a single line.
*/
{
......@@ -1957,7 +1957,7 @@ tio_printf(const char * const fmt, ...)
tio_vprintf(const char * const fmt, va_list ap)
/* Similar to `printf()'. `tio_printf()' understands the same @-commands
* as `tio_display()'. Note that @-commands in strings inserted via %s
* are executed. Use `tio_raw_printf()' if you don't wan't @-commands to
* are executed. Use `tio_raw_printf()' if you don't want @-commands to
* be executed.
*/
{
......
......@@ -143,7 +143,7 @@ tio_keypad(int on);
/* Set the keypad mode.
* on=0: numeric keypad.
* on=1: application keypad. Select this mode if you want to use the
* keypad (i.e. arrow-keys).
* keypad (i.e. arrow keys).
*/
int
......@@ -235,7 +235,7 @@ tio_keyname(int key);
const char *
tio_keyrep(int key);
/* Returs a string representation of `key'. If `key' is not a printable
/* Returns a string representation of `key'. If `key' is not a printable
* character an escape sequence is generated:
* key > 0xff if key is a known special key, a unique sequence
* ~<keyname> (i.e. ~UP for up-arrow)
......@@ -343,7 +343,7 @@ tio_display(char *text, int indent);
void
tio_message(char **message, int indent);
/* displays the array of strings `message' via `tio_display()' providing
* a simple pager. this function assumes, that every string in
* a simple pager. this function assumes that every string in
* `message' displays as a single line.
*/
......@@ -354,7 +354,7 @@ tio_printf( const char *fmt, ... ) __printflike(1, 2);
tio_vprintf(const char *fmt, va_list);
/* Similar to `printf()'. `tio_printf()' understands the same @-commands
* as `tio_display()'. Note that @-commands in strings inserted via %s
* are executed. Use `tio_raw_printf()' if you don't wan't @-commands to
* are executed. Use `tio_raw_printf()' if you don't want @-commands to
* be executed.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment