Initial toolkit: scripts, references, skills, and term database
This commit is contained in:
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env fish
|
||||
# Convert target.dj to English docx
|
||||
# Usage: dj2docx <path-to-target.dj> [output-filename]
|
||||
# Output filename defaults to /tmp/<parent-dirname>-英文.docx
|
||||
|
||||
set tgt (realpath $argv[1])
|
||||
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
|
||||
Reference in New Issue
Block a user