#!/usr/bin/env perl # # Create a transliteration table for the TableTransliterator. # It just gets the values from the Test::Unidecode module of perl. # # Based on a script by Ævar Arnfjörð Bjarmason # use feature ':5.10'; use strict; use warnings; use Unicode::UCD 'charinfo'; use Text::Unidecode; use Data::Dump 'dump'; # # Based on a script by Ævar Arnfjörð Bjarmason # my $row = $ARGV[0]; #if (!$row) { # exit 1; #} sub new_trans { my $char_val = shift; my $t; if ($t = unidecode($char_val) and $t !~ /[?].*/) { return $t; } return "?"; } binmode STDOUT, ":utf8"; say <