Has anyone any experience with Text::Wrap and wrapping languages other than Roman-based languages? I'm sure it works fine for English (where the definition of "fine" may vary from person to person), and probably fine for other Roman-letter-based languages, such as French or Italian or Portuguese, etc.. However, I'm more curious about anyone having experience with it in other languages, such as Russian, Hebrew, Arabic, Hindi, and, what seems to me to be the killer, Asian languages such as Chinese (Simplified or Traditional), Korean, Japanese. (Ok, I realise that Hindi is an Asian language, but I'm not sure whether its glyphs are single-sounded, like Roman glyphs, or are syllabic, like Chinese.)

What would seem useful to me is a wrapper around Locale::Maketext that would automatically wrap the text based on the current screen width (to be determined separately). This would allow the developer (and translator) to ignore line lengths in most circumstances (especially for corner cases where the text, after variable interpolation, would end up near the normal 80-character limit).

If you have experience with other formatting modules, such as Text::Autoformat (is that even a Damian-approved Damian module?), with other languages, I'd like to hear those, too. Since I don't actually have any Chinese text to play with, and even if I did, I wouldn't be able to tell if the formatting made sense or not, I'm looking for some broader experience.

Thanks,


In reply to Text::Wrap and non-Roman languages by Tanktalus

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.