Forum Replies Created
-
AuthorPosts
-
Aaron Troia
ParticipantHey John,
This might look messy (and there’s probably an easier way of doing it, I’m sure) but I got it to work even with multiple spaces after the bullet. Unfortunately you cannot integrate this as GREP in your paragraph style as the GREP feature in the paragraph styles does not have a replace field (I wish there was a Replace field, for situations like this), so you will have to do this with Find/Change.
Find:
~8\K((\w)| +)(?!)
Change:$2Aaron Troia
ParticipantHey Francis,
Try this, it should work for both as long as the comma and space between stay the same, they could also probably be split apart into two, but if it works why do it twice. This GREP only catches the comma-space at the beginning or at the end (it only see’s the numbers as reference using a lookahead and a keep), so the only thing you have to do is replace them with your tab.
Find:
(^\d+\K, |, (?=\d+$))
Change:Aaron Troia
ParticipantYes, in InDesign GREP a left double quotation mark is signified as
~{and a right double quotation mark is~}March 23, 2015 at 3:41 pm in reply to: Script to change char style of punctuation after italic/bold/etc. #74129Aaron Troia
ParticipantHey David! Thank you for your response, I normally would use something similar to what you had (I’m being explicit and using a comma as an example)
(\w)(?=\,), and I agree, it seems like there should be an easy solution. The problem I’m running into is if I add a character style or font style to the GREP search, to narrow it down the search a bit, it fails since I’m looking for both a word with a character style applied to it (in this case, italic) followed by a comma that has no character style applied to it, and it still fails even when using a positive lookahead :(Aaron Troia
ParticipantIf you do a Google search for “Convert EPUB to PDF” there are plenty of services online, and I’m sure app’s that you could download, that will convert your ePub to PDF for you.
Aaron Troia
ParticipantOops, I used a lookbehind (?<=) in my previous post when I should have used a lookahead (?=)
Find:
+(?=\W|\w|\d)
Change:\rAaron Troia
ParticipantSo it sounds like there is a lot of soft returns and you are wanting to clean them up as well as convert soft hyphens to hard hyphens? That’s kinda what it sounds like you’re saying with wanting to ” ‘let go’ of part of what you found for the CHANGE”
This will find all the soft returns (+) followed by any word character (\w), non-word character (\W), or digit (\d), while using a positive lookbehind (?<=), and replace the soft returns with a single hard return.
Find:
+(?<=\W|\w|\d)
Change:\rIs that more along the lines of what you’re looking for?
Aaron Troia
ParticipantJust a note on Colleen’s Find/Change query, that will only work in a Text search, in a GREP search you would Find:
and Replace with\r. It does exactly the same thing, just in GREP.Aaron Troia
ParticipantYou might be able to use Data Merge, which is built into InDesign, I dont know how everything is laid out but it could be handy, especially with multiple excel files and only one InDesign file.
Aaron Troia
ParticipantI was looking for something like this myself a few months back and Kelly Vaughn (@documentgeek) was kind enough to tell me about them, and mostly the output is very similar between the two, I ended up buying DTP2PDF and I can say the conversion options aren’t plentiful but they get you what you need (I can post a screenshot later if you like). I had Kelly convert the same 6 pages of a PDF with both plug-ins so I could see the difference in output so if you would like to compare the outputs here are links to them on Dropbox. The file I used was the Kindle Plug-in for InDesign Publishing Guidelines that you can find here: https://kindlegen.s3.amazonaws.com/KindlePluginForAdobeInDesign_PublishingGuidelines.pdf
I believe this file is from PDF2ID
https://www.dropbox.com/sh/17rrpkgntost4hi/AAAe-lZNssya1l6qstGjYniya?dl=0and I believe this file is from PDF2DTP
https://www.dropbox.com/sh/t0hl07ro3a1gmj2/AACdCT3uBeTZi4mIX5RDeazDa?dl=0Anyway, that wasn’t exactly what you were asking for, but thought I would pass it along.
Aaron Troia
ParticipantHonestly I don’t see Amazon coming out with another plugin, though the tides could change and it could happen, but for now you will have to go back to CS6 and use the Kindle for InDesign plug-in. If converting an ePub with KindleGen or Kindle Previewer can’t do what you are wanting, you will probably need to consult an eBook developer to help you get the results you are looking for in your Kindle conversion.
Aaron Troia
ParticipantHmm, try double escaping again (eg
s+$), that seemed to work for me.Aaron Troia
ParticipantNo problem Tuz, I noticed something a little different with the quotes, if you are searching for Double or Single quotes, you cant use Unicode quote marks, it errors out, so you have to use the InDesign meta characters for quote marks (eg Double quotes: ~{ or ~}, and single quotes ~[ or ~]). I will have to remember that about TextEdit, I almost used it but decided to go with Sublime Text as that’s what I use for everything else, so I didn’t run into that issue.
Aaron Troia
ParticipantGood question, I normally don’t use that script because I have never been able to get any GREP to work that I put into it, but I broke down and tried to figure out why I couldn’t get it to work and I found that you need to double escape just about everything, try this
(?(ddd))?[-. ]?(ddd)[-. ]?(dddd)Aaron Troia
ParticipantThe way I learned ePub was with Liz Castro’s book EPUB: Straight to the Point, it’s now probably out of it’s prime, as it only focuses on ePub 2.0, but I think it does a good job of explaining the ePub process from InDesign. I believe she also has a Fixed Layout mini-guide that would probably be helpful for you as well. ePubSecrets.com is a good blog to follow, if you’re on twitter, the #eprdctn hashtag is invaluble and there are a lot of people who post on there that can answer questions you may have. Colleen Cunningham (@bookdesigngirl on twitter) also put together a good resource page on Digital Book World’s site https://www.digitalbookworld.com/resources-going-from-indesign-to-ebook/. And if you have a chance to go to PEPCON, I would go, it’s a really good experience, especially if you are looking to get into ePub development.
Anyway, I’m sure there are also many other things to point you to, but that’s just what I came up with off the top of my head.
-
AuthorPosts
