[daisy] Anchor Boxes
Karel Vervaeke
karel at outerthought.org
Thu Mar 27 09:13:00 CET 2008
Indeed, the daisy documentation only describes which files should be
modified to customize output. It is impossible to include recipies for
all customisations that our users might want to implement.
Sorry I can't give a more satisfying answer - Instead let me give some
tips on how you might want to proceed.
* It seems you might want help with xsl-fo: People on specific mailing
lists for xsl-fo will probably be better qualified and glad to help you.
* The cycle of updating the xsl, creating a book and checking if you
changes are good takes too much time (Admittedly, this is something that
we might address given the proper amount of motivation ;-). Here is
what you can do:
note 1: Don't be afraid if it looks like a lot of work, it is the best
way of doing it AFAICT (having done this myself).
note 2: In these instructions I am using FOP instead of IBEX. All
released daisy versions still use IBEX. The subversion trunk and the
next releases will use FOP.
- download and install fop (so you can run fop from the commandline)
- At the bottom of this file:
<wikidatadir>/books/publicationtypes/<yourtype>/sitemap.xmap
Add this line:
<map:transform type="tee"
src="file:/tmp/fop-{flow-attr:bookInstanceName}.xml"/>
Right before this line:
<map:serialize type="xml"/>
- Create a book (you may want to use a simple book with a limited amount
of documents) and find the fop input file
at /tmp/fop-yourBookInstanceName.xml
- Now you have a much shorter development cycle:
* Edit the fop input file
* run fop
* check the output.
- (you may need to work out some kinks in this file because images and
other things may be broken when working like this)
HTH,
Karel
On Wed, 2008-03-26 at 16:10 -0500, Michael Halpin wrote:
> I have already done quite a bit of customization to the xsl on my daisy
> server and I have never used xsl before now. I think fo:float may work
> but I need to create anchor boxes that float in the left margin that
> flow with inline content. The floating anchor boxes are going to
> contain definitions for words found in the content and need to move with
> the words as content is edited. I have tried the links provided but
> neither of them seem to contain the information that I need to achieve
> this.
>
> Thanks,
> Michael
>
> -----Original Message-----
> From: daisy-bounces at lists.cocoondev.org
> [mailto:daisy-bounces at lists.cocoondev.org] On Behalf Of Karel Vervaeke
> Sent: Wednesday, March 19, 2008 4:33 AM
> To: Daisy: open source CMS - general mailinglist
> Subject: Re: [daisy] Anchor Boxes
>
> Assuming you are talking about fo:float: we currently do not use any
> fo:floats. Creating custom writing styles and implementing custom
> styles in html, document pdf or book pdf layouts is described in detail
> on the wiki and in the daisy documentation:
>
> http://cocoondev.org/wiki/g1/215-cd.html
> http://cocoondev.org/daisydocs-2_2/374-cd/g1/26-cd.html
>
> Regards,
> Karel
>
> On Tue, 2008-03-18 at 14:32 -0500, Michael Halpin wrote:
> > Has anyone used float items in xsl to create floating anchor boxes
> > similar to what one might find in indesign? Or can some one tell met
> > how to go about doing this in the xsl in daisy. Any help is greatly
> > appreciated.
> >
> > Thanks,
> > Michael
> > _______________________________________________
> > daisy community mailing list
> > Professional Daisy support:
> > http://outerthought.org/en/services/daisy/support.html
> > mail to: daisy at lists.cocoondev.org
> > list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy at lists.cocoondev.org
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
More information about the daisy
mailing list