mirror: 初始快照
This commit is contained in:
commit
fae8c948cd
319 files changed
+5217599
No files matched your search
@@ -0,0 +1,62 @@
|
||||
setup:
|
||||
pip install uv
|
||||
uv sync
|
||||
|
||||
.PHONY: sample
|
||||
sample:
|
||||
# mv dict/*.* dict/
|
||||
ls dict
|
||||
mkdir -p output
|
||||
ls -l | wc -l
|
||||
|
||||
uv run python ./bin/convert_all.py --input_folder=dict --output_folder=output --extension=tab --filter=Viet-Trung
|
||||
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=no --showfull=False
|
||||
echo "Released sample dictionaries"
|
||||
|
||||
$(MAKE) space
|
||||
|
||||
|
||||
all:
|
||||
# mv dict/*.* dict/
|
||||
ls dict
|
||||
mkdir -p output
|
||||
ls -l | wc -l
|
||||
|
||||
uv run python ./bin/convert_all.py --input_folder=dict --output_folder=output --extension=tab
|
||||
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=no
|
||||
echo "Released all dictionaries"
|
||||
|
||||
$(MAKE) space
|
||||
|
||||
space:
|
||||
du -h --max-depth=1 . | sort -hr
|
||||
find . -type f -size +50M -exec ls -lh {} +
|
||||
df -h .
|
||||
|
||||
test:
|
||||
echo "Run test the venv"
|
||||
uv run python ./bin/test.py
|
||||
|
||||
to_pleco:
|
||||
echo "Convert to Pleco format"
|
||||
uv run python ./bin/tsv_to_pleco.py --folder=dict --pattern=Viet-Trung.tab
|
||||
|
||||
dict_stats_new:
|
||||
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=no
|
||||
|
||||
dict_stats_old:
|
||||
uv run python ./bin/dict_summary.py --dict_dir=dict --output_dir=output --read_only=yes
|
||||
|
||||
dict_ext_stats_new:
|
||||
uv run python ./bin/dict_summary.py --dict_dir=ext-dict --output_dir=ext-output --read_only=no
|
||||
|
||||
dict_ext_stats_old:
|
||||
uv run python ./bin/dict_summary.py --dict_dir=ext-dict --output_dir=ext-output --read_only=yes
|
||||
|
||||
clean:
|
||||
# git reset --hard
|
||||
git clean -fdx
|
||||
|
||||
ruff:
|
||||
uv run ruff check ./bin/convert_all.py --fix
|
||||
uv run ruff check ./bin/dict_summary.py --fix
|
||||
Reference in new issue
Block a user