| 1 | package Acme::MetaSyntactic::pokemon; | ||
| 2 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use Acme::MetaSyntactic::List; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | our @ISA = qw( Acme::MetaSyntactic::List ); | |
| 5 | 2 | our $VERSION = '1.009'; | |
| 6 | 2 | __PACKAGE__->init(); | |
| 7 | |||
| 8 | our %Remote = ( | ||
| 9 | source => | ||
| 10 | 'http://en.wikipedia.org/wiki/List_of_Pok%C3%A9mon', | ||
| 11 | 0 | ▶ | extract => sub { |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 12 | 0 | my %by_idx = | |
| 13 | $_[0] =~ m!^<td[^>]*>([0-9]{3})</td>\n<td[^>]*><a href="/wiki/[^>]+" [^>]*title="[^>]+">([^<]+)</a>!gm; | ||
| 14 | return # support for Unicode female/male symbols | ||
| 15 | 0 | map { tr/-'.: /_/s; s/_$//; $_ } | |
| 16 | 0 | map { Acme::MetaSyntactic::RemoteList::tr_accent($_) } | |
| 17 | 0 | map { Acme::MetaSyntactic::RemoteList::tr_utf8_basic($_) } | |
| 18 | 0 | map { s/Nidoran/Nidoran /; $_ } | |
| 19 | 0 | map $by_idx{$_}, sort keys %by_idx; | |
| 20 | }, | ||
| 21 | 2 | ); | |
| 22 | |||
| 23 | 2 | 1; | |
| 24 | |||
| 25 | =encoding iso-8859-1 | ||
| 26 | |||
| 27 | =head1 NAME | ||
| 28 | |||
| 29 | Acme::MetaSyntactic::pokemon - The Pokémon theme | ||
| 30 | |||
| 31 | =head1 DESCRIPTION | ||
| 32 | |||
| 33 | List of the 802 Pokémon characters that are officially known to exist | ||
| 34 | in the franchise. | ||
| 35 | |||
| 36 | This list is based on the following wikipedia article: | ||
| 37 | L<http://en.wikipedia.org/wiki/List_of_Pok%C3%A9mon>. | ||
| 38 | |||
| 39 | =head1 CONTRIBUTORS | ||
| 40 | |||
| 41 | Abigail, Philippe Bruhat (BooK) | ||
| 42 | |||
| 43 | =head1 CHANGES | ||
| 44 | |||
| 45 | =over 4 | ||
| 46 | |||
| 47 | =item * | ||
| 48 | |||
| 49 | 2017-11-13 - v1.009 | ||
| 50 | |||
| 51 | Fixed the regular expression used to extract the pokemon names from Wikipedia | ||
| 52 | in Acme-MetaSyntactic-Themes version 1.051. | ||
| 53 | |||
| 54 | =item * | ||
| 55 | |||
| 56 | 2017-06-12 - v1.008 | ||
| 57 | |||
| 58 | Updated with "Pokémon Generation VII" | ||
| 59 | in Acme-MetaSyntactic-Themes version 1.050. | ||
| 60 | |||
| 61 | =item * | ||
| 62 | |||
| 63 | 2016-03-21 - v1.007 | ||
| 64 | |||
| 65 | Updated with "The Mythical Pokémons" Volcanion and Magearna | ||
| 66 | in Acme-MetaSyntactic-Themes version 1.049. | ||
| 67 | |||
| 68 | =item * | ||
| 69 | |||
| 70 | 2015-02-02 - v1.006 | ||
| 71 | |||
| 72 | Updated with "The Mythical Pokémon Hoopa" | ||
| 73 | in Acme-MetaSyntactic-Themes version 1.045. | ||
| 74 | |||
| 75 | =item * | ||
| 76 | |||
| 77 | 2014-06-16 - v1.005 | ||
| 78 | |||
| 79 | Fixed the transformation script to properly deal with accented letters, | ||
| 80 | in Acme-MetaSyntactic-Themes version 1.040. | ||
| 81 | |||
| 82 | =item * | ||
| 83 | |||
| 84 | 2014-04-07 - v1.004 | ||
| 85 | |||
| 86 | Updated with "The Mythical Pokémon Diancie" | ||
| 87 | in Acme-MetaSyntactic-Themes version 1.039. | ||
| 88 | |||
| 89 | =item * | ||
| 90 | |||
| 91 | 2013-12-09 - v1.003 | ||
| 92 | |||
| 93 | Updated with the Pokémon introduced with the release of Pokémon X and Y | ||
| 94 | in Acme-MetaSyntactic-Themes version 1.038. | ||
| 95 | |||
| 96 | =item * | ||
| 97 | |||
| 98 | 2012-07-23 - v1.002 | ||
| 99 | |||
| 100 | Updated with a new Pokémon | ||
| 101 | in Acme-MetaSyntactic-Themes version 1.011. | ||
| 102 | |||
| 103 | =item * | ||
| 104 | |||
| 105 | 2012-05-14 - v1.001 | ||
| 106 | |||
| 107 | Updated with typographical corrections by Abigail | ||
| 108 | in Acme-MetaSyntactic-Themes version 1.001. | ||
| 109 | |||
| 110 | =item * | ||
| 111 | |||
| 112 | 2012-05-07 - v1.000 | ||
| 113 | |||
| 114 | Updated with new extraction code and new Pokémons since November 2006, and | ||
| 115 | received its own version number in Acme-MetaSyntactic-Themes version 1.000. | ||
| 116 | |||
| 117 | =item * | ||
| 118 | |||
| 119 | 2006-11-06 | ||
| 120 | |||
| 121 | Updated in Acme-MetaSyntactic version 0.99. | ||
| 122 | |||
| 123 | =item * | ||
| 124 | |||
| 125 | 2006-07-10 | ||
| 126 | |||
| 127 | Updated in Acme-MetaSyntactic version 0.82. | ||
| 128 | |||
| 129 | =item * | ||
| 130 | |||
| 131 | 2006-03-06 | ||
| 132 | |||
| 133 | Updated in Acme-MetaSyntactic version 0.64. | ||
| 134 | |||
| 135 | =item * | ||
| 136 | |||
| 137 | 2006-01-30 | ||
| 138 | |||
| 139 | Updated in Acme-MetaSyntactic version 0.59. | ||
| 140 | |||
| 141 | =item * | ||
| 142 | |||
| 143 | 2006-01-16 | ||
| 144 | |||
| 145 | Updated in Acme-MetaSyntactic version 0.57. | ||
| 146 | |||
| 147 | =item * | ||
| 148 | |||
| 149 | 2006-01-09 | ||
| 150 | |||
| 151 | Introduced in Acme-MetaSyntactic version 0.56, with a remote list. | ||
| 152 | |||
| 153 | =item * | ||
| 154 | |||
| 155 | 2005-10-26 | ||
| 156 | |||
| 157 | Submitted by Agigail as a simple list. | ||
| 158 | |||
| 159 | =back | ||
| 160 | |||
| 161 | =head1 SEE ALSO | ||
| 162 | |||
| 163 | L<Acme::MetaSyntactic>, L<Acme::MetaSyntactic::List>. | ||
| 164 | |||
| 165 | =cut | ||
| 166 | |||
| 167 | __DATA__ | ||