Back

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

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 77 total)
  • Author
    Posts
  • in reply to: Caption Numbering Bug .. #84391
    Matt Isaac
    Participant

    What is the 11 referencing in this caption?

    in reply to: Automatically insert space during typing #84349
    Matt Isaac
    Participant

    Ari’s solution was my next suggestion but i had to test a new possibility before i posted..

    Although it is not possible to add characters automatically, this can still be automated using tracking. Again just as in my first post you will need to create a Character style. Though this time instead of creating a “no break” style, you will set only a tracking value of around 300 (this can be adjusted later to your liking.) In the paragraph styles options you will use the GREP Style to apply your tracking style to text: (?=\:).

    in reply to: GREP to Standardize "e.g.," and "i.e.," #84330
    Matt Isaac
    Participant

    Thanks, I am familiar with HTML. Though I’d never thought to use it in forums. I was actually thinking that it would be something to do with text editing for premium members.

    in reply to: Automatically insert space during typing #84327
    Matt Isaac
    Participant

    You can do this with paragraph styles as a grep style.
    You’ll need to create a character style with the “no break” setting.
    Then in the paragraph style options under the GREP Styles add a New GREP Style
    In the Apply Style: field you will select the “no break” character style. In the To Text: field you will put (?=\.\.)
    This will create a nonbreaking space at every space followed by two periods.

    in reply to: GREP to Standardize "e.g.," and "i.e.," #84326
    Matt Isaac
    Participant

    Ari, I know this is not connected to the topic but i was wondering if you could tell me how to put strings of text into those boxes?

    in reply to: GREP to Standardize "e.g.," and "i.e.," #84297
    Matt Isaac
    Participant

    Sorry i typed that on my phone last night without getting to verify the expression.. there should be parenthesis around (eg\.\,|eg\.|eg|e\.g\.) though if there are any instances where e.g. would not be enclosed by spaces on either side, (e.g.,, at the start or end of a paragraph) you may want to use (?<=[\L\U])(eg\.\,|eg\.|eg|e\.g\.)(?=[\L\U])

    in reply to: GREP to Standardize "e.g.," and "i.e.," #84284
    Matt Isaac
    Participant

    you would then want to use lookarounds to find spaces so it won’t pick up eg inside other words
    (?<=)eg\.\,|eg\.|eg|e\.g\.(?=)

    in reply to: GREP to Standardize "e.g.," and "i.e.," #84282
    Matt Isaac
    Participant

    my first expression should be eg\.\,|eg\.|eg|e\.g\.

    in reply to: GREP to Standardize "e.g.," and "i.e.," #84281
    Matt Isaac
    Participant

    In GREP a vertical bar (shift+\) | is used to represent OR.
    so if you wanted exactly “eg. OR eg., OR eg OR e.g.” you could use [eg.|eg.,|eg|e.g.] and replace with e.g.,
    though the expression e\.?g\.?\,? replace with e.g., would also work.

    in reply to: GREP Bug in Lookaround? #84280
    Matt Isaac
    Participant

    In my experiences, positive lookaheads do support wildcards; though they always search for the shortest match. If you used (?=a?c) “positive lookahead of zero or one a followed by a c” it will search instead for “positive lookahead of a c” since the shortest match of “a?c” is “c”.

    That being said.. In dreerr’s original expression “(?<=~P)(.+?)~b(?=~b{2})” the “(.+?)~b(?=~b{2})” part of the expressions does what it should in selecting any text followed by a carriage return that comes before two carriage returns. The only thing throwing the expression off is the positive lookbehind of a page break. which goes back to Ari’s original reply as positive lookbehinds being unable to look to a previous text frame.

    Though as a workaround you can apply the paragraph style to “(?<=~P)(.+?)~b(?=~b{2})” then go through and remove the paragraph style from “.+~P(?=.+~b{3})”. It’s a bit more work but it does work in the end.

    in reply to: GREP Find/replace multiple items #83901
    Matt Isaac
    Participant

    I was hoping i could use something like find: ([Z|z]?)([X|x]?)([C|c]?)etc. Then somehow change $1 to 1 $2 to 2… etc.

    in reply to: GREP Find/replace multiple items #83801
    Matt Isaac
    Participant

    I noticed i left out a backslash in my changing formatting and slashes find expression.. Find: (\d+)\(\d+) should be (\d+)(\d+). Also i would use the first expressions for each number 0-9 before moving to the next expressions. so total i am using 11 GREP expressions and 1 script to accomplish this.

    in reply to: GREP for Chapter Number? #83799
    Matt Isaac
    Participant

    If i am understanding correctly, you could just use a paragraph style for each chapter name. In the Bullets and Numbering tab use a numbered list and in the list create a new list titled chapters or whatever you’d like to call it (make sure both continue numbers boxes are checked). where it shows “^#.^t” make it say “Chapter ^#” and whenever you need the chapter number just put a space and apply the paragraph style you created to that space. and it will show as “Chapter 1 ” with the ‘1’ being variable

    in reply to: Swap words order #82036
    Matt Isaac
    Participant

    David,
    I’ve never come across a situation to where i needed to include the beginningnd of paragraph symbol for a grep search. Apart from changing “HY?” to “\u+?” for the obvious reason; could you tell me the difference in using, or not using, the additional beginningnd of paragraph from my expression to yours?

    Riccardo,
    A side note to David’s GREP expression.. If your codes use capital and lower case letters you may need to change “\u+?” to “[|\u]+?” otherwise leave his expression the way it is.

    in reply to: Alt-8 stops working for bullets #81924
    Matt Isaac
    Participant

    When the alt-8 stops working have you checked in the keyboard shortcuts menu under the type menu to see if alt-8 was still set to “Insert Special Character: Symbols: Bullet Character”?

Viewing 15 posts - 61 through 75 (of 77 total)