macOS fails to include apparent ligatures in pasted text
|Product:||macOS + SDK
If I select a block of text in a PDF in Preview and copy it to the Clipboard, when I paste the text elsewhere, the ligatures (such as "fi", "fl", etc.) are missing altogether.
Steps to Reproduce:
1. Decompress attached archive (MRFP_June 2015_AFM982 8 15 FRENCH.pdf.zip) to obtain PDF file (MRFP_June 2015_AFM982 8 15 FRENCH.pdf). DO NOT DO ANYTHING TO PDF FILE (rename, copy, annotated, etc.). Leave it as it is, where it is.
2. Open PDF file in Preview.
3. Go to page 37 of PDF.
4. Select heading text "Fonds canadien à versement fixe imaxx".
5. Press command-C to copy the text.
6. Switch to TextEdit.
7. Open a new document in TextEdit.
8. Press command-P to paste the text.
I expect macOS to insert the text "Fonds canadien à versement fixe imaxx"
macOS inserts "Fonds canadien à versement xe imaxx"
(the "fi" in "fixe" is missing)
Two very weird things:
*1* In the PDF, the "fi" in "fixe" is NOT EVEN A LIGATURE. Yet somehow Preview treats it as one, and fails to copy it properly.
*2* Even weirder: If I do ANYTHING to the PDF file in Sierra, i.e. edit its name, annotate the PDF, etc., then the problem disappears, which suggests that the changes somehow cause Sierra to reindex the text, and then "fi" no longer causes problems.
See for example "MRFP_June 2015_AFM982 8 15 FRENCH ANNOTATED.pdf" (also attached). Same PDF, with a red rectangle added on the front page.
You can also see the problem with "fi" in "fixe" by using double-click and drag to select word by word. Somehow "fi" and "xe" are treated as TWO WORDS.
2014 Mac Pro with 32 GB of RAM running OS X 10.12.3 + Sharp PN-K321 Display and Apple Cinema HD Display
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!