L.S.
正如 lingtrans wiki 页面所解释的,可以使用 \fig Paratext 中的位置字段来指示图像是用于打印、应用程序还是网络。该 wiki 页面引用了以下文档,原文如下:“您的排版人员/应用程序创建者需要使用类似的规则来过滤掉不属于他们正在创建的输出的图片。”
详细信息可在此处找到:Indic Typesetting Collaboration Document - Google Docs
其中写道:……“在 SAB 中,要过滤掉不应在应用程序中使用的图像('a'),请使用过滤掉仅用于 'p' 或 'w' 的图像的正则表达式规则:”
Find:
(?i)\fig ([^|]|){3}([pw]+)|[^]\fig* 替换为无。(适用于 USFM 2)
(?i)\fig [^]\bloc="[pw]+"[^]\fig* 替换为无。(适用于 USFM 3)
有人使用过这些正则表达式并使其正常工作吗?我试过了,但它们似乎不起作用。如果您能提供任何帮助或指导,我将不胜感激。
goodgoan
附言:我也在 SAB 论坛上发布了此帖,并希望在这里也能得到一些关于正则表达式的建议。提前致谢。
L.S.
As explained on the lingtrans wiki page, it is possible to use the location field in \fig Paratext to indicated whether an image is for Print, App or Web use. On that wiki page it refers to the document below with the following words :" Your typesetter / app creator will need to use similar rules to filter out figures that do not belong in the output that they are creating. "
Details can be found here : Indic Typesetting Collaboration Document - Google Docs
It says there: … “In SAB, to filter out images that should not be used in an app (‘a’), use regex rules that filter out images that are only for ‘p’ or ‘w’:”
Find:
(?i)\fig ([^|]|){3}([pw]+)|[^]\fig* Replace with nothing. (For USFM 2)
(?i)\fig [^]\bloc="[pw]+"[^]\fig* Replace with nothing. (For USFM 3)
Has somebody used these regexes and got them working ? I have but they do not seem to work. Any help or guidance you can give is appreciated.
goodgoan
ps Just posted this in the SAB forum as well, and hoping for some regex input here as well. Thanks in advance.
机器翻译自 English