alfred-dict.cc-workflow

🌍 Alfred 4/5 workflow to get translations from dict.cc

Stars
137
Committers
4
alfred-dict.cc-workflow - Fix: "word" not found Latest Release

Published by dennis-tra 5 months ago

[!IMPORTANT]
This release bundles unnotarized binaries. You need to follow these steps.

Release 2.1.1

This release addresses #19. Dict.cc started to return:

Please don't run crawlers against dict.cc and don't try to make the dictionary available offline.

which resulted in all queries returning "word" not found. This isn't returned if a user agent on the HTTP request is set. Since this workflow is not crawling dict.cc nor is making it available offline, this release sets the user agent to alfred-dict.cc-workflow. The rational is, I don't want to upset the operators of dict.cc, so if it's really this workflow that poses a problem it's easy for them to block this user-agent again. In this case, I'll try to reach out to them and try to find a solution.

Support

And finally, if this workflow saves you time, it would really make my day and gives you Karma points if you considered to

alfred-dict.cc-workflow - Sonoma Support + Universal Actions + Hotkeys + Notarized Binaries

Published by dennis-tra about 1 year ago

Release 2.1.0

This release makes the workflow compatible with macOS Sonoma, hooks it up with Universal Actions, allows the configuration of hotkeys, and bundles notarized binaries.

Changelog

  • MacOS Sonoma compatibility: Sonoma bundles a new version of the iconv tool, breaking the current workflow because it uses different constants for character set conversions. The fix is to use the new constants and fall back to the old ones if that fails to preserve backward compatibility. Thanks to @mario-hab for reporting and @muffix for fixing (#16/#13).
  • Universal Actions/Hotkeys: You can use Alfred's Universal Actions feature to translate selected text from anywhere. Get started in Preferences > Features > Universal Actions. Thanks to @muffix for adding this feature.
  • Hotkeys: You can configure keyboard hotkeys to trigger the workflow directly for the current selection
    or clipboard contents. Navigate to the workflow configuration and double-click any of the two Hotkey triggers to configure the hotkey combination you want to use:
    Screenshot 2023-10-03 at 10 40 54
    Thanks to @muffix for adding this feature.
  • Notarized Binaries: I signed the included binaries, which means that the steps in README.md#Permissions should become obsolete. My developer account expires in less than 30d and I don't plan to renew it, though. I'm not sure if it means that the notarization also expires. Therefore, I'm keeping the README.md#Permissions description for now.

Support

And finally, if this workflow saves you time, it would really make my day and gives you Karma points if you considered to

alfred-dict.cc-workflow - Monterey Support

Published by dennis-tra over 2 years ago

Release 2.0.0

This release makes the workflow compatible with macOS Monterey.

Formerly, the workflow depended on Python 2, which is not distributed anymore with MacOS Monterey. Version 2.0.0 is a complete rewrite that ported the Workflow from Python 2 to Go. You can find more information in this issue.

Changelog

  • Workflow is rewritten in Go. This has the implication that you need to give execute permissions to the included Go-binaries. You can find the instructions and further information in the README.
  • Alfred 4 only. However, the workflow should also work on Alfred 3. I'm just not able to generate a compatible export as I'm already on Alfred 4. If you need Alfred 3 support feel free to file an issue, and maybe someone can jump in and help out.
  • Added alternative actions (press ⌘ or βŒ₯) to open dict.cc in the browser for the given query

Support

And finally, if this workflow saves you time, it would really make my day and gives you Karma points if you considered to

alfred-dict.cc-workflow - 2.0.0-rc4 | MacOS Monterey Support (Golang rewrite)

Published by dennis-tra over 2 years ago

This is a pre-release to see how things fly.

I've rewritten the Workflow in Go to eliminate the Python 2 dependency. More information can be found in this issue.

If you have any feedback, feel free to comment in issue https://github.com/dennis-tra/alfred-dict.cc-workflow/issues/8

Things that have changed:

  • In this pre-release the workflow is only compatible with Alfred 4. However, the workflow should also work on Alfred 3. I'm just not able to generate a compatible export as I'm already on Alfred 4. If you need Alfred 3 support feel free to file an issue and maybe someone can jump in and help out. I'm happy to explain the necessary steps.
  • Because the workflow contains a binary from an arbitrary developer (me) MacOS won't let you run it unless you explicitly allow it. The instructions can be found in the README.

And finally, if this workflow saves you time you may consider to sponsor me or


Changes to 2.0.0-rc3:

  • Fix: Parse escaped single quotes
  • Added alternative actions (press ⌘ or βŒ₯) to open dict.cc in the browser for the given query

Changes to 2.0.0-rc2:

  • Fix "out of range exception" for words like foo or foot

Changes to 2.0.0-rc1:

  • Detect platform in Alfred's script filter
alfred-dict.cc-workflow - 2.0.0-rc3 | MacOS Monterey Support (Golang rewrite)

Published by dennis-tra over 2 years ago

This is a pre-release to see how things fly.

I've rewritten the Workflow in Go to eliminate the Python 2 dependency. More information can be found in this issue.

If you have any feedback, feel free to comment in issue https://github.com/dennis-tra/alfred-dict.cc-workflow/issues/8

Things that have changed:

  • In this pre-release the workflow is only compatible with Alfred 4. However, the workflow should also work on Alfred 3. I'm just not able to generate a compatible export as I'm already on Alfred 4. If you need Alfred 3 support feel free to file an issue and maybe someone can jump in and help out. I'm happy to explain the necessary steps.
  • Because the workflow contains a binary from an arbitrary developer (me) MacOS won't let you run it unless you explicitly allow it. The instructions can be found in the README.

And finally, if this workflow saves you time you may consider to sponsor me or


Changes to 2.0.0-rc2:

  • Fix "out of range exception" for words like foo or foot

Changes to 2.0.0-rc1:

  • Detect platform in Alfred's script filter
alfred-dict.cc-workflow - 2.0.0-rc2 | MacOS Monterey Support (Golang rewrite)

Published by dennis-tra over 2 years ago

This is a pre-release to see how things fly.

I've rewritten the Workflow in Go to eliminate the Python 2 dependency. More information can be found in this issue.

If you have any feedback, feel free to comment in issue https://github.com/dennis-tra/alfred-dict.cc-workflow/issues/8

Things that have changed:

  • In this pre-release the workflows are only compatible with Alfred 4. However, the workflow should also work on Alfred 3. I'm just not able to generate a compatible export as I'm already on Alfred 4. If you need Alfred 3 support feel free to file an issue and maybe someone can jump in and help out. I'm happy to explain the necessary steps.
  • Because the workflow contains a binary from an arbitrary developer (me) MacOS won't let you run it unless you explicitly allow it. The instructions can be found in the README.

And finally, if this workflow saves you time you may consider to sponsor me or


Changes to 2.0.0-rc1:

  • Detect platform in Alfred's script filter
alfred-dict.cc-workflow - 2.0.0-rc1 | MacOS Monterey Support (Golang rewrite)

Published by dennis-tra over 2 years ago

This is a pre-release to see how things fly.

I've rewritten the Workflow in Go to eliminate the Python 2 dependency. More information can be found in this issue.

If you have any feedback, feel free to comment in issue https://github.com/dennis-tra/alfred-dict.cc-workflow/issues/8

Things that have changed:

  • In this pre-release the workflows are only compatible with Alfred 4. However, the workflow should also work on Alfred 3. I'm just not able to generate a compatible export as I'm already on Alfred 4. If you need Alfred 3 support feel free to file an issue and maybe someone can jump in and help out. I'm happy to explain the necessary steps.
  • There are now two workflow files. Dict.cc.x86_64.alfredworkflow contains the binary for Apples Intel chips and Dict.cc.arm64.alfredworkflow contains the binary for Apples M1 chips. Choose the workflow for your platform. The final release could contain a step that checks the platform and then chooses the right binary automatically.
  • Because the workflow contains a binary from an arbitrary developer (me) MacOS won't let you run it unless you explicitly allow it. The instructions can be found in the README.

And finally, if this workflow saves you time you may consider to sponsor me or

alfred-dict.cc-workflow - Default language pair

Published by dennis-tra about 4 years ago

In this release a feature is added that lets you configure the default language pair.

Consult the README.md for the configuration instructions.

alfred-dict.cc-workflow - Update to using https

Published by dennis-tra about 5 years ago

alfred-dict.cc-workflow - Update for Alfred 3.4.1

Published by dennis-tra about 7 years ago

This is a bugfix release of the full functional Dict.cc translation workflow for Alfred 3.4.1.

alfred-dict.cc-workflow - Dict.cc Alfred workflow

Published by dennis-tra about 8 years ago

This is the first release of the full functional Dict.cc translation workflow for Alfred.