linguee-alfred-workflow
linguee-alfred-workflow copied to clipboard
Russian translation
Currently not work with english-russian dictionaries.

Can you update linguee binary with new URL https://www.linguee.com/ and add support for ru-RU.UTF8 codepage?
I found for linguee.com no needed iconv anymore.
Can you update linguee binary and Alfred workflow without iconv?
Temporary solution works with editing
// line 109
// charset conversion
body, err := iconv.NewReader(res.Body, "utf-8", "utf-8")
and replacing all http://www.linguee.de to http://www.linguee.com in linguee.go
and removing iconv from Alfred Script Filter

export LC_ALL=ru_RU.UTF-8
./linguee {query} english-russian

Sorry for the late response, as soon as I get my hands around OSX Catalina I will recompile the binaries and also add the suggested content encoding 👍
👍 Thanks Would be cool if direct search also works with Cyrillic chars
// Add query itself to give the ability for a direct search if there is no match
if match == false {
@ww7 I havent updated to Catalina yet and using Mojave right now. Could you please share the ru-en workflow which works on Mojave?
@ww7 I havent updated to Catalina yet and using Mojave right now. Could you please share the ru-en workflow which works on Mojave?
i have worked one on Mojave and Catalina https://www.dropbox.com/s/d745toagq42ibx6/Linguee.de.alfredworkflow?dl=0
@alexander-heimbuch do you have plan to update worfklow?
The flow works with Mojave. I tried to incorporate your suggestions but couldn't find a solution for the encoding problem. I would highly appreciate contributions in this area :)
@alexander-heimbuch Unfortunately i don't know Go lang, if you have time, can you update flow to new enpoints and API changes? Then i try to fix encoding problem with PR
@ww7 updated the flow to linguee.com, hope that works for you :)
@ww7 I havent updated to Catalina yet and using Mojave right now. Could you please share the ru-en workflow which works on Mojave?
i have worked one on Mojave and Catalina https://www.dropbox.com/s/d745toagq42ibx6/Linguee.de.alfredworkflow?dl=0
Thanks.
Please let us know if you can fix the encoding problem with the updated flow.
Thanks for updates.
If someone needed english-russian direction (Cyrillic) you need to change iso-8859-15 to utf-8 in linguee.go 110 line
// charset conversion
body, err := iconv.NewReader(res.Body, "utf-8", "utf-8")
And do duplicate Script Filter where change keyword to RU and edit to english-russian direction
Upd:
- edited binary to manually replace
- edited workflow with russian
- nice workflow for google dicttionary