[BRLTTY] Contraction error and patch: in hyphen com

Lee Maschmeyer leemer1 at comcast.net
Sat May 8 13:33:03 EDT 2010


Hi folks,

Consider the sentence (read in grade 2 using en-us-g2.ctb):

He was in--completely in.

Now the almost identical sentence:

He was in - completely in.

The difference is that the first sentence contains two hyphens whereas
the second has space hyphen space.

There's a rule in the table making "in space hyphen space" translate
as "in hyphen hyphen." The attached patch adds "in space hyphen space
com".

The only thing I can't do via the contraction table is handle the case
where there's a line break in there. "He was in (newline) hyphen space
completely in." I tried adding "after \r" and "after \n" but neither
works.

Anyway, I believe this is a bit better than it was.

Have fun,

-- 

Lee Maschmeyer

"Never imagine yourself not to be otherwise than what it might appear
to others that what you were or might have been was not otherwise than
what you had been would have appeared to them to be otherwise."
     --Lewis Carroll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: In.patch
Type: text/x-diff
Size: 455 bytes
Desc: not available
URL: <http://mielke.cc/pipermail/brltty/attachments/20100508/db28ed64/attachment.bin>


More information about the BRLTTY mailing list