All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openhtmltopdf.bidi.BidiSplitter Maven / Gradle / Ivy

Go to download

Open HTML to PDF is a CSS 2.1 renderer written in Java. This artifact contains the core rendering and layout code.

There is a newer version: 1.0.10
Show newest version
package com.openhtmltopdf.bidi;

public interface BidiSplitter {
    public static final byte LTR = 0;
    public static final byte RTL = 1;
	public static final byte NEUTRAL = 3;
    
    /**
     * Sets the text which is to be split on visual ordering.
     * @param paragraph
     * @param defaultDirection either LTR or RTL
     */
    public void setParagraph(String paragraph, byte defaultDirection);
    
    /**
     * Count the number of runs, each of which contains text in one visual order only.
     * Can only be called after setParagraph has run the BIDI algorithm.
     */
    public int countTextRuns();
	
    /**
     * @param runIndex from zero to countTextRuns.
     * @return information about a visual run.
     */
    public BidiTextRun getVisualRun(int runIndex);
    
    /**
     * Get the base direction of a paragraph. Defined as the first 
     * character that has strong directionality or neutral if they are all neutral characters.
     */
    public byte getBaseDirection(String paragraph);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy