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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
|
# $Id: polish.perl,v 1.2 1999/07/11 07:44:13 RRM Exp $
#
# polish.perl for polish babel, inspired heavily by german.perl
# by Ross Moore <ross@mpce.mq.edu.au>
package polish;
print " [polish]";
sub main'polish_translation {
local($_) = @_;
#s/;SPMquot;\s*('|`|;SPMlt;|;SPMgt;|\\|-|;SPMquot;|=|\|)/&get_polish_specials($1)/geo;
s/;SPMquot;\s*('|`|;SPMlt;|;SPMgt;|\\|-|;SPMquot;|=|\||[aelrcnoszAELRCNOSZ])/&get_polish_specials($1)/geo;
$_;
}
sub get_polish_specials {
local($char) = @_;
if($char=~/[ae]/i) {&main'iso_map($char,'ogon')}
elsif($char=~/[lL]/) {&main'iso_map($char,'strok')}
elsif($char=~/r/) {&main'iso_map('z','dot')}
elsif($char=~/R/) {&main'iso_map('Z','dot')}
elsif($char=~/[cnosz]/i) {&main'iso_map($char,'acute')}
else{$polish_specials{$char}}
}
%polish_specials = (
'\'' => "``",
"\`" => ",,",
';SPMlt;' => "«",
';SPMgt;' => "»",
'\\' => "",
'-' => "-",
';SPMquot;'=> "",
'=' => "-",
'|' => ""
);
package main;
if (defined &addto_languages) { &addto_languages('polish') };
&do_require_extension('latin2');
sub polish_titles {
$toc_title = "Spis rzeczy";
$lof_title = "Spis rysunk\\'ow";
$lot_title = "Spis tablic";
$idx_title = "Indeks";
$ref_title = "Bibliografia";
$bib_title = "Literatura";
$abs_title = "Streszczenie";
$app_title = "Dodatek";
$pre_title = "Przedmowa";
## $foot_title = "";
## $thm_title = "";
$fig_name = "Rysunek";
$tab_name = "Tablica";
## $prf_name = "";
$page_name = "Strona";
# Sectioning-level titles
$part_name = "Część";
$chapter_name = "Rozdział";
# $section_name = "";
# $subsection_name = "";
# $subsubsection_name = "";
# $paragraph_name = "";
# Misc. strings
## $child_name = "";
## $info_title = "";
$also_name = "Por\\'ownaj także";
$see_name = "Por\\'ownaj";
# names in navigation panels
## $next_name = "";
## $up_name = "";
## $prev_name = "";
## $group_name = "";
# mail fields
$encl_name = "Załącznik";
$headto_name = "Do";
$cc_name = "Kopie:";
@Month = ('', 'stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca', 'lipca',
'sierpnia', "września", "października", 'listopada', 'grudnia');
# $GENERIC_WORDS = "";
}
sub polish_today {
local($today) = &get_date();
$today =~ s|(\d+)/0?(\d+)/|$2. $Month[$1] |;
join('',$today,$_[0]);
}
# use'em
&polish_titles;
$default_language = 'polish';
$TITLES_LANGUAGE = 'polish';
$polish_encoding = 'iso-8859-2';
# $Log: polish.perl,v $
# Revision 1.2 1999/07/11 07:44:13 RRM
# -- implements the "<letter> accent shortcuts used by Babel
#
# Revision 1.1 1998/08/25 01:59:06 RRM
# Babel language support
#
#
1;
|