"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "textline.h" between
ocrad-0.24.tar.gz and ocrad-0.25.tar.gz

About: GNU Ocrad is an OCR (Optical Character Recognition) program.

textline.h  (ocrad-0.24):textline.h  (ocrad-0.25)
/* GNU Ocrad - Optical Character Recognition program /* GNU Ocrad - Optical Character Recognition program
Copyright (C) 2003-2014 Antonio Diaz Diaz. Copyright (C) 2003-2015 Antonio Diaz Diaz.
This program is free software: you can redistribute it and/or modify This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or the Free Software Foundation, either version 2 of the License, or
(at your option) any later version. (at your option) any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
skipping to change at line 44 skipping to change at line 44
void verify_big_initials(); void verify_big_initials();
int big_initials() const { return big_initials_; } int big_initials() const { return big_initials_; }
Character & character( const int i ) const; Character & character( const int i ) const;
Character * character_at( const int col ) const; Character * character_at( const int col ) const;
int characters() const { return cpv.size(); } int characters() const { return cpv.size(); }
Rectangle charbox( const Character & c ) const; Rectangle charbox( const Character & c ) const;
int width() const int width() const
{ return cpv.empty() ? 0 : cpv.back()->right() - cpv.front()->left(); } { return cpv.empty() ? 0 : cpv.back()->right() - cpv.front()->left(); }
bool is_key_character( const int i ) const; // isalnum of normal size
void delete_character( const int i ); void delete_character( const int i );
int shift_characterp( Character * const p, const bool big = false ); int shift_characterp( Character * const p, const bool big = false );
bool insert_space( const int i, const bool tab = false ); bool insert_space( const int i, const bool tab = false );
void insert_spaces(); void insert_spaces();
void join( Textline & tl ); void join( Textline & tl );
int mean_height() const; int mean_height() const;
Rational mean_width() const; Rational mean_width() const;
Rational mean_gap_width( const int first = 0, int last = -1 ) const; Rational mean_gap_width( const int first = 0, int last = -1 ) const;
int mean_hcenter() const; int mean_hcenter() const;
skipping to change at line 65 skipping to change at line 67
void print( const Control & control ) const; void print( const Control & control ) const;
void dprint( const Control & control, const bool graph, void dprint( const Control & control, const bool graph,
const bool recursive ) const; const bool recursive ) const;
void xprint( const Control & control ) const; void xprint( const Control & control ) const;
void cmark( Page_image & page_image ) const; void cmark( Page_image & page_image ) const;
void recognize1( const Charset & charset ) const; void recognize1( const Charset & charset ) const;
void recognize2( const Charset & charset ); void recognize2( const Charset & charset );
void apply_filter( const Filter::Type filter ); void apply_filter( const Filter::Type filter );
void apply_user_filter( const User_filter & user_filter );
void join_broken_unrecognized_characters();
void remove_leadind_trailing_duplicate_spaces();
}; };
 End of changes. 3 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS