How to capture a regular letter between italic ones?
i have text 1 letter phonetic sign typed in regular style.
but words in italics should have sign in italics either.
i tried grep buy not built sequence check regular letter inside italics.*
thank you.
actual
ikʉ
required
unfortunately, can't make lookahead , lookbehind @ format settings: whatever format set in "find format" applies whole expression. there way around this. in such situations replace italics tag can search italics text.
step1:
find what: .+
find format: +italic
change to: <i>$0</i>
change format: +regular
your example looks this: <i>ik</i>ʉ
now replace move italics-off tag after phonetic character. maybe this:
find what: </i>([\x{0250}-\x{02ff}])\b
replace $1</i>
this 1 word-final phonetic characters, maybe more clever 1 fixes them @ beginning , middle of words well.
anyway, when you're done, convert tags italic:
find what: <i>(.+?)</i>
find format: +regular
change to: $1
change format: +italics
peter
More discussions in InDesign
adobe
Comments
Post a Comment