2005-02-23 Bill Haneman * configure.in, NEWS, README: Revved to 0.0.3. * gnome-braille/Makefile.am: Added braille-table.c and braille-table.h. * gnome-braille/braille-table-encoder.c: Split the braille table internals out into braille-table.c and braille-table.h. * gnome-braille/braille-encoder.c: Moved the BrailleContext globals here, and exposed (they were statics before). Also moved (braille_context_add_new, braille_context_match): Moved here, exported. (braille_get_contexts): Moved here and exported. * gnome-braille/braille-encoder.h: Moved BrailleContext here. * gnome-braille/braille-table.h: Export braille_table_construct_from_file, braille_table_construct_from_stream, braille_table_encode_to_buffer, braille_table_check_suffix. (braille_table_check_suffix): Now return a gchar*, or NULL - we still get success/failure info, because even if there's no prefix to add, we return an empty string on success, and only return NULL if we didn't find a suffix. * gnome-braille/braille-table.c: (braille_table_lookup_char): Fix, avoid strdup'ing NULL. (braille_table_match_string): Don't search if the string is empty. (braille_table_encode_chunk_to_buffer): Fixes for string match case, allow pass-through, prevent getting stuck in a loop here. (ucs_block_new): Use g_malloc0 instead of g_malloc, to ensure that we're not storing random junk in parts of the table which are unfilled by the data stream. (braille_table_construct_from_stream): Support 'PASS-THROUGH' token on UNKNOWN-CHAR line. Fix for behavior of unspecified context change strings, i.e. if the token returned is the empty string. (braille_table_encode_chunk): New, refactor. (braille_table_append_to_buffer): New, part of refactor. Fixed the offset/index math, the push/pop context strings, and other bugs. * tables/grade2-en.tbl: Experimental implementation of 'naive' grade2 contraction. It always contracts, does not implement contextual or semantic rules for when to do so. 2005-02-22 Bill Haneman * gnome-braille/braille-console.h: New class/interface, allows creation of an object comprising both a list of chained encoders and an output display. * gnome-braille/braille-console.c: New file.