Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
text_reassemble.h File Reference

text_reassemble.h from libTERE More...

Go to the source code of this file.

Classes

struct  ALT_SPECS
 alt font entries. More...
 
struct  FNT_SPECS
 Information for a font instance. More...
 
struct  FT_INFO
 Information for all font instances. More...
 
struct  TRCOLORREF
 
struct  TCHUNK_SPECS
 Information for a single text object. More...
 
struct  TP_INFO
 Information for all text objects. More...
 
struct  BRECT_SPECS
 Information for a single bounding rectangle. More...
 
struct  BR_INFO
 Information for all bounding rectangles. More...
 
struct  CHILD_SPECS
 List of all members of a single complex. More...
 
struct  CX_SPECS
 Information for a single complex. More...
 
struct  CX_INFO
 Information for all complexes. More...
 
struct  TR_INFO
 Information for the entire text reassembly system. More...
 
struct  RT_PAD
 Information for one padding record. More...
 

Enumerations

enum  tr_classes {
  TR_TEXT , TR_LINE , TR_PARA_UJ , TR_PARA_LJ ,
  TR_PARA_CJ , TR_PARA_RJ
}
 classification of complexes More...
 

Functions

int TR_findcasesub (const char *string, const char *sub)
 
char * TR_construct_fontspec (const TCHUNK_SPECS *tsp, const char *fontname)
 
char * TR_reconstruct_fontspec (const char *fontspec, const char *fontname)
 
int TR_find_alternate_font (FT_INFO *fti, FNT_SPECS **efsp, uint32_t wc)
 
int TR_getadvance (FT_INFO *fti, FNT_SPECS *fsp, uint32_t wc, uint32_t pc, int load_flags, int kern_mode, int *ymin, int *ymax)
 
int TR_getkern2 (FNT_SPECS *fsp, uint32_t wc, uint32_t pc, int kern_mode)
 
int TR_kern_gap (FNT_SPECS *fsp, TCHUNK_SPECS *tsp, TCHUNK_SPECS *ptsp, int kern_mode)
 
void TR_rt_pad_set (RT_PAD *rt_pad, double up, double down, double left, double right)
 
double TR_baseline (TR_INFO *tri, int src, double *AscMax, double *DscMax)
 
int TR_check_set_vadvance (TR_INFO *tri, int src, int lines)
 
int TR_layout_analyze (TR_INFO *tri)
 
void TR_layout_2_svg (TR_INFO *tri)
 
int TR_weight_FC_to_SVG (int weight)
 
FT_INFOftinfo_init (void)
 
int ftinfo_make_insertable (FT_INFO *fti)
 
int ftinfo_insert (FT_INFO *fti, FNT_SPECS *fsp)
 
FT_INFOftinfo_release (FT_INFO *fti)
 
FT_INFOftinfo_clear (FT_INFO *fti)
 
int ftinfo_find_loaded_by_spec (const FT_INFO *fti, const uint8_t *fname)
 
int ftinfo_find_loaded_by_src (const FT_INFO *fti, const uint8_t *filename)
 
int ftinfo_load_fontname (FT_INFO *fti, const char *fontspec)
 
void ftinfo_dump (const FT_INFO *fti)
 
int fsp_alts_make_insertable (FNT_SPECS *fsp)
 
int fsp_alts_insert (FNT_SPECS *fsp, uint32_t fi_idx)
 
int fsp_alts_weight (FNT_SPECS *fsp, uint32_t a_idx)
 
int csp_make_insertable (CHILD_SPECS *csp)
 
int csp_insert (CHILD_SPECS *csp, int src)
 
int csp_merge (CHILD_SPECS *dst, CHILD_SPECS *src)
 
void csp_release (CHILD_SPECS *csp)
 
void csp_clear (CHILD_SPECS *csp)
 
CX_INFOcxinfo_init (void)
 
int cxinfo_make_insertable (CX_INFO *cxi)
 
int cxinfo_insert (CX_INFO *cxi, int src, int src_rt_idx, enum tr_classes type)
 
int cxinfo_append (CX_INFO *cxi, int src, enum tr_classes type)
 
int cxinfo_merge (CX_INFO *cxi, int dst, int src, enum tr_classes type)
 
int cxinfo_trim (CX_INFO *cxi)
 
CX_INFOcxinfo_release (CX_INFO *cxi)
 
void cxinfo_dump (const TR_INFO *tri)
 
TP_INFOtpinfo_init (void)
 
int tpinfo_make_insertable (TP_INFO *tpi)
 
int tpinfo_insert (TP_INFO *tpi, const TCHUNK_SPECS *tsp)
 
TP_INFOtpinfo_release (TP_INFO *tpi)
 
BR_INFObrinfo_init (void)
 
int brinfo_make_insertable (BR_INFO *bri)
 
int brinfo_insert (BR_INFO *bri, const BRECT_SPECS *element)
 
int brinfo_merge (BR_INFO *bri, int dst, int src)
 
enum tr_classes brinfo_pp_alignment (const BR_INFO *bri, int dst, int src, double slop, enum tr_classes type)
 
int brinfo_overlap (const BR_INFO *bri, int dst, int src, RT_PAD *rp_dst, RT_PAD *rp_src)
 
BR_INFObrinfo_release (BR_INFO *bri)
 
TR_INFOtrinfo_init (TR_INFO *tri)
 
TR_INFOtrinfo_release (TR_INFO *tri)
 
TR_INFOtrinfo_release_except_FC (TR_INFO *tri)
 
TR_INFOtrinfo_clear (TR_INFO *tri)
 
int trinfo_load_qe (TR_INFO *tri, double qe)
 
int trinfo_load_bk (TR_INFO *tri, int usebk, TRCOLORREF bkcolor)
 
int trinfo_load_ft_opts (TR_INFO *tri, int use_kern, int load_flags, int kern_mode)
 
int trinfo_load_textrec (TR_INFO *tri, const TCHUNK_SPECS *tsp, double escapement, int flags)
 
int trinfo_check_bk (TR_INFO *tri, int usebk, TRCOLORREF bkcolor)
 
int trinfo_append_out (TR_INFO *tri, const char *src)
 
int is_mn_unicode (int test)
 

Detailed Description

text_reassemble.h from libTERE

libTERE headers.

See text_reassemble.c for notes

File: text_reassemble.h Version: 0.0.13 Date: 06-FEB-2014 Author: David Mathog, Biology Division, Caltech email: matho.nosp@m.g@ca.nosp@m.ltech.nosp@m..edu Copyright: 2014 David Mathog and California Institute of Technology (Caltech)

Definition in file text_reassemble.h.

Enumeration Type Documentation

◆ tr_classes

enum tr_classes

classification of complexes

Enumerator
TR_TEXT 

simple text object

TR_LINE 

linear assembly of TR_TEXTs

TR_PARA_UJ 

sequential assembly of TR_LINEs and TR_TEXTs into a paragraph -
unknown justification properties

TR_PARA_LJ 

ditto, left justified

TR_PARA_CJ 

ditto, center justified

TR_PARA_RJ 

ditto, right justified

Definition at line 129 of file text_reassemble.h.

Function Documentation

◆ brinfo_init()

BR_INFO * brinfo_init ( void  )

◆ brinfo_insert()

int brinfo_insert ( BR_INFO bri,
const BRECT_SPECS element 
)

◆ brinfo_make_insertable()

int brinfo_make_insertable ( BR_INFO bri)

◆ brinfo_merge()

int brinfo_merge ( BR_INFO bri,
int  dst,
int  src 
)

◆ brinfo_overlap()

int brinfo_overlap ( const BR_INFO bri,
int  dst,
int  src,
RT_PAD rp_dst,
RT_PAD rp_src 
)

◆ brinfo_pp_alignment()

enum tr_classes brinfo_pp_alignment ( const BR_INFO bri,
int  dst,
int  src,
double  slop,
enum tr_classes  type 
)

◆ brinfo_release()

BR_INFO * brinfo_release ( BR_INFO bri)

◆ csp_clear()

void csp_clear ( CHILD_SPECS csp)

◆ csp_insert()

int csp_insert ( CHILD_SPECS csp,
int  src 
)

◆ csp_make_insertable()

int csp_make_insertable ( CHILD_SPECS csp)

◆ csp_merge()

int csp_merge ( CHILD_SPECS dst,
CHILD_SPECS src 
)

◆ csp_release()

void csp_release ( CHILD_SPECS csp)

◆ cxinfo_append()

int cxinfo_append ( CX_INFO cxi,
int  src,
enum tr_classes  type 
)

◆ cxinfo_dump()

void cxinfo_dump ( const TR_INFO tri)

◆ cxinfo_init()

CX_INFO * cxinfo_init ( void  )

◆ cxinfo_insert()

int cxinfo_insert ( CX_INFO cxi,
int  src,
int  src_rt_idx,
enum tr_classes  type 
)

◆ cxinfo_make_insertable()

int cxinfo_make_insertable ( CX_INFO cxi)

◆ cxinfo_merge()

int cxinfo_merge ( CX_INFO cxi,
int  dst,
int  src,
enum tr_classes  type 
)

◆ cxinfo_release()

CX_INFO * cxinfo_release ( CX_INFO cxi)

◆ cxinfo_trim()

int cxinfo_trim ( CX_INFO cxi)

◆ fsp_alts_insert()

int fsp_alts_insert ( FNT_SPECS fsp,
uint32_t  fi_idx 
)

◆ fsp_alts_make_insertable()

int fsp_alts_make_insertable ( FNT_SPECS fsp)

◆ fsp_alts_weight()

int fsp_alts_weight ( FNT_SPECS fsp,
uint32_t  a_idx 
)

◆ ftinfo_clear()

FT_INFO * ftinfo_clear ( FT_INFO fti)

◆ ftinfo_dump()

void ftinfo_dump ( const FT_INFO fti)

◆ ftinfo_find_loaded_by_spec()

int ftinfo_find_loaded_by_spec ( const FT_INFO fti,
const uint8_t *  fname 
)

◆ ftinfo_find_loaded_by_src()

int ftinfo_find_loaded_by_src ( const FT_INFO fti,
const uint8_t *  filename 
)

◆ ftinfo_init()

FT_INFO * ftinfo_init ( void  )

◆ ftinfo_insert()

int ftinfo_insert ( FT_INFO fti,
FNT_SPECS fsp 
)

◆ ftinfo_load_fontname()

int ftinfo_load_fontname ( FT_INFO fti,
const char *  fontspec 
)

◆ ftinfo_make_insertable()

int ftinfo_make_insertable ( FT_INFO fti)

◆ ftinfo_release()

FT_INFO * ftinfo_release ( FT_INFO fti)

◆ is_mn_unicode()

int is_mn_unicode ( int  test)

◆ tpinfo_init()

TP_INFO * tpinfo_init ( void  )

◆ tpinfo_insert()

int tpinfo_insert ( TP_INFO tpi,
const TCHUNK_SPECS tsp 
)

◆ tpinfo_make_insertable()

int tpinfo_make_insertable ( TP_INFO tpi)

◆ tpinfo_release()

TP_INFO * tpinfo_release ( TP_INFO tpi)

◆ TR_baseline()

double TR_baseline ( TR_INFO tri,
int  src,
double *  AscMax,
double *  DscMax 
)

◆ TR_check_set_vadvance()

int TR_check_set_vadvance ( TR_INFO tri,
int  src,
int  lines 
)

◆ TR_construct_fontspec()

char * TR_construct_fontspec ( const TCHUNK_SPECS tsp,
const char *  fontname 
)

◆ TR_find_alternate_font()

int TR_find_alternate_font ( FT_INFO fti,
FNT_SPECS **  efsp,
uint32_t  wc 
)

◆ TR_findcasesub()

int TR_findcasesub ( const char *  string,
const char *  sub 
)

◆ TR_getadvance()

int TR_getadvance ( FT_INFO fti,
FNT_SPECS fsp,
uint32_t  wc,
uint32_t  pc,
int  load_flags,
int  kern_mode,
int *  ymin,
int *  ymax 
)

◆ TR_getkern2()

int TR_getkern2 ( FNT_SPECS fsp,
uint32_t  wc,
uint32_t  pc,
int  kern_mode 
)

◆ TR_kern_gap()

int TR_kern_gap ( FNT_SPECS fsp,
TCHUNK_SPECS tsp,
TCHUNK_SPECS ptsp,
int  kern_mode 
)

◆ TR_layout_2_svg()

◆ TR_layout_analyze()

◆ TR_reconstruct_fontspec()

char * TR_reconstruct_fontspec ( const char *  fontspec,
const char *  fontname 
)

◆ TR_rt_pad_set()

void TR_rt_pad_set ( RT_PAD rt_pad,
double  up,
double  down,
double  left,
double  right 
)

◆ TR_weight_FC_to_SVG()

int TR_weight_FC_to_SVG ( int  weight)

◆ trinfo_append_out()

int trinfo_append_out ( TR_INFO tri,
const char *  src 
)

◆ trinfo_check_bk()

int trinfo_check_bk ( TR_INFO tri,
int  usebk,
TRCOLORREF  bkcolor 
)

◆ trinfo_clear()

◆ trinfo_init()

◆ trinfo_load_bk()

◆ trinfo_load_ft_opts()

int trinfo_load_ft_opts ( TR_INFO tri,
int  use_kern,
int  load_flags,
int  kern_mode 
)

◆ trinfo_load_qe()

◆ trinfo_load_textrec()

int trinfo_load_textrec ( TR_INFO tri,
const TCHUNK_SPECS tsp,
double  escapement,
int  flags 
)

◆ trinfo_release()

TR_INFO * trinfo_release ( TR_INFO tri)

◆ trinfo_release_except_FC()