Back

If your email is not recognized and you believe it should be, please contact us.

Forum Replies Created

Viewing 15 posts - 136 through 150 (of 325 total)
  • Author
    Posts
  • in reply to: GREP expression to italicize quotation marks #100986
    Aaron Troia
    Participant

    Hey 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

    Aaron Troia
    Participant

    Darn, 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.

    Aaron Troia
    Participant

    Graham 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+

    Aaron Troia
    Participant

    No 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.

    Aaron Troia
    Participant

    John,

    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: $0

    Sorry it’s not exactly what you were asking for, but that should work.

    Aaron

    Aaron Troia
    Participant

    Been playing around with this, it might work for you, and should only be one step

    Find: (\.|(?:\.|\?)~}|(?:\.|\?)~{)(\w)
    Replace $1 $2

    That will find just periods, periods with opening and closing parentheses, and questions marks followed by opening and closing parentheses.

    Aaron

    in reply to: Multiple Languages in ebook/epub #100069
    Aaron Troia
    Participant

    Hey 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

    in reply to: Can InDesign pages be used in PowerPoint? #100031
    Aaron Troia
    Participant

    Thank 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.

    ID2Office

    in reply to: Can InDesign pages be used in PowerPoint? #100027
    Aaron Troia
    Participant

    Hey 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

    Aaron Troia
    Participant

    And 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 :)

    Aaron Troia
    Participant

    No 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.

    Aaron Troia
    Participant

    oh 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+day will 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 year

    Aaron Troia
    Participant

    Hey Larry,

    One way to do it with the text you provided would be to try:

    Find: FROM (?s:.+?)For Saturday, Dec. 2, 2017

    and just leave the replace field empty. The (?s) in (?s:.+?) allows for GREP to do a multiline search.

    Aaron

    in reply to: Grep Help! #99455
    Aaron Troia
    Participant

    Hey 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

    in reply to: ePub for various readers? #98706
    Aaron Troia
    Participant

    Hey 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

Viewing 15 posts - 136 through 150 (of 325 total)