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.

貢獻者指南