sbool indexedSimpleWikipedia_magicMap_debug;
srecord WikiPage(S title, S text) {}
static Map<S, WikiPage> indexedSimpleWikipedia_magicMap(final Map<S
, IndexedWikiPage> map) {
final File f = unpackSimpleWikipedia();
Map<S, WikiPage> actualMap = new TreeMap<S, WikiPage>(caseInsensi
tiveComparator()) {
public WikiPage get(O title) {
IndexedWikiPage ip = map.get(title);
S xml = loadTextFilePart(f, ip.start, ip.start+ip.len);
if (indexedSimpleWikipedia_magicMap_debug) {
print("Loaded from " + ip.start + " to " + (ip.start+ip.len
));
S realTitle = trim(htmldecode(join(contentsOfContainerTag(tok
, "title"))));
S text = trim(htmldecode(join(contentsOfContainerTag(tok,
"text"))));
ret WikiPage(realTitle, text);