117 Commits

Author SHA1 Message Date
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
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
lizhimiao
e6e4916ac4
feat: added google translate support (#131)
* added google translate support.

* format code using black.
2023-03-10 15:06:05 +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
yihong
cdeaaea6ce
feat: refactor and we have no type hint never (#97) 2023-03-07 23:09:26 +08:00