How to Format a Chinese eBook with pinyin
I have a Word document in Chinese with the pinyin characters above each character. (These are the phonetic rendering of the Chinese to help recognition of the characters - as used by Chinese Children learning to read.) The pinyin need to sit directly above the correct character.
By converting the file in Calibre, you can get close to the desired result by using a suitable font, and positioning the pinyin correctly above the characters by using a span tag for each Chinese character and another span tag for each pinyin. The characters are positioned by setting the span tag to vertical align:bottom, and a left margin of -0.7em and the span for the pin yin set to vertical-align:top and a positive left-margin.
This method uses a huge number of span tags, and I wonder if this is the correct method or if anyone knows a better way.
|