Commit Graph

337 Commits

Author SHA1 Message Date
Akash Mozumdar
0df2526560 fix botched merge 2021-06-05 08:50:00 -06:00
Akash Mozumdar
8c9faf9947
Merge branch 'master' into devtools_fixed_failure_remove_devtoolscache 2021-06-05 08:31:04 -06:00
Akash Mozumdar
76fea31fb3 fix bugs and add new languages to deepl 2021-06-05 08:25:46 -06:00
Akash Mozumdar
795ecce45e fix bing trranslate 2021-06-05 08:15:19 -06:00
Akash Mozumdar
675695cde1 prevent write starvation 2021-06-05 03:00:01 -06:00
Akash Mozumdar
d74dcdc286 fix thread linker crash and other minor improvements 2021-06-05 02:20:04 -06:00
Akash Mozumdar
b4aa113fac turn off repetiton filter by default, use google by default, increase max hook count, replace regex with capture 2021-06-05 01:48:10 -06:00
Blu3train
1e03e69d00 devtools: fixed failure to remove devtoolscache when closing the browser 2021-05-26 00:41:19 +02:00
Blu3train
76d716956d DevTools Papago Translate 2021-05-15 11:07:22 +02:00
Akash Mozumdar
f26f30dce7 small fixes 2021-04-24 16:45:17 -06:00
Akash Mozumdar
71fe1410c2 fix error handling 2021-04-24 16:39:52 -06:00
Akash Mozumdar
aa0c0e0047 build system improvements 2021-03-13 00:51:36 -07:00
Akash Mozumdar
8543d49192 fix google translate and devtools deepl translate, add chrome file selector, add garbage filter 2021-03-09 21:32:56 -07:00
Akash Mozumdar
acc85f3a86 minor improvements 2021-03-08 08:41:34 -07:00
Akash Mozumdar
bf97055155 small fixes 2021-02-21 14:15:59 -07:00
Akash Mozumdar
ad83eb290a update docs 2021-01-31 08:02:10 -07:00
Akash Mozumdar
fcd735283d temporary remove regex replacement 2021-01-30 13:11:46 -07:00
Akash Mozumdar
a03c939043 fix small bugs 2021-01-30 12:45:37 -07:00
Akash Mozumdar
e00b831e3d fix localization bug, add opption to select language translating from, and add error message to devtools deepl 2021-01-21 07:07:49 -07:00
Akash Mozumdar
084f26a72d allow replacement in regex filter and make names consistent 2021-01-21 07:07:49 -07:00
Akash Mozumdar
662ca45321 add styler extension 2021-01-15 09:53:57 -07:00
Akash Mozumdar
c62c586a59 fix bugs and autoload lua 2021-01-15 09:32:23 -07:00
Akash Mozumdar
fc81b17a3c massive refactor, also fix newline issue and google translate throw and different number formats for process id 2021-01-15 06:07:23 -07:00
Akash Mozumdar
3a34f989e5 Merge branch 'master' into pr/416-add-devtools-api-and-new-deepl-extension 2020-12-16 12:23:52 -07:00
Akash Mozumdar
2c9ac1da3c improve JSON parser 2020-12-15 07:28:12 -07:00
Akash Mozumdar
95b145bece revert separation line 2020-12-14 19:10:47 -07:00
Akash Mozumdar
457aed96c2 fix unicode mangling 2020-12-14 10:37:54 -07:00
Akash Mozumdar
4783469a0a style 2020-12-14 07:48:02 -07:00
Akash Mozumdar
268f40771d improve reliability of translations 2020-12-14 06:26:01 -07:00
zeheyler
7eb45899c0 fix target language check
Fixed target language check
2020-12-13 00:56:00 +03:00
zeheyler
ea6ddc7a7c small improvements
Added check for the empty answer from the translator
Small refactors
2020-12-09 14:00:57 +03:00
zeheyler
6958b22e68 fix target selector check
Fixed target selector check in some cases
Changed line endings from CRLF to LF
2020-11-04 20:51:23 +03:00
zeheyler
9bb7fbff06 add source language selection and rename variables
Added source language selection since autodetect fails sometimes
Refactored names of variables
2020-11-04 01:23:20 +03:00
Akash Mozumdar
01b6b6de16 fix things not being localized and settings not loading 2020-11-02 06:27:21 -07:00
zeheyler
4b46057800 add backup check method
Added backup check method in case the first method fails
2020-10-29 02:08:11 +03:00
zeheyler
93b8711bf8 refactor errorcode
Refactored error processing
2020-10-22 23:15:45 +03:00
zeheyler
8ab1e576bd add call queue check
Added queue check for multiple calls from the main program
2020-10-21 00:10:58 +03:00
zeheyler
3af4217075 add check for outdated doc and refactor input text modifications
Added the flag for checking if webdocument structure is outdated
Refactor text modifications before processing to the translator
2020-10-20 02:08:59 +03:00
zeheyler
2ab780a491 add user-agent switch method
Add method that changes user-agent when in the headless mode
2020-10-18 16:16:06 +03:00
zeheyler
73d1f21bc1 add notification alert
When timeout from the net the method searches for notifications from the translator and put them to output
2020-10-15 23:23:41 +03:00
zeheyler
a3ebaf0023 add event catch method and refactor error messages
Added method that catches specified events from the page
Refactored error messages
2020-10-15 02:32:58 +03:00
Akash Mozumdar
f0a1690c92 fix deepl 2020-10-13 20:19:53 -06:00
zeheyler
6b54ec0733 add devtools api and new deepl extension
Added the DevTools API and the wrapper with  the use of the QtWebSockets library.
Added a new DeepL extension which uses the DevTools API.
2020-10-14 03:37:03 +03:00
Akash Mozumdar
f6742de3d5 parse shortened hook codes 2020-09-10 07:12:50 -06:00
Akash Mozumdar
dc1f819952 fix infinite loop 2020-09-09 15:13:19 -06:00
Akash Mozumdar
6da63208c7 try both deepl api versions 2020-08-12 01:42:24 -06:00
Akash Mozumdar
4b0fc12794 dynamic port 2020-05-14 18:09:52 -06:00
Akash Mozumdar
a129394fb5 dont need that param anymore 2020-04-25 20:39:12 -06:00
Akash Mozumdar
e20a12862c default setting tweak 2020-04-25 20:36:58 -06:00
Akash Mozumdar
9711ce94c9 thread linker doesn't append sentences anymore 2020-04-25 20:34:53 -06:00
Akash Mozumdar
d1887db2a5 use precompiled headers 2020-04-18 19:04:07 -06:00
Akash Mozumdar
386e09a81a fix translation extensions 2020-04-02 03:07:32 -06:00
Akash Mozumdar
86415fca10 all official apis now supported and performance improvements 2020-03-29 20:55:12 -06:00
Akash Mozumdar
ecab473482 small fixes 2020-03-27 05:55:11 -06:00
Akash Mozumdar
accd231c64 add option to only translate selected thread 2020-03-27 04:07:05 -06:00
Akash Mozumdar
8a710659dc merge google and google cloud 2020-03-26 06:12:20 -06:00
Akash Mozumdar
87c056a5b3 add settings to translation dialog and implement deepl 2020-03-26 06:05:42 -06:00
Akash Mozumdar
e4d9b70040 better logging for translation extensions 2020-03-17 22:01:16 -06:00
Akash Mozumdar
d1d453f359 remove weird stuff 2020-03-16 03:04:40 -06:00
Akash Mozumdar
ac4cec9708 add gcp translator and add continous dialog for translators and update language lists and make extension dialogs uncloseable without properly removing the extension 2020-03-16 02:56:04 -06:00
Akash Mozumdar
39e81bb904 escape unformatted 2020-03-07 04:06:45 -07:00
Akash Mozumdar
d6412ca0b0 fix lookup with << 2020-03-07 03:45:26 -07:00
Akash Mozumdar
b9081f2472 fix large file being read wrong 2020-03-07 03:45:07 -07:00
Akash Mozumdar
3ff31e0ac6 reorganize config files 2020-03-05 01:51:36 -07:00
Akash Mozumdar
99be5fd40f configurable max size 2020-03-04 23:30:59 -07:00
Akash Mozumdar
b4b26d50ca attach to current process 2020-03-02 23:49:31 -07:00
Akash Mozumdar
b515a17767 fix exception 2020-03-02 23:49:18 -07:00
Akash Mozumdar
6a61342d19 fix issue with too large sentence and topmost window blocking dictionary 2020-03-02 23:48:29 -07:00
Akash Mozumdar
ffff4f2eb9 tiny fixes 2020-02-29 17:51:38 -07:00
Akash Mozumdar
22e0d38a1e small fixes 2020-02-28 02:34:07 -07:00
Akash Mozumdar
f6cf3c9c62 save regex 2020-02-28 02:33:51 -07:00
Akash Mozumdar
16540bfe69 move utility functions into common.h and module.h 2020-02-28 00:34:34 -07:00
Akash Mozumdar
73ccb38641 why did i ever think that was a good idea? 2020-02-27 04:42:29 -07:00
Akash Mozumdar
565f99cced implement deinflection 2020-02-26 01:01:06 -07:00
Akash Mozumdar
dc48f2a3c8 performance improvements and autoselect native language for translations 2020-02-25 04:39:27 -07:00
Akash Mozumdar
2e23d4016d better position for dictionary 2020-02-23 00:44:26 -07:00
Akash Mozumdar
2d2a3dedb9 make dictionary mouseover and make extra window larger to start 2020-02-22 20:58:47 -07:00
Akash Mozumdar
b61272a5e6 implement replacer wildcard and optimize memory usage when loading files 2020-02-16 17:58:09 -07:00
Akash Mozumdar
3d88f2b9ec add language reselect message 2020-02-12 00:06:01 -07:00
Akash Mozumdar
42e4973721 bing api changed 2020-01-31 23:24:49 -07:00
Akash Mozumdar
0ace753199 sanitize surrogate characters which cause qt to crash if unpaired 2020-01-18 23:25:57 -07:00
Akash Mozumdar
34feb59e8c dont put conosle on extra window 2019-12-29 08:57:33 -05:00
Akash Mozumdar
4409fb88b0 custom opacity message 2019-12-29 08:54:55 -05:00
Akash Mozumdar
bf2838f3fc text outlines implemented and fix low alpha values being saved wrong 2019-11-10 12:48:32 -05:00
Akash Mozumdar
6a6c208c20 repetition filters bail after 30 seconds 2019-10-07 01:00:54 -04:00
Akash Mozumdar
2436571768 lazy man's mocking 2019-10-02 05:30:14 -04:00
Akash Mozumdar
54f60f7657 small fixes 2019-09-26 07:07:58 -04:00
Akash Mozumdar
f9e1e61d51 refactor 2019-09-16 17:14:59 -04:00
Akash Mozumdar
0c9fc5c08a small fixes 2019-09-10 18:53:55 -04:00
Akash Mozumdar
5d77350e3c text encoding fixups 2019-09-09 22:08:24 -04:00
Akash Mozumdar
b7c9f0bfce add dictionary function to extra window, store colors as argb hex, decrease memory usage of replacer 2019-09-05 13:42:30 -04:00
Akash Mozumdar
9415e83511 rename 2019-09-04 12:29:48 -04:00
Akash Mozumdar
58f58b02d8 save language and sort cache 2019-08-12 10:44:51 -04:00
Akash Mozumdar
4e3c1a93e0 scroll through extra window history 2019-08-12 10:43:34 -04:00
Akash Mozumdar
2e99d6b3f2 don't filter useful things from google translate 2019-08-09 22:12:06 -04:00
Akash Mozumdar
60372a6b8a further optimize repetition detection 2019-08-09 22:11:34 -04:00
Akash Mozumdar
488a19134a more efficient suffix array construction 2019-08-08 06:23:15 -04:00
Akash Mozumdar
c38551905d upgrade repetition detection algorithm 2019-08-07 14:05:50 -04:00
Akash Mozumdar
f85e3a3841 update translation apis 2019-07-16 14:03:46 +05:30
Akash Mozumdar
6a015f04bc use qfontdialog for extra and main window and massive perf improvement when loading large threads 2019-07-13 19:15:43 +05:30
Akash Mozumdar
5d83c9736b refactor replacer 2019-07-03 18:02:32 +05:30
Akash Mozumdar
c074bbf506 only cache translation on current thread 2019-07-03 12:23:10 +05:30
Akash Mozumdar
011a5418e9 user selected process forgetting, and other small fixes 2019-07-03 12:03:22 +05:30
Akash Mozumdar
c5c115c5da translation cache is saved every 50 translations 2019-06-29 16:29:33 +05:30
Akash Mozumdar
a3bb8dcf27 small fixes 2019-06-29 15:43:26 +05:30
Akash Mozumdar
ce33ca5732 better error message 2019-06-29 14:57:39 +05:30
Akash Mozumdar
4192bfc412 organize qt includes 2019-06-29 08:46:31 +05:30
Akash Mozumdar
5f5c5d5a1a update translation api 2019-06-21 23:16:23 -04:00
Akash Mozumdar
f1d46e9f73 refactor and perf improvements 2019-06-21 01:29:48 -04:00
Akash Mozumdar
d9ba1e5854 style cleanup 2019-06-18 00:39:50 -04:00
Niakr1s
7b602393de
Merge branch 'master' into master 2019-06-17 07:55:36 +03:00
Akash Mozumdar
c85618cd0d allow custom fonts in extra window 2019-06-17 00:42:42 -04:00
Akash Mozumdar
566c0beb0a make thread linker asynchronous. also refactored, but in a way that makes me very concerned about the stability of host 2019-06-16 22:57:41 -04:00
Akash Mozumdar
3a103890ad cache translations in file 2019-06-16 19:43:59 -04:00
Akash Mozumdar
28d14bcc32 dont bother comparing to nullptr 2019-06-16 17:15:47 -04:00
Akash Mozumdar
a9a9c0cea5 note showing original works iff used after translation extension 2019-06-16 15:50:17 -04:00
Niakr1s
f86a776536 Feature: Show original text 2019-06-16 21:03:27 +03:00
Akash Mozumdar
07d25ef25c i am a moron 2019-06-15 03:23:32 -04:00
Akash Mozumdar
5d2c1339d5 forgot to remove that 2019-06-13 13:56:45 -04:00
Akash Mozumdar
67a5f42c51 break up remove repetition extension 2019-06-13 13:06:34 -04:00
Akash Mozumdar
b5c319ee46 small fixes 2019-06-13 12:06:15 -04:00
Akash Mozumdar
76804dd0aa reorganize translation 2019-06-13 04:01:29 -04:00
Akash Mozumdar
516881d409 reorganize tests 2019-06-10 22:23:06 -04:00
Akash Mozumdar
c5a6e16488 fix some cmake fuckups 2019-06-10 13:58:19 -04:00
Akash Mozumdar
d25a61e9e6 catch garbage pipe data 2019-06-09 07:33:26 -04:00
Akash Mozumdar
b18fe3ddd0 horrific memeory leak in rate limiter 2019-06-05 20:26:50 -04:00
Akash Mozumdar
cf90539d09 optimize 2019-06-04 23:12:45 -04:00
Akash Mozumdar
d16db4d319 add repeated sentences filter (laxer than before) 2019-06-04 15:30:48 -04:00
Akash Mozumdar
3a36dbca1d refactor regex filter, add guide, and make it a default 2019-06-03 19:29:37 -04:00
Akash Mozumdar
7cdbd93dcb cleanup 2019-06-03 18:54:20 -04:00
Akash Mozumdar
44558a6059 change to format strings 2019-06-01 13:59:37 -04:00
Akash Mozumdar
2f7365acbd small fixes 2019-04-23 02:49:06 -04:00
Akash Mozumdar
7e8dfc0332 fix race condition 2019-02-28 01:40:40 -05:00
Akash Mozumdar
0345181484 split text declarations 2019-02-27 11:33:17 -05:00
Akash Mozumdar
4c1cac7dbb small fixes 2019-02-25 01:06:35 -05:00
Akash Mozumdar
f62f90a068 store trie match and use if another isnt found 2019-02-25 01:06:16 -05:00
Akash Mozumdar
ec0b9c077c remove some false positives from repetition detection 2019-02-25 00:47:18 -05:00
Akash Mozumdar
7b82aa62aa add size locking option 2019-02-25 00:00:20 -05:00
Akash Mozumdar
107544df70 minor fixes 2019-02-21 13:09:44 -05:00
Akash Mozumdar
f6a82984c2 allow empty replacements 2019-02-20 22:14:32 -05:00
Akash Mozumdar
40e62a13d6 upgrade repetition remover algorithm 2019-02-20 22:12:26 -05:00
Akash Mozumdar
241d5906e4 minor fixes 2019-02-20 21:54:25 -05:00
Akash Mozumdar
a64fa9b3dd reorganize includes 2019-02-18 23:12:12 -05:00
Akash Mozumdar
29f616ae9d more efficient extension abi 2019-02-18 20:57:10 -05:00
Akash Mozumdar
146afdc926 using new api 2019-02-17 19:14:49 -05:00
Akash Mozumdar
e826801c87 more lua features 2019-02-17 18:52:09 -05:00
Akash Mozumdar
48ea8f531b static link lua 2019-02-16 22:53:19 -05:00
Akash Mozumdar
8e40c71563 refactor 2019-02-16 22:43:31 -05:00
Akash Mozumdar
551d5ba49d small refactor 2019-02-12 23:54:33 -05:00
Akash Mozumdar
e494ebc077 add lua extension 2019-02-12 19:54:15 -05:00