[brailleblaster] Re: Using IDs or Classes in Config files

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 29 Jul 2013 16:00:24 -0500

I'll have to check this out. It probably means a bug fix.

John

On Mon, Jul 29, 2013 at 04:54:34PM -0400, Brandon Roller wrote:
> OK, I can get it to open but only if I place the new semantic file in the
> brailleblaster's lbu_files folder.
> If I try to put the full path in the configuration string it says that it
> can't find the file.  I would like to keep the new semantic file with the
> original document. Is that possible?
> 
> 
> On Mon, Jul 29, 2013 at 4:29 PM, John J. Boyer <john.boyer@xxxxxxxxxxxxxxxxx
> > wrote:
> 
> > Well, the proper configuration setting is semanticFiles, as you mikght
> > have guesed.
> >
> > John
> >
> > On Mon, Jul 29, 2013 at 03:47:17PM -0400, Brandon Roller wrote:
> > > When I pass semanticsFiles newSem.sem as a configurations setting  keep
> > > getting the error 'semanticsFiles' in column 1 not recognized.
> > > Any idea why this might be happening?
> > >
> > >
> > > On Fri, Jul 26, 2013 at 3:34 PM, John J. Boyer <
> > john.boyer@xxxxxxxxxxxxxxxxx
> > > > wrote:
> > >
> > > > The least cumbersome way to handle blocks that require special styles
> > > > would be to add the styles to nimas.cfg and make a special
> > > > semantic-actions file for the document with lines such as
> > > >
> > > > newStyle p,id,01
> > > >
> > > > Then when you call translateFile use a configSettings string like
> > > >
> > > > semanticFiles thisdoc.sem
> > > >
> > > > This will have the effect of including thisdoc.sem at the end of
> > > > nimas.sem
> > > >
> > > > John
> > > >
> > > > On Fri, Jul 26, 2013 at 01:47:06PM -0400, Brandon Roller wrote:
> > > > > Can I use the semantic actions configfile or configstring?  Let's
> > say a
> > > > > paragraph has an id 01 and I want it to have 3 lines before and 2
> > lines
> > > > > after.
> > > > > With configfile would I make an entry such as configfile
> > > > > p,id,01,newConfig.cfg?
> > > > > With configstring would I make an entry like
> > > > > configstring,p,01,linesBefore=3;linesAfter=3; ?
> > > > >
> > > > >
> > > > > On Fri, Jul 26, 2013 at 1:39 PM, John J. Boyer <
> > > > john.boyer@xxxxxxxxxxxxxxxxx
> > > > > > wrote:
> > > > >
> > > > > > Brandon,
> > > > > >
> > > > > > References to a particular document belong in the semantic-actions
> > > > file.
> > > > > > You can add the new style to the configuration file or you could
> > create
> > > > > > a temparary configuration file that includes the "standard" one
> > and has
> > > > > > the new style. This temparary file could also contain a
> > semanticFiles
> > > > > > setting giving the name of a temporary semantics file for the
> > document
> > > > > > which would assign the new style to the paragraph with its ID.
> > Since
> > > > the
> > > > > > document may contain several paragrraphs requiring the new style
> > you
> > > > > > will need a separate entry in the temporary semantic file for each
> > one.
> > > > > >
> > > > > > This is a situation that was not known when liblouisutdml was being
> > > > > > developed. Perhaps a less cumbersome way can be added.
> > > > > >
> > > > > > John
> > > > > >
> > > > > > On Fri, Jul 26, 2013 at 01:06:37PM -0400, Brandon Roller wrote:
> > > > > > > Let's say one specific paragraph has different formatting than
> > the
> > > > > > standard
> > > > > > > para.  It is centered and has 3 lines before and 2 lines after.
> >  I
> > > > was
> > > > > > > hoping that I could simply create a new style based off the
> > elements
> > > > > > class
> > > > > > > or id attribute.
> > > > > > >
> > > > > > >
> > > > > > > On Fri, Jul 26, 2013 at 12:26 PM, John J. Boyer <
> > > > > > > john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> > > > > > >
> > > > > > > > Brandon,
> > > > > > > >
> > > > > > > > Please give more details. What are you trying to accomplish?
> > > > > > > >
> > > > > > > > John
> > > > > > > >
> > > > > > > > On Fri, Jul 26, 2013 at 09:30:59AM -0400, Brandon Roller wrote:
> > > > > > > > > Is there a way to specify an id or class for special
> > formatting
> > > > in a
> > > > > > > > > configuration file? I don't see anything in the
> > doucmentation.
> > > > > > > >
> > > > > > > > --
> > > > > > > > John J. Boyer; President, Chief Software Developer
> > > > > > > > Abilitiessoft, Inc.
> > > > > > > > http://www.abilitiessoft.com
> > > > > > > > Madison, Wisconsin USA
> > > > > > > > Developing software for people with disabilities
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > > --
> > > > > > John J. Boyer; President, Chief Software Developer
> > > > > > Abilitiessoft, Inc.
> > > > > > http://www.abilitiessoft.com
> > > > > > Madison, Wisconsin USA
> > > > > > Developing software for people with disabilities
> > > > > >
> > > > > >
> > > > > >
> > > >
> > > > --
> > > > John J. Boyer; President, Chief Software Developer
> > > > Abilitiessoft, Inc.
> > > > http://www.abilitiessoft.com
> > > > Madison, Wisconsin USA
> > > > Developing software for people with disabilities
> > > >
> > > >
> > > >
> >
> > --
> > John J. Boyer; President, Chief Software Developer
> > Abilitiessoft, Inc.
> > http://www.abilitiessoft.com
> > Madison, Wisconsin USA
> > Developing software for people with disabilities
> >
> >
> >

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


Other related posts: