HiraokaHyperTools.iTextSharp-LGPL  0.2.5
iTextSharp.text.pdf.BidiOrder Class Reference

Public Member Functions

 BidiOrder (sbyte[] types)
 
 BidiOrder (sbyte[] types, sbyte paragraphEmbeddingLevel)
 
 BidiOrder (char[] text, int offset, int length, sbyte paragraphEmbeddingLevel)
 
byte[] GetLevels ()
 
byte[] GetLevels (int[] linebreaks)
 
sbyte GetBaseLevel ()
 

Static Public Member Functions

static sbyte GetDirection (char c)
 

Static Public Attributes

const sbyte L = 0
 
const sbyte LRE = 1
 
const sbyte LRO = 2
 
const sbyte R = 3
 
const sbyte AL = 4
 
const sbyte RLE = 5
 
const sbyte RLO = 6
 
const sbyte PDF = 7
 
const sbyte EN = 8
 
const sbyte ES = 9
 
const sbyte ET = 10
 
const sbyte AN = 11
 
const sbyte CS = 12
 
const sbyte NSM = 13
 
const sbyte BN = 14
 
const sbyte B = 15
 
const sbyte S = 16
 
const sbyte WS = 17
 
const sbyte ON = 18
 
const sbyte TYPE_MIN = 0
 
const sbyte TYPE_MAX = 18
 

Constructor & Destructor Documentation

◆ BidiOrder() [1/3]

iTextSharp.text.pdf.BidiOrder.BidiOrder ( sbyte[]  types)

Initialize using an array of direction types. Types range from TYPE_MIN to TYPE_MAX inclusive and represent the direction codes of the characters in the text.

Parameters
typesthe types array

◆ BidiOrder() [2/3]

iTextSharp.text.pdf.BidiOrder.BidiOrder ( sbyte[]  types,
sbyte  paragraphEmbeddingLevel 
)

Initialize using an array of direction types and an externally supplied paragraph embedding level. The embedding level may be -1, 0, or 1. -1 means to apply the default algorithm (rules P2 and P3), 0 is for LTR paragraphs, and 1 is for RTL paragraphs.

Parameters
typesthe types array
paragraphEmbeddingLevelthe externally supplied paragraph embedding level.

◆ BidiOrder() [3/3]

iTextSharp.text.pdf.BidiOrder.BidiOrder ( char[]  text,
int  offset,
int  length,
sbyte  paragraphEmbeddingLevel 
)

Member Function Documentation

◆ GetBaseLevel()

sbyte iTextSharp.text.pdf.BidiOrder.GetBaseLevel ( )

Return the base level of the paragraph.

◆ GetDirection()

static sbyte iTextSharp.text.pdf.BidiOrder.GetDirection ( char  c)
static

◆ GetLevels() [1/2]

byte [] iTextSharp.text.pdf.BidiOrder.GetLevels ( )

◆ GetLevels() [2/2]

byte [] iTextSharp.text.pdf.BidiOrder.GetLevels ( int[]  linebreaks)

Return levels array breaking lines at offsets in linebreaks.
Rule L1.

The returned levels array contains the resolved level for each bidi code passed to the constructor.

The linebreaks array must include at least one value. The values must be in strictly increasing order (no duplicates) between 1 and the length of the text, inclusive. The last value must be the length of the text.

Parameters
linebreaksthe offsets at which to break the paragraph
Returns
the resolved levels of the text

Member Data Documentation

◆ AL

const sbyte iTextSharp.text.pdf.BidiOrder.AL = 4
static

Right-to-Left Arabic

◆ AN

const sbyte iTextSharp.text.pdf.BidiOrder.AN = 11
static

Arabic Number

◆ B

const sbyte iTextSharp.text.pdf.BidiOrder.B = 15
static

Paragraph Separator

◆ BN

const sbyte iTextSharp.text.pdf.BidiOrder.BN = 14
static

Boundary Neutral

◆ CS

const sbyte iTextSharp.text.pdf.BidiOrder.CS = 12
static

Common Number Separator

◆ EN

const sbyte iTextSharp.text.pdf.BidiOrder.EN = 8
static

European Number

◆ ES

const sbyte iTextSharp.text.pdf.BidiOrder.ES = 9
static

European Number Separator

◆ ET

const sbyte iTextSharp.text.pdf.BidiOrder.ET = 10
static

European Number Terminator

◆ L

const sbyte iTextSharp.text.pdf.BidiOrder.L = 0
static

Left-to-right

◆ LRE

const sbyte iTextSharp.text.pdf.BidiOrder.LRE = 1
static

Left-to-Right Embedding

◆ LRO

const sbyte iTextSharp.text.pdf.BidiOrder.LRO = 2
static

Left-to-Right Override

◆ NSM

const sbyte iTextSharp.text.pdf.BidiOrder.NSM = 13
static

Non-Spacing Mark

◆ ON

const sbyte iTextSharp.text.pdf.BidiOrder.ON = 18
static

Other Neutrals

◆ PDF

const sbyte iTextSharp.text.pdf.BidiOrder.PDF = 7
static

Pop Directional Format

◆ R

const sbyte iTextSharp.text.pdf.BidiOrder.R = 3
static

Right-to-Left

◆ RLE

const sbyte iTextSharp.text.pdf.BidiOrder.RLE = 5
static

Right-to-Left Embedding

◆ RLO

const sbyte iTextSharp.text.pdf.BidiOrder.RLO = 6
static

Right-to-Left Override

◆ S

const sbyte iTextSharp.text.pdf.BidiOrder.S = 16
static

Segment Separator

◆ TYPE_MAX

const sbyte iTextSharp.text.pdf.BidiOrder.TYPE_MAX = 18
static

Maximum bidi type value.

◆ TYPE_MIN

const sbyte iTextSharp.text.pdf.BidiOrder.TYPE_MIN = 0
static

Minimum bidi type value.

◆ WS

const sbyte iTextSharp.text.pdf.BidiOrder.WS = 17
static

Whitespace


The documentation for this class was generated from the following file: