I've put a snapshot of my latest twisted up version of QuickBook at http://www.openseaconsulting.com/boost/qb20050306.zip.  This is NOT what I would consider anywhere close to thoroughly tested, although it is working for me so far with MSVC7.1.  There are a number of things in there that have been recently discussed, as well as a few tidbits I threw in while working on documentation for one of my current projects.  Here's a quick overview of what's in there:
  • Thomas's dynamic highlighting code
    • I fixed the newline problem
    • still a bit flaky with tabs
    • quickbook.hlt automatically loaded at startup
  • [sectionlink ...]
  • [macroref ...]
  • include support
    • [include ...] directive
      • does the obvious thing for somefile.qbk
      • loads somefile.hlt as syntax highlight definition (untested)
      • anything else is considered source code, so [include ../example/simple_example.cpp] does the "right thing"
      • common source code extensions [py/h/hpp/c/cpp/...] will automatically pre-select the right source mode for highlighting
    • -I / --include_path command line option to add additional directories for file search
    • directory search order
      • current directory
      • directories specified on command line
      • $(BOOST_ROOT)/tools/quickbook, if BOOST_ROOT is set in environment vars
      • quickbook executable directory, if it can be found
    • default.qbk / user.qbk are NOT automatically loaded (yet...)
      • only thing loaded automatically is quickbook.hlt
  • [table .notitile ...] and [variablelist .notitle ...] allow tables without requiring a title
  • all this is documented in quickbook.qbk
 
Thomas Guest wrote:
Thanks for this. I don't think it will be too hard to sort out once I work out
the exact requirement. Trouble is, I'm an XML novice (that's why I
use QuickBook!)
  
Nah, XML's not that much worse than ASCII, but that's not the problem.  BoostBook/DocBook are much more complicated than basic XML- I understand ASCII but I don't get very far with an ASCII text file written in French!
Could you please post the actual .qbk which exposes this problem (or email 
me at thomas dot guest at gmail dot com)?
  
I saw the problem with quickbook.qbk.  It might have been something I missed when merging in your code with my tweaks, but in any case I think it's fixed now.
Incidentally, I've tweaked my proposal -- sorted out a few typos, added a 
little more detail.

http://homepage.ntlworld.com/thomas.guest/qbk_proposal/
  
I'll have to check that out (probably not tonight though,  dinner guests will be here soon...)
If you could also post the actual command you type to kick the build off, 
that would help me. Really, I need to read the Boost build notes 
carefully.
  
bjam --v2 msvc-7.1 link=static
I think I've got that much done (i.e., needs more testing but works so
far), and tracking the BOOST_ROOT environment variable so
quickbook::detail::load() peek in $(BOOST_ROOT)/tools/quickbook if
doesn't find it's target locally.  Which means it's also working for
loading your .hlt file, since you used quickbook::detail::load().  Wanna
copy? :)  (I'll try and package it up tonight)
    

Good stuff! I'll happily take a look.
  
Go for it  :)

- james

-- 
__________________________________________________________
 James Fowler, Open Sea Consulting
 http://www.OpenSeaConsulting.com, Marietta, Georgia, USA
 Do C++ Right.  http://www.OpenCpp.org, opening soon!

Reply via email to