3
# ScummVM - Graphic Adventure Engine
5
# ScummVM is the legal property of its developers, whose names
6
# are too numerous to list here. Please refer to the COPYRIGHT
7
# file distributed with this source distribution.
9
# This program is free software; you can redistribute it and/or
10
# modify it under the terms of the GNU General Public License
11
# as published by the Free Software Foundation; either version 2
12
# of the License, or (at your option) any later version.
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
# $URL: https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/tags/release-1-2-1/tools/construct-pred-dict.pl $
24
# $Id: construct-pred-dict.pl 47489 2010-01-23 22:50:24Z strangerke $
27
# This script constructs dictionary for use with predictive input
29
# Feed it with list of words. One word per line
36
s/[\x7f-\xff]//g; # remove unprintable characters
38
next if /^.$/; # skip one character words
39
next if $_ eq ""; # skip empty words
46
for $_ (sort keys %words) {
59
$list{$_} .= "$word ";
62
for $k (sort keys %list) {
65
print "$k $list{$k}\n";