Repository navigation
-
Summary:
This version includes many improvements and fixes regarding the handling
of character sets, spaces, invalid characters, and wide characters. Much
of the code has also been reworked and optimized when the character set
is not UTF-8. -
Fixes:
- Empty strings in column mode are correctly managed now.
- Safe functions wrappers from safe.c are systematically used.
- Invalid bytes in the current character set are now correctly managed.
- Many functions, mainly in utf8.c and utils.c, have been rewritten,
fixed and/or improved. - Additional Unicode space characters are now managed.
- Bugs in various C files have been fixed using static analysis tools.
-
Restriction:
- Multibyte character sets are accepted only if they use UTF-8 encoding.
- Single-byte character sets encoded using 8-bit bytes, other than those
that use the ISO-8859-* standards, are now rejected. 7-bit character
sets are, of course, still accepted.
-
Main improvements:
- The index, based on the ternary search tree, has been extensively
revised and modified to use codepoints as keys. - An option has also been added to number blank words.
- No more dependency on the wchar_t type for large characters.
- Support for 24-bit colors (Truecolor and 8-bit palettes) has been added.
- Performance optimizations when using single-byte character sets.
- A new method to select words in rectangular areas has been added.
- A new output separator whose aim is to reflect the rectangular
layout of a selection has been introduced. - A new parameter for -T and -P has been added to control the output
ordering of multiples selected words.
- The index, based on the ternary search tree, has been extensively
-
Miscellaneous:
- The public domain tinybuf.h has been rewritten and renamed to buf.h
- “Pretty-printing” display functions for ternary search trees,
as well as a demo program for testing index insertion and searching,
have been added. - My multi-byte implementation of fgetc/ungetc is now more robust.
- New tests have been added and all test files have been modified to
match new behaviors. - the -zap_glyphs option has been rename to -zap_characters.