Skip to content

A browser extension that lets you look up Chinese words by hovering over them, working on desktop and mobile

License

Notifications You must be signed in to change notification settings

ph0ngp/linglook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LingLook

LingLook

automated test status

Table of Contents

Introduction

LingLook is a browser extension that lets you look up Chinese words by hovering over them. It works on Chromium based browsers, Firefox (desktop and Android version), Safari (macOS and iOS).

Installation

Features

  • Look up Chinese words by hovering over them, on both desktop and mobile.
  • Supports both simplified and traditional Chinese characters.
  • Displays the word's definition, pinyin, HSK level, TOCFL level.
  • Detailed character information: stroke order animation, frequency, radical, origin, etc.
  • Copy the word to clipboard.
  • Search the word with Google Images.
  • Supports keyboard shortcuts for desktop users.
  • Customize the extension's appearance and behavior through the settings page.
  • Supports English, Vietnamese and partial support for French dictionaries.
  • (For Vietnamese learners only) Displays the word's Sino-Vietnamese transliteration (phiên âm Hán Việt).

Screenshots

On desktop

definitions
character
copy-search

On mobile

mobile

How to use

  • Enable the extension in your browser. Pin it to your toolbar for easy access.
    • You can click on the extension icon to enable/disable the popup function.
  • On desktop, use the mouse to hover over a Chinese word, the popup window will appear.
  • On mobile devices, there is a circular puck on the screen. Move that puck to hover over the target word and the popup window will appear.
    • Single-tap on the puck to temporarily disable/enable the lookup function.
    • Double-tap on the puck to switch the lookup direction between up and down.
  • Inside the popup window, you can see the word's definition, pinyin, HSK level, TOCFL level.
    • Click on the word, and you can copy it to clipboard or search it with Google Images.
  • Switch to the "Character" tab, here you can play stroke order animation and see other character information like frequency, radical, origin, etc.
  • Clicking on the Settings gear icon will open the extension's settings page. Here you can change various settings including theme, show/hide HSK/TOCFL levels, simplified/traditional character order, dictionary language, keyboard shortcuts, etc.
  • Troubleshooting: If for some reason the extension does not work as expected, try enabling/disabling the extension, reloading the page, or restarting the browser.

Codebase state

All functions are working as intended. However, for now, the codebase still contains unused code from the original project (10ten), making it much more complex than necessary. Some components have been repurposed but still retain their original names. For details, check notes.md.

Building from source

pnpm install --frozen-lockfile

# For Chrome/Chromium browsers
pnpm build:chrome
# Load the `dist-chrome` folder as an unpacked extension in chrome://extensions

# For Firefox
pnpm build:firefox
# Load the `dist-firefox` folder temporarily via about:debugging

# For Safari
pnpm build:safari
# 1. Open the Xcode project in the `xcode13` folder
# 2. Select your target device (iOS/macOS)
# 3. Build and run the project through Xcode

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or an Issue to suggest improvements or report bugs.

Data sources

Credits

This project started as a fork of the 10ten Japanese Reader project. So, huge thanks to the author @birtles for his wonderful work. It has served as the perfect cross-platform base for LingLook. I recommend anyone who is learning Japanese to check out his project.

License

The included data sources are licensed as specified in the Data sources section.

The remaining part of the software is licensed under the GNU General Public License v3.0 by Phong Phan.

About

A browser extension that lets you look up Chinese words by hovering over them, working on desktop and mobile

Resources

License

Stars

Watchers

Forks

Packages

No packages published