oflg / fishing

Integrate Spaced Repetition System into TiddlyWiki
https://tiddlymemo.org/
MIT License
43 stars 7 forks source link

[IDEA] Using google translate for every language #24

Closed labibllaca closed 2 years ago

labibllaca commented 2 years ago

Hi, as I keep using this peace of gold software, this needed feature may be easy to implement and helpful. So in the Fishing setting in the ControllPanel there is under the features of Cachfish this parameter that can be changed for translating stuff in Chinese : URL of Word template with this parameter: [{!!word}encodeuricomponent[]addprefix[https://dict.youdao.com/recite/words/#!/dict/engchn?le=eng&q=]]

I though, how hard can it be to change the youdao dict and use there google or also other translation websites that are good at ?

Any ideas how to make it work ?

Best regards.

oflg commented 2 years ago

The filter should be [{!!word}encodeuricomponent[]addprefix[https://translate.google.com/?sl=en&tl=es&op=translate&text=]]. But it still doesn't work, because Google Translate has a limitation that other sites can't embed its pages. You can follow this format and try other websites.

labibllaca commented 2 years ago

Thanks, @oflg. I've found until now just one website that let be embedded in a tiddle. Eventhough it loads the whole site in a tiddle, it works. Here is the configuration for it:

[{!!word}encodeuricomponent[]addprefix[https://www.reverso.net/text-translation#sl=eng&tl=ger&text=]]

Greetings

oflg commented 2 years ago

The following website may also be ok.

dictionary.reference.com
ldoceonline.com
oxfordlearnersdictionaries.com
thefreedictionary.com
wiktionary.org
wordreference.com
labibllaca commented 2 years ago

That's great. See you in the next one :D @oflg .

oflg commented 2 years ago

-7189f24eb5668fe4