Salam.
Seperti dijelaskan di halaman wiki lingtrans, dimungkinkan untuk menggunakan field lokasi di \fig Paratext untuk menunjukkan apakah sebuah gambar digunakan untuk Print, App, atau Web. Di halaman wiki tersebut, merujuk ke dokumen di bawah dengan kata-kata berikut: "Typesetter / pembuat aplikasi Anda perlu menggunakan aturan serupa untuk menyaring gambar yang tidak termasuk dalam output yang mereka buat. "
Detail dapat ditemukan di sini: Indic Typesetting Collaboration Document - Google Docs
Tertulis di sana: … “Di SAB, untuk menyaring gambar yang tidak boleh digunakan dalam aplikasi ('a'), gunakan aturan regex yang menyaring gambar yang hanya untuk 'p' atau 'w':”
Find:
(?i)\fig ([^|]|){3}([pw]+)|[^]\fig* Ganti dengan kosong. (Untuk USFM 2)
(?i)\fig [^]\bloc="[pw]+"[^]\fig* Ganti dengan kosong. (Untuk USFM 3)
Apakah ada yang sudah menggunakan regex ini dan berhasil? Saya sudah mencobanya tetapi tampaknya tidak berfungsi. Bantuan atau panduan apa pun yang dapat Anda berikan sangat dihargai.
goodgoan
ps Saya juga baru saja memposting ini di forum SAB, dan berharap ada masukan regex di sini juga. Terima kasih sebelumnya.
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.
Diterjemahkan secara otomatis dari English