Jump to content

Search the Community

Showing results for tags 'unicode'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Alfred 3
  • Make the Most of Alfred
    • Discussion & Help
    • Bug Reports
    • Alfred Feature Suggestions
    • Themes
  • Alfred Workflows
    • Share your Workflows
    • Workflow Help & Questions
  • Alfred v2 Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting


  • Articles
    • Forum Integration
    • Frontpage
  • Pages
  • Miscellaneous
    • Databases
    • Templates
    • Media


  • New Features
  • Other

Found 11 results

  1. It looks like Alfred is automatically converting workflow arguments into decomposed form. I swear it didn't used to do this, but I can't be certain. I've created a workflow you can use to test this. The workflow is invoked with the "char" keyword and shows the unicode codepoints for the workflow argument. If I paste in a precomposed character, the workflow shows me the info for the decomposed form. I've verified by running the workflow binary in the Terminal that the workflow does properly handle precomposed characters, so it must be Alfred decomposing it. To test, install the workflow and type "char 각". It should return U+AC01 HANGUL SYLLABLE GAG but instead it returns U+1100 HANGUL CHOSEONG KIYEOK, U+1161 HANGUL JUNGSEONG A, U+11A8 HANGUL JONGSEONG KIYEOK.
  2. This emoji workflow scrapes Unicode.org to pull down the latest set of emoji!!. On the first run, you must be connected to the Internet so that you can generate the initial Emoji set. As new emoji are released you are able to re-query unicode.org to download the latest emoji set. There may be situations where you have emoji that do not display correctly on osx but would render correctly on ios . This is because the emoji list on ios and osx are updated at different times. Commands: init emoji e <search string> The first time you run this workflow use the command init emoji to start the download process. To trigger an emoji search you use the e button and start typing a search term You can get funky and use - to exclude something such as in this case https://github.com/jeeftor/EmojiTaco/releases Releases: * 0.9.6 - Added new commands like: * 0.9.28 - New Icon * 0.9.29 - Auto-Init if no emoji is loaded yet * 0.9.32 - Updated to support new Unicode.org file format * 0.9.36 - Added support for automated testing to detect changes in the Unicode source document. A recent change disabled the plugin. * 0.9.38 - Extra headers - Supports latest Unicode File format change * 0.9.54 - Latest and greatest - works and has been working for some time now * 0.9.55 - Updated documentation to match what we have now Commands alt/option (⌥) - Show Unicode Values cmd (⌘) - Show Python String ctrl (⌃) - Show Python String decoded shift (⇧) - Display the image in QuickLook
  3. I found myself chatting with people from time to time and needing to send equations. Obviously when Latex is available it's preferable but sometimes it's not. As a result I need a solution that requires zero installs but formats text a little better than you can get with the standard characters on the keyboard. Example: let's not say x^2 but x². Let's not say sqrt(x) but √(x). I want to be able to do this without looking up characters in a character table and I don't want it to add to how much I have to type much. Enter snippets. They allow for decently complex notation without needing Latex. Because this is just unicode it works in most browsers and on most smartphones as well. Github link.
  4. Unicode input to python script

    I'm trying to pass in a character like γ into a python script through alfred, (as well as use it as a dict key within that script). I keep getting the error 'ascii' codec can't decode byte 0xce in position 0: ordinal not in range(128). Does anyone know what this is about, or how I can achieve unicode character input into a python script?
  5. Hello. I try to write my first script filter plugin, but I've encountered a unexpected trouble with Unicode (non-ASCII) characters. This is a simplest example I could invent: xmloutput = """ <?xml version="1.0" encoding="utf-8" ?> <items> <item arg="testitem"> <title>FooBar</title> <subtitle>foo bar is a test item</subtitle> <icon>icon.png</icon> </item> </items> """ print(xmloutput) (I call it from script filter as /usr/local/bin/python3 outputtest.py.) It works fine until I want to add some non-ASCII characters: xmloutput = """ <?xml version="1.0" encoding="utf-8" ?> <items> <item arg="testitem"> <title>FooBær</title> <subtitle>foo bær is a «test item»</subtitle> <icon>icon.png</icon> </item> </items> """ print(xmloutput) Then it fails: [ERROR: alfred.workflow.input.scriptfilter] Code 1: Traceback (most recent call last): File "outputtest.py", line 12, in <module> print(xmloutput) UnicodeEncodeError: 'ascii' codec can't encode character '\xe6' in position 88: ordinal not in range(128) Why it happens? I can't believe that Alfred do not use Unicode in input/output. I think the root of problem in something else, but I can't find out where is it.
  6. Hi, I'm on OS X 10.10.5 and Alfred is on v2.8.3. I've noticed that Alfred doesn't search Contacts with an accent-insensitive collation like Spotlight does. I have a contact entered as "Rob Muñoz". Using Spotlight, I can search with "Munoz" and he will come up. Alfred won't do the same. Now the interesting thing is Alfred's folders and files search logic does seem to use an accent-insensitive collation. After creating two folders named "TestFolder" and "TestFölder", both will show up in a "show" or "open" search when using the terms "folder" or "földer". So, it seems the issue may be specific to Contacts alone. Thanks for an awesome product! Best, Trevor
  7. There are great workflows for searching for unicode characters and emoji, the distinction between the two is somewhat arbitrary. Are there any workflows out there that search across both unicode characters and emoji?
  8. unicode woes

    So I have this Python script: #!/usr/bin/python # -*- coding: iso-8859-15 -*- import os import subprocess p = subprocess.Popen(['pbcopy'], stdin=subprocess.PIPE) p.stdin.write("٭") p.stdin.close() p.wait() os.system("osascript -e 'tell application \"System Events\" to keystroke \"v\" using {command down}'") If I run that from the Terminal, it outputs the funky little star ("٭") to the console. I've tried putting that exact same Python script into a workflow, though, and using the hotkey only ever outputs "Ÿ≠" instead. What am I doing wrong? =-Peter -- peter rogers @ home | http://www.peterrogers.info When I was 23 myself, it amazed me that T.S. Eliot had written "The Love Song of J. Alfred Prufrock" at 23. Now it makes more sense to me, because of the refrain "There will be time..." Only a young person really believes that, I think. -- 'docbrite' on LiveJournal
  9. IMPORTANT NOTE ABOUT HANGING PROCESSES ON SIERRA (2017-04-03) Versions of Alfred-Workflow older than 1.25 cannot launch background processes properly on Sierra. In fact, they regularly hang quite dramatically and consume 100% CPU Users (in particular) affected by this bug should install and run this workflow, which can find and fix any workflows with broken versions of Alfred-Workflow. The workflow library for Python GitHub | Documentation A feature-rich library for developing Alfred workflows in Python The library is simple to install, has no external dependencies, is very well-documented and maintained, and boasts an eye-wateringly high feature-to-size ratio at under 400 KB. It is the only Python library that is always up-to-date with Alfred's features. Main features Supports all Alfred features from 2.0 to 3.5. Catches, logs and notifies users (and developers) of errors in Workflows. No more confusing, silent failure. Super-simple, yet powerful data caching (e.g. from a web service) and storage, including session-scoped data. Easy-to-use Workflow settings API. Keychain access for secure storage (and cross-machine syncing) of sensitive data, like passwords and API keys. Tunable and understandable Alfred-like fuzzy search (e.g. got matches Game of Thrones as well as Baby Got Back. Or not: that's up to you.) Extremely lightweight, but full-featured, HTTP library with Requests-like interface, but just 12 KB instead of > 2 MB. Convenient access to standard macOS icons, for high-quality, familiar icons without adding size to the library. Also available via proper English. Pre-configured, built-in logging to enable simpler Workflow debugging. Painlessly run (update) scripts in the background without blocking your workflow, so you can still show "old" results while fetching new ones. Simple support for 3rd-party libraries your Workflow relies on. "Magic" arguments to make developing/debugging Workflows so much easier, especially when helping less technically-inclined users. With "magic" arguments, you and your Workflow's users can open the Workflow's log file in Console.app, its cache and data directories in Finder, and its root directory in Finder or Terminal from the comfort of Alfred's query box. You can also delete the cache/data/settings if something is corrupted. Your workflow can update itself via GitHub releases. Smart handling of non-ASCII. Query sale will match result salé, but query salé will not match result sale. Functions to support migrating settings/data from older versions of your workflow. Alfred 3-only features Workflow variables Advanced modifiers Alfred 3-only updates Re-run Script Filters And as you can see from the above links, there is extensive documentation, including a two-part tutorial on building a Workflow from scratch. Examples Here are a few examples of how you can do some pretty cools stuff in just a few lines of code. A simple Workflow I made to search Packal in ~90 lines of code. A simple Workflow to search your recent Pinboard posts in ~50 lines of code. A polished, user-friendly, wicked-fast Workflow to search your recent Pinboard posts in ~200 lines of code. Remember, each of these Workflows also has—for free—full error-catching and -logging support, and the ability to open its log file (which contains all errors) via Alfred's query box. No need to ask users to grub around in ~/Library or flounder in Terminal here. This is not the Workflow library 2014 deserves, but it's the one it needs Feedback If you have any bug reports/feature requests, add them either here or on GitHub. More info The documentation is the definitive source of information on the Alfred-Workflow library. The User Guide and Tutorial provide fairly extensive information both on how to use Alfred-Workflow and write Workflows in general (if you're new to this lark).
  10. When using the Open URL action with the URL set only to {query}, Alfred fails silently if the passed arg contains non-ASCII characters. The following XML, which Alfred accepts and correctly displays in its results list, does nothing when the arg is sent to the Open URL action. The first item is as returned by Python's xml.etree.ElementTree library, the second I edited back to pure text form to see if that worked (it didn't). In both cases, Open URL performs perfectly provided {query} is only part of the URL, but fails if {query} is the entire URL. <?xml version="1.0" encoding="utf-8"?> <items> <item valid="yes"> <title>Göbekli Tepe - Wikipedia, the free encyclopedia</title> <subtitle>http://en.wikipedia.org/wiki/Göbekli_Tepe</subtitle> <arg>http://en.wikipedia.org/wiki/Göbekli_Tepe</arg> <icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns</icon> </item> <item valid="yes"> <title>Göbekli Tepe - Wikipedia, the free encyclopedia</title> <subtitle>http://en.wikipedia.org/wiki/Göbekli_Tepe</subtitle> <arg>http://en.wikipedia.org/wiki/Göbekli_Tepe</arg> <icon>/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/BookmarkIcon.icns</icon> </item> </items>
  11. Before I saw that bevesce had already created this (with more features), I finished one of my own. Anyway, it makes it easy to search and insert Unicode characters by their name in the current text (if it's supported). Here's the download Here's the source Technical details: For the technically interested, the difference between this and bevesce's is that this is written in ruby as opposed to Python and has the characters hard coded in this script. It makes it slightly faster with the expense of including only a subset of all possible characters. There is a limit to how big the script, or the array in it, can be it seems or it will crash when being loaded by Alfred. Keep up the good work!