Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

translator-template-0.2.4.tar.gz (40.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

translator_template-0.2.4-py3-none-any.whl (41.1 kB view details)

Uploaded Python 3

File details

Details for the file translator-template-0.2.4.tar.gz.

File metadata

  • Download URL: translator-template-0.2.4.tar.gz
  • Upload date:
  • Size: 40.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for translator-template-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c6f1dc114e9317c8a6ec415ae9a76ad6cd580a621deac140c8f89484c99edc90
MD5 33535cf8f13e9f68b652db84fddf371a
BLAKE2b-256 2ec133d1fb066be6c6471e9fa3abc7212ccaa84b1512191d83a876753d3e8a98

See more details on using hashes here.

File details

Details for the file translator_template-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for translator_template-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5690be329d41fd7826d1534461944206842ac3196305070fbd785c36e0097287
MD5 5572f3353400e80999f7eedba2f9f9d1
BLAKE2b-256 b7faeacbe3016720b3f3f9a173a7d3519369c620a6688a9ea362f3356598363b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page