[liblouis-liblouisxml] Re: Using user defined config file

  • From: "Jeff Dittel" <jeff@xxxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Wed, 5 Mar 2008 13:52:16 -0600

John,

Attached is the default.cfg file (which I added the xmlheader line to the
xml section).  I took out the use of my .sem file for now.  

Here is the code:

  UserData * pUserData = static_cast< UserData* >( lbx_initialize(
"C:/VCP/CT5000/Development/CT5000/Central/CD/Braille/lbx_files/default.cfg",
"LibLouis.log" ) );
  char s[ 128 ];
  strcpy( s, pUserData->xml_header );

and here is what the variable s equals:

"<?xml version='1.0' encoding='UTF8' standalone='yes'?>"

which is the value in canonical.cfg.  

Jeff


-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of John J.
Boyer
Sent: Wednesday, March 05, 2008 1:10 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: Using user defined config file

Jeff,

This should work. Please send your configuration file and the code you 
are using to call lbx_translateString. You do not have to call 
lbx_inisialize first unless you wish to use the data in the user-data 
structure in your own program.

Thanks,
John

On Wed, Mar 05, 2008 at 10:04:22AM -0600, Jeff Dittel wrote:
> 
> Hello,
> 
> I am using LibLouisXML and I am trying to change some of the settings in
> canonical.cfg.  In the configuration file passed into lbx_initialize() and
> lbx_translateString() I have made the changes:
> 
> xml
>       xmlheader "<?xml version="1.0"?>"
>       semanticFiles QSI.sem
> 
> First, the new smlheader does not seem to be in the UserData structure
> passed back by lbx_initialize().  Isn't it supposed to be?
> 
> Second, I don't think my .sem file is being utilized either.  What do I
have
> to do to use my new QSI.sem file?
> 
> Thanks,
> 
> Jeff
> 
> Jeff Dittel, President
> ~~~~~~~~~~~~~~~~~~~~~~
> Britlan, Ltd.
> 516 East Birch Avenue
> Whitefish Bay, WI 53217
> jeff@xxxxxxxxxxx
> U.S. Office: (414)962-2281
> Costa Rica Office: (414)290-0574
> 
> 



-- 
John J. boyer; President, Chief Software Developer
JJB Software, Inc.
http://www.jjb-software.com
Madison, WI 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: