How to Type Characters for Phonetic Guide Over a Word in Microsoft Word

microsoft wordtext formatting

I am trying to prepare a small document in Sanskrit language. The text that I am trying to type are very well available with my Windows 8 OS and I could type them fairly well.

However, my requirement is that I am preparing this document as a guide to read and as well as pronounce correctly. The pronunciation symbols followed are as ancient as the language and are similar to the IPA.

To put all my need in English, assume I want to type something like this:

Sample text

The numbers, alphabets, symbols that is seen in the first line with small font size are phonetic guide and the text "Sample" in the second line is the actual text.

I have no problem in typing the second line. But it is time consuming for me to type and place the characters in the first line using text box as this is the only way I figured to achieve the result. As it can been seen this is very tedious and more importantly all those efforts goes waste if the second line is edited.

So, my question: Is there any easy way for me accomplish the above at the same time allow me to edit the text in both lines?


Clarification:

A sample (and actual) text that I am trying to type is:
Real Sanskrit sample The second line is a word that has to be hymned with specified octave on first, last but one and last alphabet. The octave is mentioned as numerals in the first line (reading 1, 0 and 3 from left to right). 0th octave is the highest not silence 😉

I am not expecting the word processor to do any automation nor I do not want any macro support as well. After posting this question I stumbled on field code for equation and it would be easy if I can do something like with equation editor by invoking it with field code { EQ \f(1,S) }.

The sample text typed as equation fraction field:

Equation fraction field

results in:

Field output

The disadvantages are:

  1. No kerning.
  2. Line between numerator and denominator – can't be removed.
  3. Equal size of font for both parts of fraction.

I guess there is no easy way. Does other publishing tools like Pagemaker does have any tricks on its sleeve?

Best Answer

You're doing it completely wrong. Fractions are exactly for what they're named: showing fractions, with a line in between at the baseline

I guess there is no easy way. Does other publishing tools like Pagemaker does have any tricks on its sleeve?

There are ways to achieve that in any decent editing tools, for example MS Office, Libre Office, Hancom Office... and of course even TeX. In fact you'd find the answer immediately if you've googled something like "MS Word phonetic guide"

Even html supports it with the <ruby> tag and CSS also has the Ruby Styling Module. The tag is meant for Ruby character which are commonly used in East Asian texts for phonetic guides but of course it can be used for any languages. The linked wikipedia article also uses <ruby> tag (just look at the page source) so you can see the examples clearly in your browser

The ruby characters appears above the base word, and can be adjust to lie on top of a single letter or a group of letters easily. Unfortunately superuser's simple html doesn't support ruby tag, but many other language stackexchange communities like Japanese have special ways to write it in markdown as explained here

To add it in MS Word just select the text to add ruby and click "Phonetic guide" in the Home/Font group

MS Word phonetic guide

The feature is generally available for East Asian languages, so if it doesn't appear on your ribbon then just right click on the ribbon > Customize the Ribbon... and add the "Phonetic guide" button to the Home > Font group, or you can add one East Asian language to the preferences list

Phonetic guide customization

The ruby text is also represented as an equation field code. If you press Alt+F9 or go to Preferences > View and check Show > "Field code" (or right click on the annotated text > Toogle Field Codes) you'll see it's encoded as something like

EQ \* jc2 \* "Font:Yu Mincho" \* hps48 \o\ad(\s\up 47(Tōkyō),東京)

Here jc is the ruby style, for example jc5 is a vertical ruby text, hps is the font size of the ruby text (48pt in this case) and 47 after \up is the distance to move above. However most of the parameters are optional except the vertical distance. So the minimum you can have is like this

EQ \o\ad(\s\up 20(ruby text),main text)

Just press Ctrl+F9, paste the code, adjust the distance and then Alt+F9

It's also possible to add ruby text automatically using VBA but probably you're not interested in it anyway

See also

Related Question