Hi, screenshots please!
If I understand well and if I'm not wrong:
Consider we apply the para style of the last para to all the paras.
We only need to find the paras before the last para and so apply to them the para style without space. So, just do this:
replace by format you want
This is a previous book, ZCA Buildings Plan (free as a PDF for download). I'm adapting the previous templates for the next book in this series (ZCA Plans). Looking to automate some of the text parsing chores better (insert continuous improvement mantra here!). The exisiting bullet style uses a Fish-eye glyph as a leading character as part of the paragraph style in the Bullets and Numbering tab (see Fig 1).
So the bullets which may appear in the raw text (currently word documents forming what is essentially a scientific paper) need to be removed in the InDesign text seeing as the fish-eye glyph is added the standard bullet glyphs must be removed if present in the raw text (I guess I could do that with a GREP style disappear character style which I've seen detailed elsewhere (tiny font, fill colour: none, hozi scaling 0.1%) and still leave them in for GREP style tricks. But maybe global Find and Change ops are the way to go?
Thanks for the screenshots!
OKay you went a bit quickly for me there, Obi-wan. I'm trying to feel your direction but the GREP styles force is not yet cultivated in me.
1 person found this helpful
Here, it is no question of grep style but a simple search/replace.
1 person found this helpful
search format: the para style applied to all the paras (so, the para style - with space - of the last para)
replace by format you want: the para style (without space)
I'm going to articulate what I think needs to happen assuming I have unstyled text with bullet lists where each bullet has a "•" glyph at the begining and paragraph breaks in between.
- Locate all the paragraphs begining with the bullet glyph ("~8" in GREP) except the ones where the next line does NOT begin with a bullet.
- Globally style all those paras found in step 1 with bullet style and remove the bullet glyph and trailing tab char either with find and change or applying a 'disappearing' GREP style which grabs the first two chars 'disappears' them (hard to do with a control char like a Tab I suspect)
- Locate all the remaining paras begining with a bullet glyph and apply the "Bullet with space after" style and remove the leading bullet glyph and tab char that follows it (fish-eye glyph is added in the para style).
So my Find What is: ~8\t(.+\r)(?=~8)
Replace is : $1 and apply para stlye called "5. Bullets".
If I work through one by one find/replacing all good, the last bullet points are always skipped in my sample text.
But if I "Change All" I get misapplication of the rules:
Note I am using Search: "To End Of Story" to be sure this pattern is not iterating twice through the text.
Fig 1. Manual "Find and Change" sequence Fig 2. "Change All" seems to change the last bullets Fig 3. Text before applying any changes all the
skips last bullets as it should. (incorrect) but not remove bullet (weirdly) same "Body" paragraph style
1. have only one column and
2. don't need to use Span/Split Column options for something else:
Make the bullet paragrph style but include a Span Columns to span all columns. Then add your space before and space after span.
Voila! (Yes, it's a cheat. But in the right circumstances it does the trick!)
I have two columns per page and many pages but yes each text frame only has a single column in it if that's what you mean by single column. Will give that a try — thank you, it's exactly the sort of 'trick' or 'feature' I was after.
Still interested in why the Change All operation fails where the manual Change and Find works if anybody has a clue?
You want to make the deal with:
Replace by: $1
replace format: para stlye called "5. Bullets"
Am I right?
Just do it:
Yes it works, using manual Change then Find next but I'm wondering why I get a different outcome when I click "Change All" I can load the demo file if you wish.