[liblouis-liblouisxml] Re: Difficulty with the context opcode.

  • From: "Paul Wood (Torch)" <paulw@xxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 4 Jan 2017 11:47:08 +0000

Hi guys,

Just a out of the box suggestion which is probably mad or just missing the point! Using regex pre-process the input and markup the english or greek which ever is easiest and switch tables on that markup.

e.g. <p><span lang='gr-gr-g1.utb'>γηράσκω δ' αἰεὶ πολλὰ διδασκόμενος</span> <span lang='en-ueb-g2.ctb'>I grow old-indeed-always-many things-learning</span></p>

changetable    span,lang

HTH
Paul

On 04/01/2017 11:30, Dave Mielke wrote:

[quoted lines by Bert Frees on 2017/01/04 at 11:56 +0100]

Anyway, this seems to work for me:

    pass2 %englishLetter. @56*

Can you try that?
Yes, and no. It works, but it puts dots 56 in front of the Greek letters, too.
This is probably because pass2 is working with dots and no longer knows the
original character class. When I use context, instead, it adds dots 56 but then
generates a space for each letter.

By the way: I'm trying with 3.0 and with 2.6.5. 3.0 wants capsletter whereas
2.6.5 wants capsign. Both, however, support begcaps. The document I found on
the web does document capsign so I figured 3.0 would still support it.


--
Paulw.torchtrust signature

Paul Wood, Chief Technical Officer
*Torch Trust*
Torch House, Torch Way,
Market Harborough, Leics. LE16 9HL, UK
Direct Line: *+44(0)1858 438269*
Tel: *+44(0)1858 438260*, Fax: *+44(0)1858 438275*
Email: paulw@xxxxxxxxxxxxxx <mailto:paulw@xxxxxxxxxxxxxx>
Website: www.torchtrust.org <http://www.torchtrust.org/>

____________________________________________________

Chief Executive: Dr Gordon Temple
Charity No. 1095904

Privileged/Confidential Information may be contained in this message.
If you are not the intended recipient please destroy this message
and kindly notify the sender by reply email. The computer from which
this mail originates is equipped with virus screening software.
However Torch Trust cannot guarantee that the mail and its attachments
are free from virus infection.

Other related posts: