Commit 0fdbb957a0de6ac513b17bc7cea7258a229dbec9
1 parent
f4531e8a
Wrap remaining replaceables in :samp:
Showing
2 changed files
with
25 additions
and
25 deletions
TODO
| @@ -37,7 +37,7 @@ Make sure the information from <book> is in there | @@ -37,7 +37,7 @@ Make sure the information from <book> is in there | ||
| 37 | Correct placement of comment: <!-- This section is referenced in QPDFObjectHandle.hh --> | 37 | Correct placement of comment: <!-- This section is referenced in QPDFObjectHandle.hh --> |
| 38 | 38 | ||
| 39 | <firstterm> -> just use literal | 39 | <firstterm> -> just use literal |
| 40 | -<replaceable> -> Make sure in :file: or :samp:, then use {} | 40 | +<replaceable> -> use {} |
| 41 | 41 | ||
| 42 | Additional cleanup: | 42 | Additional cleanup: |
| 43 | 43 |
manual/index.rst
| @@ -227,16 +227,16 @@ default over the native one. This behavior can be changed with the | @@ -227,16 +227,16 @@ default over the native one. This behavior can be changed with the | ||
| 227 | following flags to :command:`./configure`: | 227 | following flags to :command:`./configure`: |
| 228 | 228 | ||
| 229 | - :samp:`--enable-crypto-@3@replaceable@3@x@4@replaceable@4@` | 229 | - :samp:`--enable-crypto-@3@replaceable@3@x@4@replaceable@4@` |
| 230 | - (where @1@replaceable@1@x@2@replaceable@2@ is a supported crypto | ||
| 231 | - provider): enable the @1@replaceable@1@x@2@replaceable@2@ crypto | 230 | + (where :samp:`@1@replaceable@1@x@2@replaceable@2@` is a supported crypto |
| 231 | + provider): enable the :samp:`@1@replaceable@1@x@2@replaceable@2@` crypto | ||
| 232 | provider, requiring any external dependencies it needs | 232 | provider, requiring any external dependencies it needs |
| 233 | 233 | ||
| 234 | - :samp:`--disable-crypto-@3@replaceable@3@x@4@replaceable@4@`: | 234 | - :samp:`--disable-crypto-@3@replaceable@3@x@4@replaceable@4@`: |
| 235 | - disable the @1@replaceable@1@x@2@replaceable@2@ provider, and do not | 235 | + disable the :samp:`@1@replaceable@1@x@2@replaceable@2@` provider, and do not |
| 236 | link against its dependencies even if they are available | 236 | link against its dependencies even if they are available |
| 237 | 237 | ||
| 238 | - :samp:`--with-default-crypto=@3@replaceable@3@x@4@replaceable@4@`: | 238 | - :samp:`--with-default-crypto=@3@replaceable@3@x@4@replaceable@4@`: |
| 239 | - make @1@replaceable@1@x@2@replaceable@2@ the default provider even if | 239 | + make :samp:`@1@replaceable@1@x@2@replaceable@2@` the default provider even if |
| 240 | a higher priority one is available | 240 | a higher priority one is available |
| 241 | 241 | ||
| 242 | - :samp:`--disable-implicit-crypto`: only build crypto | 242 | - :samp:`--disable-implicit-crypto`: only build crypto |
| @@ -795,7 +795,7 @@ needed transformations. | @@ -795,7 +795,7 @@ needed transformations. | ||
| 795 | :samp:`--collate=@3@replaceable@3@n@4@replaceable@4@` | 795 | :samp:`--collate=@3@replaceable@3@n@4@replaceable@4@` |
| 796 | When specified, collate rather than concatenate pages from files | 796 | When specified, collate rather than concatenate pages from files |
| 797 | specified with :samp:`--pages`. With a numeric | 797 | specified with :samp:`--pages`. With a numeric |
| 798 | - argument, collate in groups of @1@replaceable@1@n@2@replaceable@2@. | 798 | + argument, collate in groups of :samp:`@1@replaceable@1@n@2@replaceable@2@`. |
| 799 | The default is 1. See `Page Selection | 799 | The default is 1. See `Page Selection |
| 800 | Options <#ref.page-selection>`__ for additional details. | 800 | Options <#ref.page-selection>`__ for additional details. |
| 801 | 801 | ||
| @@ -1155,7 +1155,7 @@ following pages in this order: | @@ -1155,7 +1155,7 @@ following pages in this order: | ||
| 1155 | Starting in qpdf version 10.2, you may specify a numeric argument to | 1155 | Starting in qpdf version 10.2, you may specify a numeric argument to |
| 1156 | :samp:`--collate`. With | 1156 | :samp:`--collate`. With |
| 1157 | :samp:`--collate=@3@replaceable@3@n@4@replaceable@4@`, | 1157 | :samp:`--collate=@3@replaceable@3@n@4@replaceable@4@`, |
| 1158 | -pull groups of @1@replaceable@1@n@2@replaceable@2@ pages from each file, | 1158 | +pull groups of :samp:`@1@replaceable@1@n@2@replaceable@2@` pages from each file, |
| 1159 | again, stopping when there are no more pages. For example, if you ran | 1159 | again, stopping when there are no more pages. For example, if you ran |
| 1160 | :command:`qpdf --collate=2 --empty --pages a.pdf 1-5 b.pdf 6-4 c.pdf | 1160 | :command:`qpdf --collate=2 --empty --pages a.pdf 1-5 b.pdf 6-4 c.pdf |
| 1161 | r1 -- out.pdf`, you would get the following pages in this | 1161 | r1 -- out.pdf`, you would get the following pages in this |
| @@ -1338,20 +1338,20 @@ from the command line. The following options are available: | @@ -1338,20 +1338,20 @@ from the command line. The following options are available: | ||
| 1338 | 1338 | ||
| 1339 | :samp:`--add-attachment @3@replaceable@3@file@4@replaceable@4@ @3@replaceable@3@options@4@replaceable@4@ --` | 1339 | :samp:`--add-attachment @3@replaceable@3@file@4@replaceable@4@ @3@replaceable@3@options@4@replaceable@4@ --` |
| 1340 | Add or replace an attachment with the contents of | 1340 | Add or replace an attachment with the contents of |
| 1341 | - @1@replaceable@1@file@2@replaceable@2@. This may be specified more | 1341 | + :samp:`@1@replaceable@1@file@2@replaceable@2@`. This may be specified more |
| 1342 | than once. The following additional options may appear before the | 1342 | than once. The following additional options may appear before the |
| 1343 | ``--`` that ends this option: | 1343 | ``--`` that ends this option: |
| 1344 | 1344 | ||
| 1345 | :samp:`--key=@3@replaceable@3@key@4@replaceable@4@` | 1345 | :samp:`--key=@3@replaceable@3@key@4@replaceable@4@` |
| 1346 | The key to use to register the attachment in the embedded files | 1346 | The key to use to register the attachment in the embedded files |
| 1347 | table. Defaults to the last path element of | 1347 | table. Defaults to the last path element of |
| 1348 | - @1@replaceable@1@file@2@replaceable@2@. | 1348 | + :samp:`@1@replaceable@1@file@2@replaceable@2@`. |
| 1349 | 1349 | ||
| 1350 | :samp:`--filename=@3@replaceable@3@name@4@replaceable@4@` | 1350 | :samp:`--filename=@3@replaceable@3@name@4@replaceable@4@` |
| 1351 | The file name to be used for the attachment. This is what is | 1351 | The file name to be used for the attachment. This is what is |
| 1352 | usually displayed to the user and is the name most graphical PDF | 1352 | usually displayed to the user and is the name most graphical PDF |
| 1353 | viewers will use when saving a file. It defaults to the last path | 1353 | viewers will use when saving a file. It defaults to the last path |
| 1354 | - element of @1@replaceable@1@file@2@replaceable@2@. | 1354 | + element of :samp:`@1@replaceable@1@file@2@replaceable@2@`. |
| 1355 | 1355 | ||
| 1356 | :samp:`--creationdate=@3@replaceable@3@date@4@replaceable@4@` | 1356 | :samp:`--creationdate=@3@replaceable@3@date@4@replaceable@4@` |
| 1357 | The attachment's creation date in PDF format; defaults to the | 1357 | The attachment's creation date in PDF format; defaults to the |
| @@ -1392,7 +1392,7 @@ from the command line. The following options are available: | @@ -1392,7 +1392,7 @@ from the command line. The following options are available: | ||
| 1392 | 1392 | ||
| 1393 | :samp:`--password=@3@replaceable@3@password@4@replaceable@4@` | 1393 | :samp:`--password=@3@replaceable@3@password@4@replaceable@4@` |
| 1394 | If required, the password needed to open | 1394 | If required, the password needed to open |
| 1395 | - @1@replaceable@1@file@2@replaceable@2@ | 1395 | + :samp:`@1@replaceable@1@file@2@replaceable@2@` |
| 1396 | 1396 | ||
| 1397 | :samp:`--prefix=@3@replaceable@3@prefix@4@replaceable@4@` | 1397 | :samp:`--prefix=@3@replaceable@3@prefix@4@replaceable@4@` |
| 1398 | Only required if the file from which attachments are being copied | 1398 | Only required if the file from which attachments are being copied |
| @@ -1404,10 +1404,10 @@ from the command line. The following options are available: | @@ -1404,10 +1404,10 @@ from the command line. The following options are available: | ||
| 1404 | 1404 | ||
| 1405 | When a date is required, the date should conform to the PDF date format | 1405 | When a date is required, the date should conform to the PDF date format |
| 1406 | specification, which is | 1406 | specification, which is |
| 1407 | -``D:``\ @1@replaceable@1@yyyymmddhhmmss<z>@2@replaceable@2@, where | ||
| 1408 | -@1@replaceable@1@<z>@2@replaceable@2@ is either ``Z`` for UTC or a | ||
| 1409 | -timezone offset in the form @1@replaceable@1@-hh'mm'@2@replaceable@2@ or | ||
| 1410 | -@1@replaceable@1@+hh'mm'@2@replaceable@2@. Examples: | 1407 | +``D:``\ :samp:`@1@replaceable@1@yyyymmddhhmmss<z>@2@replaceable@2@`, where |
| 1408 | +:samp:`@1@replaceable@1@<z>@2@replaceable@2@` is either ``Z`` for UTC or a | ||
| 1409 | +timezone offset in the form :samp:`@1@replaceable@1@-hh'mm'@2@replaceable@2@` or | ||
| 1410 | +:samp:`@1@replaceable@1@+hh'mm'@2@replaceable@2@`. Examples: | ||
| 1411 | ``D:20210207161528-05'00'``, ``D:20210207211528Z``. | 1411 | ``D:20210207161528-05'00'``, ``D:20210207211528Z``. |
| 1412 | 1412 | ||
| 1413 | .. _ref.advanced-parsing: | 1413 | .. _ref.advanced-parsing: |
| @@ -1566,7 +1566,7 @@ following options are available: | @@ -1566,7 +1566,7 @@ following options are available: | ||
| 1566 | which does something completely different. | 1566 | which does something completely different. |
| 1567 | 1567 | ||
| 1568 | :samp:`--remove-unreferenced-resources=@3@replaceable@3@option@4@replaceable@4@` | 1568 | :samp:`--remove-unreferenced-resources=@3@replaceable@3@option@4@replaceable@4@` |
| 1569 | - The @1@replaceable@1@option@2@replaceable@2@ may be ``auto``, | 1569 | + The :samp:`@1@replaceable@1@option@2@replaceable@2@` may be ``auto``, |
| 1570 | ``yes``, or ``no``. The default is ``auto``. | 1570 | ``yes``, or ``no``. The default is ``auto``. |
| 1571 | 1571 | ||
| 1572 | Starting with qpdf 8.1, when splitting pages, qpdf is able to attempt | 1572 | Starting with qpdf 8.1, when splitting pages, qpdf is able to attempt |
| @@ -1634,7 +1634,7 @@ following options are available: | @@ -1634,7 +1634,7 @@ following options are available: | ||
| 1634 | transformations. The library functionality backing this option was | 1634 | transformations. The library functionality backing this option was |
| 1635 | added for the benefit of programs that want to create *n-up* page | 1635 | added for the benefit of programs that want to create *n-up* page |
| 1636 | layouts and other similar things that don't work well with | 1636 | layouts and other similar things that don't work well with |
| 1637 | - annotations. The @1@replaceable@1@option@2@replaceable@2@ parameter | 1637 | + annotations. The :samp:`@1@replaceable@1@option@2@replaceable@2@` parameter |
| 1638 | may be any of the following: | 1638 | may be any of the following: |
| 1639 | 1639 | ||
| 1640 | - :samp:`all`: include all annotations that are not | 1640 | - :samp:`all`: include all annotations that are not |
| @@ -1746,7 +1746,7 @@ following options are available: | @@ -1746,7 +1746,7 @@ following options are available: | ||
| 1746 | 1746 | ||
| 1747 | :samp:`--min-version=@3@replaceable@3@version@4@replaceable@4@` | 1747 | :samp:`--min-version=@3@replaceable@3@version@4@replaceable@4@` |
| 1748 | Forces the PDF version of the output file to be at least | 1748 | Forces the PDF version of the output file to be at least |
| 1749 | - @1@replaceable@1@version@2@replaceable@2@. In other words, if the | 1749 | + :samp:`@1@replaceable@1@version@2@replaceable@2@`. In other words, if the |
| 1750 | input file has a lower version than the specified version, the | 1750 | input file has a lower version than the specified version, the |
| 1751 | specified version will be used. If the input file has a higher | 1751 | specified version will be used. If the input file has a higher |
| 1752 | version, the input file's original version will be used. It is seldom | 1752 | version, the input file's original version will be used. It is seldom |
| @@ -1755,10 +1755,10 @@ following options are available: | @@ -1755,10 +1755,10 @@ following options are available: | ||
| 1755 | readers. | 1755 | readers. |
| 1756 | 1756 | ||
| 1757 | The version number may be expressed in the form | 1757 | The version number may be expressed in the form |
| 1758 | - @1@replaceable@1@major.minor.extension-level@2@replaceable@2@, in | 1758 | + :samp:`@1@replaceable@1@major.minor.extension-level@2@replaceable@2@`, in |
| 1759 | which case the version is interpreted as | 1759 | which case the version is interpreted as |
| 1760 | - @1@replaceable@1@major.minor@2@replaceable@2@ at extension level | ||
| 1761 | - @1@replaceable@1@extension-level@2@replaceable@2@. For example, | 1760 | + :samp:`@1@replaceable@1@major.minor@2@replaceable@2@` at extension level |
| 1761 | + :samp:`@1@replaceable@1@extension-level@2@replaceable@2@`. For example, | ||
| 1762 | version ``1.7.8`` represents version 1.7 at extension level 8. Note | 1762 | version ``1.7.8`` represents version 1.7 at extension level 8. Note |
| 1763 | that minimal syntax checking is done on the command line. | 1763 | that minimal syntax checking is done on the command line. |
| 1764 | 1764 | ||
| @@ -3121,7 +3121,7 @@ works. Look at the code in ``QPDFWriter`` for exact details. | @@ -3121,7 +3121,7 @@ works. Look at the code in ``QPDFWriter`` for exact details. | ||
| 3121 | 3121 | ||
| 3122 | - Store current offset into xref table. | 3122 | - Store current offset into xref table. |
| 3123 | 3123 | ||
| 3124 | - - Write ``@1@replaceable@1@n@2@replaceable@2@ 0 obj``. | 3124 | + - Write ``:samp:`@1@replaceable@1@n@2@replaceable@2@` 0 obj``. |
| 3125 | 3125 | ||
| 3126 | - If object is null, whether direct or indirect, write out null, | 3126 | - If object is null, whether direct or indirect, write out null, |
| 3127 | thus eliminating unresolvable indirect object references. | 3127 | thus eliminating unresolvable indirect object references. |
| @@ -3561,11 +3561,11 @@ which are these: | @@ -3561,11 +3561,11 @@ which are these: | ||
| 3561 | ``/Size`` in the trailer dictionary) | 3561 | ``/Size`` in the trailer dictionary) |
| 3562 | 3562 | ||
| 3563 | - ``/Index`` (optional): value | 3563 | - ``/Index`` (optional): value |
| 3564 | - ``[@1@replaceable@1@n count@2@replaceable@2@ ...]`` used to determine | 3564 | + ``[:samp:`@1@replaceable@1@n count@2@replaceable@2@` ...]`` used to determine |
| 3565 | which objects' information is stored in this stream. The default is | 3565 | which objects' information is stored in this stream. The default is |
| 3566 | ``[0 /Size]``. | 3566 | ``[0 /Size]``. |
| 3567 | 3567 | ||
| 3568 | -- ``/Prev``: value @1@replaceable@1@offset@2@replaceable@2@: byte | 3568 | +- ``/Prev``: value :samp:`@1@replaceable@1@offset@2@replaceable@2@`: byte |
| 3569 | offset of previous xref stream (same as ``/Prev`` in the trailer | 3569 | offset of previous xref stream (same as ``/Prev`` in the trailer |
| 3570 | dictionary) | 3570 | dictionary) |
| 3571 | 3571 | ||
| @@ -3896,7 +3896,7 @@ For a detailed list of changes, please see the file | @@ -3896,7 +3896,7 @@ For a detailed list of changes, please see the file | ||
| 3896 | - Add numeric option to :samp:`--collate`. If | 3896 | - Add numeric option to :samp:`--collate`. If |
| 3897 | :samp:`--collate=@3@replaceable@3@n@4@replaceable@4@` | 3897 | :samp:`--collate=@3@replaceable@3@n@4@replaceable@4@` |
| 3898 | is given, take pages in groups of | 3898 | is given, take pages in groups of |
| 3899 | - @1@replaceable@1@n@2@replaceable@2@ from the given files. | 3899 | + :samp:`@1@replaceable@1@n@2@replaceable@2@` from the given files. |
| 3900 | 3900 | ||
| 3901 | - It is now valid to provide :samp:`--rotate=0` | 3901 | - It is now valid to provide :samp:`--rotate=0` |
| 3902 | to clear rotation from a page. | 3902 | to clear rotation from a page. |