Package com.openhtmltopdf.bidi
Class ParagraphSplitter
java.lang.Object
com.openhtmltopdf.bidi.ParagraphSplitter
public class ParagraphSplitter extends Object
This class aims to split text into paragraphs where they can be passed to the
BidiSplitter. Each text node in the document is attached to the closest block-like element
which we assume paragraphs do not cross.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classParagraphSplitter.FakeParagraphA fake paragraqph only supports manual BIDI classification.static classParagraphSplitter.ParagraphA paragraph object collects the text of one paragraph. -
Constructor Summary
Constructors Constructor Description ParagraphSplitter() -
Method Summary
Modifier and Type Method Description static byteconvertDirectionIdent(IdentValue ident)ParagraphSplitter.ParagraphlookupBlockElement(Element elem)ParagraphSplitter.ParagraphlookupParagraph(Text node)Get the paragraph object that a Text node is associated with.voidrunBidiOnParagraphs(LayoutContext c)Run bidi splitting on the document's paragraphs.voidsplitRoot(LayoutContext c, Document doc)This starts everything by recursively dividing the document into paragraphs.
-
Constructor Details
-
ParagraphSplitter
public ParagraphSplitter()
-
-
Method Details
-
convertDirectionIdent
-
lookupParagraph
Get the paragraph object that a Text node is associated with. Should never return null. -
lookupBlockElement
-
splitRoot
This starts everything by recursively dividing the document into paragraphs. -
runBidiOnParagraphs
Run bidi splitting on the document's paragraphs.
-