| 1 | # Changelog |
| 2 | Changelog of project Nuspell. |
| 3 | |
| 4 | All notable changes to this project will be documented in this file. |
| 5 | |
| 6 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), |
| 7 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 8 | |
| 9 | ## [5.1.8] - 2026-07-15 |
| 10 | ### Fixed |
| 11 | - Fixed dependency info in CMake, do not link to ICU data directly anymore. |
| 12 | - Fixed pkg-config to contain less absolute paths. |
| 13 | |
| 14 | ## [5.1.7] - 2025-11-25 |
| 15 | ### Added |
| 16 | - Add API documentation that is generated when building by Doxygen. Doxygen |
| 17 | is a new build-only dependency. |
| 18 | |
| 19 | ### Changed |
| 20 | - Raise the minimum required version of CMake to 3.18. |
| 21 | |
| 22 | ## [5.1.6] - 2024-07-04 |
| 23 | ### Changed |
| 24 | - Be more explicit about Pandoc dependency, do not quietly continue building if |
| 25 | it is not found. Otherwise, packagers will forget to add it as dependency. |
| 26 | Alternatively, one can disable building the docs and the dependency with the |
| 27 | CMake option BUILD_DOCS=OFF. |
| 28 | |
| 29 | ### Fix |
| 30 | - Fix compatibility with older versions of Pandoc. |
| 31 | |
| 32 | ## [5.1.5] - 2024-07-03 |
| 33 | ### Added |
| 34 | - Added man-page for the CLI tool. Pandoc is again dependency for building. |
| 35 | |
| 36 | ### Fixed |
| 37 | - Fix edge case when parsing LONG flags in the .aff file. |
| 38 | |
| 39 | ## [5.1.4] - 2023-11-08 |
| 40 | ### Changed |
| 41 | - Raise the minimum required version of dependency Catch2 to v3.1.1. See #133. |
| 42 | |
| 43 | ## [5.1.3] - 2023-08-27 |
| 44 | ### Added |
| 45 | - Added Vcpkg manifest file called `vcpkg.json` for easier development and |
| 46 | testing, mainly on Windows. |
| 47 | |
| 48 | ### Changed |
| 49 | - The build-only and test-only dependency Catch2 is now pulled with |
| 50 | `FetchContent` if first it is not found with `find_package`. The Git submodule |
| 51 | is no longer used. |
| 52 | |
| 53 | ### Fixed |
| 54 | - The documentation generated by Doxygen no longer shows the inline namespace |
| 55 | used for versioning of the ABI. It was not of interest to users of the |
| 56 | library. |
| 57 | |
| 58 | ## [5.1.2] - 2022-09-29 |
| 59 | ### Changed |
| 60 | - Rewrite internal testing tool verify and improve it to support testing |
| 61 | suggestions. |
| 62 | |
| 63 | ### Fixed |
| 64 | - Greatly improve the speed of suggestions in certain edge cases. See #45. |
| 65 | - Fix minor encoding issue in the CLI tool on Windows when reading from file(s) |
| 66 | instead of the standard input. UTF-8 is now the default encoding in that case |
| 67 | and not the one of the console. |
| 68 | |
| 69 | ## [5.1.1] - 2022-09-09 |
| 70 | ### Added |
| 71 | - Add configuration option `BUILD_TOOLS` that can be used to disable building |
| 72 | the CLI tool. It is ON by default. See #122. |
| 73 | |
| 74 | ### Changed |
| 75 | - Made error reporting more detailed and robust. The message in the thrown |
| 76 | exception is much richer when there are parsing errors. The library does |
| 77 | not write directly to `cerr`, it does not pollute it. See #123. |
| 78 | |
| 79 | ### Fixed |
| 80 | - Fix compiler warnings regarding usage of deprecated functions. |
| 81 | - Fix CLI tool on Windows + MSVC to properly accept arguments. Windows + MSVC |
| 82 | now requires library `getopt` from Vcpkg. Fixes #122. |
| 83 | |
| 84 | ## [5.1.0] - 2022-02-15 |
| 85 | ### Added |
| 86 | - Add new API for finding dictionaries on the filesystem that uses facilities |
| 87 | from C++17 `std::filesystem`. |
| 88 | |
| 89 | ### Changed |
| 90 | - Simplify CLI tool and removed some unused features from it. |
| 91 | |
| 92 | ### Deprecated |
| 93 | - Deprecate old API for finding dictionaries on the filesystem that used |
| 94 | strings for paths. |
| 95 | |
| 96 | ### Removed |
| 97 | - Remove man-page for CLI tool and dependency on pandoc. Just use --help to get |
| 98 | manual for the CLI tool. |
| 99 | |
| 100 | ## [5.0.1] - 2021-11-12 |
| 101 | ### Fixed |
| 102 | - Fix parsing of .dic files for some problematic dictionaries. Fixes #99. |
| 103 | |
| 104 | ### Changed |
| 105 | - Simplify internal calls to `icu::UnicodeString::toTitle()` which results with |
| 106 | a minor speedup. This enables Nuspell to be linked to unconventional ICU |
| 107 | builds without break iterator, like the one in Firefox. |
| 108 | - Require GCC 8 as minimal version of GCC because internally `std::from_chars()` |
| 109 | is used now. |
| 110 | |
| 111 | ## [5.0.0] - 2021-06-12 |
| 112 | ### Fixed |
| 113 | - Greatly reduce memory usage. See issues #80 and #97. |
| 114 | - Increase speed of spellchecking. |
| 115 | - Fix long lagging when generating suggestions in edge cases. See #45. |
| 116 | - Fix building on OS Haiku. Fixes #44. |
| 117 | |
| 118 | ### Changed |
| 119 | - Split file `dictionary.hxx/cxx` into multiple files. The other files are |
| 120 | implementation details and the public header `dictionary.hxx` is now clean of |
| 121 | private details. |
| 122 | |
| 123 | ### Removed |
| 124 | - Remove functions and classes that were deprecated in v4.x. See issue #103. |
| 125 | |
| 126 | ## [4.2.0] - 2020-12-12 |
| 127 | ### Deprecated |
| 128 | - Deprecate functions that allowed non-Unicode encoding. In particular, |
| 129 | `Dictionary::imbue()` and `Dictionary::imbue_utf8()`. |
| 130 | |
| 131 | ### Removed |
| 132 | - Completely remove dependency on Boost. The CLI tools were refactored to use |
| 133 | ICU directly. |
| 134 | |
| 135 | ## [4.1.0] - 2020-11-19 |
| 136 | ### Added |
| 137 | - Add new API for finding dictionaries on the file-system. It is a set of free |
| 138 | functions located in the file finder.hxx. |
| 139 | |
| 140 | ### Fixed |
| 141 | - Improve searching for dictionaries on the file-system. Fix finding them on |
| 142 | Fedora. Fixes #94. |
| 143 | |
| 144 | ### Deprecated |
| 145 | - Deprecate the old API for finding dictionaries, i.e. the class `Finder` |
| 146 | in the file finder.hxx. |
| 147 | |
| 148 | ## [4.0.1] - 2020-11-02 |
| 149 | ### Fixed |
| 150 | - Fix handling CRLF line endings in .dic. Fixes #89. |
| 151 | - Fix CMake scripts for unusual install prefixes. |
| 152 | - Improve hash-table insertion, avoid temporaries. This improves loading times. |
| 153 | |
| 154 | ### Changed |
| 155 | - Switch man-page generator from Ronn to Pandoc. This changes the dependencies |
| 156 | for building. See the README. |
| 157 | |
| 158 | ## [4.0.0] - 2020-10-19 |
| 159 | ### Fixed |
| 160 | - Fix lifetime issue (segmentation fault) in ngram-based suggestions. Fixes #84. |
| 161 | - Fix internal usage of `std::codecvt` in edge case in function `to_wide()` and |
| 162 | `to_narrow()` |
| 163 | - Fix not propagating recursion depth in spell_break(), which caused hangup. |
| 164 | Fixes #85. |
| 165 | - Fix overwriting of PDB files when compiling with Visual Studio. This prevented |
| 166 | debugging nuspell.dll. Fixes #86. |
| 167 | - Fix output of CLI tool to be more compatible to ispell and hunspell. |
| 168 | |
| 169 | ### Changed |
| 170 | - Boost is no longer a dependency of the library at all. It is still a |
| 171 | dependency of the CLI tool. Closes #79. Fixes #71. |
| 172 | - Use `std::string_view` in the public API instead of `const std::string&`. Also |
| 173 | use it internally at various places. |
| 174 | - Build as shared library by default. Building as static is still possible via |
| 175 | the CMake's variable `BUILD_SHARED_LIBS`. |
| 176 | - The public API is annotated with dll-export/visibility attributes, and also |
| 177 | some private functions are annotated needed for testing. This reduces the file |
| 178 | size. Closes #65. |
| 179 | - Use Unicode text segmentation by default in the CLI tool. Simple segmentation |
| 180 | on white-space is still available via CLI option. |
| 181 | |
| 182 | ### Removed |
| 183 | - Delete deprecated functions in the class Finder. |
| 184 | - Drop under-designed and undocumented feature in the CLI tool about personal |
| 185 | dictionaries. |
| 186 | |
| 187 | ## [3.1.2] - 2020-07-01 |
| 188 | ### Fixed |
| 189 | - Internal refactorings that reduce function templates in `utils` and `finder`. |
| 190 | |
| 191 | ### Changed |
| 192 | - File `utils.hxx` is not installed any more. It is a private header. |
| 193 | |
| 194 | ### Deprecated |
| 195 | - Some functions for searching dictionaries in class `Finder` are deprecated as |
| 196 | they were searching in directories that no longer contain dictionaries. |
| 197 | |
| 198 | ## [3.1.1] - 2020-05-04 |
| 199 | ### Changed |
| 200 | - Updated description in README. Packagers are encouraged to update it in their |
| 201 | packages. |
| 202 | - Moved Hunspell files from the directory "src" into the directory named |
| 203 | "external" to clarify that it is third-party dependency. Previously, some |
| 204 | packagers confused Hunspell's license notices as part of Nuspell. Hunspell is |
| 205 | used only for testing and it is not part of the main program. |
| 206 | |
| 207 | ### Fixed |
| 208 | - Fixed bugs on FreeBSD and other BSDs related to encoding conversions. Now |
| 209 | all tests pass on FreeBSD and the support for it is not experimental anymore. |
| 210 | - Fixed compiling on NetBSD. |
| 211 | |
| 212 | ## [3.1.0] - 2020-04-07 |
| 213 | ### Added |
| 214 | - Add so called hidden homonym feature. This feature enables words in mixed case |
| 215 | in the dictionary to be accepted when met in uppercase in the input text. Also |
| 216 | enables uppercase word to get lowercase suffix, and the whole derived word be |
| 217 | accepted in all uppercase in some input text. |
| 218 | - Improve suggestions to handle words in various casing. |
| 219 | - Add new complex method for giving suggestions based on ngram similarity of the |
| 220 | wrong word with the words in the dictionary. |
| 221 | |
| 222 | ## [3.0.0] - 2019-11-23 |
| 223 | ### Added |
| 224 | - Added compounding features: CHECKCOMPOUNDREP, FORCEUCASE, COMPOUNDWORDMAX. |
| 225 | - Added compounding features specific only to Hungarian language: |
| 226 | COMPOUNDROOT, COMPOUNDSYLLABLE, SYLLABLENUM. These three basically are |
| 227 | extension to COMPOUNDWORDMAX. |
| 228 | - Added six new simple suggestion methods. |
| 229 | |
| 230 | ### Changed |
| 231 | - Building and using the library requires a compiler with C++17 support. |
| 232 | - The functions of the public API now accept strings encoded in UTF-8 by |
| 233 | default. You should not call the function `imbue()` and you should not use |
| 234 | `locale` and `codecvt` objects at all if you need UTF-8 strings. Use `imbue()` |
| 235 | only if you need API that accepts strings in other encoding. |
| 236 | |
| 237 | ### Fixed |
| 238 | - Major improvement in speed. The best case is almost 3x faster than Hunspell, |
| 239 | and the worst case is now matching and exceeding Hunspell's speed by a |
| 240 | few percent. Previously, the worst case was usually triggered with incorrect |
| 241 | words and was major bottleneck, it was slower than Hunspell. |
| 242 | - Fixed loading Dutch dictionary, a regression introduced in 2.3.0. |
| 243 | |
| 244 | ## [2.3.0] - 2019-08-08 |
| 245 | ### Added |
| 246 | - Support for macOS |
| 247 | - Support for building with MSVC on Windows |
| 248 | - Support for building with pre-installed Catch 2 |
| 249 | - Continuous integration/testing for all three major operating systems |
| 250 | - In the CLI tool, Unicode text segmentation now can be combined with all modes. |
| 251 | |
| 252 | ### Changed |
| 253 | - In Cmake the exported target has namespace, e.g. Nuspell::nuspell |
| 254 | |
| 255 | ### Fixed |
| 256 | - Building from a tarball. Previously only a git clone worked. |
| 257 | - Small internal fixes in Unicode transformations on Windows (because wchar_t |
| 258 | is 16 bits there). |
| 259 | - Major improvements in aff parser brings better error handling. |
| 260 | |
| 261 | ## [2.2.0] - 2019-03-19 |
| 262 | ### Added |
| 263 | - Added build System CMake. Supports building as shared library. |
| 264 | |
| 265 | ### Changed |
| 266 | - Public API changed again, last for v2: |
| 267 | - `Dictionary::suggest()` return data inside simple `vector<string>`. |
| 268 | `List_Strings` is not used anymore. |
| 269 | - Constructors of class `Dictionary` like `Dictionary::load_from_path()` |
| 270 | throw `Dictionary_Loading_Error` on error. Previously they were throwing |
| 271 | `ios_base::failure`. |
| 272 | - Boost::Locale is not dependency of library Nuspell anymore. It is still a |
| 273 | dependency of the CLI tool. The library depends directly on ICU. Internally, |
| 274 | all string now are in Unicode (UTF-8 or UTF-32, it depends of the need). |
| 275 | |
| 276 | ### Removed |
| 277 | - Removed old Autotools build system. |
| 278 | - Removed `NOSUGGEST_MODE` in CLI tool. It was very similar to |
| 279 | `MISSPELLED_WORDS_MODE`. |
| 280 | - Class `Finder` does not search for Myspell dictionaries on the file-system |
| 281 | anymore. |
| 282 | |
| 283 | ### Fixed |
| 284 | - Support compiling with GCC 5. Previously GCC 7 was needed. |
| 285 | - Faster dictionary loading and better internal error handling when parsing a |
| 286 | dictionary file. |
| 287 | - Faster spellchecking as a consequence of faster case classification, which |
| 288 | in turn, is a consequence of all string being Unicode and directly using ICU. |
| 289 | |
| 290 | ## [2.1.0] - 2019-01-03 |
| 291 | ### Changed |
| 292 | - Public API classes are inside inline namespace v2 |
| 293 | - `List_Strings<char>` is renamed to just `List_Strings`. Affects client code. |
| 294 | |
| 295 | ### Fixed |
| 296 | - Improve public API docs |
| 297 | |
| 298 | ## [2.0.0] - 2018-11-22 |
| 299 | ### Added |
| 300 | - First public release |
| 301 | - Spelling error detection (checking) is closely matching Hunspell |
| 302 | - Support for spelling error correction (suggestions) |
| 303 | |
| 304 | [5.1.8]: https://github.com/nuspell/nuspell/compare/v5.1.7...v5.1.8 |
| 305 | [5.1.7]: https://github.com/nuspell/nuspell/compare/v5.1.6...v5.1.7 |
| 306 | [5.1.6]: https://github.com/nuspell/nuspell/compare/v5.1.5...v5.1.6 |
| 307 | [5.1.5]: https://github.com/nuspell/nuspell/compare/v5.1.4...v5.1.5 |
| 308 | [5.1.4]: https://github.com/nuspell/nuspell/compare/v5.1.3...v5.1.4 |
| 309 | [5.1.3]: https://github.com/nuspell/nuspell/compare/v5.1.2...v5.1.3 |
| 310 | [5.1.2]: https://github.com/nuspell/nuspell/compare/v5.1.1...v5.1.2 |
| 311 | [5.1.1]: https://github.com/nuspell/nuspell/compare/v5.1.0...v5.1.1 |
| 312 | [5.1.0]: https://github.com/nuspell/nuspell/compare/v5.0.1...v5.1.0 |
| 313 | [5.0.1]: https://github.com/nuspell/nuspell/compare/v5.0.0...v5.0.1 |
| 314 | [5.0.0]: https://github.com/nuspell/nuspell/compare/v4.2.0...v5.0.0 |
| 315 | [4.2.0]: https://github.com/nuspell/nuspell/compare/v4.1.0...v4.2.0 |
| 316 | [4.1.0]: https://github.com/nuspell/nuspell/compare/v4.0.1...v4.1.0 |
| 317 | [4.0.1]: https://github.com/nuspell/nuspell/compare/v4.0.0...v4.0.1 |
| 318 | [4.0.0]: https://github.com/nuspell/nuspell/compare/v3.1.2...v4.0.0 |
| 319 | [3.1.2]: https://github.com/nuspell/nuspell/compare/v3.1.1...v3.1.2 |
| 320 | [3.1.1]: https://github.com/nuspell/nuspell/compare/v3.1.0...v3.1.1 |
| 321 | [3.1.0]: https://github.com/nuspell/nuspell/compare/v3.0.0...v3.1.0 |
| 322 | [3.0.0]: https://github.com/nuspell/nuspell/compare/v2.3.0...v3.0.0 |
| 323 | [2.3.0]: https://github.com/nuspell/nuspell/compare/v2.2.0...v2.3.0 |
| 324 | [2.2.0]: https://github.com/nuspell/nuspell/compare/v2.1.0...v2.2.0 |
| 325 | [2.1.0]: https://github.com/nuspell/nuspell/compare/v2.0.0...v2.1.0 |
| 326 | [2.0.0]: https://github.com/nuspell/nuspell/compare/v1.6.2...v2.0.0 |