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

ikʉ
*in 6 words phonetic begins word , in 50 words ends it: if search finds in between (not beginning or ending) enough , res=t may done manually

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

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support