deangelisdf/write2audiobook

add language support

オープン

#3 opened on 2024/08/24

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Python (4 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (1 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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
  • TITLE_KEYWORD = {"it-IT":"TITOLO", "en":"TITLE"}
  • CHAPTER_KEYWORD= {"it-IT":"CAPITOLO", "en":"CHAPTER"} in docx2audio.py

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

コントリビューターガイド