deangelisdf/write2audiobook

add language support

开放

#3 创建于 2024年8月24日

 (0 条评论) (0 个反应) (0 位负责人)Python (4 个派生)auto 404
enhancementgood first issue

仓库指标

星标
 (1 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南