Swift source code to accompany the article on SwiftUI on macOS: text, rich text, markdown, html and PDF views.
text
Trying to display formatted text in plain text, markdown, rich text, HTML, and PDF using SwiftUI and in AppKit/WebKit views within SwiftUI.
How you can use regexes to make search more powerful and reduce the number of irrelevant entries it returns.
A collection of zero-width characters, including the joiner used to create compound emoji, and others to control ligatures and line breaks.
Searching the text content of PDF documents often doesn’t work well, sometimes not at all. And recovering what you can see is text can also fail miserably.
Text can be searched by eavesdroppers and crawlers to discover its content and extract it for other purposes. How to make their task more difficult using Unicode.
What’s the difference between plain text, marked-up plain text, and rich text? How can I tell them apart, and how do they work?
We often need to compare two documents, such as legal agreements or revisions of a report. How can we do this if they’re PDFs?
How can you create a new accented or other character which doesn’t appear in Unicode? It depends on whether you want it in text, or PDF.
When you write a comment to an article here, or edit a Property List, you’re editing XML. Two or three characters won’t work properly.