{"id":20942351,"url":"https://github.com/unfoldingword-dev/uw-pdf-conversion-tools","last_synced_at":"2025-07-14T04:05:56.982Z","repository":{"id":42704545,"uuid":"233934001","full_name":"unfoldingWord-dev/uw-pdf-conversion-tools","owner":"unfoldingWord-dev","description":"Conversion tool for converting uW resources to PDF. Written in Python","archived":false,"fork":false,"pushed_at":"2023-03-05T13:06:26.000Z","size":61361,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-01-19T21:15:58.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unfoldingWord-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-14T20:55:23.000Z","updated_at":"2021-06-03T20:21:52.000Z","dependencies_parsed_at":"2024-11-18T23:33:00.069Z","dependency_job_id":"208aae17-b0e8-48a8-a263-f01fd46c5f4a","html_url":"https://github.com/unfoldingWord-dev/uw-pdf-conversion-tools","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfoldingWord-dev%2Fuw-pdf-conversion-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfoldingWord-dev%2Fuw-pdf-conversion-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfoldingWord-dev%2Fuw-pdf-conversion-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unfoldingWord-dev%2Fuw-pdf-conversion-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unfoldingWord-dev","download_url":"https://codeload.github.com/unfoldingWord-dev/uw-pdf-conversion-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243335382,"owners_count":20274898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-18T23:26:14.804Z","updated_at":"2025-03-13T03:43:57.450Z","avatar_url":"https://github.com/unfoldingWord-dev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uW PDF Conversion Tools\nConversion tool for converting uW resources to PDF.\n\nNOTE: Python 3 Only\n\n# To run\n\n```bash\ncd /opt \u0026\u0026 git clone https://github.com/unfoldingWord-dev/uw-pdf-conversion-tools.git\ncd /opt/uw-pdf-conversion-tools \u0026\u0026 pip3 install -r requirements.txt\ncd /opt/uw-pdf-conversion-tools\n./setup_resources.sh # only needed one time, for tn_* and sn_* PDF converters\n./run.sh \u003cconverter\u003e [-hr] [-l \u003clang\u003e] [-w \u003cworking_dir\u003e] [-o \u003coutput_dir\u003e] [-p \u003cproject\u003e] [--owner \u003cowner\u003e] [--\u003cresource\u003e-tag \u003ctag\u003e] \n```\n\n`\u003cconverter\u003e` can be the following:\n  - obs_pdf_converter\n  - obs_sn_pdf_converter\n  - obs_sn_sq_pdf_converter\n  - obs_sq_pdf_converter\n  - obs_tn_pdf_converter\n  - ta_pdf_converter\n  - tn_pdf_converter\n  - tn_checking\n  - tq_pdf_converter\n  - tw_pdf_converter\n  - tw_checking\n\noptional arguments:\n```\n  -h, --help            show this help message and exit\n  -r, --regenerate      Regenerate PDF even if exists: Default: false\n  -l LANG_CODE, --lang_code LANG_CODE\n                        Language Code. Can specify multiple -l's. Default: en\n  -p PROJECT_ID, --project_id PROJECT_ID\n                        Project ID for resources with projects, such as a\n                        Bible book. Can specify multiple -p's. Default: all\n  -w WORKING_DIR, --working WORKING_DIR\n                        Working Directory. Default: a temp directory that gets\n                        deleted\n  -o OUTPUT_DIR, --output OUTPUT_DIR\n                        Output Directory. Default: \u003ccurrent directory\u003e\n  --owner OWNER         Owner of the resource repo on GitHub. Default: unfoldingWord\n  --offline             Do not download repos and images (use local copies)\n  --\u003cresource\u003e-tag \u003ctag\u003e For every resource used, you can specify a branch or tag.\n                         Default: master (run `./run.sh \u003cconverter\u003e -h` for possible tags)\n```\n\n# Examples\n\n- Run the OBS SN PDF converter for English (default language) but don't generate if PDF already exists in the output dir:\n\n    `./run.sh obs_sn_pdf_converter -w ~/working -o ~/output`\n\n- Run the TA PDF converter for English and French and generate even if the latest commit has a PDF file in the output dir\n\n    `./run.sh ta_pdf_converter -w ~/working -o ~/output -l en -l fr -r`\n\n- Run the OBS TN PDF converter for English and use release versions v6 of OBS TN, v6 of OBS, v11 of TA and v11 of TW.\n\n    `./run.sh obs_tn_pdf_converter -w ~/working -o ~/output -l en --obs-tn-tag v6 --obs-tag v6 --ta-tag v11 --tw-tag v11`\n\n# Notes\n - Language being generate must have a locale file in the `./locale` directory. You can copy the `English-en_US.json` file to a new language and update the strings on the right.\n   (Not needed for OBS PDF)\n - A index.php will be linked to in your output dir to list all of the latest versions of the resources generated\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfoldingword-dev%2Fuw-pdf-conversion-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funfoldingword-dev%2Fuw-pdf-conversion-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funfoldingword-dev%2Fuw-pdf-conversion-tools/lists"}