75 Commits

Author SHA1 Message Date
yihong0618
84ef16e6b2 fix: lint 2023-03-12 22:57:39 +08:00
yihong0618
b2b95284b4 feat: pypi 2023-03-12 22:56:21 +08:00
David Ye
66716632ba
Improving the READMEs (#152)
* remove the duplicate item [13,17] => [17] in README

* correct the item numbers in README

* fix typo

* add 示范用例 section title to match the English README

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-12 14:51:48 +08:00
Conan
ae3e3ba558
Unify prompt config for user and system (#151)
* fix list number in readmes

* fix list number in readmes

* unify prompt config for role user and system

* update json sample file

* update documents and add test

* update readmes
2023-03-12 14:48:24 +08:00
hleft
1c3fe7e55d
fix (#149) 2023-03-11 22:40:58 +08:00
Conan
b1d62e8b30
added prompt template (#145)
* add prompt template

* format output for ChatGPTAPITranslator

* black format files

* fix: google txt loader failed

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-11 21:51:29 +08:00
Hsieh Chin Fan
2384fb3fe2
Add options for books on kobo e-reader (#138)
Add obok.py as file selector for kobo device

---------

Co-authored-by: Hsieh Chin Fan <pham@topo.tw>
2023-03-11 21:06:49 +08:00
hleft
c0b3e0c2d5
support system meesage in environment variable (#144)
* support config tags to translate

* support system meesage in envirment
2023-03-11 20:31:16 +08:00
zstone12
aaa1ab4d7b
feat: add txt book loader (#143)
* feat: add txt book loader

* chore: add test book

* style: black

* feat: add _save_temp_book

* doc: add txt support desc
2023-03-11 14:37:25 +08:00
yihong
d95f0b3942
fix: #114 (#139) 2023-03-10 21:05:34 +08:00
yihong0618
cf44a19d82 fix: print message before sleep 2023-03-10 20:54:07 +08:00
hleft
f566feabcb
refactor(translator): extract get_translation method (#112)
- Extracted get_translation method to improve code readability and maintainability
- Moved the code that handles API key and completion creation to the new method
2023-03-10 20:50:49 +08:00
yihong0618
1ef61a75c8 fix: key bug 2023-03-10 15:40:44 +08:00
yihong0618
939024ca4d fix: lint 2023-03-10 15:33:51 +08:00
yihong0618
61c0e75570 fix: test 2023-03-10 15:30:22 +08:00
InzamZ
cbe165df19
fix(#92): add a arguments to allow NavigableStrings translate (#126)
* fix(#92): add a arguments to allow NavigableStrings


---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-10 15:24:20 +08:00
yihong0618
dfcf078028 ci: more test 2023-03-10 15:11:12 +08:00
lizhimiao
e6e4916ac4
feat: added google translate support (#131)
* added google translate support.

* format code using black.
2023-03-10 15:06:05 +08:00
Hsieh Chin Fan
26fdfb0f0d
Improve README (#119)
* Improve README

- Improve English wording
- Surround command, files , terms with "`"
- In codeblock, make comment starts from capitalized char
- command/parameter -> option
- Add description about --translate-tags from PR#107

* Remove Traditional Chinese

* Fix terms for Simplified Chinese

---------

Co-authored-by: Hsieh Chin Fan <pham@topo.tw>
2023-03-09 17:59:23 +08:00
Brikarl
83afab371c
[bugfix] Fix the wrong typesetting of the generated temporary files (#124) 2023-03-09 14:48:37 +08:00
hleft
b25c4ca873
support config tags to translate (#107) 2023-03-08 22:11:43 +08:00
Yurii
3472f3e673
update: refine the text of messages to the end user (#100)
* update: refine the text of messages to the end user

* update: refine message text

* fix: lint

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-08 18:24:05 +08:00
Frost Ming
6c72c29943
Minor improvements for loader and translator (#103)
* Minor improvements for loader and translator

* use rotate key

* fix: typo

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-08 13:27:00 +08:00
Vancl
8a4806c693
Update Docker command in README.md (#99) 2023-03-07 23:59:28 +08:00
yihong
cdeaaea6ce
feat: refactor and we have no type hint never (#97) 2023-03-07 23:09:26 +08:00
yihong0618
0bed9959f3 doc: readme example 2023-03-07 18:56:26 +08:00
InzamZ
deedb946fe
fix(#57): Fix the bug caused by parsing non-HTML files (#91) 2023-03-07 18:50:02 +08:00
yihong
b387995f4d
fix: #71 upstream bug (#89) 2023-03-07 17:57:34 +08:00
Zhima-Mochi
f8edb63486
use docker (#53)
* use docker

* Update Dockerfile

* Update README.md

add example
2023-03-07 15:37:29 +08:00
yihong0618
fadc957c87 doc: more info 2023-03-07 13:09:34 +08:00
InzamZ
4184566ed5
fix: fix the issue with the progress bar not updating properly (#85)
* feat: parse xhtml based epub by detect automatically

* fix: fix the issue with the progress bar not updating properly

* refactor: refactor on logic

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-07 13:02:31 +08:00
yihong
e9066d063b
feat: for #73 and #76 (#87) 2023-03-07 12:55:08 +08:00
Yuankui Li
4b21d6f523
save progress more frequently (#64) 2023-03-07 10:46:48 +08:00
Daniel Parizher
5d2b174f8e
Refactor on logic (#77)
- Removed unnecessary casts
- Made a sum comprehension on `all_p_length`
2023-03-07 09:37:03 +08:00
Xie Yanbo
2cfc89415c
Fix filename (#81)
* fix name issues

* remove magic number
2023-03-07 09:35:52 +08:00
Friends A
7412abb589
docs: add disclaimer (#82) 2023-03-07 09:35:17 +08:00
Hsieh Chin Fan
c1d2c97191
Improve helper message (#74)
* Improve helper message

Since too many available languages, use metavar at the first line

* Improve helper message for model

* Apply formatter

---------

Co-authored-by: Hsieh Chin Fan <pham@topo.tw>
2023-03-06 21:23:41 +08:00
兰天游
1a556333f9
feat: Change documentation on clearifying model usage (#58)
* feat: Change documentation on clearifying model usage

* feat: Change the readme in English version
2023-03-06 10:24:17 +08:00
BoHao Wang
2d5972e76d
fix: invalid target language when TIME LIMIT (#52) 2023-03-05 21:56:53 +08:00
InzamZ
7200da7b0b
fix: fix parser error of xml based epub (#50)
* fix: fix parser error of xml based epub

* fix: fix xhtml based epub error by detect automatically

* docs: update README
2023-03-05 21:40:01 +08:00
Tongzhao9417
602ac2ca3e
更新了api_url的使用方法,增加了更为小白的示例 (#45) 2023-03-05 16:45:02 +08:00
yihong
7249540e98
feat: change api base for #42 (#44)
* feat: change api base for #42

* fix: typo
2023-03-05 15:47:37 +08:00
yihong0618
1ad276808b fix: test five 2023-03-05 12:23:02 +08:00
yihong0618
671957f0b4 ci: only run when have secret 2023-03-05 12:21:26 +08:00
Kevin
4219f9c31d
Help improve progress bar on the book translation progress (#17)
* Update make_book.py

* Update requirements.txt

* Create main.yml

* fix error for linting

* fix error

* fix: support test of bar

---------

Co-authored-by: yihong0618 <zouzou0208@gmail.com>
2023-03-05 09:45:02 +08:00
Ikko Eltociear Ashimine
30669abd5a
doc: fix typo in README.md (#36) 2023-03-05 07:09:19 +08:00
yihong0618
701c415f4d fix: change secret type 2023-03-04 21:46:26 +08:00
yihong
106616187b
doc: English README (#34) 2023-03-04 21:40:05 +08:00
yihong0618
2a68686436 Merge branch 'main' of https://github.com/yihong0618/bilingual_book_maker 2023-03-04 18:32:38 +08:00
yihong0618
d63b8dd0ee fix: lint 2023-03-04 18:32:20 +08:00