X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Fcom%2Fhughes%2Fandroid%2Fdictionary%2Fengine%2FWiktionarySplitter.java;h=97c64a74a3766f2a315d9d95686d4c44039bed9b;hb=630124b5608367ffd59549099125b4956b40bf86;hp=4faef895aa7b70eb086acfd9d119f41bc4004b47;hpb=d7a593cdc371ce2af07a7a85c5641ccf96a48972;p=DictionaryPC.git diff --git a/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java b/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java index 4faef89..97c64a7 100644 --- a/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java +++ b/src/com/hughes/android/dictionary/engine/WiktionarySplitter.java @@ -39,8 +39,9 @@ public class WiktionarySplitter extends org.xml.sax.helpers.DefaultHandler { // The matches the whole line, otherwise regexes don't work well on French: // {{=uk=}} - // Spanish has no initial headings, so also detect {{ES as such... - static final Pattern headingStart = Pattern.compile("^(\\{\\{ES|(=+)[^=]).*$", Pattern.MULTILINE); + // Spanish has no initial headings, tried to also detect {{ES as such + // with "^(\\{\\{ES|(=+)[^=]).*$" but that broke English. + static final Pattern headingStart = Pattern.compile("^(=+)[^=].*$", Pattern.MULTILINE); final Map> pathToSelectors = new LinkedHashMap>(); List currentSelectors = null;