1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214
|
0.234 2023-02-27 Released-By: PERLANCAR; Urgency: medium
- Fix function name (GH#5).
- Add ta_set_state() and ta_state_to_code() to fix ta_highlight()
(ref: GH#3).
0.233 2021-08-08 Released-By: PERLANCAR; Urgency: medium
- [bugfix][function ta_wrap] Fix handling of flindent & slindent
options (GH#1).
0.232 2021-04-14 Released-By: PERLANCAR; Urgency: low
- No functional changes.
- [doc] Add FAQ item about the reason for splitting functionalities
over modules/distributions.
0.231 2021-01-23 Released-By: PERLANCAR; Urgency: medium
- ta_wrap, ta_mbwrap: Add option keep_trailing_space.
- [doc] Mention some related modules.
0.230 2019-04-22 Released-By: PERLANCAR
- No functional changes.
- Spelling [RT#129226].
0.22 2016-03-11 Released-By: PERLANCAR
- [Removed features] Remove Text::ANSI::NonWideUtil (ugly name), but
remove wide-character supporting functions (ta_mb*()) in
Text::ANSI::Util.
0.21 2015-08-20 Released-By: PERLANCAR
- No functional changes.
- [doc] Add some description and mention Text::ANSI::WideUtil.
0.20 2015-08-20 Released-By: PERLANCAR
- Split Text::ANSI::WideUtil to its own dist.
- Re-pass tests [RT#106535].
0.19 2015-08-13 Released-By: PERLANCAR
- Adjust abstract and documentation. We now only deal with ANSI color
codes (SGR, \e[...m) and ignore non-color ANSI escape codes.
- [Bugfix] Add pruning of ANSI color codes so multiple replacement using
ta_substr() will not become increasingly slower due to proliferation
of unpruned color codes (due to ta_trunc()).
- [Bugfix] Make ta_wrap work without Text::WideChar::Util (previously,
ta_wrap always uses regex patterns from Text::WideChar::Util despite
$is_mb is 0).
- [Bugfix] Fix regex pattern for ANSI color codes (previous one was too
broad).
- Add (currently minimal) bench devscript.
0.18 2015-08-12 Released-By: PERLANCAR
- Add functions: ta_substr, ta_mbsubstr.
0.17 2015-08-12 Released-By: PERLANCAR
- Make Text::WideChar::Util an optional prereq.
- Also provide Text::ANSI::WideUtil and the leaner
Text::ANSI::NonWideUtil (the latter doesn't load Unicode modules, use
this if you do not have Unicode/wide characters in your text).
0.16 2015-01-03 Released-By: PERLANCAR
- No functional changes.
- Rebuild (Generate TODO.md).
0.15 2014-02-11 Released-By: SHARYANTO
[BUG FIXES]
- ta_mbwrap(): Fix small wrapping bug (whitespace before line-broken CJK
word was omitted).
0.14 2014-02-11 Released-By: SHARYANTO
[BUG FIXES]
- ta_mbwrap(): Long CJK words were not line-broken exhaustively.
0.13 2014-02-11 Released-By: SHARYANTO
- ta_mbwrap(): Add support for wrapping Chinese/CJK text.
0.12 2013-10-29 Released-By: SHARYANTO
- No functional changes. Rebuild to resolve 'nested encoding' problem
causing MetaCPAN to fail to index the dist (thanks Shantanu Bhadoria).
0.11 2013-09-10 Released-By: SHARYANTO
- Replace Text::CharWidth's mbswidth() with Text::WideChar::Util's
mbswidth(), which in turn uses Unicode::GCString. It's about 2.5x
slower but more proper and builds on my Windows installation.
0.10 2013-05-17 Released-By: SHARYANTO
[ENHANCEMENTS]
- Add return_stats option to ta_{mb,}wrap.
0.09 2013-05-17 Released-By: SHARYANTO
[BUG FIXES]
- ta_{mb,}wrap(): truncated long word did not retain color at the last
line.
0.08 2013-04-19 Released-By: SHARYANTO
[ENHANCEMENTS]
- Add functions: ta_extract_codes, ta_add_color_resets,
ta_length_height.
- ta_highlight{,all}: $needle can now be a Regexp.
- ta_{,mb}wrap: Reimplement, now behavior similar to
Text::WideChar::Util's {,mb}wrap().
[INCOMPATIBLE CHANGES]
- ta_highlight{,_all}: Remove argument $ci, now use qr/foo/i as $needle
for case-insensitive highlighting.
0.07 2013-04-10 Released-By: SHARYANTO
- Add functions: ta_split_codes_single, ta_highlight, ta_highlight_all.
0.06 2013-04-09 Released-By: SHARYANTO
[BUG FIXES]
- ta_mbtrunc(): Use mbtrunc() which is the proper method, instead of
substr().
- ta_mbpad(): Since ta_mbtrunc() might generate text with width of
($width-1) or less, depending on the width of the truncated wide
character, we need to pad the truncated text to go to $width.
0.05 2013-04-09 Released-By: SHARYANTO
[INCOMPATIBLE CHANGES]
- ta_{,mb}pad() now does not handle multiline text (the implementation
was incorrect after all, "" should've been padded to "xxx" and "a\n"
should've been padded to "axx\nxxx"). You can now split multiline text
by yourself as you see fit.
0.04 2013-04-08 Released-By: SHARYANTO
[BUG FIXES]
- ta_{,mb}wrap(): Handles multiple paragraph, fix bug where last word of
text is sometimes removed, do not remove terminating newline.
0.03 2013-04-06 Released-By: SHARYANTO
[ENHANCEMENTS]
- Add functions: ta_split_codes, ta_{,mb}trunc, ta_{,mb}pad.
0.02 2013-03-20 Released-By: SHARYANTO
- Fix failing CT reports by skipping tests on systems without Chinese
locale support.
0.01 2013-03-13 Released-By: SHARYANTO
- First release.
|