Forum Replies Created
-
AuthorPosts
-
Aaron Troia
ParticipantHey Jamie,
I think I know what you’re wanting to do and I don’t think its possible to do only because you cant search two separate font styles (roman and italic) within one text/grep search. You might have to ether search all the italics or everything in quotation marks and do them one by one, but besides having someone write a script to do it, I dont think there is a way to do it within InDesign that will do it all at once.
Aaron
December 12, 2017 at 5:04 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100292Aaron Troia
ParticipantDarn, sorry those didnt work John.
Looking at the image you posted, is this how each product description is formatted or does it vary? meaning, is the last price always followed by “ea.” or does that change? Just trying to get more of an idea of what is a constant in the descriptions that we can put into the RegEx to help you out. I could probably post one now (
\$\S+ (?!ea.)) that might fit the image that you posted but it might not work in every instance if it changes.December 11, 2017 at 12:05 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100259Aaron Troia
ParticipantGraham made a good observation, but you don’t need two GREP styles, one will do. Using Graham’s GREP and modifying it slightly, this should work,
(?<!is)\$\S+December 7, 2017 at 9:30 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100172Aaron Troia
ParticipantNo that wont work, lookbehinds must be non-greedy (no +), I tried using Keep (\K) which acts like a positive lookbehind but allows you to be greedy, but the problem with the GREP styles is that for some reason it doesnt like the beginning of line character. As soon as I would add that into my RegEx, my GREP style wouldnt act correct, but it would work fine in a GREP search.
December 7, 2017 at 5:49 pm in reply to: Using GREP in paragraph style to format only the first occurrence of a phrase #100166Aaron Troia
ParticipantJohn,
That is a good question, I tried using the ^ to signify the start of the line to get more specific, but it seems GREP Styles does not like that, I can either find the first $9.99 or all of them, there’s no middle ground. Its like they make it so you cant get too specific. I might ditch the GREP Style and just do a GREP search, I tried it with the RegEX below and it worked fine, but it wouldnt work as a GREP Style. Weird.
Fine:
^[^$]+\K\$[^ ]+
Replace:$0Sorry it’s not exactly what you were asking for, but that should work.
Aaron
December 7, 2017 at 10:38 am in reply to: How to find sentences that end in periods with no space after them #100139Aaron Troia
ParticipantBeen playing around with this, it might work for you, and should only be one step
Find:
(\.|(?:\.|\?)~}|(?:\.|\?)~{)(\w)
Replace$1 $2That will find just periods, periods with opening and closing parentheses, and questions marks followed by opening and closing parentheses.
Aaron
Aaron Troia
ParticipantHey Sue,
For reflowable content, I think footnotes will probably be what you will have to do, as tedious as that sounds. The closest I’ve heard that someone has gotten to this was actually in a browser, Pablo Defendini did a comic book for Books in Browsers a few years ago that had the capability for the user to change the language so the book could be read in multiple languages, but I haven’t heard of anything being done in KF8 that does this. That being said, it might be possible to do it in iBooks in a fixed layout with Javascript.
Aaron
Aaron Troia
ParticipantThank you David! My initial thought was to look at Marksware’s or Em Software’s products, but I found an ID2Office plugin from Recosoft, which might be the one you’re referring to. This might be another viable option for you Jackie.
Aaron Troia
ParticipantHey Jackie,
I’m not sure if you cant export straight to PowerPoint natively, they’re might be a plugin or script that might do it, but I’m not sure of one off the top of my head. That said it appears you could do a job in InDesign export to PDF then in Acrobat convert to PowerPoint. I haven’t tried it but it looks possible just not straight from InDesign.
https://acrobat.adobe.com/us/en/acrobat/how-to/pdf-to-powerpoint-pptx-converter.html
November 30, 2017 at 6:32 pm in reply to: Need help with GREP codes to find/delete text between different text fields #100000Aaron Troia
ParticipantAnd thank you Larry, you’re too kind, and I’m glad to hear I made your day :) I really do enjoy helping with GREP questions and try to help as much as I can, when I can, in the forum :)
November 30, 2017 at 6:21 pm in reply to: Need help with GREP codes to find/delete text between different text fields #99999Aaron Troia
ParticipantNo problem Larry, I just updated both RegEx’s from that last post to account for months like June that might not be abbreviated and so not necessarily need the period.
November 30, 2017 at 6:12 pm in reply to: Need help with GREP codes to find/delete text between different text fields #99992Aaron Troia
Participantoh ok, no problem, we can work that in, try something like:
Find:
FROM (?s:.+?)For \w+, \w+\.? \d+, \d+$thats a little greedy on the words and numbers but this might be more specific with a few less greedy modifications:
Find
FROM (?s:.+?)For \w+day, \w{3,4}\.? \d{1,2}, \d{4}$\w+daywill find the days of the week
\w{3,4}\.?will find your abbreviated months, and just to be sure with months like June, I made it go to four letters and the decimal is optional
\d{1,2}is your days of the month
\d{4}is your yearNovember 30, 2017 at 5:54 pm in reply to: Need help with GREP codes to find/delete text between different text fields #99990Aaron Troia
ParticipantHey Larry,
One way to do it with the text you provided would be to try:
Find:
FROM (?s:.+?)For Saturday, Dec. 2, 2017and just leave the replace field empty. The
(?s)in(?s:.+?)allows for GREP to do a multiline search.Aaron
Aaron Troia
ParticipantHey Sally,
So it looks like you want to find en dashes between ranges of upper case letters. so to keep your letters wrap them in parentheses so something like
(\u)~=(\u)(“~=” is the InDesign special metacharacters for an en dash, you can also just type an en dash, it works either way) the parentheses, or capture groups as they are referred to in Regular Expressions, will save those so you can use them in the replace field. you can also just replace what I have in the parentheses with what you were searching for that worked for you. In the replace field put$1-$2, the dollar sign-number combination refers to the each capture group from the search field. This will keep the letters on each side of the en dash and then replace it with a hyphen.Hope that helps, let me know if you have any questions about what I said,
Aaron
Aaron Troia
ParticipantHey Kari,
No, if it was a reflowable book you should keep it as reflowable, fixed layout is quite different. You can certainly test your books on devices and in apps and try to make files that work well in as many as you can, but you cant cover every app out there. There’s a point where you have to tell the client, “I have optimized this for the Kindle devices/platform, not Overdrive, I can’t promise you that it will act correctly in that environment.” you can also encourage them to download the Kindle app, Kindle Previewer, ADE, and iBooks (if they have a Mac) and use that if they do not have a physical ereader devices. But you will probably still run into some display issues, but tell them up front where you are testing and optimizing the files for. For stores that accept ePub (basically anyone outside Amazon), you can certainly create multiple files that are optimized for different stores and devices (eg. 1 file for iBooks, 1 file for Nook, 1 file for Sony, etc) but unless you have the devices to test on and then take the issues you see and implement them in the files, it’s probably better to focus on the platforms and ereaders you know and can test on.
Anyway, I hope that was helpful,
Aaron -
AuthorPosts
