v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-18 00:30:40 -07:00

70 Commits

Author SHA1 Message Date
eeeXun
2e41fa800c feat(translator): add BingTranslate 2023-04-15 01:35:09 +08:00
eeeXun
42b01a8cb2 refactor: rename variables & change some data type to interface array 2023-03-30 19:49:05 +08:00
eeeXun
39c892156c refactor: remove unneeded addition assignment operator
ApertiumTranslate and ArgosTranslate don't need it for translation. Just
use assignment operator.
2023-03-27 16:41:57 +08:00
eeeXun
62987e6c5e fix: ReversoTranslate with multi-line translation 2023-03-27 16:39:01 +08:00
eeeXun
854b569750 refactor: replace int with int8 in UICycle 2023-03-23 11:55:37 +08:00
eeeXun
9f7c7b71fa style: bad grammar in comment 2023-03-15 21:17:25 +08:00
eeeXun
b190b66132 fix: ReversoTranslate doesn't support translation of same language 2023-03-15 16:18:10 +08:00
eeeXun
724ac61d15 docs: Support to Supported Translator 2023-03-11 15:02:49 +08:00
eeeXun
cbd985b599 refactor: make Language, TTSLock and EngineName to struct in Translator
GetSrcLang, GetDstLang, SetSrcLang, SetDstLang, SwapLang are reusable
functions from translator to translator. So make Language struct.

GetEngineName is also a reusable function. So make EngineName struct.

Finally, let Translator to inherit those functions in these three
(Language, TTSLock, EngineName) structs. No need to write the duplicated
functions for each Translator.
v4
2023-03-10 23:37:08 +08:00
eeeXun
13e9f96c2b refactor: defer SoundLock.Release function in PlayTTS
SoundLock should release before leaving the PlayTTS function
2023-03-10 21:02:06 +08:00
Xun
ea1e23172c
feat(translator): add ReversoTranslate (#14) 2023-03-10 20:51:38 +08:00
eeeXun
9060a3999b chore: bump github-actions-deploy-aur version 2023-02-28 14:43:24 +08:00
eeeXun
edcfe4dde3 feat: show translator name in terminal title 2023-02-21 01:13:35 +08:00
eeeXun
529decb190 style: change borderColor to border_color in config 2023-02-17 22:31:04 +08:00
eeeXun
c1ebe7eb3c style: move main code out of if statement 2023-02-15 20:39:53 +08:00
eeeXun
303441125b refacotr: move hide_below to style struct 2023-02-14 15:45:51 +08:00
eeeXun
c5cdbcb99a refactor: move module color to style
- rename control.go to style.go
- remove windowStyle struct, don't need it
- rename global variable style to uiStyle
2023-02-14 15:25:40 +08:00
eeeXun
df42efc81d refactor: declare data as map[string]interface instead of interface
data in Translate function of ApertiumTranslate and ArgosTranslate is a
map[string]interface, so no need to declare it as interface then convert
it to map[string]interface
2023-02-13 21:09:48 +08:00
Xun
5fcb72cbb2
feat(translator): add ApertiumTranslate (#13) v3 2023-02-13 15:22:04 +08:00
eeeXun
0239561276 style: Declare string only once in Translate & PlayTTS 2023-02-12 17:22:04 +08:00
eeeXun
34805264b3 refactor: rename go module 2023-02-11 14:23:07 +08:00
eeeXun
4956efbcc0 docs: update Install in README 2023-02-10 15:10:05 +08:00
eeeXun
89257856aa chore: Run format actions only on *.go changes 2023-02-10 14:47:46 +08:00
eeeXun
7d44f74bb2 docs: update Install in README 2023-02-09 19:33:36 +08:00
eeeXun
b0e3d6f764 chore: add aur actions 2023-02-09 16:51:51 +08:00
eeeXun
d833495ab2 chore: add docker_build actions 2023-02-09 16:29:58 +08:00
Xun
fdde709a01
Create LICENSE 2023-02-09 12:36:51 +08:00
eeeXun
06fa80ef1b style(ui): language dropdown should focus prior to translator dropdown 2023-02-08 18:02:42 +08:00
eeeXun
f9bf291d0c docs: add translate web page in README 2023-02-06 13:39:45 +08:00
eeeXun
8a141e641e refactor(argostranslate): use PostForm instead of Post
The newline of message in url.Values in PostForm doesn't need to be
replaced by `\n`
2023-02-04 13:31:56 +08:00
eeeXun
513ad36470 refactor: NewTranslator in for-loop
NewTranslator by name, so no need to create functions for each Translate
2023-02-03 13:30:55 +08:00
muvment
f43dba6263
docs: Updated README Wayland dependencies (#12) 2023-02-03 13:12:48 +08:00
eeeXun
161af85fb2 style(format): run gofmt 2023-02-03 05:08:08 +00:00
muvment
8f2b3167d6
feat: Added X11/Wayland detection for copy command (#10) 2023-02-03 13:07:51 +08:00
eeeXun
25b20b9f14 style: add comment 2023-02-01 14:56:59 +08:00
eeeXun
c640c1bc08 chore: format with gofmt instead of go fmt 2023-02-01 14:18:13 +08:00
muvment
4c0faab899
feat: Added auto translate for Argos translate (#11)
Seems like Argos also supports auto translate as an experimental feature.
2023-02-01 13:53:49 +08:00
eeeXun
f6b7d6a330 style(format): run goimports 2023-02-01 05:52:22 +00:00
muvment
3f8aa5bcdd
feat: Added Google translate auto option (#9) 2023-02-01 13:52:00 +08:00
eeeXun
6b930d27f8 fix: newline of message in argostranslate need to be replaced with \n 2023-01-31 22:30:33 +08:00
eeeXun
898ac53b97 style: rename NewLibreTranslate to NewArgosTranslate 2023-01-29 15:17:41 +08:00
eeeXun
f9775ba89e refactor: replace AddItem with attachItems
attachItems implements adding multi items & centering items
v2
2023-01-29 11:45:01 +08:00
eeeXun
a44d329cc7 style: rename {lang,style,keyMap}Window to {lang,style,keyMap}PopOut 2023-01-29 11:28:53 +08:00
Xun
db58fa7912
Merge pull request #8 from eeeXun/libretranslate
feat: add ArgosTranslate
2023-01-29 11:18:40 +08:00
eeeXun
fe25bd4e2b style: use EngineName for error message 2023-01-29 11:03:39 +08:00
eeeXun
45b9c13c06 style: rename viper to config
viper already previde the variable. No need to New one.
2023-01-27 20:30:24 +08:00
eeeXun
d816d1f4f1 docs: add ArgosTranslate in README 2023-01-27 16:50:02 +08:00
eeeXun
3c33708f33 style: rename LibreTranslate to ArgosTranslate
LibreTranslate is an API and web-app built on top of Argos Translate
2023-01-27 16:49:33 +08:00
eeeXun
6244a00630 style: default language & restructure config
change default language to English
change the structure of language in config
2023-01-27 14:44:45 +08:00
eeeXun
1115d19b7a feat: add translatorDropDown 2023-01-27 12:24:42 +08:00