deangelisdf / deangelisdf/write2audiobook

add language support

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Python
Stars
1
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The tool support only italian language, add other language require to configure properly each backend provided to the tool.

To add new language, the developer Need to modify the global dictionary as following:
- `LANGUAGE_DICT = {"it-IT":"it"}`
- `LANGUAGE_DICT_PYTTS = {"it-IT":"italian"}` in [m4b.py](https://github.com/deangelisdf/write2audiobook/blob/main/backend_audio/m4b.py)
- `TITLE_KEYWORD = {"it-IT":"TITOLO", "en":"TITLE"}`
- `CHAPTER_KEYWORD= {"it-IT":"CAPITOLO", "en":"CHAPTER"}` in [docx2audio.py](https://github.com/deangelisdf/write2audiobook/blob/main/docx2audio.py)

Desiderable: looking for hard coded strings and generalize it with a global dictionary, as previous one.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.