Categories
Apple Ask

Search fi (one character) as fi (two characters) in mdfind

In the pdf below, the two characters f and i is contracted into one character fi as in “significance”. So that if I try to search “Brown Adipose Tissue: Function and Physiological Significance” (f and i are two characters) by mdfind, I would not find this pdf. Is there a way to search such PDF files with mdfind by “… Significance” where “f” and “i” do not ligature?

https://journals.physiology.org/doi/full/10.1152/physrev.00015.2003

$ mdfind -onlyin . "(kMDItemTextContent=='Brown Adipose Tissue: Function and Physiological Significance'c)" # two characters.
$ mdfind -onlyin . "(kMDItemTextContent=='Brown Adipose Tissue: Function and Physiological Significance'c)" # one character
/Users/xxx/Downloads/x/physrev.00015.2003.pdf

Note that the following should not be used as it searches in kMDItemTitle as well.

$ mdfind -onlyin . 'Brown Adipose Tissue: Function and Physiological Significance' # two characters
/Users/xxx/Downloads/x/physrev.00015.2003.pdf

Leave a Reply

Your email address will not be published. Required fields are marked *