From: Harold Fuchs [mailto:[email protected]] Sent: Monday, December 08, 2008 4:32 PM To: [email protected] Subject: Re: [users] Re: WRITER: Search for Special Characters, Invisible Characters, Character Styles, Markers of Type X
Firstly, paragraph marks and line-breaks (what you get with Shift-Enter) *do not exist* as single characters in Writer documents. You can see this by doing the following (this works on Windows; a slightly different procedure *might* be needed on *nix or Mac): 1. Create a Writer document with a few paragraphs and line-breaks and save it as, say "paragraphs.odt". 2. Rename the file to "paragraphs.zip". 3. Open this file with Winzip or equivalent. 4. Extract the file "content.xml" from the (Zip) archive into a *text* editor. You will see that the text of normal paragraphs is prefixed by an XML "tag": <text:p text:style-name="Standard"> and terminated by a tag: </text:p> whereas a "Shift-Enter" paragraph starts the same but is terminated by the tag: <text:line-break/>. Also, if you include characters like "<" and ">" they are replaced in the XML file by their XML multi-character equivalents "<" and ">" respectively, so even searching for those is not as straightforward as it would seem at first sight. Secondly, I quote from OOo's Help: "You can only search for regular expressions within the same paragraph. That is, you cannot search for one term in a paragraph and a different term in the next paragraph." On the other hand, it would be really good if OOo could search for any "artefact" it can construct - styles, fonts, etc. etc. -- Harold Fuchs London, England Please reply *only* to [email protected] --------------------------------------------------------------------- Thank you, Harold, as always. From my perspective, your last paragraph captures the spirit I intend. Elchanan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
