translate: 生命也可以被设计的 — bilingual.dj + edit-suggestions

This commit is contained in:
iacore
2026-06-15 17:15:24 +08:00
parent c9cbf1c2fe
commit 7a35d300f7
8 changed files with 416 additions and 70 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/usr/bin/env fish
# Convert .docx to .dj (djot) via pandoc
# Usage: docx2dj.fish <input.docx> [output.dj]
# No output path → stdout
set docx (realpath $argv[1])
if test (count $argv) -ge 2
pandoc $docx -f docx -t djot --wrap=none -o $argv[2]
echo $argv[2]
else
pandoc $docx -f docx -t djot --wrap=none
end