+Setup new ICU
+
+Bad ordering:
+===do===
+ do {{wikipedia|Do (nota)|lang=it}}{{infl|it|noun|g=m}} :: do, the musical note
+ fare {{it-verb}} {{transitive}} :: To do
+
+
sub-levels in translations.
examples.
// Check it again.
final Dictionary dict = new Dictionary(new RandomAccessFile(dictFile.getAbsolutePath(), "r"));
- final PrintStream out = new PrintStream(new File(dictFile.getName() + ".text"));
+ final PrintStream out = new PrintStream(new File(dictFile.getPath() + ".text"));
dict.print(out);
out.close();
assertFilesEqual(GOLDENS + dictName + ".text", dictFile.getPath() + ".text");
} finally {
// Here's where we exit.
// TODO: Should we make an entry even if there are no foreign list items?
- if (foreignBuilder.indexOf(title) == -1) {
- foreignBuilder.insert(0, title + " ");
+ String foreign = foreignBuilder.toString().trim();
+ if (!foreign.toLowerCase().startsWith(title.toLowerCase())) {
+ foreign = title + " " + foreign;
}
for (final ListSection listSection : listSections) {
- doForeignListItem(foreignBuilder.toString(), title, wordForms, listSection);
+ doForeignListItem(foreign, title, wordForms, listSection);
}
}
}
englishBuilder.append(text);
otherIndexBuilder.addEntryWithString(indexedEntry, text, EntryTypeName.WIKTIONARY_ENGLISH_DEF_OTHER_LANG);
} else if (link.equals("plural")) {
- englishBuilder.append(englishTokenizer.wikiLinkText());
+ englishBuilder.append(text);
} else {
//LOG.warning("Special link: " + englishTokenizer.token());
- englishBuilder.append(englishTokenizer.wikiLinkText());
+ enIndexBuilder.addEntryWithString(indexedEntry, text, EntryTypeName.WIKTIONARY_ENGLISH_DEF_WIKI_LINK);
+ englishBuilder.append(text);
}
} else {
// link == null