Skip to content

About

The free Chinese pop-up reader for Mac and Windows. Highlight Chinese in any app and see what each word means in that sentence. Open source, works offline.

Topics

Resources

Contributing

Stars

26 stars

Watchers

0 watching

Forks

Repository files navigation

Longyan Reader

A pop-up Chinese reader for Mac and Windows that understands the sentence you're reading.

Download for Mac  ·  Get it for Windows  ·  Try it in your browser

Release Downloads macOS 15 or later Windows 10 and 11 MIT License


Longyan Reader on a Mac, one character in three apps. In a news article, 白 in 白送 opens a card: free of charge. In a group chat, 白 in 辩白了半天 opens a card: to explain. In a PDF novel, the sentence 很白的道理,谁都懂 opens a card with its translation, and 白's row opens to clear. The app picks each meaning from the sentence.

Highlight Chinese in Safari, Chrome, WeChat, Preview, Mail or any other app, and a card opens with what each word means in that sentence. Instead of every definition the word has ever had, you see the one the writer meant, with pinyin, a translation of the whole phrase, and a note when the word carries more than its gloss can say.

It takes about a tenth of a second on a Mac, and it all happens on your own computer. The language model runs there too, so nothing you read leaves it. There's no account and nothing to pay for.

One sentence, two answers

最近工作太卷了,我想躺平. Work has been so intense lately, I just want to lie flat.

Look up 躺平 in a dictionary and you get "to lie stretched out" and "to opt out of the rat race", in that order. Longyan reads the sentence, picks the second, and tells you it's online slang usually set against 内卷.

Left, the word card for 躺平: 'to opt out of the rat race', a cultural note, and the dictionary's two meanings with the slang one checked. Right, the phrase card for the whole sentence: a translation, then each word with its meaning here.

What it does

Select a single word and you get its meaning in context, pinyin colored by tone, and the dictionary's other senses underneath in case you want them. Select a phrase or a whole sentence and you get a natural translation first, then every word in it with its meaning there. Any word can be opened to see the rest of its senses or to pick a different one yourself.

Meanings always come from CC-CEDICT, so the model chooses between real dictionary entries and never invents one. On top of that sit 1,040 short notes on 693 words where a gloss falls short, written ahead of time and checked against the dictionary: 面子, 关系, 内卷, 摸鱼, 正能量 and hundreds more.

Every lookup goes into a history with its sentence and the meaning the word had there. You can search it or export it to Anki or a spreadsheet. If Anki is open with the AnkiConnect add-on, a button on the card adds the word to Anki straight away, with its pinyin, its sentence and the meaning it had there.

The app lives in the menu bar. Cards follow light and dark mode, use Liquid Glass on macOS 26, and can be dragged, pinned and zoomed. Tone colors follow Pleco's order or MDBG's, or colors you pick. Everything runs from one shortcut, ⌃⌥L.

How well it works

On 175 lookups taken from real reading, Longyan picked the right meaning 168 times. A single word takes about 0.12 seconds, a whole phrase about 0.3.

That's because it ships its own model rather than leaning on Apple Intelligence. We tested both, along with other sizes of Qwen, on 52 held-out sentences where the right meaning comes with a note:

Model Right Wrong notes Per lookup
Qwen 3.5 4B, built in 51 of 52 1 0.15 s
Qwen 3.5 9B 51 of 52 0 0.62 s
Apple Intelligence 3B 38 of 52 5 0.55 s
Qwen 3.5 2B 35 of 52 2 0.18 s

The 4B model was as accurate as one twice its size and four times faster. Measured on 2026-11-19 on an M5 Pro. scripts/evals.sh runs every test, and DEVELOPMENT.md explains the method and what else was tried.

Install on a Mac

  1. Download the zip, unzip it, and drag Longyan Reader to your Applications folder.
  2. Open it. macOS asks if you're sure, since it came from the internet. Click Open.
  3. When the app asks, click Open System Settings. If Longyan Reader isn't in the list, click + and choose it from Applications. Then switch it on. It needs this to read the text you highlight. (The pane is called Accessibility on macOS 26 and earlier, and Device Control and Data Access on macOS 27.)
  4. Download the reading model when it's offered (2.7 GB), or click Later and get it from the menu bar any time.

Or install it with Homebrew:

brew install mapuchuu/tap/longyan-reader

Then open it and carry on from step 2. Either way the app is signed and notarized by Apple, and it keeps itself up to date.

Updating from 0.1? 1.0 is signed differently. If the app asks for Accessibility again after the update, turn it on again. If it already looks on, switch it off and on.

You'll need a Mac with Apple silicon running macOS 15 or later, and about 4 GB of free space for the model download. The app itself is 37 MB.

Using it on a Mac

Highlight some Chinese, with a drag or a double-click, and a small eye appears beside it. Click the eye, or press ⌃⌥L. You can also right-click the selection and choose Look Up in Longyan under Services. With nothing highlighted, ⌃⌥L looks up the word under the pointer in apps that allow it, such as TextEdit; web pages don't, so in Safari, Chrome and apps built on them, highlight the word first. Right-click the eye to hide it in that app or turn it off; ⌃⌥L keeps working either way.

Press Escape to close a card. Drag its bottom-right corner to make the text bigger or smaller, and double-click the corner to reset it. Your lookups are under Lookup History in the menu bar icon's menu.

The menu's top line says what's wrong when something is, such as Accessibility being off or the reading model still downloading. Opening the app again from Finder, Spotlight or the Dock shows a small window that says it's running and where its menu is.

The reading model

Meanings and translations come from Qwen 3.5 4B (Apache 2.0), running through llama.cpp and Metal. The app offers to download it the first time you open it, and it stays under Download Reading Model in the menu after that. If you already have qwen3.5:4b in Ollama, the app uses that copy instead.

Without the model you still get the dictionary, pinyin and notes, with meanings in dictionary order. On macOS 26 with Apple Intelligence turned on, Apple's model picks meanings and translates phrases instead, less accurately.

Windows

Longyan Reader for Windows has the same dictionary, notes and reading model as the Mac app, and cards that look and work the same way. It sits in the notification area, and Ctrl+Alt+L does what ⌃⌥L does on a Mac.

What you need

  • Windows 10 (version 1809 or later) or Windows 11, 64-bit, on an x64 PC or an ARM64 one (Snapdragon X and other Windows on Arm PCs).
  • On x64, a processor with AVX2 and FMA, which most Intel Core and AMD Ryzen processors from the last ten years have; many Celeron and Pentium chips don't. Without them the app still works, with meanings in dictionary order and no translations.
  • 8 GB of memory.
  • About 4 GB of free space, most of it for the 2.7 GB reading model.

The card comes up at once with the dictionary's meanings, and the model's picks and translation follow. They take longer than on a Mac.

Install

From the Microsoft Store. The Store keeps it up to date.

Or from GitHub:

  1. Download the installer for your PC: x64 or ARM64. Not sure which? Settings > System > About shows it under System type.
  2. Open it. It installs for your account only, so it doesn't ask for an administrator. The installer isn't signed, so Windows shows "Windows protected your PC" with an unknown publisher. Click More info, then Run anyway. Your browser may also say the file isn't commonly downloaded; choose Keep. If Smart App Control is on (Windows 11), it blocks unsigned apps; install the Microsoft Store version instead.

Then:

  1. The welcome window offers the reading model (2.7 GB). Download it, or get it later in Settings.
  2. Select some Chinese in any app and click the eye, or press Ctrl+Alt+L.

There's no permission to give. Open at login is on unless you turn it off in the welcome window or in Settings. The GitHub version checks for updates once a day after you agree to it, or when you choose Check for updates; when you say yes to one, it installs in the background and the app opens again.

Using it on Windows

Right-click the icon in the notification area for Lookup history, Settings, Report a problem and Exit (and Check for updates, in the GitHub version); double-click it for Settings. The menu's top line says what's wrong when something is, such as the reading model still downloading. You can change the shortcut in Settings. On keyboards where Ctrl+Alt+L types a letter, the welcome window picks another. Ctrl and the mouse wheel make a card's text bigger or smaller.

Some things differ from the Mac:

  • Without the reading model, cards list meanings in dictionary order. There's no Apple Intelligence to fall back on, and the app doesn't use Ollama.
  • Tone colors are fixed. There's no choice of Pleco's, MDBG's or your own yet.
  • Words are split by a splitter of the app's own, trained to split as the Mac does. It splits words the same way as the Mac on about 39 sentences in 40.
  • The model uses the graphics chip when it passes a quick test, and the processor otherwise.
  • A card's work starts when the pointer reaches the eye, or when you click it or press the shortcut, not as soon as you select. Text you select only to copy it doesn't start one. The model runs at low priority, so other programs come first while a card is made.
  • Listen needs a Chinese voice. If there isn't one, the card says how to add it (Settings > Time & language > Speech).
  • In apps that don't share the selection, the app copies it with Ctrl+C and puts your clipboard back. It doesn't do this in terminals, where Ctrl+C would stop what's running.

Your history, settings and the model are in %LOCALAPPDATA%\LongyanReader (the Store version keeps them in its own folder under %LOCALAPPDATA%\Packages). The app keeps a log in its logs folder with timings and errors, never the text you look up, and the count of lookups described under Privacy in its Trace folder. It goes online for the same things as on the Mac: the model download, update checks in the GitHub version, and Report a problem, which opens a pre-filled GitHub issue in your browser: GitHub sees those details when the page opens, and nothing is posted until you submit it.

To uninstall, find Longyan Reader in Settings > Apps > Installed apps (Apps & features on Windows 10) and choose Uninstall. It removes your history, settings and the reading model with the app.

Privacy

Nothing you look up is ever sent anywhere. The app goes online for three things only: downloading the reading model when you ask (a plain file from hf-mirror.com, or huggingface.co if that fails, checked against its SHA-256), checking GitHub for updates once you've agreed to it (nothing about your computer is sent), and Report a Problem, which opens a pre-filled GitHub issue in your browser: GitHub sees those details when the page opens, and nothing is posted until you submit it. Add to Anki talks only to Anki on your own computer.

Your history stays in ~/Library/Application Support/LongyanReader/History on a Mac, or %LOCALAPPDATA%\LongyanReader on Windows, unless you export it. Keep 30 days, turn it off, or clear it under Keep History in the menu (in Lookup history on Windows).

The app also keeps a count of lookups for troubleshooting, in the Trace folder beside your history. For each lookup: the day, which app, how the text was read, how the card was made and what it showed (kinds and counts, never words), and how long each step took. For the eye: how often it appeared, stayed, was clicked or went unused. Never the text, a window title or a time of day. Lines older than 30 days are removed when the app starts. It is never sent or added to a report, and clearing history deletes it. With history off it counts nothing. On a Mac, /Applications/Longyan\ Reader.app/Contents/MacOS/LongyanReader --trace-summary in Terminal prints the totals.

The privacy page has the details.

Under the hood

When you finish a selection, the app asks the frontmost app for the selection and the paragraph around it through the Accessibility API. That works in native apps, web views, Chrome and Electron; apps that won't share their selection get a copy-and-restore fallback that leaves your clipboard as it was.

The dictionary ships compiled into a sorted binary file that's searched in place, so it opens in about 3 ms instead of 1.4 seconds of parsing. The model sees the sentence and the dictionary's numbered meanings, and each pick is read straight from its probabilities for the next token, one pass per word instead of generated text. Translations stream in as they're written, limited to the 67,535 tokens found in the dictionary's English. On a Mac, work starts the moment the eye appears, so the card is often ready before you've clicked, and stops if you don't click. On Windows it starts when the pointer reaches the eye. A Mac with less than 16 GB of memory lets the model go after two idle minutes, others after five, and any Mac lets it go sooner when macOS says memory is short.

DEVELOPMENT.md covers all of it, including how to build the app.

The name

Longyan is 龙眼, "dragon eye", the Chinese name for the longan fruit. The eye in the icon is the same one that appears beside your selection.

FAQ

Does it work on Windows, Intel Macs or iPhone?

On Windows 10 and 11, yes: see Windows. Not on Intel Macs or iPhone. The Mac app needs Apple silicon and macOS 15 or later, which is what lets the model run this fast.

Does it need the internet?

Only to download the reading model once, and for update checks if you turn them on. Lookups work offline.

Why does it need Accessibility?

It's how a Mac app reads text selected in another app, along with the sentence around it. When you finish a selection, Longyan reads it to check whether it's Chinese and whether to show the eye, and starts on the card so it's ready if you click. Nothing you select is kept unless you look it up. On Windows there's no permission to give.

Does it read traditional characters?

Yes, traditional and simplified both work. Text that looks like Japanese or written Cantonese gets a line on the card saying so: the dictionary and the pinyin are Mandarin's.

A meaning was wrong. What should I do?

Choose Report a Problem in the menu, or open a wrong meaning issue. Include the sentence and the word; most wrong meanings can only be fixed with the sentence.

The app quit, or something else broke

Choose Report a Problem from the menu bar icon. If the app quit on its own, macOS kept a crash report: open Console, choose Crash Reports, find LongyanReader and attach the newest one. The app keeps no other log. Your history and the count of lookups are never part of a report unless you paste from them. On Windows, the app offers a report the next time it opens, with the end of its log, which never has the text you look up.

How do I uninstall it?

If you installed it with Homebrew, brew uninstall --zap longyan-reader removes the app and everything below. Otherwise, quit the app, then move these to the Trash:

  • Longyan Reader in Applications
  • ~/Library/Application Support/LongyanReader (the reading model and your history)
  • ~/Library/Logs/LongyanReader, if it's there (history from before 1.0)
  • anything named LongyanReader or com.mapuchuu.longyanreader in ~/Library/Caches and ~/Library/HTTPStorages

Then remove it from System Settings > Privacy & Security > Accessibility (Device Control and Data Access on macOS 27), and from System Settings > General > Login Items & Extensions if you turned on Open at Login. Its settings go with defaults delete com.mapuchuu.longyanreader in Terminal.

On Windows, uninstall it from Settings > Apps. That removes your history, settings and the model too.

Contributing

Reports of wrong meanings help more than anything else. Issues and pull requests are welcome; see CONTRIBUTING.md.

License

The code is MIT licensed. The dictionary is CC-CEDICT, © MDBG and contributors, under CC BY-SA 4.0; the app's dictionary files and the notes, examples and cues in Resources/ (which quote its definitions) are derived from it and use the same license. Word frequencies in notes/frequency.txt come from jieba (MIT). The app also includes llama.cpp and Sparkle on the Mac and WinSparkle on Windows, all MIT. The Qwen model is downloaded separately and is Apache 2.0.

Meanings and translations come from a language model and can be wrong. The notes were written by Claude and checked against the dictionary.

About

The free Chinese pop-up reader for Mac and Windows. Highlight Chinese in any app and see what each word means in that sentence. Open source, works offline.

Topics

Resources

Contributing

Stars

26 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages