Move some files

This commit is contained in:
iacore
2026-06-27 22:52:17 +08:00
parent ef872a51c8
commit 3869c7d8a5
8 changed files with 554 additions and 6 deletions
+8 -4
View File
@@ -1,10 +1,14 @@
#!/usr/bin/env fish
# Convert target.dj to English docx
# Usage: dj2docx <path-to-target.dj>
# Output: /tmp/<parent-dirname>-英文.docx
# Usage: dj2docx <path-to-target.dj> [output-filename]
# Output filename defaults to /tmp/<parent-dirname>-英文.docx
set tgt (realpath $argv[1])
set parent (basename (dirname $tgt))
set out "/tmp/$parent-英文.docx"
if set -q argv[2]
set out "$argv[2]"
else
set parent (basename (dirname $tgt))
set out "/tmp/$parent-英文.docx"
end
pandoc $tgt -f djot -t docx -o $out
echo $out