#include <cctype>
#include <cerrno>
#include <cstring>
#include "helpers.h"
#include "tessvars.h"
#include "control.h"
#include "reject.h"
#include "docqual.h"
#include "output.h"
#include "globals.h"
#include "tesseractclass.h"
Go to the source code of this file.
◆ CTRL_DEFAULT
#define CTRL_DEFAULT '\017' |
◆ CTRL_FONT
◆ CTRL_HARDLINE
#define CTRL_HARDLINE '\015' |
◆ CTRL_INSET
#define CTRL_INSET '\024' |
◆ CTRL_NEWLINE
#define CTRL_NEWLINE '\012' |
◆ CTRL_SHIFT
#define CTRL_SHIFT '\022' |
◆ CTRL_TAB
◆ EPAPER_EXT
◆ PAGE_YSIZE
◆ 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 220 of file output.cpp.
234 if (next_word ==
nullptr || next_block ==
nullptr || block != next_block)
236 if (next_word->
space () > 0)
242 end_gap = block_box.
right () - word_box.
right ();
243 end_gap -= (int32_t) block->
space ();
244 width = next_box.
right () - next_box.
left ();
int16_t space() const
return spacing
TBOX bounding_box() const
bool flag(WERD_FLAGS mask) const
void bounding_box(ICOORD &bottom_left, ICOORD &top_right) const
get box