用 Anki 记住中文单词 Yòng Anki jì zhù zhōngwén dāncí Memorize Chinese words with Anki
- Open most recent file in ./data/raw (e.g
PM-2A-2.xlsx__2023-03-18_0125.xlsx
) - Add new entries. Column A (
Hanzi
) must be non-empty. - Run
python -m jizhu.create FILENAME --deck "DECK NAME"
, this will:- Iterate over rows in Sheet1 where
Hanzi
column is non-empty. - If
Pinyin
row is empty, add it. - If
English
row is empty, add it. - For all row where
Added
is empty, we create a set of Anki notes and markAdded
column with TRUE. - Timestamp and export new XLSX. No need to rename, it will remove last timetamp and replace.
- Creates new Anki file to import with new cards only.
- Iterate over rows in Sheet1 where
- pre-commit:
pre-commit run --all-files
- pytest:
pytest
orpytest -s
- coverage:
coverage run -m pytest
orcoverage html
- poetry sync:
poetry install --no-root --sync
- updating requirements: see docs/updating_requirements.md
- create towncrier entry:
towncrier create 123.added --edit
- See docs/getting_started.md or docs/quickstart.md for how to get up & running.
- Check docs/project_specific_setup.md for project specific setup.
- See docs/using_poetry.md for how to update Python requirements using Poetry.
- See docs/detect_secrets.md for more on creating a
.secrets.baseline
file using detect-secrets. - See docs/using_towncrier.md for how to update the
CHANGELOG.md
using towncrier.