X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FWiktionarySplitter.java;h=435c3f212cd623cf9456054768d6feab355abfe4;hp=056fabe44b0f9e5a050cfdd7a9e70c3f32ca98e6;hb=db867ac06ddeb858f5a70f682e71826346c31895;hpb=349d140dce670c45be4032d7c7286956a389a2b5 diff --git a/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java b/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java index 056fabe..435c3f2 100644 --- a/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java +++ b/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java @@ -187,6 +187,15 @@ public class WiktionarySplitter extends org.xml.sax.helpers.DefaultHandler { title.startsWith("Plantilla:") || title.startsWith("Wikcionario:") || + // PT + title.startsWith("Ajuda:") || + title.startsWith("Apêndice:") || + title.startsWith("Citações:") || + title.startsWith("Portal:") || + title.startsWith("Predefinição:") || + title.startsWith("Vocabulário:") || + title.startsWith("Wikcionário:") || + // sentinel false ) return; @@ -196,6 +205,8 @@ public class WiktionarySplitter extends org.xml.sax.helpers.DefaultHandler { } String text = textBuilder.toString(); + // Workaround for Spanish wiktionary {{ES}} pattern + text = text.replace("{{ES}}", "== {{lengua|es}} =="); String translingual = ""; int start = 0; final Matcher startMatcher = headingStart.matcher(text);