[BRLTTY] Contraction table writers: New helper functionality in brltty-ctb

Mario Lang mlang at delysid.org
Tue Apr 16 04:55:11 EDT 2013


Hi.

I just want to introduce a new feature which has just been committed to
the subversion repository: brltty-ctb can now generate and verify
so-colled contraction verification tables.  The idea is simple: You can
use either a word list (/usr/share/dict/words and friends) or some
other large piece of text in your language to generate a contraction
verification table which contains the original text + the actual
contraction of the input, line by line.
If you now apply changes to your actual contraction table, you can
easily verify that they did not introduce any unexpected matches by
verifying the previously written verification table against your
contraction table after you applied your change.
This will list every line of your original input which is now contracted
differently.

With this tool, it is easier to make sure that changes to contraction
tables do not yield unexpected results.

So, how do you use this?  The magic option is -v for brltty-ctb.
Passing -v somename will introduce brltty-ctb to either write or verify
a verification table called somename.cvb.  If you pass any additional
command-line arguments, like a filename, or "-" for standard input,
the given input is used to generate a new verification table.
If you pass no arguments at all, the given verification table is checked
and any differences are reported.

With this tool, I managed to fix about 20000 words in the german
contraction table in the last few days.  It has been very productive to
work with this new tool.

-- 
CYa,
  ⡍⠁⠗⠊⠕


More information about the BRLTTY mailing list