Siri Shortcuts

Gwilym

Member
Apologies if this has been asked, but I’m just scratching the surface of the new Siri shortcuts and think Pleco could benefit its users with integration. For example, “scan this” would open up the live OCR viewer. Or asking Siri to translate a word (in English), and it opening Pleco to those entries.

Cheers.

Gwilym
 

mikelove

皇帝
Staff member
You can actually do a lot of that now via our URL callbacks (documented in the “version history” page of our instruction manual for some reason) - use those with Shortcuts’ x-callback-url support and you can pretty easily redirect text to Pleco.
 

MarkDMill

Member
So I was able to find those URL schemes in the version history...and let me just say it would be REALLY nice to have it all documented in once place as the version history has bits scattered around. The most complete/recent are at the top, obviously, but the variables of those are the least-explained because it assumes you've read the previous explanations as they come in.
 

MarkDMill

Member
If you do, can I request the ability for it to return content via x-callback? I.e. I have a term in Drafts and use an action that not only searches for that term, but automatically returns content into Drafts--e.g. the first definition from a specific dictionary, an example sentence, stroke order, etc. That would be SUPER useful to me.
 

mikelove

皇帝
Staff member
TBH if we were going to support that we'd probably do it through an App Extension instead, since we can include much more flexible content that way.
 

Calion

秀才
If you do, can I request the ability for it to return content via x-callback? I.e. I have a term in Drafts and use an action that not only searches for that term, but automatically returns content into Drafts--e.g. the first definition from a specific dictionary, an example sentence, stroke order, etc. That would be SUPER useful to me.
Let me second this request,@mikelove. Right now, x-success seems to do nothing (except force Shortcuts to wait indefinitely). I’m trying to write a shortcut that converts Hanzi to pinyin, but I need Pleco to return dictionary info to do that. Please?
 

mikelove

皇帝
Staff member
I think we're more likely to use a JSON API than a URL-based one at this point, but we're definitely looking at some things we can do there once iOS 16 (with its greatly enhanced Shortcuts API support) becomes more ubiquitous.
 
Top