#include <cctype>
#include <cerrno>
#include <cstring>
#include "control.h"
#include <tesseract/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 211 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 ();