Apache OpenOffice (AOO) Bugzilla – Issue 72187
Please provide regex example for "end of paragraph" in online/offline Help
Last modified: 2007-05-06 10:52:17 UTC
It is possible to find and replace some Non-printing Characters e.g.: "\t" is for tab. But it is not possible or at least not described in the help in List of Regular Expressions, how to find and replace "end of paragraph" character. In MS Word it is possible "^v" BTW. Information about special characters are accessible directly from find and replace window in OO.o also would be nice to have it nearby.
sorry. I missed few words. The last paragraph was supposed to look like this: "BTW. Information about special characters is accessible directly from find and replace window in MS Word. It would be nice to have it also in OO.o nearby."
Reassigned to SBA.
superandrzej, paragraph end can be found with the dollar sign ($) (that is reflected in User Guide (http://documentation.openoffice.org/manuals/index.html). paragraph end can be inserted with "\n\n" (this is not reflected in User Guide, so I am asking for this usefull addition). Online Help should provide this information too, so I am changing component to documentation, type to enhancement, confirming and changing summary.
Thanks for the info but this not only the problem of online documentation. When it comes to finding the "end of paragraph" the online help is more informtive: Find & Replace -> List of Regular Expressions $ This symbol represents the paragraph mark for use in a regular expression. For example, using $ will only find the search term if it appears at the end of a paragraph. So, if one searches for, say, Peter at the end of a paragraph, enter Peter$ in the Search for box. Special characters (for example, blank spaces and character anchored frames) at the end of a paragraph are ignored. but Offline help (2.0.4) is confusing: Text Documents -> Searching and Replacing -> List of Regular Expressions $ Only finds the search term if the term appears at the end of a paragraph. Special objects such as empty fields or character-anchored frames at the end of a paragraph are ignored. Example: "Peter$". It would be great to update also offline help. When it comes to replacing somenting with "end of paragrah" from what I've tried "\n" should be used and NOT "\n\n", other wise 2 "end of paragrah" sings will be inserted.
SBA: Not exactly a new request... See issue 15666 and issue 28913 among others (didn't search further, but issue 15666 is already "Started") *** This issue has been marked as a duplicate of 28913 ***
SBA: Closed.
I disagree. It is not duplication of 28913. This one deals with lack of information in help both online and offline and 28913 deals with easing inserting regular expressions in find and replace window. The same topic but different issue.
What do you mean with "online help" versus "offline help"? What info is missing there? Is this about missing functionality in the software or about missing documentation of features that are present in the software?
It is about missing documentation of features that are present in the software. offline - attached with the software and accessible through F1 online - http://documentation.openoffice.org/manuals/index.html
superandrzej: please open a separate issue for the manuals (subcomponent "manuals"). Thanks.
No need. The user guide already has a reasonable example and has had this since 1.1.x. If you or the submitter can offer something better please add it to 29679. All a new issue will do is confuse things.
@ grsingleton In user guide an example concerning finding "end of paragraph" is just fine but an example about inserting "end of paragraph" was missing. Still the documentation included in Openoffice with respect to this case is worst than user guide and need changes. Help included in software is mostly the first place people look for information and this was also my case.
-> superandrzej@openoffice.org You said > In user guide an example concerning finding "end of paragraph" is just fine but an example about inserting "end of paragraph" was missing. What is wrong with: "Finds a hard row break that was inserted with Shift+Enter. To change row breaks into paragraph breaks, enter \n in the Search for and Replace with boxes, and then click the Replace all button." This statement is quite similar to what is in Help. Perhaps the language used is TOO English. Is this possible? If yes, please post a update to 29679
From OO.o 2.0.4 "\n Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the Search for and Replace with boxes, and then perform a search and replace." For me this wording means that \n stands for "line break" and one have to use a lot of imagination to interpret it other way. The example provided suggests that only "line breaks" can be converted into "paragraph breaks" with \n. As it is right now is not as clear as it should. I'm not native English speaker but for me e.g.: " \n - when 'searching for' stands for "line break" that was inserted with the Shift+Enter key combination but when 'replacing with' stands for "paragraph break" is shorter and more informative. If I had this kind of information I would not file this bug.
Since you wish to reword the Regular Expression table from Chapter 2 of the User Guide, I suggest that you get the latest version from 29679, edit it and then attach your editied version to the issue. This action will help. If you choose not to do this, it is doubtfull any correction will make it to the next edition. Please label your edited chapter with your initials in the filename and remember not to alter the overall formatting of the file so it can be integrated correctly into the master document.
Not that I want to reword Regular Expression table from Chapter 2 of the User Guide but only a small part of it. I can change this in User Guide. But I'm not a native speaker, it would be nice if a native speaker would review it afterwards. but what about the Help attached with the software? Will this change have any impact on offline Help?
-> superandrzej: I suggest that you get the latest version from http://www.openoffice.org/issues/show_bug.cgi?id=29679, edit it and then attach your editied version to the issue. Please label your edited chapter with your initials in the filename and remember to enable both Show and Record in Edit > Changes and please do not alter the overall formatting of the file. You need not be concerned about language skills as the update will be reviewed by a native English speaker. I hope that what you do is also useful in the Online Help.
Changed application help (formerly known as online help) file shared/01/02100001.xhp to state the following: \n Represents a line break that was inserted with the Shift+Enter key combination. To change a line break into a paragraph break, enter \n in the "Search for" and "Replace with" boxes, and then perform a search and replace. \n in the "Search for" text box stands for a line break that was inserted with the Shift+Enter key combination. \n in the "Replace with" text box stands for a paragraph break that can be entered with the Enter or Return key.
SBA: OK in OOo-Dev 680m211. Set to fixed.
Set to verified.
Closed.