taigi-sandhi-visualization

Highlights tone sandhi changes in Taiwanese romanization on the MOE dictionary site. Changed tones are marked in red with a tooltip showing possible base tone → sandhi tone.

作者
hey0wing
今日安裝
0
安裝總數
1
評價
0 0 0
版本
1.2
建立日期
2025-08-15
更新日期
2025-08-18
尺寸
15.3 KB
授權條款
MIT
腳本執行於

台語變調視像化 taigi-sandhi-visualization

Highlights tone sandhi changes in Taiwanese romanization on the MOE dictionary site.

example

Features

  • Tone Sandhi Highlighting:
    • Automatically detects and highlights tone changes in Taiwanese romanization text on the MOE dictionary site.
    • Tone changes for every syllable except for the last one in a phrase.
    • Only 南部 / Southern (漳州腔 / Zhangzhou) sandhi is supported
  • Color Coding:
    • Red: Normal tone sandhi.
    • Blue: Tone sandhi before the suffix.
    • Green: Neutral tones.
  • Tooltips: Clicking a highlighted syllable to view the tone sandhi diagram.

Installation

  • Note: Device & browser compatibility
    • Desktop: Chrome, Brave, Safari, Firefox, Edge
    • Android: Firefox or Edge
    • iOS: Safari with Userscript (Free) or Tampermonkey (USD2.99)
  1. Install a Userscript Manager:
    • Follow the Greasy Fork tutorial to install one.
    • Or install Tampermonkey (Recommended), Violentmonkey or Greasemonkey on your own
  2. Add the Userscript:
    • Greasy Fork (Recommended): Click Here and install the script directly by clicking "Install this script".
    • Otherwise, copy the script directly from taigi-sandhi-visualization.user.js.
      • Open your userscript manager, create a new script, and paste the code.
  3. Visit the MOE Dictionary:
    • Navigate to sutian.moe.edu.tw. The script will automatically process Taiwanese romanization text.

Planned Improvements

  • Add tone sandhi for other regions
    • 北部 / Northern (偏泉腔 / Quanzhou-alike) (5 -> 3)
    • 海口 / Coastal (泉州腔 / Quanzhou) (2 -> 5; 5,6,7,8 -> 6)
  • Add Chao's Tone letter / Pitch contour for visualization
    • Real-time audio conversion(?)

Credits