Package net.sourceforge.tess4j
Class ITessAPI.EANYCODE_CHAR
- java.lang.Object
-
- com.sun.jna.Structure
-
- net.sourceforge.tess4j.ITessAPI.EANYCODE_CHAR
-
- Enclosing interface:
- ITessAPI
public static class ITessAPI.EANYCODE_CHAR extends com.sun.jna.StructureIt should be noted that the format for char_code for version 2.0 and beyond is UTF-8, which means that ASCII characters will come out as one structure but other characters will be returned in two or more instances of this structure with a single byte of the UTF-8 code in each, but each will have the same bounding box.
Programs which want to handle languages with different characters sets will need to handle extended characters appropriately, but all code needs to be prepared to receive UTF-8 coded characters for characters such as bullet and fancy quotes.
-
-
Field Summary
Fields Modifier and Type Field Description byteblanksnumber of spaces before this char (1)shortbottombottom of char (-1)bytechar_codecharacter itself, one single UTF-8 byte long.byteconfidenceclassification confidence: 0=perfect, 100=reject (0/100)shortfont_indexwhat font (0)byteformattingchar formatting (0)shortleftleft of char (-1)bytepoint_sizepoint size of char, 72 = 1 inch, (10)shortrightright of char (-1)shorttoptop of char (-1)
-
Constructor Summary
Constructors Constructor Description EANYCODE_CHAR()
-
Method Summary
Modifier and Type Method Description protected java.util.ListgetFieldOrder()Gets Field Order.-
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
-
-
-
Field Detail
-
char_code
public byte char_code
character itself, one single UTF-8 byte long. A Unicode character may consist of one or more UTF-8 bytes. Bytes of a character will have the same bounding box.
-
left
public short left
left of char (-1)
-
right
public short right
right of char (-1)
-
top
public short top
top of char (-1)
-
bottom
public short bottom
bottom of char (-1)
-
font_index
public short font_index
what font (0)
-
confidence
public byte confidence
classification confidence: 0=perfect, 100=reject (0/100)
-
point_size
public byte point_size
point size of char, 72 = 1 inch, (10)
-
blanks
public byte blanks
number of spaces before this char (1)
-
formatting
public byte formatting
char formatting (0)
-
-