/usr/share/perl5/Locales/DB/CharacterOrientation/Tiny.pm is in liblocales-perl 0.34+ds-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | package Locales::DB::CharacterOrientation::Tiny;
use strict;
use warnings;
# Auto generated from CLDR
use if $Locales::_UNICODE_STRINGS, 'utf8';
$Locales::DB::CharacterOrientation::Tiny::VERSION = '0.09';
$Locales::DB::CharacterOrientation::Tiny::cldr_version = '2.0';
my %rtl = (
'ur' => '',
'ku' => '',
'he' => '',
'fa' => '',
'ps' => '',
'ar' => '',
);
sub get_orientation {
if ( exists $rtl{ $_[0] } ) {
return 'right-to-left';
}
else {
require Locales;
my ($l) = Locales::split_tag( $_[0] );
if ( $l ne $_[0] ) {
return 'right-to-left' if exists $rtl{$l};
}
return 'left-to-right';
}
}
1;
|