Changing numbers and adding a parenthesthis

I am working with a large document, 2600 pages. The writer did not put a space or parenthesises after the numbers. I have tried find and replace but I have not been able to get the right combination that LO likes. Less than 200 but all must be changed to bold, and add a parenthesis to delineate from the rest of the line. HELP!

Edit your question to describe what are your numbers: chapter numbers? item numbers in a list? note numbers?

With such a huge document, I hope you work with all style categories: paragraph, character, page, list and frame and you document is saved in native .odt format. Otherwise, be prepared for a hard time. With styles, it just a matter of changing a few parameters. It takes a pair of seconds and you’re done.

Mentioning your OS and LO version would also help.

I have changed the font for one provided by LO, The numbers are verses numbers in a Bible.

Some numbers are written 1 Abc… others 1Abc Because of the difference and I want to make the numbers stand out differnt than the text I want to change all to 1) Abc. Is that clear?

Linux Mint LO 7.0.1.2

A.J. I am struggling. It looks like your comment is starting with a new document. I started with a TXT doc and LO converted it to odt. Unless someone can instruct me on how to change the numbers for each verse I will be forced to just leave it. I am sure you know there are many thousands of verses in the Bible.

I filed a report with LO. I hope they can fix this

@Daveh2: when filing a bug report related to an AskLO question, always reference it in the question or a comment.

Unless I’m wrong, this is tdf#137235.

In your bug report, you didn’t mention which boxes were checked in the F&R dialogue. This can make a huge difference.

A.J you are correct. But I have given up on LO giving an update to repair this. I have started working the Bible document one line at a time :frowning:

You didn’t answer the question about styles. I then assume that your document is smart formatted and that all your verse numbers have a dedicated character style. Read on this site the various arguments on semantic markup with styles.

I’ll take this example for illustration:

Here “verse numbers” are inserted as fields: Insert>Field>More Fields, Variable tab, Type Number range with name Verse, Format *Arabic (1 2 3) and Numbering by Chapter with Level set to 1.

All these field insertions have received character style VerseNumber I specifically created. As an example, I configured it for superscript 75% size, italic and red background.

I personally think it is nicer to play with colour than adding a parenthesis after the number but your tastes surely differ. Anyway, contrary to list numbering, no “decoration” character may be added around a field insertion. However, if your verse numbers are not inline (the usual Bible case) but you chose to always start a paragraph with a verse number, you can use a paragraph style associated with a list style. List styles have a provision to add separators before and after the number.

I forced “numbering by chapter” in my number range so that the verse number automatically restarts at 1 when you change chapter. A new chapter begins with a paragraph styled Heading 1. In case your document contains several Bible books, you may have chosen to style book title with Heading 1 and “chapters” with Heading 2. If so, change the numbering level to 2 in the number range definition.

If usage of verse numbers is consistent: either they are all followed by spaces or none have a subsequent space, you can tune spacing between the number and subsequent text by modifying the Spacing parameter in the Position tab of the VerseNumber character style. If usage is inconsistent, you may still use it but spacing will be irregular due to the presence of the random space.

If you don’t use styles or if you have not rigorously marked up you document, you’ll be faced with manual editing. Sigh!

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.

WOW! Lots to learn. I don’t know anything about styles. The existing document comes with numbers I am just trying to modify to make it easier to read. Now I need to copy your comment and study it.

Working a 2600-pages document without styles is just like trying to travel through Sahara without water.

Elementary information is found in the Write guide. Then practice to master the feature(s).

You didn’t answer the question about styles. I then assume that your document is smart formatted and that all your verse numbers have a dedicated character style. Read on this site the various arguments on semantic markup with styles.

I’ll take this example for illustration:

highlighted numbers

Here “verse numbers” are inserted as fields: Insert>Field>More Fields, Variable tab, Type Number range with name Verse, Format *Arabic (1 2 3) and Numbering by Chapter with Level set to 1.

All these field insertions have received character style VerseNumber I specifically created. As an example, I configured it for superscript 75% size, italic and red background.

I personally think it is nicer to play with colour than adding a parenthesis after the number but your tastes surely differ. Anyway, contrary to list numbering, no “decoration” character may be added around a field insertion. However, if your verse numbers are not inline (the usual Bible case) but you chose to always start a paragraph with a verse number, you can use a paragraph style associated with a list style. List styles have a provision to add separators before and after the number.

I forced “numbering by chapter” in my number range so that the verse number automatically restarts at 1 when you change chapter. A new chapter begins with a paragraph styled Heading 1. In case your document contains several Bible books, you may have chosen to style book title with Heading 1 and “chapters” with Heading 2. If so, change the numbering level to 2 in the number range definition.

If usage of verse numbers is consistent: either they are all followed by spaces or none have a subsequent space, you can tune spacing between the number and subsequent text by modifying the Spacing parameter in the Position tab of the VerseNumber character style. If usage is inconsistent, you may still use it but spacing will be irregular due to the presence of the random space.

If you don’t use styles or if you have not rigorously marked up you document, you’ll be faced with manual editing. Sigh!

To show the community your question has been answered, click the ✓ next to the correct answer, and “upvote” by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

In case you need clarification, edit your question (not an answer which is reserved for solutions) or comment the relevant answer.