This commit is contained in:
iacore
2026-06-14 12:26:28 +08:00
parent 27546d04a0
commit 43b2734d31
5 changed files with 227 additions and 14 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env fish
# Convert target.dj to English docx
# Usage: dj2docx <path-to-target.dj>
# Output: /tmp/<parent-dirname>-英文.docx
set tgt (realpath $argv[1])
set parent (basename (dirname $tgt))
set out "/tmp/$parent-英文.docx"
pandoc $tgt -f djot -t docx -o $out
echo $out