blib/lib/Quiz/Flashcards/Sets/Katakana/Romaji_Simple.pm

filter: Statementstmt 98.4% 63 / 64 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 97.1% 68 / 70 CC 1 SCAR 1.8
CC
1
Cov
98%
get_set
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary /home/cpancover/.cpan/CPAN/MyConfig.pm »
1 package Quiz::Flashcards::Sets::Katakana::Romaji_Simple;
2
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
6
7 2 ▶use base 'Exporter';
Subroutine BEGIN: called CC=1 SCAR=0.0
8
9 2 our @EXPORT = (qw( get_set ));
10
11 =head1 NAME
12
13 Quiz::Flashcards::Sets::Katakana::Romaji_Simple - Flashcard set with the basic 46 japanese katakana
14
15 =head1 VERSION
16
17 Version 0.01
18
19 =cut
20
21 2 our $VERSION = '0.01';
22
23 =head1 DESCRIPTION
24
25 This module will provide L<Quiz::Flashcards> with the data needed to test and train the reading of the 46 basic katakana of the japanese alphabet.
26
27 The characters are presented in UTF8 text, so your system will need to have compatible fonts installed. The answer is expected as keyboard input. Upon confirmation of the answer the set will attempt to play a sound of the syllable if L<Quiz::Flashcards::Audiobanks::Japanese_Syllables> is installed.
28
29 =head1 SYNOPSIS
30
31 This module is used by L<Quiz::Flashcards> and not on its own. Refer to the source code of L<Quiz::Flashcards> for examples on how to access it.
32
33 =head1 FUNCTIONS
34
35 =head2 get_set
36
37 This function returns an array of all items in this set. The items are represented as hashes with the following members: C<question>, C<answer>, C<question_type>, C<answer_type>, C<audiobank>, C<audio_file>.
38
39 =cut
40
41 =head1 AUTHOR
42
43 Christian Walde, C<< <mithaldu at yahoo.de> >>
44
45 =head1 BUGS
46
47 Please report any bugs or feature requests to C<bug-Quiz-flashcards-sets-Katakana-romaji_simple at rt.cpan.org>, or through
48 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Quiz-Flashcards-Sets-Katakana-Romaji_Simple>. I will be notified, and then you'll
49 automatically be notified of progress on your bug as I make changes.
50
51
52
53
54 =head1 SUPPORT
55
56 Please refer to L<Quiz::Flashcards> for further information.
57
58
59 =head1 COPYRIGHT & LICENSE
60
61 Copyright 2009 Christian Walde, all rights reserved.
62
63 This program is free software; you can redistribute it and/or modify it
64 under the same terms as Perl itself.
65
66
67 =cut
68
69 2 my $ab = "Quiz::Flashcards::Audiobanks::Japanese_Syllables";
70
71 2 my @set;
72 2 push @set, { question => "ア", complexity => 1, answer => "a", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "a.wav" };
73 2 push @set, { question => "イ", complexity => 1, answer => "i", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "i.wav" };
74 2 push @set, { question => "ウ", complexity => 1, answer => "u", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "u.wav" };
75 2 push @set, { question => "エ", complexity => 1, answer => "e", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "e.wav" };
76 2 push @set, { question => "オ", complexity => 1, answer => "o", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "o.wav" };
77 2 push @set, { question => "カ", complexity => 2, answer => "ka", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ka.wav" };
78 2 push @set, { question => "キ", complexity => 2, answer => "ki", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ki.wav" };
79 2 push @set, { question => "ク", complexity => 2, answer => "ku", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ku.wav" };
80 2 push @set, { question => "ケ", complexity => 2, answer => "ke", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ke.wav" };
81 2 push @set, { question => "コ", complexity => 2, answer => "ko", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ko.wav" };
82 2 push @set, { question => "サ", complexity => 3, answer => "sa", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "sa.wav" };
83 2 push @set, { question => "シ", complexity => 3, answer => "shi", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "shi.wav" };
84 2 push @set, { question => "ス", complexity => 3, answer => "su", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "su.wav" };
85 2 push @set, { question => "セ", complexity => 3, answer => "se", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "se.wav" };
86 2 push @set, { question => "ソ", complexity => 3, answer => "so", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "so.wav" };
87 2 push @set, { question => "タ", complexity => 4, answer => "ta", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ta.wav" };
88 2 push @set, { question => "チ", complexity => 4, answer => "chi", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "chi.wav" };
89 2 push @set, { question => "ツ", complexity => 4, answer => "tsu", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "tsu.wav" };
90 2 push @set, { question => "テ", complexity => 4, answer => "te", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "te.wav" };
91 2 push @set, { question => "ト", complexity => 4, answer => "to", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "to.wav" };
92 2 push @set, { question => "ナ", complexity => 5, answer => "na", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "na.wav" };
93 2 push @set, { question => "ニ", complexity => 5, answer => "ni", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ni.wav" };
94 2 push @set, { question => "ヌ", complexity => 5, answer => "nu", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "nu.wav" };
95 2 push @set, { question => "ネ", complexity => 5, answer => "ne", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ne.wav" };
96 2 push @set, { question => "ノ", complexity => 5, answer => "no", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "no.wav" };
97 2 push @set, { question => "ハ", complexity => 6, answer => "ha", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ha.wav" };
98 2 push @set, { question => "ヒ", complexity => 6, answer => "hi", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "hi.wav" };
99 2 push @set, { question => "フ", complexity => 6, answer => "fu", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "hu.wav" };
100 2 push @set, { question => "ヘ", complexity => 6, answer => "he", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "he.wav" };
101 2 push @set, { question => "ホ", complexity => 6, answer => "ho", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ho.wav" };
102 2 push @set, { question => "マ", complexity => 7, answer => "ma", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ma.wav" };
103 2 push @set, { question => "ミ", complexity => 7, answer => "mi", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "mi.wav" };
104 2 push @set, { question => "ム", complexity => 7, answer => "mu", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "mu.wav" };
105 2 push @set, { question => "メ", complexity => 7, answer => "me", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "me.wav" };
106 2 push @set, { question => "モ", complexity => 7, answer => "mo", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "mo.wav" };
107 2 push @set, { question => "ラ", complexity => 8, answer => "ra", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ra.wav" };
108 2 push @set, { question => "リ", complexity => 8, answer => "ri", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ri.wav" };
109 2 push @set, { question => "ル", complexity => 8, answer => "ru", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ru.wav" };
110 2 push @set, { question => "レ", complexity => 8, answer => "re", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "re.wav" };
111 2 push @set, { question => "ロ", complexity => 8, answer => "ro", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ro.wav" };
112 2 push @set, { question => "ワ", complexity => 9, answer => "wa", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "wa.wav" };
113 2 push @set, { question => "ヲ", complexity => 9, answer => "wo", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "o.wav" };
114 2 push @set, { question => "ヤ", complexity => 9, answer => "ya", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "ya.wav" };
115 2 push @set, { question => "ユ", complexity => 9, answer => "yu", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "yu.wav" };
116 2 push @set, { question => "ヨ", complexity => 9, answer => "yo", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "yo.wav" };
117 2 push @set, { question => "ン", complexity => 9, answer => "n", question_type => "text", answer_type => "text", audiobank => $ab, audio_file => "n.wav" };
118
119
120
121
122
123
124 0 ▶sub get_set {
Subroutine get_set: not called CC=1 SCAR=6.9
Pod documented
125 0 return @set;
126 }
127
128 2 1; # End of Quiz::Flashcards::Sets::Katakana::Romaji_Simple
↑ Summary /home/cpancover/.cpan/CPAN/MyConfig.pm »