On 04/09/15 21:10, email@example.com wrote:
Mike Scott wrote:
The goal is to print music lyrics with chord (text) appropriately
aligned above the lyrics. The ultimate goal is to create the .odt
document programmatically: I'm most of the way there, but the way
positioning works in conjunction with 'anchor to character' has me
I'm using a frame to hold the chord text, and trying to attach the frame
to a given character below in the lyric line, using 'anchor to
character'. Horizontal position is no bother at all - with the text
centred in the frame, and the frame centred on the lyrics character,
things look good.
However, vertical positioning is another matter. It's not at all clear
I'm not sure, but it may be that you're trying to put the frame so close
to the text that the wrapping is having an effect - pushing the text out
the way of the frame (while the frame is trying to follow the text!)
Take a look at the Format > Frame > Wrap tab. I think you'll want the
main wrap setting to be "Through", and maybe also set the "Spacing"
values to zero. You may or may not also want to set "In background",
depending whether there is any overlap and how you want that handled.
Hope that helps.
Thanks for that. I have progressed a fair bit since my last note. You're
right about the wrap - that was set wrongly, and should have been set to
'through': this was getting muddled with other issues.
Currently, it "sort of works" and what I have is just about usable.
However, there are a couple of issues:
* I've had to set line spacing to fixed rather than proportional: using
eg simple double-space makes lines at top of page go wrong, because the
text line is right at the top with no space for the chord frames (which
then appear below the text), while my fixed spacing leaves a gap at the
top into which the frames fit.
* sometimes on the bottom line of a page, the chord frames seem to
become "detached" from their characters: the anchor points show in the
frames' top-left corners rather than next to the anchor character, they
don't all (!) move with the text, and they are positioned a bit too low
above the text (but still usable).
As I said, it's usable now, but all just a bit too sensitive to sizes
and spacings for my liking. My intention was that my (perl) code produce
a usable .odt file to be tweaked up using LO, changing the
perl-generated styles. The tweaking (eg to make things a better fit on
the page) can quite upset the overall layout in unexpected ways.
I'm still wondering why the line spacing in LO has a max of 200% in the
dialogue box. It can easily go higher in the xml. Does anyone else
reckon this is worth logging as a bug?
Thanks again for the comments.
Harlow, Essex, England
To unsubscribe e-mail to: firstname.lastname@example.org
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy