linguee-alfred-workflow icon indicating copy to clipboard operation
linguee-alfred-workflow copied to clipboard

Russian translation

Open ww7 opened this issue 6 years ago • 11 comments

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?

ww7 avatar Sep 14 '19 11:09 ww7

I found for linguee.com no needed iconv anymore. Can you update linguee binary and Alfred workflow without iconv?

ww7 avatar Sep 14 '19 12:09 ww7

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

ww7 avatar Sep 14 '19 13:09 ww7

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 👍

alexander-heimbuch avatar Oct 05 '19 17:10 alexander-heimbuch

👍 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 avatar Oct 06 '19 10:10 ww7

@ww7 I havent updated to Catalina yet and using Mojave right now. Could you please share the ru-en workflow which works on Mojave?

orkhan10 avatar Feb 26 '20 14:02 orkhan10

@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?

ww7 avatar Mar 24 '20 19:03 ww7

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 avatar Mar 26 '20 19:03 alexander-heimbuch

@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 avatar Mar 26 '20 19:03 ww7

@ww7 updated the flow to linguee.com, hope that works for you :)

alexander-heimbuch avatar Mar 28 '20 12:03 alexander-heimbuch

@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.

orkhan10 avatar Mar 28 '20 14:03 orkhan10

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:

ww7 avatar Aug 01 '20 22:08 ww7