Jump to content

Search the Community

Showing results for tags 'unicode'.

  • 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
    • Advanced Tips & Tricks
  • Alfred Themes
  • Alfred Remote for iOS
    • Alfred Remote Discussion & Help
    • Remote Connection Troubleshooting
  • Alfred 5 Early Access
    • Alfred 5 Early Access


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

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start




Website URL




Found 15 results

  1. 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
  2. Hello! I'm attempting to set up a workflow that includes passing a unicode character with a diacritic through a shell script. However, the "Run Script" node in the workflow seems to be converting its input to another representation of the characters which cause issues. In particular, the character being passed into the bash script is when the issue seems to be occurring. More specifically, I'm using a workflow that takes the currently selected Japanese text, and does something with it. In this example, the bash script just re-echos the input, and then the text is searched on Jisho.org (a Japanese-English dictionary site). The character `が` demonstrates the issue. The version which is passed through the bash script changes to another representation of `が` which on Jisho.org is searched as a separated `か` and the ` ゙` (dakuten diacritic). I've attached a simplified workflow below which presents my issue. It includes the action I would like to achieve, as well as a couple other example cases showing that the character seems to be changed on input into the bash script (e.g., setting the character within the bash script works as desired, but setting it within one bash script and passing it to another does not). I'm assuming this question has been answered before, but the answers I found with my various search term attempts did not seem to turn up the answer I was looking for. I apologize in advance for the likely repeat. Any suggestions and/or explanations would be appreciated. Thank you for your time! Google Drive link to workflow: https://drive.google.com/file/d/1YXoz4KWt_4XbTJtrdM4MKJlmSe9rompl/view?usp=sharing Alfred 4.6.3 macOS 12.2.1
  3. I am working on a workflow that allows users to search through a list of Unicode icons. The most likely results are then returned to Alfred so that they may be displayed. The problem I am having is figuring out how to display the Unicode icons in Alfred. For instance, I see the following: When I return this JSON [ { uid: '1F5B1', title: 'computer mouse', subtitle: '1F5B1', arg: '1F5B1', autocomplete: 'computer mouse', icon: '🖱️' }, { uid: '1F5A8', title: 'printer', subtitle: '1F5A8', arg: '1F5A8', autocomplete: 'printer', icon: '🖨️' }, { uid: '1F50B', title: 'battery', subtitle: '1F50B', arg: '1F50B', autocomplete: 'battery', icon: '🔋' }, { uid: '2328', title: 'keyboard', subtitle: '2328', arg: '2328', autocomplete: 'keyboard', icon: '⌨️' } ] So my question is, how do I display the unicode icon in Alfred? Thank you in advance!
  4. Search Unicode Search Unicode is an Alfred 4 Workflow to lookup and reverse lookup Unicode characters and emoji with their names. This workflow is also published on GitHub at https://github.com/blueset/alfred-search-unicode. Download Download it at its GitHub release page. You need to install Python 3 on your macOS in order for this to work. You can install that with Homebrew using the command below: brew install python Usage Search character by description Type u keyword (ex. u superscript) to get a list of characters matching the keyword. Press Return to copy the character to clipboard (ex. ⁰) Press Cmd + Return to copy its Hex code to clipboard (ex. U+2070) Press Option + Return to copy its name to clipboard (ex. Superscript Zero) Search character by code point Type u codepoint [[codepoint] ...] (ex. u fffd ff10) to look up characters by its codepoint. The same 3 options apply here too. Search emoji by name Type e keywords (ex. e face) to look up characters by its codepoint. Press Return to copy the character to clipboard (ex. 😀) Identify characters in a string Type uid string (ex. uid ( ͡° ͜ʖ ͡°)) to identify characters in a string. For the first 4 rows (hex sequence, integer sequence, UTF-8 sequence and XML escape sequence): Press Return to copy the sequence to clipboard (ex. 28 20 0361 B0 20 035C 0296 20 0361 B0 29) For the following rows that identifies each individual characters: Press Cmd + Return to copy its Hex code to clipboard (ex. U+2070) Press Option + Return to copy its name to clipboard (ex. Superscript Zero) Credit This workflow depends on resources from: arp242/uni 1.0.0 with Unicode 12.1 Data Twemoji 12.1.4 for emoji preview License Copyright 2019 Eana Hufwe <https://1a23.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  5. 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.6. 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. Supports Alfred's AppleScript API, including saving settings to info.plist and calling External Triggers. 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. API for running AppleScript/JXA scripts. 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).
  6. 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.
  7. Hi all, I'm trying to use snippets to insert symbols (up arrow, down arrow, etc.) into anki cards on a Mac. My goal is to be able to insert them when making Anki cards but I am clueless on where to begin. Can someone point me in the right direction on where to learn? Thanks!
  8. 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.
  9. 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
  10. 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?
  11. 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.
  12. 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?
  13. 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
  14. 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>
  15. 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!
  • Create New...