File Coverage

blib/lib/SpeL/I18n/nl.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             # -*- cperl -*-
2             # ABSTRACT: class for Dutch localization
3              
4              
5 8     8   14300 use strict;
  8         18  
  8         401  
6 8     8   48 use warnings;
  8         17  
  8         724  
7             package SpeL::I18n::nl;
8              
9 8     8   54 use parent 'SpeL::I18n';
  8         17  
  8         78  
10              
11             our %Lexicon =
12             (
13             '_AUTO' => 1,
14             'title' => 'titel',
15             'author' => 'auteur',
16             'page' => 'pagina',
17             'part' => 'deel',
18             'chapter' => 'hoofdstuk',
19             'appendix' => 'appendix',
20             'section' => 'sectie',
21             'subsection' => 'subsectie',
22             'subsubsection' => 'subsectie',
23             'subsubsubsection' => 'subsectie',
24             'footnote' => 'voetnoot',
25             'figure' => 'figuur',
26             'table' => 'tabel',
27             'equation' => 'vergelijking',
28             'exercise' => 'oefening',
29             'listing' => 'listing',
30             'dotdotdot' => 'enzovoort tot',
31             'pi' => 'pi',
32             'infty' => 'oneindig',
33             '+' => 'plus',
34             '-' => '(min)', # this avoids reading it as 'minuten'
35             'plusminus' => 'plus of min',
36             '%' => 'procent',
37             '*' => 'maal',
38             '=' => ',is gelijk aan,',
39             'approx' => ',is bij benadering gelijk aan,',
40             'notequal' => ',is niet gelijk aan,',
41             'equivalent' => 'is equivalent met',
42             '<' => 'is kleiner dan',
43             '<<' => 'is veel kleiner dan',
44             '>' => 'is groter dan',
45             '>>' => 'is veel groter dan',
46             '<=' => 'is kleiner dan of gelijk aan',
47             '>=' => 'is groter dan of gelijk aan',
48             '==>' => ', en hieruit volgt',
49             '<==' => ', en dit volgt uit',
50             '<=>' => ', wat equivalent is met',
51             'log' => 'de logaritme',
52             'logn' => 'de logaritme met basis [_1]',
53             'ln' => 'de natuurlijke logaritme',
54             'sin' => 'sinus',
55             'cos' => 'cosinus',
56             'tan' => 'tangens',
57             'cot' => 'cotangens',
58             'sec' => 'secans',
59             'csc' => 'cosecans',
60             'arcsin' => 'boogsinus',
61             'arccos' => 'boogcosinus',
62             'arctan' => 'boogtangens',
63             'arccot' => 'boogcotanges',
64             'sinh' => 'hyperbolische sinus',
65             'cosh' => 'hyperbolische cosinus',
66             'tanh' => 'hyperbolische tangens',
67             'coth' => 'hyperbolische cotangens',
68             'alpha' => 'alfa',
69             'beta' => 'beta',
70             'gamma' => 'gamma',
71             'delta' => 'delta',
72             'epsilon' => 'epsilon',
73             'zeta' => 'zeita',
74             'eta' => 'eita',
75             'theta' => 'theita',
76             'iota' => 'iota',
77             'kappa' => 'kappa',
78             'lambda' => 'lambda',
79             'mu' => 'muu',
80             'nu' => 'nuu',
81             'xi' => 'xie',
82             'omicron' => 'omicron',
83             'pi' => 'pi',
84             'rho' => 'rho',
85             'sigma' => 'sigma',
86             'tau' => 'tau',
87             'upsilon' => 'upsilon',
88             'phi' => 'fie',
89             'chi' => 'chchi',
90             'psi' => 'psie',
91             'omega' => 'omega',
92             'And' => 'en',
93             'Function' => '[_1] van [_2]',
94             'Int' => 'de integraal',
95             'Max' => 'het maximum',
96             'Min' => 'het minimum',
97             'Limit' => 'de limiet',
98             'Limitsexpression' => sub {
99             my $lh = $_[0];
100             $_[1] = $lh->maketext( $_[1] );
101             # with ubound
102             defined( $_[3] ) and do {
103             return "$_[1] van $_[2] tot $_[3], van:";
104             };
105             return "$_[1] voor $_[2], van:";
106             },
107             'Overbrace' => '[_1]',
108             'Underbrace' => '[_1]',
109             'matrix' => 'een matrix met elementen',
110             'bmatrix' => 'een matrix met elementen',
111             'pmatrix' => 'een matrix met elementen',
112             'smallmatrix' => 'een matrix met elementen',
113             'vmatrix' => 'de determinant van een matrix met elementen',
114             'Vmatrix' => 'de norm van een matrix met elememten',
115             'Mid' => 'waarvoor geldt:',
116             'Overline' => sub {
117             my $lh = $_[0];
118             return $_[1] . ' streep';
119             },
120             'Intpower' => 'tot de macht',
121             'Faculty' => 'faculteit',
122             'Power' => sub {
123             my $lh = $_[0];
124             ( $_[1] eq '1' ) and do { return '' };
125             ( $_[1] eq '2' ) and do { return ' kwadraat' };
126             ( $_[1] eq '8' ) and do { return ' tot de achtste macht' };
127             ( $_[1] =~ /^1\d$/ ) and do { return " tot de $_[1]de macht" };
128             return ' tot de macht ' . $_[1];
129             },
130             'Transposed' => 'transpose',
131             'Cancels' => 'wat wegvalt',
132             'Sum' => ' de som',
133             'Squareroot' => sub {
134             my $lh = $_[0];
135             ( $_[1] eq '1' ) and do { return "$_[2]"; };
136             ( $_[1] eq '2' ) and do { return "de vierkantswortel van $_[2]"; };
137             ( $_[1] eq '8' ) and do { return "de achtste machtswortel van $_[2]" };
138             ( $_[1] =~ /^[345679]|1\d$/ ) and do { return "de $_[1]de machtswortel van $_[2]" };
139             ( $_[1] =~ /^[2-9]\d+$/ ) and do { return "de $_[1]ste machtswortel van $_[2]" };
140             return "de $_[1]-de machtswortel van $_[2]";
141             },
142             'Div' => '[_1], gedeeld door [_2]',
143             'In' => ' element van ',
144             'Leadsto' => ' wordt geassocieerd met ',
145             'To' => ' strevende naar ',
146             'Absval' => sub {
147             my $lh = $_[0];
148             return ' de absoluute waarde van ' . $_[1];
149             },
150             'Norm' => sub {
151             return ' de norm van ' . $_[1];
152             },
153             'Subjectto' => sub {
154             return $_[1] . " waarbij ";
155             },
156             'Re' => sub {
157             # my $lh = $_[0];
158             return ' Re ' . $_[1];
159             },
160             'Im' => sub {
161             # my $lh = $_[0];
162             return ' Im ' . $_[1];
163             },
164             'Interval' => sub {
165             # my $lh = $_[0];
166             return "het gesloten interval van $_[2] tot $_[3]"
167             if ( $_[1] eq 'cc' );
168             return "het open interval van $_[2] tot $_[3]"
169             if ( $_[1] eq 'oo' );
170             return "het half open interval van $_[2] (niet inbegrepen) tot $_[3]"
171             if ( $_[1] eq 'oc' );
172             return "het half open interval van $_[2] tot $_[3] (niet inbegrepen)"
173             if ( $_[1] eq 'co' );
174             return 'Error: wrong interval';
175             },
176             'Setenum' => 'een verzameling bestaande uit [_1]',
177             'Setdesc' => 'een verzameling met elementen [_1]',
178             'Arg' => 'arg [_1]',
179             'Unitof' => 'de eenheid van [_1]',
180             'Sim' => 'is evenredig met',
181             );
182              
183             1;
184              
185             __END__