public class PPrint
extends java.lang.Object
Constructor and Description |
---|
PPrint(Configuration configuration)
Instantiates a new PPrint.
|
Modifier and Type | Method and Description |
---|---|
void |
addTransitionEffect(Lexer lexer,
Node root,
double duration)
Add meta element for page transition effect, this works on IE but not NS.
|
void |
condFlushLine(Out fout,
int indent) |
int |
countSlides(Node node)
Split parse tree by h2 elements and output to separate files.
|
void |
createSlides(Lexer lexer,
Node root)
Creates slides from h2.
|
static int |
Decode_to_int(byte[] ary,
int pos) |
void |
flushLine(Out fout,
int indent) |
static int |
get_utf8_jtidy(byte[] str,
int start,
int[] ch)
return one less than the number of bytes used by the UTF-8 byte sequence.
|
int |
get_utf8_xowa(int[] rv,
int cur_c,
byte[] src,
int cur_pos) |
static int |
Len_of_char_by_1st_byte(int b) |
void |
printSlide(Out fout,
short mode,
int indent,
Lexer lexer)
Called from printTree to print the content of a slide from the node slidecontent.
|
void |
printTree(Out fout,
short mode,
int indent,
Lexer lexer,
Node node) |
void |
printXMLTree(Out fout,
short mode,
int indent,
Lexer lexer,
Node node) |
static int |
putUTF8(byte[] buf,
int start,
int c)
store char c as UTF-8 encoded byte stream.
|
static void |
Surrogate_split(int v,
int[] ary) |
static boolean |
TextNodeEndWithSpace(Lexer lexer,
Node node) |
public PPrint(Configuration configuration)
configuration
- configurationpublic int get_utf8_xowa(int[] rv, int cur_c, byte[] src, int cur_pos)
public static void Surrogate_split(int v, int[] ary)
public static int Decode_to_int(byte[] ary, int pos)
public static int Len_of_char_by_1st_byte(int b)
public static int get_utf8_jtidy(byte[] str, int start, int[] ch)
str
- points to the UTF-8 byte sequencestart
- starting offset in strch
- initialized to 1st byte, passed as an array to allow modificationpublic static int putUTF8(byte[] buf, int start, int c)
buf
- start
- c
- public void flushLine(Out fout, int indent)
fout
- indent
- public void condFlushLine(Out fout, int indent)
fout
- indent
- public void printTree(Out fout, short mode, int indent, Lexer lexer, Node node)
fout
- mode
- indent
- lexer
- node
- public void printXMLTree(Out fout, short mode, int indent, Lexer lexer, Node node)
fout
- mode
- indent
- lexer
- node
- public int countSlides(Node node)
node
- root nodepublic void printSlide(Out fout, short mode, int indent, Lexer lexer)
fout
- mode
- indent
- lexer
- public void addTransitionEffect(Lexer lexer, Node root, double duration)
lexer
- root
- duration
-