Forum Replies Created
-
AuthorPosts
-
Aaron Troia
ParticipantI just ran across a Apple community forum post from 2010 and someone asking the same question, it unfortunately doesnt sound like there is a way to place them unless someone has a script or a plugin that allows for it.
Aaron Troia
Participantoh good! Im glad you figured it out. I did forget to mention that you could do it within search and replace it, but that it might be easier to do it within the Paragraph styles (especially for what you are doing, it’s perfect).
Aaron Troia
ParticipantNiki,
Try,
Find:
^[^—]+
This says “Beginning at the start of the line, find everything not an Em Dash” to find everything between the start of the line and Em Dash.
If all your entries are one word you could do something this,
Find:
^\w+(?=—)
The
^\w+
might be enough but I add the lookahead assertion to make sure it is only finding words that precede an Em Dash.Aaron
Aaron Troia
ParticipantKari,
For print I would say try adding it as the bullet glyph, but I’m not sure how that would export to a reflowable ePub. This might be tricky and a tough thing to pull off to even to include this as a bullet as I am assuming this graphic is in your margin and not in the text box? You would have to account for this for all your text in the left margin for an ebook. Not saying its not possible, but you might have to go into the HTML and mess with the CSS to achieve what you are trying to do.
Aaron
Aaron Troia
ParticipantGail,
Ohhh, I probably would have recommended using the footnotes feature built into InDesign. It builds in the cross referencing linking you need between the text reference and the footnote when exporting. Technically in an ebook all footnotes are more or less converted to endnotes anyway. You could use the cross-referencing feature within InDesign but it’s kind of tedious.
What the Kindle Guidelines is showing is what you would need to add to your HTML files if you were to unzip the epub after export, or building your ebook file in HTML. You cannot add this code to InDesign. The footnotes feature within InDesign is the closest I have found that gets close.
Aaron
Aaron Troia
ParticipantOh good, I’m glad you were able to at least get the first one working once you tweaked it.
Oh! I was thinking US currency by default, but having that currency symbol does help make sure we only are changing the prices. Im also guessing that second GREP didnt work because I have the end of line symbol ($) thrown in there and you said something about having a mixture of En Dash, Forced Line Break (soft return), and End of Paragraph (hard return). Is there a space between the last number and these?
Lets try this,
Find:(?:€|£)\K(\d+\.\d)
Change:$10
Aaron Troia
ParticipantYes there is a way to do that.
Pull up Keyboard Shortcuts. Within the Product Area drop down, select “Panel Menus” the under Commands scroll down to “Paragraph: Hyphenation…” and then you can assign what ever short cut you want (as long as its not taken by something else). Then Save your set.
Hope that helps,
Aaron
Aaron Troia
ParticipantHmm, do all the prices in InDesign have a dollar sign?
Assuming all the numbers are prices I would break this down into two searches, one for missing decimal and zeros and the other to add the ending zero.
First, finding the prices with missing decimal and zeros
Find:^\d+(?!\.)$
Change:$0.00
The second search to add the zero to prices that already have the first number after the decimal,
Find:^\d+\.\d$
Change$00
Please note in Change
$0
is referring to a capture group (in this case this means everything found) from the Find expression and not a literal dollar sign and zero.If the numbers do have dollar signs throughout to signify they are prices, I might tweak the Find GREPs to include the dollar sign just to make sure the GREP searches are only finding the numbers that it should be.
Before you run this on your entire document, make a copy of your file and test these out to make sure they are catching what they should. Let me know if anything needs adjusting.
Aaron
Aaron Troia
Participantoh! I see we were just accounting for prices with 5 digits. Lets tweak our Find GREP what we had before to fix that, try this
Find:
0+(\d+)(\d\d) R
Change:$$1.$2
Now it shouldn’t matter the length, it will put the period before the last two numbers.
Aaron Troia
Participantoh good! Im glad that worked!
To convert multiple spaces you could try,
Find:+
Change:Watch out though, in some instances
will catch both hard and soft returns as well, so only for literal spaces (space bar),
Find:
+
Change:Aaron Troia
ParticipantHaha David, we were! and our GREPs were pretty similar too, I like how you did everything in one line!
Aaron Troia
ParticipantTo change where the decimal is we would probably want to change the Find to similar to what David used in his GREP (its just some adjusting of the parenthesis that he used).
Find:
0+(\d\d\d)(\d\d) R
Change:$$1.$2
Aaron Troia
ParticipantHey Stan,
Unfortunately you cannot add/remove with GREP styling, you can only apply a styles. You would need to GREP the content to match with Find/Change first.
You could run two GREP searches with Find/Change, the first to format everything but the price,
Find:^\*(\d+)\*(\d+)\* ([^0]+)(\d+ R)
Change:$1 $2 $3$4
and the second one to convert the number string followed by the R to a price
Find:0+(\d)(\d+) R
Change:$$1.$2
These should work they were based on the example you gave, but let me know if they need some tweaking. Just to be safe I would run a test with these in a copy of your document first.
Aaron
Aaron Troia
ParticipantAre your images anchored in the text box between paragraph? If not that would cause them to go to the end of the last page.
Aaron Troia
ParticipantRich,
First make a character style and set it to the alternate font of your choice (all you need to set is family and style), then within your paragraph style assign that character style to your drop cap.
-
AuthorPosts