diff --git a/docs/cookbook.md b/docs/cookbook.md index 0c8641c..1841bd1 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -663,9 +663,9 @@ Image Magic The [`-prince-image-magic`](css-props.md#prop-prince-image-magic) property performs various image-related, Prince-specific tasks that do not fit into other existing CSS properties. It applies magic to images! -To reduce the PDF file size, JPEG images can be recompressed at a lower quality level by using the function `recompress-jpeg(quality%)` with the required quality percentage as argument. +To reduce the PDF file size, JPEG images can be recompressed at a lower quality level by using the function recompress-jpeg( <quality%> ) with the required quality percentage as argument. -PNG images can be converted to JPEG images with the keyword `convert-to-jpeg` (using the default compression rate), or they can also be converted to JPEG with the required compression rate as argument with the function `convert-to-jpeg(quality%)`. +PNG images can be converted to JPEG images with the keyword `convert-to-jpeg` (using the default compression rate), or they can also be converted to JPEG with the required compression rate as argument with the function convert-to-jpeg( <quality%> ). Prince usually strips unnecessary metadata from JPEG images to help contain size. But it might happen that you need that extra data, possibly for further downstream processing. The keyword `jpeg-verbatim` inhibtis this stripping and includes the images without modification in the PDF file. diff --git a/website/properties/properties.xml b/website/properties/properties.xml index 42e2f8f..0889421 100644 --- a/website/properties/properties.xml +++ b/website/properties/properties.xml @@ -4943,12 +4943,12 @@ supplier, item { overflow-wrap: normal; } embedded in the PDF file.

- When recompress-jpeg(quality%) is specified for this property, Prince + When recompress-jpeg( <quality%> ) is specified for this property, Prince will recompress JPEG images to the specified percentage to save space when embedding them in the PDF output.

- The convert-to-jpeg keyword or the convert-to-jpeg(quality%) + The convert-to-jpeg keyword or the convert-to-jpeg( <quality%> ) function convert non-JPEG images to JPEG, so that they take less space (but may look blurry).

diff --git a/website/properties/schema.rnc b/website/properties/schema.rnc index 68ca5cd..629b188 100644 --- a/website/properties/schema.rnc +++ b/website/properties/schema.rnc @@ -154,11 +154,12 @@ html-list-item = element li { html-inline* } html-phrase = element em { html-text } | + element i { html-text } | element strong { html-text } | element sup { attribute style { text }, html-text } html-text = - element code { html-text } | + element code { html-inline* } | text reference =