Text formatting tool for NLPP *.xml files (generated via NLPTextTool).
It exports simplified *.txt files for ease of translation, without the need to worry about formatting. These *.txt can be re-imported back into *.xml files, with automatic formatting (tag aliases, symbol replacement, word wrapping, etc).
- Download and install Python 3. Make sure to check the "Add to PATH" option!
- Open up Command Prompt and run
pip install pyyaml. - Download NLPTextTool.
Generating worksheets for translation work
- Export
*.dbin2files from the game. - Drag and drop one or more
*.dbin2files onNLPTextTool.exeto create the*.xmldumps. - Drag and drop one or more
*.xmlfiles onprocess.cmdto create the*.txtdumps.
Note: Keep the *.dbin2, *.xml and *.txt files in the same folder.
Reinserting translated worksheets
- Drag and drop one or more updated
*.txtfiles onprocess.cmdto repack them into the*.xmlfiles. - Drag and drop one or more updated
*.xmlfiles onNLPTextTool.exeto repack them into the*.dbin2files.
Generating multi-language worksheets
- Export the Japanese scripts into a folder named
00. - Export the translated scripts into a folder named
01. - Drag and drop both folders on
merge.cmda new folder named 'merged' will appear.
Text from the first set of files (00) will be commented out (with //). These lines will not be repacked.
Unpacking Japanese scripts:
- Set
render_new_linestotruein the configuration file - Set
comment_japanesetofalsein the configuration file
Unpacking translated scripts:
- Set
render_new_linestofalsein the configuration file - Set
comment_japanesetotruein the configuration file
To use the English translation as the reference scripts (to create a worksheet in another language), merge two copies of the English scripts together.
To format the Japanese scripts for a new translation worksheet, merge two copies of the Japanese scripts together.
To repack the merged .txt worksheets, place them in the same directory as the reference *.xml files.
The file ./config.yml is a YAML file containing the configuration for the tool. All options are documented via the lines prefixed with # (comments).
Note: Lines requiring overrides (to skip reflowing or to handle multiple-choice options) have not been full populated into the config. They will be periodically added when discovered.