Filters out all Japanese tags.

pull/1/head
sigonasr2 5 years ago
parent fd2481de45
commit 044f8b77dd
  1. 2
      Tagger/.settings/org.eclipse.core.resources.prefs
  2. BIN
      Tagger/Tagger.jar
  3. 2
      Tagger/src/PixivManager.java

@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding//src/PixivManager.java=UTF-8

Binary file not shown.

@ -88,7 +88,7 @@ public class PixivManager {
ENTag = translationObj.getString("en");
}
} else
if (tag.has("tag") && /*romaji.length()==0 &&*/ !tag.getString("tag").matches(".*\\p{InHiragana}.*")) {
if (tag.has("tag") && /*romaji.length()==0 &&*/ !tag.getString("tag").matches(".*[ぁ-んァ-ン一-龯]")) {
hasEnglishTag=true;
ENTag = tag.getString("tag");
}

Loading…
Cancel
Save