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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2a9f765a9b2fd9dca736db55eddb99ec0c910aa028e823a75b0b7bf80466e2a |
|
MD5 | 05d531164a0f9f9e3824db6918df818b |
|
BLAKE2b-256 | 36bea4688287094c01ffa9664df6137d3ecb64a83562793eae3d731c53d2e389 |
Hashes for translator_template-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57c4588a0268222f57547e5d85c05266d02379b6e63376759b7c97cae94b0058 |
|
MD5 | 9e434bb844b2fce72f4ff19c6dd21bf0 |
|
BLAKE2b-256 | c68de6fce7b96d3ccdd9a8549eab775aa51c74dd7693e9d82c1d0c50e5af5274 |