View Single Post
Old 12-27-2014, 09:00 AM   #3
verydeepwater
Member
verydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterverydeepwater can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 86
Karma: 12586
Join Date: Nov 2012
Device: Ipad and Kindle Fire
Ruby Markup

[QUOTE=Doitsu;3007323]In epub3 epubs and Kindle azw3 books, you could use ruby markup..

Thanks very much for this, it took me a while to try this but now I have. Quite amazing actually, but I am still having a problem using the text exported from the Word file in a way that the necessary tags can be added without having to re-type the whole thing.

The original was in Microsoft Word, with the pinyin above the corresponding character - formatted in Microsoft Chinese proofing tools, which I don't have installed. As I mentioned, by converting this with Calibre, you can get an html file with each character marked by a span tag. It would be possible to replace each span tag to mark all the pinyin text with <rt> </rt> and the Chinese characters with <rb> </rb> as in the Ruby coding in your link. The trouble is that the html text produced from the word file is not in the desired order. It seems the Ruby formatting needs the base to come first<rb>, followed by the corresponding pinyin marked as <rt>. In the html file, produced from the Word file, the text on the top comes first, always followed by the text which is underneath. Thus you would basically need to re-type or cut and paste very word to get things in the desired order.

Any help with this would be greatly appreciated.

Last edited by verydeepwater; 12-27-2014 at 09:04 AM.
verydeepwater is offline   Reply With Quote