[liblouis-liblouisxml] Re: SV: Re: SV: Use another contraction table for words with all capital letters

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: "liblouis-liblouisxml@xxxxxxxxxxxxx" <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Mon, 25 Jan 2016 11:13:31 +0100

Thanks!

2016-01-24 22:11 GMT+01:00 Lars Bjørndal <lars@xxxxxxxxxxx>:

Hi, Bert!

You wrote:

Did what Bue suggested work for you?

No, sorry, I can't get the capsnocont opcode to do anything. I'll
attach a test case. Be aware that the current official version of the
table no-no-g1.ctb doesn't have the opcode inserted. I added it
locally and tested, but no difference.

Thanks and regards,

Lars

Bue Vester-Andersen writes:

Hi Lars,

As I remember the manual, the capsnocont opcode does not take any
parameters. It simply specifies that contractions are not allowed
between
begcaps and endcaps. For a related opcode, please see nocont [chars],
which
specifies that contractions are not allowed in words that contain
[chars].
In Danish, I use this upcode for internet and mail addresses,
filenames and
the like.

I haven't checked exactly what opcodes are affected by nocont and
capsnocont, but I expect most opcodes under section 2.8, translation
opcodes, are affected, and probably also all the multipass opcodes.

If some of these opcodes are used to define rules that are valid in an
allcaps word, then there would be a problem.

Bue


-----Oprindelig meddelelse-----
Fra: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] På vegne af Lars
Bjørndal
Sendt: 1. januar 2016 12:40
Til: liblouis-liblouisxml@xxxxxxxxxxxxx
Emne: [liblouis-liblouisxml] Re: SV: Use another contraction table for
words
with all capital letters

Hi, Bue!

You wrote:

capsnocont should do exactly that. In the manual, the Norwegian table
is
actually being referred to as an example.

Thank you. I was not aware of this opcode, or I have forgotten it, not
sure.

I don't know if it works, but if it doesn't, then we should probably
try
to
fix it.

I checked it now, and it doesn't work.

I'm a bit unsure how this opcode ideally should work. Some sort of
conversion is may be necessary, but the opcodes like word endword and
so on should not be used. So the easiest is maybe to have the desired
table as an operand for the capsnocont opcode.

Hope we can investigate to implement it.

Thanks and regards,

Lars

-----Oprindelig meddelelse-----
Fra: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] På vegne af Lars
Bjørndal
Sendt: 31. december 2015 22:56
Til: liblouis-liblouisxml
Emne: [liblouis-liblouisxml] Use another contraction table for words
with
all capital letters

Is it possible to define another contraction table when all letters
in a
word is written in capital letters? In our language we have a rule
that
says that a word or part of a word, that starts with two dot 6, e.g.
all
are capital letters, should not be contracted. Is that possible to do
automagically with liblouis?

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

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

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

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

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


Other related posts: