"Fossies" - the Fresh Open Source Software Archive

Member "klavaro-3.13/src/accuracy.h" (18 Apr 2021, 2439 Bytes) of package /linux/privat/klavaro-3.13.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "accuracy.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 3.12_vs_3.13.

    1 /**************************************************************************/
    2 /*  Klavaro - a flexible touch typing tutor                               */
    3 /*  Copyright (C) 2005-2021 Felipe Emmanuel Ferreira de Castro            */
    4 /*                                                                        */
    5 /*  This file is part of Klavaro, which is a free software: you can       */
    6 /*  redistribute it and/or modify it under the terms of the GNU General   */
    7 /*  Public License as published by the Free Software Foundation, either   */
    8 /*  version 3 of the License, or (at your option) any later version.      */
    9 /*                                                                        */
   10 /*  Klavaro is distributed in the hope that it will be useful,            */
   11 /*  but WITHOUT ANY WARRANTY; without even the implied warranty of        */
   12 /*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         */
   13 /*  GNU General Public License for more details (in the file COPYING).    */
   14 /*  You should have received a copy of the GNU General Public License     */
   15 /*  along with Klavaro.  If not, see <https://www.gnu.org/licenses/>      */
   16 /**************************************************************************/
   17 
   18 #include <plot.h>
   19 #include <glib.h>
   20 
   21 #define ACCUR_LOG_FILE "accuracy.log"
   22 #define PROFI_LOG_FILE "proficiency.log"
   23 #define MAX_CHARS_EVALUATED 130
   24 #define MAX_TT_SAVED 30
   25 #define ERROR_INERTIA 10 /* How many correct touchs to eliminate a wrong one (it was 30 first) */
   26 #define ERROR_LIMIT 60   /* How many errors to start a special practice on adaptability */
   27 #define PROFI_LIMIT 2.2  /* How many times the 10th slowest key-touch-time should be relative to the 40th slowest one, 
   28                 in order to start a special practice on adaptability */ 
   29 #define UTF8_BUFFER 7
   30 
   31 void accur_init (void);
   32 void accur_terror_reset (void);
   33 void accur_ttime_reset (void);
   34 void accur_reset (void);
   35 gint accur_terror_n_get (void);
   36 gint accur_ttime_n_get (void);
   37 gchar * accur_terror_char_utf8 (gint i);
   38 gchar * accur_ttime_char_utf8 (gint i);
   39 gulong accur_wrong_get (gint i);
   40 gdouble accur_profi_aver (gint i);
   41 gint accur_profi_aver_norm (gint i);
   42 void accur_correct (gunichar uchr, double touch_time);
   43 void accur_wrong (gunichar uchr);
   44 gulong accur_error_total (void);
   45 void accur_terror_sort (void);
   46 void accur_ttime_sort (void);
   47 void accur_sort (void);
   48 gboolean accur_create_word (gunichar *word);
   49 void accur_close (void);