Burak Gürsoy avatar Burak Gürsoy committed 06e76a5

Pod and distro fixes

Comments (0)

Files changed (5)

 Revision history for Perl extension Lingua::TR::ASCII
 
-Time zone is GMT+2.
+0.13 Sun Sep  9 04:28:28 2012
+    => Pod and distro fixes.
 
 0.12 Mon Jul  9 18:32:46 2012
     => Text::Unidecode is now required.
 
 Read the module's POD for documentation and examples.
 
-INSTALLATION
+NSTALLATION
 
-To install this module type the following:
+Just use the cpan shell to install this module. From a command prompt, type:
 
-   perl Makefile.PL
-   make
-   make test
-   make install
+    cpan
 
-or under Windows:
+or
 
-   perl Makefile.PL
-   nmake
-   nmake test
-   nmake install
+    perl -MCPAN -e shell
 
-DEPENDENCIES
+to enter the cpan shell. And then enter:
 
-Test::More is needed for running distro tests.
+   install Lingua::TR::ASCII
 
-COPYRIGHT
+COPYRIGHT & LICENSE
 
-Copyright (c) 2011 Burak G�rsoy. All rights reserved.
-
-LICENSE
-
-This library is free software; you can redistribute it and/or modify 
-it under the same terms as Perl itself, either Perl version 5.12.1 or, 
-at your option, any later version of Perl 5 you may have available.
+See the LICENSE file bundled with this distribution.

lib/Lingua/TR/ASCII.pm

 use base qw( Exporter );
 use Lingua::TR::ASCII::Data;
 
-our $VERSION = '0.12';
+our $VERSION = '0.13';
 our @EXPORT  = qw( ascii_to_turkish turkish_to_ascii );
 
 sub ascii_to_turkish {
 
 =pod
 
+=encoding utf8
+
 =head1 NAME
 
 Lingua::TR::ASCII - (De)asciify Turkish texts.
 =head1 DESCRIPTION
 
 If you try to write Turkish with a non-Turkish keyboard (assuming you
-can't change the layout or can't touch-type) this'll result with the
-ascii-fication of the Turkish characters and this actually results
+can't change the layout or can't touch-type) this will result with the
+C<ascii-fication> of the Turkish characters and this actually results
 with bogus text since the text you wrote is not literally Turkish anymore
 (although the Turkish speaking people and search engines will most
-likely understand it). And in some cases, ascii-fication of some sentences
+likely understand it). And in some cases, C<ascii-fication> of some sentences
 might result with funny words. This module tries to mitigate this problem
-with a wrapper around a pre-compiled decison list.
+with a wrapper around a C<pre-compiled> decision list.
 
 The original creator of the decision list states that it was "created based
 on 1 million words of Turkish news text using the GPA algorithm". See
 
 =head2 turkish_to_ascii STRING
 
-Converts the supplied C<STRING> into an ascii equivalent.
+Converts the supplied C<STRING> into an C<ascii> equivalent.
 This function is a wrapper around L<Text::Unidecode>.
 
 =head1 SEE ALSO

lib/Lingua/TR/ASCII/Data.pm

 
 =pod
 
+=encoding utf8
+
 =head1 NAME
 
 Lingua::TR::ASCII::Data - Data sets for Lingua::TR::ASCII
         }
         if ( @buf ) {
             require Data::Dumper;
-            diag sprintf "[%s] Mismatching chars: %s", $id, Data::Dumper::Dumper( \@buf );
+            diag sprintf '[%s] Mismatching chars: %s', $id, Data::Dumper::Dumper( \@buf );
         }
     }
     else {
-        diag sprintf "[%s] Char count mismatch %d != %d",
+        diag sprintf '[%s] Char count mismatch %d != %d',
                         $id,
-                        scalar( @got ),
-                        scalar( @expected );
+                        scalar @got,
+                        scalar @expected;
     }
     return $got, $expected;
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.