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: 

with a bit more detailed instruction here (panels are a bit different
between LibreOffice and OpenOffice):

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.



View this message in context: 
Sent from the Users mailing list archive at Nabble.com.

To unsubscribe e-mail to: users+unsubscr...@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

Reply via email to