/[js_locale]/trunk/sort.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/sort.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (hide annotations)
Sun Oct 24 19:16:22 2004 UTC (19 years, 5 months ago) by dpavlin
File MIME type: text/plain
File size: 299 byte(s)
first import of JavaScript Locale support.

Right now, it's hr_HR.ISO-8859-2, but different locales can be created using
included perl script from local machine settings.

Tested on Firefox 1.0 PR and Internet Explorer 6.0


1 dpavlin 1 #!/usr/bin/perl -w
2    
3     use strict;
4     use locale;
5    
6     my $chars;
7    
8     for (my $i = 0; $i <= 255; $i++) {
9     $chars .= chr($i);
10     }
11    
12     # extract just wordcharacters
13     $chars =~ s/\W//g;
14    
15     my @c = split(//,$chars);
16    
17     print STDERR "printable letters:$chars [",$#c,"]\n";
18    
19     print "var _lc_locale = '".join("",sort @c)."';\n";
20    

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26