Yajee Posted June 28, 2022 Posted June 28, 2022 Hello folks, I need to be able to search the text of a specific dictionary PDF file for the definition of words, after typing a word I need the definition of in the Alfred search bar, is there a way where it could open up the particular PDF file and then search that PDF for the word? I have no idea how to create a workflow. Thank you.
vitor Posted June 28, 2022 Posted June 28, 2022 PDFs don’t make good good dictionaries to search in programmatically. It’s impossible to say for sure without looking at the PDF in question, but it is highly unlikely it is organised in a way one could reliably extract the definitions. Either way, the Workflow’s search format would never be the PDF directly because it’s not a good format for the task. To use it like you want, you first need it in an appropriate file type. macOS’ Dictionary app can import external dictionaries, and those can be accessed in Alfred.
Yajee Posted June 28, 2022 Author Posted June 28, 2022 Thanks for your response @vitor. Here is the PDF that I would like to be able to search, it's an Arabic-English dictionary, not sure if this gives you a better idea of whether it is achievable or not?
vitor Posted June 28, 2022 Posted June 28, 2022 Yeah, about what I suspected. You should try to find a proper macOS dictionary. Dictionary.app comes with the Oxford Arabic Dictionary (Arabic-English). If you activate that, you can see results from within Alfred (Alfred Preferences → Features → Dictionary).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now