in reply to Re^6: Namespace/advice for new CPAN modules for Thai & Lao ( Regexp::CharProps - User Defined Character Properties )
in thread Namespace/advice for new CPAN modules for Thai & Lao
In your code example: ...only the first item in the OR'ed list should ever see action...
SYNOPSIS only shows whats possible, it can be repetitive and incorrect as long as the syntax is valid. And when the exports are few, might as well show them all instead of "..."
Regexp::CharProps
My suggestion was that you call yours Regexp::CharProps::Thai not Regexp::CharProps. Also to distribute a helper parent module Regexp::CharProps with it, so that others can add Regexp::CharProps::AnonyRands or whatever ... a new well named place for these definitions to live
Regexp::Thai::CharClasses
So are you're going to have more Thai Regexp's that aren't CharSlasses?
I think you got that backwards, it should be Regexp::CharClasses::Thai :)
Or it should go into Lingua::Thai::RegexpCharClasses? In case you're going to have more Lingua::Thai things that aren't RegexpCharClasses
Yes. It definitely wouldn't work on an upper-ascii-type encoding such as Thai originally began with, without some form of encoding/decoding going on. I guess I put "UTF8" because that is what gets used most with Thai, and what I knew would work having developed strictly with that. I presume any Unicode type should work equally well, though I don't claim to be an expert on Unicode.
Right :) the numbers are unicode code points , independent of encoding
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Namespace/advice for new CPAN modules for Thai & Lao ( Regexp::CharClasses::Thai / Lingua::Thai::RegexpCharClasses )
by Polyglot (Chaplain) on Mar 24, 2015 at 09:32 UTC | |
by Polyglot (Chaplain) on Mar 24, 2015 at 13:22 UTC | |
by Anonymous Monk on Mar 25, 2015 at 00:25 UTC |