klavaro
3.13
About: Klavaro is a touch typing tutor program.
![]() ![]() |
Go to the source code of this file.
Macros | |
#define | MAX_WORDS 12123 |
Functions | |
gchar * | velo_get_dict_name (void) |
void | velo_reset_dict (void) |
void | velo_init (void) |
void | velo_init_dict (gchar *) |
void | velo_draw_random_words (void) |
gchar * | velo_filter_utf8 (gchar *text) |
void | velo_text_write_to_file (gchar *text_raw, gboolean overwrite) |
void | velo_create_dict (gchar *file_name, gboolean overwrite) |
void | velo_comment (gdouble accuracy, gdouble velocity) |
#define MAX_WORDS 12123 |
Definition at line 18 of file velocity.h.
void velo_comment | ( | gdouble | accuracy, |
gdouble | velocity | ||
) |
Put on the screen the final comments
Definition at line 436 of file velocity.c.
References _, accuracy, get_wg(), tutor_goal_accuracy(), tutor_goal_level(), and tutor_goal_speed().
Referenced by tutor_calc_stats().
void velo_create_dict | ( | gchar * | file_name, |
gboolean | overwrite | ||
) |
Reads the text file "file_name" and write to the dictionary. If overwrite is TRUE, then besides overwriting any .words file, it loads a lesson with the new dictionary.
Definition at line 376 of file velocity.c.
References assert_user_dir(), main_path_user(), QUERY_INTRO, tutor_process_touch(), tutor_set_query(), velo_filter_utf8(), and velo_init_dict().
Referenced by fluid_copy_text_file(), and on_button_filechooser_open_clicked().
void velo_draw_random_words | ( | void | ) |
Draw random phrases with words selected from a 'discretionary'
Definition at line 170 of file velocity.c.
References dict, i, j, par, trans_lang_has_stopmark(), tutor_draw_paragraph(), and tutor_is_tibetan().
Referenced by tutor_update_start().
gchar* velo_filter_utf8 | ( | gchar * | text | ) |
Takes text and make a list of words, one per line, validating as UTF-8
Definition at line 237 of file velocity.c.
References i, len, and MAX_WORDS.
Referenced by velo_create_dict(), and velo_text_write_to_file().
gchar* velo_get_dict_name | ( | void | ) |
Interface functions
Definition at line 50 of file velocity.c.
References dict.
Referenced by tutor_calc_stats().
void velo_init | ( | void | ) |
Initialize the velo exercise window.
Definition at line 69 of file velocity.c.
References dict, main_preferences_exist(), main_preferences_get_string(), and velo_init_dict().
Referenced by tutor_init().
void velo_init_dict | ( | gchar * | list_name | ) |
Retrieves words from the dictionary.
Definition at line 91 of file velocity.c.
References dict, main_path_data(), main_path_user(), main_preferences_get_string(), main_preferences_remove(), main_preferences_set_string(), OTHER_DEFAULT, trans_lang_get_similar_file_name(), and velo_reset_dict().
Referenced by on_button_other_apply_clicked(), velo_create_dict(), velo_init(), and velo_text_write_to_file().
void velo_reset_dict | ( | void | ) |
Definition at line 56 of file velocity.c.
References dict.
Referenced by trans_change_language(), and velo_init_dict().
void velo_text_write_to_file | ( | gchar * | text_raw, |
gboolean | overwrite | ||
) |
Reads the text "text_raw" and write to the dictionary. If overwrite is TRUE, then besides overwriting any .words file, it loads a lesson with the new dictionary.
Definition at line 330 of file velocity.c.
References _, assert_user_dir(), main_path_user(), QUERY_INTRO, tutor_process_touch(), tutor_set_query(), velo_filter_utf8(), and velo_init_dict().
Referenced by fluid_text_write_to_file(), on_button_other_paste_clicked(), and on_entry_mesg_insert_text().