#include <cctype>
#include <cerrno>
#include <cstring>
#include "control.h"
#include "helpers.h"
#include "output.h"
#include "tesseractclass.h"
#include "tessvars.h"
#include "docqual.h"
#include "reject.h"
Go to the source code of this file.
◆ CTRL_HARDLINE
#define CTRL_HARDLINE '\015' |
◆ CTRL_NEWLINE
#define CTRL_NEWLINE '\012' |
◆ determine_newline_type()
char determine_newline_type |
( |
WERD * |
word, |
|
|
BLOCK * |
block, |
|
|
WERD * |
next_word, |
|
|
BLOCK * |
next_block |
|
) |
| |
test line ends
- Parameters
-
word | word to do |
block | current block |
next_word | next word |
next_block | block of next word |
Definition at line 213 of file output.cpp.
227 if (next_word ==
nullptr || next_block ==
nullptr || block != next_block)
229 if (next_word->
space () > 0)
235 end_gap = block_box.
right () - word_box.
right ();
236 end_gap -=
static_cast<int32_t
>(block->
space ());
237 width = next_box.
right () - next_box.
left ();
void bounding_box(ICOORD &bottom_left, ICOORD &top_right) const
get box
bool flag(WERD_FLAGS mask) const
int16_t space() const
return spacing
PDBLK pdblk
Page Description Block.
TBOX bounding_box() const