[liblouis-liblouisxml] Chosing liblouis Tables Based on Language

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 23 Dec 2009 10:10:16 -0600

There may be several tables for a language, and users will want to pick 
their preferred one. The best way to accommodate them is probably to 
have a file in the liblouis tables directory which they can modify if 
they wish. This file would have two columns. The first would be a 
language code like en or de. The second would be a table list consisting 
of the names of tables separated by commas. A new liblouis function, 
lou_findTable would read this file. It would be called with a character 
string as the argument. If this string occurs in the first column of the 
file it would load the tables in the second column and return a 1. If 
the table cannot be found or does not load, it would return a 0. 
Functions like lou_translate would need modification so they can 
recognize a language specification instead of a table list.

John

-- 
John J. boyer; President, Chief Software Developer
Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

For a description of the software and to download it go to
http://www.jjb-software.com

Other related posts:

  • » [liblouis-liblouisxml] Chosing liblouis Tables Based on Language - John J. Boyer