[liblouis-liblouisxml] Re: future hu-hu-g2.ctb table: questions with context rules related

  • From: Hammer Attila <hammera@xxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Mon, 23 Jan 2017 17:06:22 +0100

Hi,

I founded a solution with Ország János related exception case:
I added following lines in my test table:
class orszag O
context [%orszag"rszág"]$a$U @135-1235-156-4-1245
If this rule defined, when the Ország word beginning with capital o letter and follow up an uppercase letter beginning word, the ország word not abbreviated with 135-1245 dots.
Good this two lines rule, or have a simplest way to I get same good result?

I founded a solution with following example:
"A Volt egy mértékegység."
I added following two lines:
class nevelo A
context %nevelo$s["Volt"]$s"egy"$s @1236-135-123-2345
If I testing this rule with the following examples, the rule is working right all situation:
"A volt miniszter"
This context right abbreviated the volt word with 1236-2345 dots.

A Volt egy mértékegység"
This context the volt part not abbreviated, my braille display presents right the 1236-135-123-2345 dots.
"Volt egyszer egy ember"
This context right abbreviated the volt word with beginning part of sentence the 1236-2345 dots.
Good this rule definition way this situation, or have a simplest way to I get always good result these text contexts?

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

Other related posts: