A script I have written that makes heavy use of Unicode character and block name properties relies on the auto-generated Name.pl and Blocks.pl scripts in the Perl/lib/unicore/ directory. Unfortunately, as of Perl 5.8.5, the Blocks.pl script is no longer generated for no apparent reason that I can find. The mktables script in Perl 5.8.5, 5.8.6 and 5.8.7 all build the Blocks.pl script, but they never actually write it. (The line is commented out.)

Compare 5.8.4 mktables to 5.8.5 mktables. Notice the file->Write line is commented out in 5.8.5.

5.8.4 $Blocks->Write("Blocks.pl"); 5.8.5 # $Blocks->Write("Blocks.pl");

I can find no reference in the change log about why this is. There is nothing about Blocks.pl being depricated. There IS some commentary in Blocks about Unicode Blocks and the newer, superior, Unicode Scripts, but there is no indication that Blocks.pl is no longer available. Interestingly enough, mktables has the file->Write line for Scripts.pl commented out too, so I couldn't use that either. In fact,

# $Bidi->Write("Bidirectional.pl"); # $Number->Write("Number.pl"); # $General->Write("Category.pl"); # $Lbrk->Write("Lbrk.pl"); # $ArabLink->Write("ArabLink.pl"); # $ArabLinkGroup->Write("ArabLnkGrp.pl"); # $Short->Write("JamoShort.pl"); # $Scripts->Write("Scripts.pl"); # $Blocks->Write("Blocks.pl");

are ALL commented out for no given reason.

Am I missing something? Is there a notice somewhere about not having any of those available anymore? Uncommenting the commented out lines and re-running mktables generates everything without detectable error. While that is fine for me locally, it becomes problematic for scripts that I am planning to distribute.

For a demo script showing WHY I really want to have access to Blocks.pl and Name.pl see my scratchpad. (You may need to uncomment the Blocks line in mktables and run it before this will work, and you will probably need at least one font installed that has good Unicode coverage.)

2005-12-07 Retitled by holli, as per Monastery guidelines from Some unicore scripts no longer auto-generated?
Original title: 'Some unicore scripts no longer auto-generated?'

2005-12-07 Retitled by holli, as per Monastery guidelines
Original title: 'Some unicode scripts no longer auto-generated?'


In reply to Some unicore scripts no longer auto-generated? by thundergnat

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.