twighk / tghz-word-tone-annotator

A Microsoft Word add-in for adding tone graphs, pinyin or zhuyin to Hanzi(汉字).
https://twighk.github.io/tghz-word-tone-annotator/
9 stars 1 forks source link

Is is possible to annotate for research paper? #18

Closed karpalig closed 3 years ago

karpalig commented 3 years ago

Is it possible manualy rewrite output style?

I would like to use this solution for citation in a scientific paper. I have inserted chinese characters in brackets after English translation and want to add pinyin before chinsee characters as given here:

image

Chapter "Using'Chinese'Characters" in Style&Guide&for&Essays&in&Chinese&Studies

Best, Alex

karpalig commented 3 years ago

basically

(真人) -> (zhenren 真人) or 真人 -> (zhenren 真人)

twighk commented 3 years ago

Sorry, it's not possible to change the output style.

twighk commented 3 years ago

You could do it be editing the function: public static XElement withRuby(List<XAttribute> tattributes,List<XElement> tproperties, XNamespace w, string bottom, string topstr, int tone, bool topcolour = false, bool bottomcolour = false, List<string> colors = null) So that instead of building the XML for ruby text, it returns a text element.