File: finnish.perl

package info (click to toggle)
latex2html 2023-debian1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 6,924 kB
  • sloc: perl: 34,024; makefile: 437; sh: 32
file content (135 lines) | stat: -rw-r--r-- 3,682 bytes parent folder | download | duplicates (12)
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# $Id: finnish.perl,v 1.3 1998/08/25 01:34:31 RRM Exp $
#
# finnish.perl for finnish babel, inspired heavily by german.perl
# by Viljo Viitanen <viljo@iki.fi>


package finnish;

print " [finnish]";

sub main'finnish_translation {
    local($_) = @_;
s/;SPMquot;\s*('|`|;SPMlt;|;SPMgt;|\\|-|;SPMquot;|=|\|)/&get_finnish_specials($1)/geo;
    $_;
}

sub get_finnish_specials {
    $finnish_specials{@_[0]}
}

%finnish_specials = (
    '\''       => "``",
    "\`"       => ",,",
    ';SPMlt;'  => "&laquo;",
    ';SPMgt;'  => "&raquo;",
    '\\'       => "",
    '-'        => "-",
    ';SPMquot;'=> "",
    '='        => "-",
    '|'        => ""
);


package main;

if (defined &addto_languages) { &addto_languages('finnish') };

sub finnish_titles {
    $toc_title = "Sis&auml;lt&ouml;"; # or Sis&auml;llys
    $lof_title = "Kuvat";
    $lot_title = "Taulukot";
    $idx_title = "Hakemisto";
    $ref_title = "Viitteet";
    $bib_title = "Kirjallisuutta";
    $abs_title = "Tiivistelm&auml;";
    $app_title = "Liite";
    $pre_title = "Esipuhe";
##    $foot_title = "";
##    $thm_title = "";
    $fig_name = "Kuva";
    $tab_name = "Taulukko";
    $page_name = "Sivu";
  #  Sectioning-level titles
    $part_name = "Osa";
    $chapter_name = "Luku";
#    $section_name = "";
#    $subsection_name = "";
#    $subsubsection_name = "";
#    $paragraph_name = "";
  #  Misc. strings
    $prf_name = "Todistus";
    $child_name = "Aliluvut"; #could be better
    $info_title = "T&auml;st&auml; dokumentista ...";
    $also_name = "katso my&ouml;s";
    $see_name = "katso";
  #  names in navigation panels
##    $next_name = "";
##    $up_name = "";
##    $prev_name = "";
##    $group_name = "";
  #  mail fields
    $encl_name = "Liitteet";
    $headto_name = "Vastaanottaja";
    $cc_name = "Jakelu";

    @Month = ('', 'tammikuuta', 'helmikuuta', 'maaliskuuta', 'huhtikuuta',
              'toukokuuta', 'kes&auml;kuuta', 'hein&auml;kuuta', 'elokuuta',
              'syyskuuta', 'lokakuuta', 'marraskuuta', 'joulukuuta');
    $GENERIC_WORDS = "ja";
}


sub finnish_today {
    local($today) = &get_date();
    $today =~ s|(\d+)/0?(\d+)/|$2. $Month[$1] |;
    join('',$today,$_[0]);
}


sub finnish_infopage {
    local($_) = @_;
    ( ($INFO == 1)
     ? join('', $close_all
	, "<STRONG>$t_title</STRONG><P>\nT&auml;m&auml; dokumentti tehtiin ohjelmistolla\n"
	, "<A HREF=\"$TEX2HTMLADDRESS\"><STRONG>LaTeX</STRONG>2<tt>HTML</tt></A>"
	, " translator Version $TEX2HTMLVERSION\n"
	, "<P>Copyright &#169; 1993, 1994, 1995, 1996,\n"
	, "<A HREF=\"$AUTHORADDRESS\">Nikos Drakos</A>, \n"
	, "Computer Based Learning Unit, University of Leeds.\n"
	, "<BR>Copyright &#169; 1997, 1998,\n"
	, "<A HREF=\"$AUTHORADDRESS2\">Ross Moore</A>, \n"
	, "Mathematics Department, Macquarie University, Sydney.\n"
	, "<P>Komentoriviargumentit olivat: <BR>\n "
	, "<STRONG>latex2html</STRONG> <tt>$argv</tt>.\n"
	, (($INIT_FILE ne '')?
	  "\n<P>alustustiedostolla: <TT>$INIT_FILE</TT>\n$init_file_mark\n" :'')
	, "<P>Komennon ajoi $address_data[0] $address_data[1]"
	, $open_all, $_)
     : join('', $close_all, $INFO,"\n", $open_all, $_))
}

# use'em
&finnish_titles;
$default_language = 'finnish';
$TITLES_LANGUAGE = "finnish";
$finnish_encoding = 'iso-8859-1';


# $Log: finnish.perl,v $
# Revision 1.3  1998/08/25 01:34:31  RRM
#  --  updated for extended Babel support
#
# Revision 1.2  1998/06/26 05:58:02  RRM
#  --  use entities instead of bare accented characters
#  --  updated the info-message
#  --  added a single item to $GENERIC_WORDS
#
# Revision 1.1  1998/06/25 02:14:46  RRM
# 	support for Finnish language
# 		by Viljo Viitanen <viljo@iki.fi>
#
#  --  based on german.perl
#

1;