Guide

Find in Page That Ignores Accents (đ, ệ, é)

You can search a Markdown document in QuickMark by typing the letters without their accents. Type dong bo and it finds đồng bộ. Type cafe and it finds Café. On a Mac the find bar is ⌘F; on iPhone it is the menu, then Find in Document.

A QuickMark find bar on iPhone reading dong bo with the counter 1 of 2, above a line of Vietnamese text where the words đồng bộ are highlighted as the current match
Query typed without a single accent, match found on the accented words. Captured on an iPhone 17 Pro simulator while writing this post.

This matters more than it sounds. If you write Vietnamese notes, your document is full of , , and đ, but the moment you are on a borrowed keyboard, or you simply cannot remember whether you wrote chuẩn bị or chuẩn bi, a literal search comes back empty. Same problem for a German ü, a French è, a Spanish ñ.

What the search actually does to your query

Both sides of the comparison get flattened before anything is compared. The query you type and the text in the document are each split into a base letter plus its marks, the marks are thrown away, and what is left is matched case-insensitively.

So becomes o, becomes a, ü becomes u. Because it happens on both sides, it works in both directions: typing the accents correctly still finds the word, and typing them incorrectly usually does too. Searching đong in a document that contains both đồng and dong returns both, not one.

One letter gets special treatment. Vietnamese đ is not a d with a mark on it, it is its own letter with a stroke through the stem, so the general rule above leaves it alone. It is folded to d on purpose, because typing dong bo to find đồng bộ is exactly what a Vietnamese writer does.

Measured on one document

Here is the demo file used for every screenshot in this post, and what each query returned. Nothing here is from memory: the counts come from running the queries through the real code, and the iPhone column is read off the screenshots.

# Bàn giao đợt phát hành

Đồng bộ dữ liệu trước khi bàn giao cho đội vận hành.

## Ghi chú

- Kiểm tra lại **đồng bộ** hai chiều
- Café crème, Straße, København
- Deploy đang chạy trên máy chủ phụ
You typeWord in the documentMac, editorMac, previewiPhone
dong bođồng bộ222
đồng bộđồng bộ222
du lieudữ liệu111
ban giaoBàn giao / bàn giao222
dangđang111
cafeCafé111
strasseStraße101
kobenhavnKøbenhavn001
Four QuickMark find bars stacked, showing the queries cafe, strasse, kobenhavn and du lieu, each reporting 1 of 1
Four separate launches on the same document, iPhone. Each query was typed with no accents at all.

The last two rows are the honest edge. ß and ø are not accented letters, they are separate letters, so the strip-the-marks rule has nothing to strip. Vietnamese đ is folded because it was worth writing the special case for; Danish ø, German ß and Polish ł are not folded by the app's own search. The system find bar on iPhone is Apple's, and it happens to fold a couple of those too, which is why that column reaches further right.

Practical version: if the word is accented, drop the accents and search. If the word contains a different letter such as ß or ø, type that letter. Everything inside ó, è, ü, ñ, , territory is covered.

Where the find bar lives

Mac

  • ⌘F puts the cursor in the search field in the toolbar.
  • ⌘G is next match, ⇧⌘G is previous. Both wrap around: past the last match you land back on the first.
  • The field shows a live 3/12 counter, so you know how many hits there are before stepping through them.
  • What gets searched follows the pane you are in. In the editor it searches the Markdown source, so a search can land inside **bold** markers or a link's URL. In preview it searches the rendered text, where those markers no longer exist.

iPhone

Tap and choose Find in Document. The search bar appears at the bottom of the screen with the same kind of counter and up/down chevrons, and the document dims behind it so the current match stands out.

The QuickMark overflow menu open on iPhone with New Document, Open File, Find in Document, Get Info, Export, Print and Share listed
Find in Document sits in the … menu, between the file items and the output items.
Full iPhone screen with QuickMark showing a Vietnamese document, the words đồng bộ highlighted, and the find bar reading dong bo, 1 of 2
The whole screen for context. The document stays visible above the bar so you can read the match in place.

Three things the search does not do

  • No regular expressions. It is a plain substring search. . and * match themselves.
  • No whole-word option in the app's own bar. Searching bo matches inside bộ and inside bottom alike, which is usually what you want when you are hunting a Vietnamese phrase and usually not what you want for a three-letter English word. Add a second word to narrow it.
  • Case is always ignored. There is no case-sensitive toggle in the Mac find bar, so API and api are the same query.

If you keep several files open at once, the search runs on the document in front of you, not across the whole set: see working across many files with tabs for how that stacks up. If you read on an iPad, split view is the other feature worth knowing, and if you are just getting files into the app in the first place, start with opening .md files on iPhone and iPad.

Get rendered Markdown previews everywhere

QuickMark is a free, native Markdown app for Mac, iPhone & iPad, with live preview, export, and publish built in.

Download on the App Store or try the live preview in your browser →