#include "mfcpch.h"
#include <string.h>
#include <ctype.h>
#include "helpers.h"
#include "tfacep.h"
#include "tessvars.h"
#include "control.h"
#include "secname.h"
#include "reject.h"
#include "docqual.h"
#include "output.h"
#include "bestfirst.h"
#include "globals.h"
#include "tesseractclass.h"
Go to the source code of this file.
Macro Definition Documentation
#define CTRL_DEFAULT '\017' |
#define CTRL_HARDLINE '\015' |
#define CTRL_INSET '\024' |
#define CTRL_NEWLINE '\012' |
#define CTRL_SHIFT '\022' |
Function Documentation
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 311 of file output.cpp.
{
if (next_word ==
NULL || next_block ==
NULL || block != next_block)
if (next_word->
space () > 0)
width = next_box.
right () - next_box.
left ();
}
Definition at line 61 of file output.cpp.
{
float pts;
pts = pixels * 72.0 / pix_res;
return (
inT32) (pts + 0.5);
}