Grep替换é,ü,ï等

问题描述

对于我的工作流程,我需要用唯一的字符串替换带重音符号的字符(在过程的另一步骤中将其替换)。

但是在我当前的Grep规则(在InDesign的Findchangelist中)中,这不能识别带重音的字母:

grep    {findWhat:"é"}  {changeto:"!e"} //Doesn't do anything

要验证:

grep    {findWhat:"\/"} {changeto:"\+"} //Does work: it replaces a slash with a plus sign.

grep    {findWhat:"e"}  {changeto:"f"}  //Does work,and does not replace é to f

解决方法

您是否在更改前后清理首选项?

app.findGrepPreferences = app.changeGrepPreferences = null;