Jump to content

alfred_enthusiast

Member
  • Posts

    7
  • Joined

  • Last visited

Everything posted by alfred_enthusiast

  1. @deanishe Thanks for all your suggestions. Definitely very helpful. Two questions: 1. why did you mention Dropbox? Is common approach to sync workflows over dropbox? 2. I would like to replace the indexes with a real db (sqllite) but for that I need some specific ruby gems. How can I execute an "installation script" when the workflow is installed?
  2. I created this workflow mostly because of the gender of the german nouns. If you are learning german you know that each noun can have one out of 3 genders and everything else depend on this So I focused only on german language and mostly to show the gender of the word. It's my first workflow is pretty rough. This is the source code https://github.com/ignazioc/DerDieDas The *.workflow can be downloaded from here: https://github.com/ignazioc/DerDieDas/blob/master/build/DerDieDas.alfredworkflow?raw=true
  3. as promised this is the workflow. I'll post on the other section. https://github.com/ignazioc/DerDieDas
  4. you're my hero I spent one day trying to figuring out how the two strings can be different. To make it work had only to normalise the input # from this input = ARGV[0].downcase # to this input = ARGV[0].downcase.unicode_normalize I can now finally complete my workflow and share on github. I'll mention this post of course
  5. thanks, I'm using Ruby. In particularly I'm using ruby 2.6.0dev (2018-06-22 trunk 63723) [x86_64-darwin17] I see that the length of the input string is 4 for "bär" but if I type "bär".length The result is 3 Forgot to mention, if I run the script via command line, like ./mzScript.rb bär the result is exactly what I expect.
  6. I'm creating a workflow and I'm having some trouble to manage the input in non-ascii characters. If I set the input as `argv` and type "bär", the script receives a string with length = 4 that is not == "bär" Any suggestion how I should deal with this string?
  7. Hi there, can someone suggest a workflow to get info about german words? A dictionary would be perfect, but at least print out the gender of a noun would be perfect thanks
×
×
  • Create New...