summaryrefslogtreecommitdiffstats
path: root/perl-install/lang.pm
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2002-12-05 16:46:57 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2002-12-05 16:46:57 +0000
commite2e704f39548c7cb59669e6f2525e6e05f1dc826 (patch)
treee328035d0202e8814cbe92e11c6f8f9bf8284eff /perl-install/lang.pm
parentc4b21045d06b01e40d4b28d309a1808d8fa2f8ec (diff)
downloaddrakx-e2e704f39548c7cb59669e6f2525e6e05f1dc826.tar
drakx-e2e704f39548c7cb59669e6f2525e6e05f1dc826.tar.gz
drakx-e2e704f39548c7cb59669e6f2525e6e05f1dc826.tar.bz2
drakx-e2e704f39548c7cb59669e6f2525e6e05f1dc826.tar.xz
drakx-e2e704f39548c7cb59669e6f2525e6e05f1dc826.zip
fix syntax & style
Diffstat (limited to 'perl-install/lang.pm')
-rw-r--r--perl-install/lang.pm38
1 files changed, 19 insertions, 19 deletions
diff --git a/perl-install/lang.pm b/perl-install/lang.pm
index 7fa15b377..4bce6aa7a 100644
--- a/perl-install/lang.pm
+++ b/perl-install/lang.pm
@@ -549,37 +549,37 @@ sub charset2kde_font {
# the [0] field tells the font filename,
# if field [1] is empty, that means the X11 fontset mechanism has ot be used.
my %charset2pango_font = (
- 'jisx0208' => ["k14.pcf"], [ "" ],
- 'ksc5601' => ["baekmuk_gulim_h_14.pcf"], [ "" ],
- 'gb2312' => ["gb16fs.pcf"], [ "" ],
- 'Big5' => ["taipei16.pcf"], [ "" ],
- 'tis620' => ["norasi_n.ttf"], [ "Norasi" ],
- 'tscii' => ["tscava.ttf"], [ "TSC_Avarangal" ],
- 'utf_vi' => ["cu12.pcf"], [ "ClearlyU", ],
- 'utf_hy' => ["artsnk_m.ttf"], [ "Artsounk" ],
- 'utf_ka' => ["cu12.pcf"], [ "ClearlyU" ],
- 'iso-8859-7' => ["k.pfb"], [ "Kerkis" ],
- 'iso-8859-8' => ["cu12.pcf"], [ "ClearlyU" ],
- 'iso-8859-6' => ["cu12.pcf"], [ "ClearlyU" ],
+ 'jisx0208' => [ "k14.pcf" ],
+ 'ksc5601' => [ "baekmuk_gulim_h_14.pcf" ],
+ 'gb2312' => [ "gb16fs.pcf" ],
+ 'Big5' => [ "taipei16.pcf" ],
+ 'tis620' => [ "norasi_n.ttf", "Norasi" ],
+ 'tscii' => [ "tscava.ttf", "TSC_Avarangal" ],
+ 'utf_vi' => [ "cu12.pcf", "ClearlyU" ],
+ 'utf_hy' => [ "artsnk_m.ttf", "Artsounk" ],
+ 'utf_ka' => [ "cu12.pcf", "ClearlyU" ],
+ 'iso-8859-7' => [ "k.pfb", "Kerkis" ],
+ 'iso-8859-8' => [ "cu12.pcf", "ClearlyU" ],
+ 'iso-8859-6' => [ "cu12.pcf", "ClearlyU" ],
#- Nimbus Sans L is missing some chars used by some cyrillic languages,
#- but tose haven't yet DrakX translations; it also misses vietnamese
#- latin chars; all other latin and cyrillic are covered.
- 'default' => ["NimbusSansL-Regu.pfb"], [ "Nimbus Sans L" ],
+ 'default' => [ "NimbusSansL-Regu.pfb", "Nimbus Sans L" ]
);
sub charset2pango_font {
- my ($charset, $type) = @_;
+ my ($charset) = @_;
- my $font = $charset2pango_font{$charset}->[1] || $charset2pango_font{default}->[1];
- "$font";
+ $charset2pango_font{$charset}->[1] || $charset2pango_font{default}->[1];
}
sub lang2pango_font {
my ($lang) = @_;
- my $charset = lang2charset($lang) or return;
- my $font = $charset2pango_font($charset);
- "$font";
+ my $charset = lang2charset($lang) or log::l("no charset found for lang $lang!"), return;
+ my $font = charset2pango_font($charset);
+ log::l("charset : $charset ; font : $font");
+ return $font;
}
sub set {