【问题标题】:Grep replace é, ü, ï etcgrep 替换 é、ü、ï 等
【发布时间】:2020-12-21 09:09:22
【问题描述】:

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

但在我当前的 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

【问题讨论】:

  • 它对我来说绝对没问题,无论是文本还是 grep 搜索替换。您使用的是查找/更改对话框还是脚本 GREP?如果是对话,请确保清除查找格式,如果是脚本 - 重置 GREP/文本搜索首选项
  • 将更改列表中的é 替换为其unicode 值\u00e9 是否有效?如果是这种情况,您使用非标准编码保存了更改列表。

标签: replace grep adobe-indesign diacritics


【解决方案1】:

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

app.findGrepPreferences = app.changeGrepPreferences = null;

【讨论】:

    猜你喜欢
    • 2014-12-27
    • 2020-11-10
    • 2016-06-23
    • 2017-10-15
    • 1970-01-01
    • 2014-11-10
    • 1970-01-01
    • 1970-01-01
    • 2011-11-21
    相关资源
    最近更新 更多