Skip to content

Commit

Permalink
#280 Updated PolyBlockType to match native definition
Browse files Browse the repository at this point in the history
Updated the PolyBlockType to match upsteam tesseract 3.04 definition found
in publictypes.h which had changed since the previous release (3.02).
  • Loading branch information
charlesw committed Aug 16, 2016
1 parent da010ed commit d307e70
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### Version 3.1.0
### Version 3.2.0

* Fixed PolyBlockType definition - [Issue #280](https://github.com/charlesw/tesseract/issues/280)

### Version 3.1.0

* Support for printing list of available variables - [Issue 256](https://github.com/charlesw/tesseract/issues/256)
* Support for line removal - [Issue 268](https://github.com/charlesw/tesseract/issues/256)
Expand Down
41 changes: 41 additions & 0 deletions src/Tesseract/PolyBlockType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,59 @@ namespace Tesseract
{
public enum PolyBlockType : int
{
/// <summary>
/// The type is not known yet, keep as first element.
/// </summary>
Unknown,
/// <summary>
/// The text is inside a column.
/// </summary>
FlowingText,
/// <summary>
/// The text spans more than one column.
/// </summary>
HeadingText,
/// <summary>
/// The text is in a cross-column pull-out region.
/// </summary>
PullOutText,
/// <summary>
/// The partion belongs to an equation region..
/// </summary>
Equation,
/// <summary>
/// The partion has an inline equation.
/// </summary>
InlineEquation,
/// <summary>
/// The partion belongs to a Table region.
/// </summary>
Table,
/// <summary>
/// Text line runs vertically.
/// </summary>
VerticalText,
/// <summary>
/// Text that belongs to an image.
/// </summary>
CaptionText,
/// <summary>
/// Image that lives inside a column.
/// </summary>
FlowingImage,
/// <summary>
/// Image that spans more than one column.
/// </summary>
HeadingImage,
/// <summary>
/// Image that is in a cross-column pull-out region.
/// </summary>
PullOutImage,
HorizontalLine,
VerticalLine,
/// <summary>
/// Lies outside any column.
/// </summary>
Noise,
Count
}
Expand Down

0 comments on commit d307e70

Please sign in to comment.