Adds Phonetic Alphabet captions above each word in a special mode

One example is to add Pinyin captions above all Chinese text, just like

This feature is very helpful for language learners.

Any ideas?

Now I realized the feature I am looking for is called The Ruby Annotation (<ruby>: The Ruby Annotation element - HTML: HyperText Markup Language | MDN)