Coloring Chinese Characters and Adding Pinyin Tone Marks

Coloring Chinese Characters and Adding Pinyin Tone Marks

Postby Ernie » Tue Apr 14, 2020 10:18 pm

There are a couple hidden features for those learning Chinese that I'll document here.
Both of these require you have a pinyin column that uses tone NUMBERS, not tone marks. If you try it out and have any suggestions for improvement, you can post here.

Currently, the only way to turn these features on is during the creation of a new deck. If you have an existing deck you want to use, you can export (with statistics) to a cloud location, update with new header (setting) information, and add back as a new deck.

Sample flashcard data:

* | add-pinyin-marks | 2
* | color-chinese | 1-2
Text | Text 2 | Text 3
三 | san1 | three
上午 | shang4 wu3 | morning
下午 | xia4wu3 | afternoon

There are two different settings here:

add-pinyin-marks : if you have a column of pinyin with tone numbers, this setting will display the pinyin with tone marks. A possible advantage: when searching in the card listing, you will use tone numbers, not tone marks. On the header row, the number to the right is the Text # of your pinyin.


color-chinese : This setting will color your Hanzi characters based on tone. This requires you to have the corresponding pinyin (with tone numbers) in another column. (The app doesn’t know tones without your help.). You must use “5” for neutral tone. Pinyin can be with or without spaces. On the header row, the example shows “1-2” to the right. This means that Text 1 is the Hanzi and will be colored using the pinyin in Text 2.

If you import a deck with this color-chinese header, you’ll get a new row in "Global Options" called “Tone Colors”. You can change tone colors here. The current colors should match Pleco’s default. Also note that if you are using a custom layout, you can turn coloring on and off for each side separately, so the question can be without colors, and the answer side can reshow the Chinese, but colored.

To see a working example, search the Shared Library for a deck called "Chinese marks and color example"
Attachments
Picture1.png
Picture1.png (46.82 KiB) Viewed 3603 times
Ernie
Site Admin
 
Posts: 4617
Joined: Fri Oct 01, 2010 6:12 pm
Location: San Francisco / Taiwan

Re: Coloring Chinese Characters and Adding Pinyin Tone Marks

Postby Lawine » Fri Jul 10, 2020 3:30 am

Hello !

Thank you for this app and all theses features !

I tried the method with coloring the pinyn but don't seem to make it work.

I wrote exactly your example in a new sheet and the tones option did appear in the general option but my tones are still just black with a number in my deck.

It isn't really that big of a problem for me but I kind of wanted to test theses new options =D !

Is there a step I miss ?

Thank you again for your hard work !
Lawine
 

Re: Coloring Chinese Characters and Adding Pinyin Tone Marks

Postby Ernie » Fri Jul 10, 2020 5:10 am

Download the deck with private deck code of "cmace"

That should show you a working example. You can export.
In the "color-chinese" row, if you are using a spreadsheet to enter your own text, be careful because Excel will convert "1-2" to a date by default. You an prefice with an apostophe to force as text. Example: '1-2
Ernie
Site Admin
 
Posts: 4617
Joined: Fri Oct 01, 2010 6:12 pm
Location: San Francisco / Taiwan

Re: Coloring Chinese Characters and Adding Pinyin Tone Marks

Postby Lawine » Fri Jul 10, 2020 8:39 am

Thank you a lot, it's working perfectly !
I fear that it was the formatting of the number in google sheet which caused the problem. Thanks to your example deck, it worked after I pasted the two lines in my own sheet.

Flashcard Deluxe is so awesome, I discover news features every month :D !!
Lawine
 

Return to Comments, Questions and Feedback