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