Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Helen,

Interesting issue. The manual centering is simply multiple tabs ,\t, or
multiple <space> characters.   Replace the multiple occurrences with nothing
to remove it and bring all text to left margin.  Get all the formatting
removed so you are left with just the text.

The key to your effort is to remove the direct styling from the text, and
apply document wide styling to paragraphs.   Choose from existing styles, or
create new style sto apply against paragraphs, fonts, pages of each play as
you'd like.

If you are comfortable extracting the XML text component--content.xml-- from
the .odt container you can flush it through the stream editor--sed.  Or
gawk, or perl, or python, etc. to make editing corrections (removing white
space and joining actor to their lines with a colon). Then return the edited
content.xml back to the .odt container, and then apply consistent styles
from LibreOffice.

However, working within Writer--you can accomplish much of the text clean up
using the find-replace GUI widget. Open the + other options panel, and
select  the regular expression checkbox. 

LibreOffice regular expressions are described here: 
https://help.libreoffice.org/Common/List_of_Regular_Expressions

with a bit more detailed instruction here (panels are a bit different
between LibreOffice and OpenOffice):
http://wiki.openoffice.org/wiki/Documentation/How_Tos/Regular_Expressions_in_Writer

The other approach, would be to open the document and copy all contents out
to a text file, then edit that with sed, gawk, perl or python--and insert
the now consistent text into a new LibreOffice document and then apply
styles to the text.

Stuart



 



--
View this message in context: 
http://nabble.documentfoundation.org/styles-for-plays-tp4063106p4063138.html
Sent from the Users mailing list archive at Nabble.com.

-- 
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.