[liblouis-liblouisxml] A question with future extending the hungarian grade1 table related testing tasks

  • From: Hammer Attila <hammera@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Tue, 08 May 2012 14:07:44 +0200

Hy,

Yesterday afternoon I talked Mesar in Liblouis IRC channel future possible need extending the hungarian Liblouis test harness file with short sentences with testing more possibilities the new hungarian contraction table. Now, the hungarian test harness file containing my added example single words only.

I generated following automatic way the test harness file, I talked Mesar when I finalized the automatic way generator script, I will be sending the list. Hopefuly the future script will be help beginner table creators the test harness file generation.

First, you need known a single plain text file need containing the example words (or future sentences or paragraph), with separated new lines. The Python script with I begin doing read the text file, and do following tasks: 1. - Put the beginning { character the second parameter gived file, of course proper indenting the line with four spaces. 2. Put the 'txt': u'readed word or line' line, indenting with eight spaces the line. 3. Put the 'brl': beginning line, and put the Liblouis translateString function returned output, and indenting the line with eight spaces. 4. Put the final } and comma character, of course indenting this line with four characters. If this method are acceptable other languages the test harness file automatic generation method, I need finalizing the script, I would like add parameters supporting. I need doing the header part generation, and the end part generation. When I doed this way the hungarian test harness file automatic generation, I used louis.translateString function the braille output generation, because I already known every used example words is right presenting when I using Liblouis with Orca, or when I turns off contraction table with Orca and using the Brltty awailable hungarian euro braille table, table name in Brltty is hu.ttb file.

My questions is following:
1. If I want put short sentences with testing the hungarian new braille standard required contractions with Mesar suggested me, I need put the short sentences the test harness file, or this purpose have other better testing possibilities? 2. For example what purpose tests doing the txt files in the doctests directory?

Attila
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: