Developer Reveals Hidden Complexity of Adding Furigana to Word Documents
A developer building EZFurigana, a tool that automatically adds Japanese pronunciation guides above kanji, attempted to extend it to support Microsoft Word documents. The effort revealed that DOCX files are not simple documents but ZIP packages containing multiple XML files, styles, and assets stitched together. A key challenge was that visible text in Word is often split across multiple internal 'runs', making it unsafe to find and replace Japanese characters directly. To avoid corrupting documents, EZFurigana modifies only the main content file and skips text that spans risky structural boundaries. An additional hurdle was enabling in-browser preview, since browsers cannot natively render Word documents and require conversion to another format such as PDF.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in