Le 25/03/2014 22:32, Dale Erwin a écrit :
Yes, but there is more to it than just the first word and the last word.
The first word is straightforward enough, except that sometimes it
might consist of more than just one word. But the last word does not
refer to the actual last word on the page, but the last "headword" of a
dictionary entry which also might sometimes consist of more than one
word. But it's moot since there are no such fields available.
You need to:
1. Set a character style to the dictionary "headwords" as already
suggested in this thread,
2. Then, using a macro (can't see any way to do that with standard tools
in Writer),
2.a. search forward from the beginning of the page for the very first
character sequence on a page with that style
-> you've found the "first" word
2.B. similarly from the end of the page, search backwards for the very
last character sequence formatted using that style
-> you've found the "last" word.
And that's it. Well, I'm completely unable to write any such piece of
code but no doubt this can be done, though the devil might be in some
details.
--
Jean-Francois Nifenecker, Bordeaux
--
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
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
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: 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.