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
Metadata
Release files for translator-template 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| translator-template-0.2.4.tar.gz | 40.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| translator_template-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 81.4 kB
Release files / translator-template-0.2.4.tar.gz
| Download URL | translator-template-0.2.4.tar.gz |
|---|---|
| Size | 40.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6f1dc114e9317c8a6ec415ae9a76ad6cd580a621deac140c8f89484c99edc90
|
|
BLAKE2b-256 checksum How to use checksums |
2ec133d1fb066be6c6471e9fa3abc7212ccaa84b1512191d83a876753d3e8a98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / translator_template-0.2.4-py3-none-any.whl
| Download URL | translator_template-0.2.4-py3-none-any.whl |
|---|---|
| Size | 41.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5690be329d41fd7826d1534461944206842ac3196305070fbd785c36e0097287
|
|
BLAKE2b-256 checksum How to use checksums |
b7faeacbe3016720b3f3f9a173a7d3519369c620a6688a9ea362f3356598363b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|