4.2.0
Changes since 4.1.0
-
Breaking changes:
- Replace
glos.getAuthor()
withglos.author
- This looks for "author" and then "publisher" keys in info/metadata
- Rename option
apply_css
tocss
for mobi and epub2 glos.getInfo
andglos.setInfo
only acceptstr
as key (or a subclass ofstr
)
- Replace
-
Bug fixes:
-
Indirect mode: Fix handling '|' character in words.
- Escape/unescape
|
in words when convertingentry
<->rawEntry
- Escape/unescape
-
Escape/unescape
|
in words when writing/reading text-based file formats -
JSON: Prevent duplicate keys in json output, #344
- Add new method
glos.preventDuplicateWords()
- Add new method
-
-
Features and improvements
-
Add SQLite mode with
--sqlite
flag for converting to StarDict.- Eliminates the need to load all entries into RAM, limiting RAM usage.
- You can add
--sqlite
to you command, even for running GUI.- For example:
python3 main.py --tk --sqlite
- For example:
- See README.md for more details.
-
Add
--source-lang
and--target-lang
flags -
XDXF: support more tags and improvements
-
Add unit tests for
Glossary
class, and some functions intext_utils.py
-
Windows: change cache directory to
%LOCALAPPDATA%
-
Some refactoring and optimization
-
Update, improve and re-format documentations
-