Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 2.87 KB

README.md

File metadata and controls

53 lines (31 loc) · 2.87 KB

hanlib

This is a project to make a library of free interactive texts for learners of classical/literary Chinese.

features

Texts are shown with an interactive English translation. Click on any character to see its English translations in a pop-up dictionary, with its meaning in the current context highlighted explicitly, to make texts easy to understand.

popup dictionary and interactive word highlighting

Words and set expressions consisting of multiple characters are glossed as well.

alt text

This all works through a domain-specific language for glossing Chinese texts. It is inspired by the conventions of kanbun kundoku, a traditional Japanese technique for translating and glossing classical/literary Chinese texts.

demonstrating the gloss-editing UI

A variety of pronunciation schemes are available to choose from, so as to make Hanlib a valuable resource for people throughout the Sinosphere and beyond.

current focus

The current focus is to transcribe + format the content of the 1927 textbook Introduction to Literary Chinese by J. Brandt. This book is in the public domain in the US. You can access a digitized copy from a US IP address here:

The biggest challenge at the moment is transcribing the portions in mixed Chinese/Latin script. OCR tools can automate some of the process, but not all of it. If you have time, please consider helping out by transcribing the remaining "Vocabulary" and "Notes" chapters listed here.

texts   CC BY-NC-SA 4.0

The following license information applies to the texts in the texts folder.

Creative Commons Non-Commercial Attribution-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

development

To run the app locally:

  1. Install packages from the repository root directory

    npm install

  2. Run prebuild script

    npm run prebuild

  3. Run Next.js dev server

    npm run dev

After making changes to the files in the texts/ directory, you may need to run the prebuild script again.