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.Structure
It 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.
  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from class com.sun.jna.Structure Link icon

    com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue, com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    byte
    number of spaces before this char (1)
    short
    bottom of char (-1)
    byte
    character itself, one single UTF-8 byte long.
    byte
    classification confidence: 0=perfect, 100=reject (0/100)
    short
    what font (0)
    byte
    char formatting (0)
    short
    left of char (-1)
    byte
    point size of char, 72 = 1 inch, (10)
    short
    right of char (-1)
    short
    top of char (-1)

    Fields inherited from class com.sun.jna.Structure Link icon

    ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    protected List<String>
    Gets Field Order.

    Methods inherited from class com.sun.jna.Structure Link icon

    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

    Methods inherited from class java.lang.Object Link icon

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • char_code Link icon

      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 Link icon

      public short left
      left of char (-1)
    • top Link icon

      public short top
      top of char (-1)
    • bottom Link icon

      public short bottom
      bottom of char (-1)
    • font_index Link icon

      public short font_index
      what font (0)
    • confidence Link icon

      public byte confidence
      classification confidence: 0=perfect, 100=reject (0/100)
    • point_size Link icon

      public byte point_size
      point size of char, 72 = 1 inch, (10)
    • blanks Link icon

      public byte blanks
      number of spaces before this char (1)
    • formatting Link icon

      public byte formatting
      char formatting (0)
  • Constructor Details Link icon

    • EANYCODE_CHAR Link icon

      public EANYCODE_CHAR()
  • Method Details Link icon

    • getFieldOrder Link icon

      protected List<String> getFieldOrder()
      Gets Field Order.
      Overrides:
      getFieldOrder in class com.sun.jna.Structure
      Returns: