-
Notifications
You must be signed in to change notification settings - Fork 0
Converting Scripts
hikatamika edited this page Jun 10, 2026
·
5 revisions
These Pandoc Custom Writers use .LUA to translate more review/collaboration-friendly comic scripts into the paste-and-automate-friendly .TSV table format in seconds, helping you save time placing comic dialogue.
Pandoc has a Getting Started guide, but I'll relay how I use it to you, here.
Allegorically, Pandoc serves as the brains, these Custom Writers serve as instructions, and we have to use Terminal/Command Line because… there's no graphical user interface app for this use case. …yet?
1. Download and Install Pandoc
- You'll then run it by calling it with one of the following. Double-clicking the app doesn't do anything.
- Windows: Command or PowerShell
- Mac: Terminal
- Linux: Whichever terminal based on your distro.
- Find your comic scripts. You'll typically want to run Pandoc in the same folder as them.
- The filetype can technically be anything Pandoc supports, but different Custom Pandoc Writers might work better with different filetypes.
- Download one or more Writers in this repository, and place them somewhere handy on your computer.
- Open your command line terminal. It's handy to open it either within the folder containing your comic scripts.
- On Windows, you can easily do this by navigating to the specific folder in File Explorer, then typing
cmdin the Address Bar. -. Write instructions for Pandoc. Your terminal line should start with the directory up to the folder you're in. Now type or paste a Pandoc command to have it transform your comic script into a handy-dandy.TSVfile. - Here's the most common format you'll use:
- On Windows, you can easily do this by navigating to the specific folder in File Explorer, then typing
pandoc -f docx script.docx -t writer.lua -o output-table.tsv- The Pandoc command goes after the cursor that tells you what directory you're in.
-
pandoccalls up Pandoc to convert your script. -
-ftells Pandoc the filetype you're converting from.docxin this example. -
-t writer.luaannounces the output format you want. In our case, we'll want to choose a Custom Writer and call it by name with its wile extension, typically.LUA.- Because mine is in the same folder as my scripts, I'm allowed to just call it
writer.lua. If yours is somewhere else… you'll have to either link it relatively..\..\writer.lua, or absolutely from the root of your driveD:\Users\CoolGuy\Documents\writer.lua. - When looking up how to link relatively or absolutely, do look up instructions for your specific operating system.
- Because mine is in the same folder as my scripts, I'm allowed to just call it
-
-o output-table.tsvtells Pandoc what we want to name the output file, and optionally, if you want it to be somewhere else.
[!todo] Add info on making drag-and-drop batch files for single-file use.
[!todo] Add info on making drag-and-drop batch files for multi-file use.