+ boolean chaptered = false;
+ for (String lang : Instance.getConfig().getList(
+ Config.CONF_CHAPTER)) {
+ String chapterWord = Instance.getConfig()
+ .getStringX(Config.CONF_CHAPTER, lang);
+ int posChap = line.indexOf(chapterWord + " ");
+ if (posChap < pos) {
+ chaptered = true;
+ break;
+ }
+ }
+
+ if (chaptered) {
+ line = line.substring(pos);
+ }