Utility for generating a Microsoft Word file from a simple document description, for translators.
Project description
translator-template
Generate a Word Document Template for Translator
Prerequisite
- python 3.7 or greater
- poetry
Download the dependent modules by running poetry install
Running the code
poetry run generate --in-file {input-text-file} --out-file {output-docx-file}
If the --out-file
argument is omitted, the --in-file
argument value is used, with the extension replaced with .docx
.
Input Format Specification
In regular expression form the input is the following:
^((\d|\*\d+\*)-?)*$
For a given page, the number of panels is represented either by a single digit if the count of panels is fewer than 10. When the count of panels is greater than or equal to 9, the count is sandwiched between a pair of asterisks.
The panel count can be optionally followed by a hyphen. This signifies that the panels span two pages.
Output Specification
The output is a Word DOCX file. This contains three paragraph styles:
- PagePara
- PanelPara
- QuotePara
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for translator-template-0.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f1dc114e9317c8a6ec415ae9a76ad6cd580a621deac140c8f89484c99edc90 |
|
MD5 | 33535cf8f13e9f68b652db84fddf371a |
|
BLAKE2b-256 | 2ec133d1fb066be6c6471e9fa3abc7212ccaa84b1512191d83a876753d3e8a98 |
Hashes for translator_template-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5690be329d41fd7826d1534461944206842ac3196305070fbd785c36e0097287 |
|
MD5 | 5572f3353400e80999f7eedba2f9f9d1 |
|
BLAKE2b-256 | b7faeacbe3016720b3f3f9a173a7d3519369c620a6688a9ea362f3356598363b |