[liblouis-liblouisxml] Re: Defaulting output to an embosser

  • From: "Vic Beckley" <vic.beckley@xxxxxxxxxx>
  • To: <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Sun, 8 May 2011 16:05:35 -0400

John,

Thanks much. I got it now.

Vic


-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of John J.
Boyer
Sent: Sunday, May 08, 2011 3:32 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: Defaulting output to an embosser

Vic,

Thanks for sharing the batch file. It will help others.

The default.cfg file you provided is not being read. Rather, the 
default.cfg file in the share\lbx_files folder you got when you unzipped 
the distribution file is being used. You can specify a configuration 
file on the command line. However, you will be much better off changing 
the file in the distributed folder. I don't like notepad for editing. It 
is a rather primitive program. The reason it shows the files as one long 
line is that it doesn't recognize the Unix newline character. Do you 
have EdSharp? It is much better behaved. In the distributed default.cfg 
change cellsPerLine and linesPerPage uncomment hyphenate if it is 
commented comment the first literaryTextTable and uncomment the second. 
This will give you hyphenation.

Let us know if you have other questions.

Thanks,
John

On Sun, May 08, 2011 at 02:33:33PM -0400, Vic Beckley wrote:
> John,
> 
> Here is what I came up with:
> 
> @Echo off
> xml2brl %1 prn
> 
> I placed this in my SendTo folder and it works like a charm.
> 
> I am having another problem, though. I set the CellsPerLine to 42 instead
of
> 32 in my default.cfg file, but the lines are still not filling out. What
> might cause this? 
> 
> I don't know if it will help or not, but here is my default.cfg file:
> 
> outputFormat
>       cellsPerLine 42
>       linesPerPage 26
>       interpoint no
>       braillePages no
> #     backFormat html
> #     hyphenate yes
> #     interline yes
> translation
>       literaryTextTable en-us-g2.ctb
> #     literaryTextTable en-us-g2.ctb,hyph_en_US.dic
> #     literaryTextTable no-no-g1.ctb
> #     interlineBackTable en-us-interline.ctb
>       compbrlTable en-us-comp8.ctb
> xml
>       internetAccess no
> #     newEntries no
> #     semanticFiles book.sem
> #     entity nbsp ~1
> 
> In Notepad this file shows up as just one long line, but when I pasted it
> into this E-mail it broke it up like this. Is this the way it should be?
> 
> Thanks for your prompt help. I just found out about your project yesterday
> and so far I am very, very impressed. Great job!!!
> 
> Vic
> 
> 
> -----Original Message-----
> From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
> [mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of John J.
> Boyer
> Sent: Sunday, May 08, 2011 2:07 PM
> To: liblouis-liblouisxml@xxxxxxxxxxxxx
> Subject: [liblouis-liblouisxml] Re: Defaulting output to an embosser
> 
> Bic,
> 
> xml2brl is what is called a "filter". If no file names are given it 
> takes its input from the standard input unit, in this case the keyboard, 
> and sends its output to the standard output unit, in this case the 
> screen. This was done so that the output could be piped  to an embosser 
> driver. Since you don't need a driver you are using the generic printer 
> setting with your embosser. 
> 
> One way to do what you want might be to write a simple bat file with a 
> line like the one below and call it file2brl.bat
> 
> xml2brl -- |prn
> 
> and put it in your sendto folder. I don't know if this is quite correct, 
> since I haven't tried it. Please experiment and let us know what you 
> come up with.
> 
> Thanks,
> John
> 
> On Sun, May 08, 2011 at 01:13:41PM -0400, Vic Beckley wrote:
> > Hi John and all,
> > 
> > Is there a setting in the config file or anywhere else to tell xml2brl
to
> > send the output directly to an embosser if a filename is not provided?
If
> I
> > leave off the output filename, it is just written to the screen. I have
to
> > redirect the output to prn to get it to emboss.
> > 
> > I like to put my Braille translator program in the SendTo folder. Then I
> can
> > just right click a file and send it to the translator. This used to work
> > fine with NFBTrans before I went to 64-bit. Now it won't work at all.
> > 
> > When I put xml2brl in the SendTo folder, it just displays the file to
the
> > screen. I need a way to print the text instead of displaying it. Is this
> > possible?
> > 
> > Vic
> > 
> > 
> > For a description of the software, to download it and links to
> > project pages go to http://www.abilitiessoft.com
> 
> -- 
> 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, to download it and links to
> project pages go to http://www.abilitiessoft.com
> 
> For a description of the software, to download it and links to
> project pages go to http://www.abilitiessoft.com

-- 
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, to download it and links to
project pages go to http://www.abilitiessoft.com

For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: