Charset Normalizer v3.0.1 Release Notes
Release Date: 2022-11-18 // over 2 years ago-
๐ Fixed
- Multi-bytes cutter/chunk generator did not always cut correctly (PR #233)
๐ Changed
- Speedup provided by mypy/c 0.990 on Python >= 3.7
Previous changes from v3.0.0
-
โ Added
- ๐ฒ Extend the capability of explain=True when cp_isolation contains at most two entries (min one), will log in details of the Mess-detector results
- ๐ Support for alternative language frequency set in charset_normalizer.assets.FREQUENCIES
- Add parameter
language_threshold
infrom_bytes
,from_path
andfrom_fp
to adjust the minimum expected coherence ratio normalizer --version
now specify if current version provide extra speedup (meaning mypyc compilation whl)
๐ Changed
- ๐ Build with static metadata using 'build' frontend
- ๐ Make the language detection stricter
- Optional: Module
md.py
can be compiled using Mypyc to provide an extra speedup up to 4x faster than v2.1
๐ Fixed
- CLI with opt --normalize fail when using full path for files
- ๐ TooManyAccentuatedPlugin induce false positive on the mess detection when too few alpha character have been fed to it
- ๐ Sphinx warnings when generating the documentation
โ Removed
- Coherence detector no longer return 'Simple English' instead return 'English'
- Coherence detector no longer return 'Classical Chinese' instead return 'Chinese'
- ๐ฅ Breaking: Method
first()
andbest()
from CharsetMatch - UTF-7 will no longer appear as "detected" without a recognized SIG/mark (is unreliable/conflict with ASCII)
- ๐ฅ Breaking: Class aliases CharsetDetector, CharsetDoctor, CharsetNormalizerMatch and CharsetNormalizerMatches
- ๐ฅ Breaking: Top-level function
normalize
- Breaking: Properties
chaos_secondary_pass
,coherence_non_latin
andw_counter
from CharsetMatch - ๐ Support for the backport
unicodedata2