1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-03 01:39:18 +02:00

mobi: blockquote tag support

This commit is contained in:
Nikolay Pultsin 2013-10-18 17:24:15 +01:00
parent 6ad355fac1
commit 16d4a9f7df
3 changed files with 19 additions and 14 deletions

View file

@ -1,5 +1,6 @@
===== 1.9.1 (Oct ??, 2013) =====
* Updated Czech localization (by Marek Pavelka)
* mobi: blockquote tag support
===== 1.9 (Oct 14, 2013) =====
* Dictionary support

View file

@ -178,6 +178,7 @@ public class HtmlReader extends BookReader implements ZLHtmlReader {
case HtmlTag.STYLE:
case HtmlTag.P:
case HtmlTag.DIV:
case HtmlTag.BLOCKQUOTE:
startNewParagraph();
break;
@ -251,6 +252,7 @@ public class HtmlReader extends BookReader implements ZLHtmlReader {
case HtmlTag.P:
case HtmlTag.DIV:
case HtmlTag.BLOCKQUOTE:
if (mySectionStarted) {
mySectionStarted = false;
} else if (myInsideTitle) {

View file

@ -49,24 +49,25 @@ public final class HtmlTag {
public static final byte TR = 24;
public static final byte STYLE = 25;
public static final byte S = 26;
public static final byte SUB = 27;
public static final byte SUP = 28;
public static final byte PRE = 29;
public static final byte CODE = 30;
public static final byte EM = 31;
public static final byte DFN = 32;
public static final byte CITE = 33;
public static final byte FONT = 34;
public static final byte BLOCKQUOTE = 26;
public static final byte S = 27;
public static final byte SUB = 28;
public static final byte SUP = 29;
public static final byte PRE = 30;
public static final byte CODE = 31;
public static final byte EM = 32;
public static final byte DFN = 33;
public static final byte CITE = 34;
public static final byte FONT = 35;
public static final byte HR = 35;
public static final byte HR = 36;
// mobipocket specific tags
public static final byte REFERENCE = 36;
public static final byte GUIDE = 37;
public static final byte MBP_PAGEBREAK = 38;
public static final byte REFERENCE = 37;
public static final byte GUIDE = 38;
public static final byte MBP_PAGEBREAK = 39;
public static final byte TAG_NUMBER = 39;
public static final byte TAG_NUMBER = 40;
private static final HashMap<String,Byte> ourTagByName = new HashMap<String,Byte>(256, 0.2f);
private static final Byte ourUnknownTag;
@ -99,6 +100,7 @@ public final class HtmlTag {
ourTagByName.put("select", SELECT);
ourTagByName.put("tr", TR);
ourTagByName.put("style", STYLE);
ourTagByName.put("blockquote", BLOCKQUOTE);
ourTagByName.put("s", S);
ourTagByName.put("sub", SUB);
ourTagByName.put("sup", SUP);