L.S.
Как объясняется на странице вики lingtrans, можно использовать поле location в \fig Paratext, чтобы указать, предназначено ли изображение для печати (Print), приложения (App) или веба (Web). На этой странице вики отсылает к документу ниже со следующими словами: «Вашему наборщику / создателю приложения потребуется использовать аналогичные правила для фильтрации фигур, которые не должны входить в создаваемый ими вывод».
Подробности можно найти здесь: Документ сотрудничества по набору текста Indic - Google Docs
Там сказано: … «В SAB, чтобы отфильтровать изображения, которые не должны использоваться в приложении ('a'), используйте правила регулярных выражений, которые отфильтровывают изображения, предназначенные только для 'p' или 'w':»
Find:
(?i)\fig ([^|]|){3}([pw]+)|[^]\fig* Replace with nothing. (For USFM 2)
(?i)\fig [^]\bloc="[pw]+"[^]\fig* Replace with nothing. (For USFM 3)
Кто-нибудь использовал эти регулярные выражения и заставил их работать? Я пробовал, но они, похоже, не работают. Буду признателен за любую помощь или советы.
goodgoan
ps Я также опубликовал это в форуме 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.