@@ -265,9 +265,9 @@ To be used in a **loop over all selected pages**:
265265 local in_pageId=($(ocrd__input_file $n pageId))
266266 local out_id=$(ocrd__input_file $n outputFileId)
267267 local out_fpath="${ocrd__argv[output_file_grp]}/${out_id}.xml
268-
268+
269269 # process $in_fpath to $out_fpath ...
270-
270+
271271 declare -a options
272272 if [ -n "$in_pageId" ]; then
273273 options=( -g $in_pageId )
@@ -285,11 +285,11 @@ To be used in a **loop over all selected pages**:
285285> ** Note** : If the ` --input-file-grp ` is ** multi-valued** (N fileGrps separated by commas),
286286> then usage is similar:
287287> * The function ` ocrd__input_file ` can be used, but
288- > its results will be ** lists** (delimited by whitespace and surrounded by single quotes),
288+ > its results will be ** lists** (delimited by whitespace and surrounded by single quotes),
289289> e.g. ` [url]='file1.xml file2.xml' [ID]='id_file1 id_file2' [mimetype]='application/vnd.prima.page+xml image/tiff' ... ` .
290290> * Therefore its results should be encapsulated in a (non-associative) ** array variable**
291291> and without extra quotes, e.g. ` in_file=($(ocrd__input_file 3 url)) ` , or as shown above.
292- > * This will yield the first fileGrp's results on index 0,
292+ > * This will yield the first fileGrp's results on index 0,
293293> which in bash will always be the same as if you referenced the array without index
294294> (so code does not need to be changed much), e.g. ` test -f $in_file ` which equals ` test -f ${in_file[0]} ` .
295295> * Additional fileGrps will have to be fetched from higher indexes, e.g. ` test -f ${in_file[1]} ` .
0 commit comments