I'm hacking on a perl script I wrote to create Chinese Flashcards. The only problem is creating the pin yin. For those of you who do not know, PinYin is basically english text with tonal marks and different intonations. There are four tone marks in Chinese PinYin. The tone marks go directly above the letter ( a, e, i, o, u ):

1: A straight horizontal dash.
2: A diagonal dash from right to left moving downward.
3: A "V" like mark.
4: A diagonal dash from left to right moving downward.

I can get tones 2 and 4, but 1 and 3 I cannot supply. I am using the chr() command and just using simple text. I can create these graphically using .gif letters, but that increases overhead. If anyone knows a way to get the other two tone marks please reply. Want a harder challenge? Try getting the tone marks on a letter that has an oummlaut. Thanks in advance, Scott A Runnels

In reply to Chinese PinYin and PERL by Macphisto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.