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.1.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c718c54267419766cb43d92e873c2bd41d08358ca120967dc71f479ec022db1 |
|
MD5 | 5e3fbd1c24ed61bcd91f54dd9a05f87a |
|
BLAKE2b-256 | fa96f65e3f94774a0a42cf47b7c00626387a4e5a3c1f92bd216028f4709655bb |
Hashes for translator_template-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b09b5322648390a8c34f52b223dea5f91e9f23f8a5bfa1a6095e6ea586c410f |
|
MD5 | 4b4b879e38756c88258b07fad24b5926 |
|
BLAKE2b-256 | 11685b9628f9a08cf0f20efff9fe700bfefabe3e552dc9242071b68c97c66bd1 |