You can get an example document which contains some sample pinyin here, and which you can copy and use to become familiar with this add-on, as well as read more about how pinyin works. Alternatively create or use a document of your own containing some pinyin.
Getting the add-on
Activating the add-on
Tone numbers to marks
Tone marks to numbers
With the Convert tones to numbers option selected;
will be shown on the sidebar as
HTML color markup
This panel shows the result of converting pinyin with tone numbers to marked up pinyin. In this case though, the result is a piece of html that you can copy into some other application.
Many applications that use flash cards or similar media require this kind of code to display properly colored and marked up pinyin. You can use this panel as a feeder to these applications
- Convert tones. Select the direction of conversion as shown earlier
- Colorize. By default, conversions from tone numbers to tone marks are colored according to the pinyin standard. This option turns off and on this colorization process.
- Freeze panels. This stops conversion as you move through the document. If the panels are frozen, the Replace button is disabled to prevent accidental replacement of text not associated with what is being shown on the sidebar.
The current item
The helper operates on the whole element that the cursor is currently on (the whole paragraph, list item, table cell and so on) by default. You can also convert a selected area simply by selecting the text in the document. For example, below I’ve selected an entire column of a table. The conversion is shown in the sidebar. The replace button will do all the selected elements at once.