Reference Documentation: PDF Publishing with GNU Troff
修訂 | 87af6703595c8cc9caea9cfe91081fdc2bb98a21 (tree) |
---|---|
時間 | 2021-11-18 23:39:54 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Avoid unwanted line-breaks at hard hyphenation points.
* pdfmark.ms: Ensure that all explicitly hyphenated words are prefixed
by "\%", to make hard hyphens non-breaking.
@@ -399,7 +399,7 @@ | ||
399 | 399 | in the document view pane, while a document outline should appear to the left, |
400 | 400 | in the \(lqBookmarks\(rq pane. |
401 | 401 | .IP \(bu |
402 | -Adding document identification \(lqmeta\(hydata\(rq, | |
402 | +Adding document identification \%\(lqmeta\(hydata\(rq, | |
403 | 403 | which can be accessed, in \*[Acrobat]\~Reader, |
404 | 404 | by inspecting the \(lqFile\^/\^Document\~Properties\^/\^Summary\(rq. |
405 | 405 | .IP \(bu |
@@ -695,14 +695,14 @@ | ||
695 | 695 | .pdfmark-manual |
696 | 696 | for more information. |
697 | 697 | .LP |
698 | -It should be noted that the view controlling meta\(hydata, defined by the | |
698 | +It should be noted that the view controlling \%meta\(hydata, defined by the | |
699 | 699 | .CW pdfview |
700 | 700 | macro, is not written immediately to the \*[PostScript] output stream, |
701 | -but is stored in an internal meta\(hydata \(lqcache\(rq, | |
701 | +but is stored in an internal \%meta\(hydata \(lqcache\(rq, | |
702 | 702 | (simply implemented as a |
703 | 703 | .CW groff |
704 | 704 | diversion). |
705 | -This \(lqcached\(lq meta\(hydata must be written out later, by invoking the | |
705 | +This \(lqcached\(lq \%meta\(hydata must be written out later, by invoking the | |
706 | 706 | .CW pdfsync |
707 | 707 | macro, |
708 | 708 | .\" |
@@ -719,9 +719,9 @@ | ||
719 | 719 | .LP |
720 | 720 | In addition to the |
721 | 721 | .CW /DOCVIEW |
722 | -class of meta\(hydata described above, | |
722 | +class of \%meta\(hydata described above, | |
723 | 723 | .XR docview ), ( |
724 | -we may also wish to include document identification meta\(hydata, | |
724 | +we may also wish to include document identification \%meta\(hydata, | |
725 | 725 | which belongs to the PDF |
726 | 726 | .CW /DOCINFO |
727 | 727 | class. |
@@ -730,7 +730,7 @@ | ||
730 | 730 | .CW pdfinfo |
731 | 731 | macro. |
732 | 732 | As an example of how it is used, |
733 | -the identification meta\(hydata attached to this document | |
733 | +the identification \%meta\(hydata attached to this document | |
734 | 734 | was specified using a macro sequence similar to:\(en |
735 | 735 | .DS I |
736 | 736 | .CW |
@@ -761,7 +761,7 @@ | ||
761 | 761 | records specified with the |
762 | 762 | .CW pdfinfo |
763 | 763 | macro are not immediately written to the \*[PostScript] output stream; |
764 | -they are stored in the same meta\(hydata cache as | |
764 | +they are stored in the same \%meta\(hydata cache as | |
765 | 765 | .CW /DOCVIEW |
766 | 766 | specifications, until this cache is explicitly flushed, |
767 | 767 | by invoking the |
@@ -1388,9 +1388,9 @@ | ||
1388 | 1388 | .XR set-format ). ( |
1389 | 1389 | .IP \*[= Z] |
1390 | 1390 | Define the absolute position on the physical PDF output page, |
1391 | -where the \(lqhot\(hyspot\(rq associated with an active link is to be placed. | |
1392 | -Invoked in pairs, marking the starting and ending PDF page co\(hyordinates | |
1393 | -for each link \(lqhot\(hyspot\(rq, this operator is rarely, if ever, | |
1391 | +where the \%\(lqhot\(hyspot\(rq associated with an active link is to be placed. | |
1392 | +Invoked in pairs, marking the starting and ending PDF page \%co\(hyordinates | |
1393 | +for each link \%\(lqhot\(hyspot\(rq, this operator is rarely, if ever, | |
1394 | 1394 | specified directly by the user; |
1395 | 1395 | rather, appropriate |
1396 | 1396 | .CW pdfhref |
@@ -1406,7 +1406,7 @@ | ||
1406 | 1406 | .CW pdfhref |
1407 | 1407 | implementation provides only one such feature which requires initialization |
1408 | 1408 | \(em a helper macro which must be attached to a user supplied page trap handler, |
1409 | -in order to support mapping of reference \(lqhot\(hyspots\(rq | |
1409 | +in order to support mapping of reference \%\(lqhot\(hyspots\(rq | |
1410 | 1410 | which extend through a page transition; |
1411 | 1411 | .XR page-trap ). ( |
1412 | 1412 | .QE |
@@ -1513,7 +1513,7 @@ | ||
1513 | 1513 | .CW URI , |
1514 | 1514 | or the destination name associated with a PDF active link, |
1515 | 1515 | independently of the following text, |
1516 | -which describes the link and demarcates the link \(lqhot\(hyspot\(rq. | |
1516 | +which describes the link and demarcates the link \%\(lqhot\(hyspot\(rq. | |
1517 | 1517 | This option affects the behaviour of the |
1518 | 1518 | .CW pdfhref |
1519 | 1519 | macro's |
@@ -1565,12 +1565,12 @@ | ||
1565 | 1565 | .sp -\n(PDu |
1566 | 1566 | .IP \*[= -P\0 \(dqprefix\(hytext\(dq > <] |
1567 | 1567 | Specifies |
1568 | -.CWI \(dqprefix\(hytext\(dq > < | |
1568 | +.CWI \(dqprefix\(hytext\(dq > \%< | |
1569 | 1569 | to be attached to the |
1570 | 1570 | .EM start |
1571 | 1571 | of the text describing an active PDF document link, |
1572 | 1572 | with no intervening space, but without itself being included in the |
1573 | -active area of the link \(lqhot\(hyspot\(rq; | |
1573 | +active area of the link \%\(lqhot\(hyspot\(rq; | |
1574 | 1574 | it is effective with the |
1575 | 1575 | .CWB L \& \& \(rq \(lq |
1576 | 1576 | and |
@@ -1582,9 +1582,9 @@ | ||
1582 | 1582 | .sp -\n(PDu |
1583 | 1583 | .IP |
1584 | 1584 | Typically, this option would be used to insert punctuation before |
1585 | -the link \(lqhot\(hyspot\(rq. | |
1585 | +the link \%\(lqhot\(hyspot\(rq. | |
1586 | 1586 | Thus, there is little reason for the inclusion of spaces in |
1587 | -.CWI \(dqprefix\(hytext\(dq > < ; | |
1587 | +.CWI \(dqprefix\(hytext\(dq > \%< ; | |
1588 | 1588 | however, if such space is required, then the enclosing double quotes |
1589 | 1589 | .EM must |
1590 | 1590 | be specified, as indicated. |
@@ -1593,12 +1593,12 @@ | ||
1593 | 1593 | .sp -\n(PDu |
1594 | 1594 | .IP \*[= -A\0 \(dqaffixed\(hytext\(dq > <] |
1595 | 1595 | Specifies |
1596 | -.CWI \(dqaffixed\(hytext\(dq > < | |
1596 | +.CWI \(dqaffixed\(hytext\(dq > \%< | |
1597 | 1597 | to be attached to the |
1598 | 1598 | .EM end |
1599 | 1599 | of the text describing an active PDF document link, |
1600 | 1600 | with no intervening space, but without itself being included in the |
1601 | -active area of the link \(lqhot\(hyspot\(rq; | |
1601 | +active area of the link \%\(lqhot\(hyspot\(rq; | |
1602 | 1602 | it is effective with the |
1603 | 1603 | .CWB L \& \& \(rq \(lq |
1604 | 1604 | and |
@@ -1610,9 +1610,9 @@ | ||
1610 | 1610 | .sp -\n(PDu |
1611 | 1611 | .IP |
1612 | 1612 | Typically, this option would be used to insert punctuation after |
1613 | -the link \(lqhot\(hyspot\(rq. | |
1613 | +the link \%\(lqhot\(hyspot\(rq. | |
1614 | 1614 | Thus, there is little reason for the inclusion of spaces in |
1615 | -.CWI \(dqaffixed\(hytext\(dq > < ; | |
1615 | +.CWI \(dqaffixed\(hytext\(dq > \%< ; | |
1616 | 1616 | however, if such space is required, then the enclosing double quotes |
1617 | 1617 | .EM must |
1618 | 1618 | be specified, as indicated. |
@@ -1716,13 +1716,13 @@ | ||
1716 | 1716 | .IP \*[= -DF\0 dos\(hyfile > <] |
1717 | 1717 | Specifies the name of the file in which a link destination is defined, |
1718 | 1718 | using the file naming semantics of the |
1719 | -.CW MS\(hyDOS \*(rg | |
1719 | +.CW \%MS\(hyDOS \*(rg | |
1720 | 1720 | operating system. |
1721 | 1721 | When the PDF document is read on a machine |
1722 | 1722 | where the operating system uses the |
1723 | -.CW MS\(hyDOS \*(rg | |
1723 | +.CW \%MS\(hyDOS \*(rg | |
1724 | 1724 | file system, then |
1725 | -.CWI dos\(hyfile > < | |
1725 | +.CWI dos\(hyfile > \%< | |
1726 | 1726 | is used as the name of the file containing the reference destination, |
1727 | 1727 | overriding the |
1728 | 1728 | .CWI file > < |
@@ -1739,7 +1739,7 @@ | ||
1739 | 1739 | where the operating system uses the |
1740 | 1740 | .CW Macintosh \*(rg |
1741 | 1741 | file system, then |
1742 | -.CWI mac\(hyfile > < | |
1742 | +.CWI mac\(hyfile > \%< | |
1743 | 1743 | is used as the name of the file containing the reference destination, |
1744 | 1744 | overriding the |
1745 | 1745 | .CWI file > < |
@@ -1755,7 +1755,7 @@ | ||
1755 | 1755 | where the operating system uses |
1756 | 1756 | .CW POSIX |
1757 | 1757 | file naming semantics, then |
1758 | -.CWI unix\(hyfile > < | |
1758 | +.CWI unix\(hyfile > \%< | |
1759 | 1759 | is used as the name of the file containing the reference destination, |
1760 | 1760 | overriding the |
1761 | 1761 | .CWI file > < |
@@ -1765,13 +1765,13 @@ | ||
1765 | 1765 | .IP \*[= -WF\0 win\(hyfile > <] |
1766 | 1766 | Specifies the name of the file in which a link destination is defined, |
1767 | 1767 | using the file naming semantics of the |
1768 | -.CW MS\(hyWindows \*(rg | |
1769 | -32\(hybit operating system. | |
1768 | +.CW \%MS\(hyWindows \*(rg | |
1769 | +\%32\(hybit operating system. | |
1770 | 1770 | When the PDF document is read on a machine |
1771 | 1771 | where the operating system uses any of the |
1772 | -.CW MS\(hyWindows \*(rg | |
1772 | +.CW \%MS\(hyWindows \*(rg | |
1773 | 1773 | file systems, with long file name support, then |
1774 | -.CWI win\(hyfile > < | |
1774 | +.CWI win\(hyfile > \%< | |
1775 | 1775 | is used as the name of the file containing the reference destination, |
1776 | 1776 | overriding the |
1777 | 1777 | .CWI file > < |
@@ -2097,7 +2097,7 @@ | ||
2097 | 2097 | .CWI text |
2098 | 2098 | arguments are specified, then they will be inserted into the |
2099 | 2099 | .CW groff |
2100 | -output stream, to define the text appearing in the \(lqhot\(hyspot\(rq | |
2100 | +output stream, to define the text appearing in the \%\(lqhot\(hyspot\(rq | |
2101 | 2101 | region of the link; |
2102 | 2102 | this will be printed in the link colour specified by the string, |
2103 | 2103 | .CW PDFHREF.TEXT.COLOUR , |
@@ -2118,7 +2118,7 @@ | ||
2118 | 2118 | .EM either |
2119 | 2119 | the |
2120 | 2120 | .CWB -D \& \& \~\c |
2121 | -.CWBI dest\(hyname > < | |
2121 | +.CWBI dest\(hyname > \%< | |
2122 | 2122 | option, |
2123 | 2123 | .EM or |
2124 | 2124 | the |
@@ -2129,18 +2129,18 @@ | ||
2129 | 2129 | may be omitted. |
2130 | 2130 | If the |
2131 | 2131 | .CWB -D \& \& \~\c |
2132 | -.CWBI dest\(hyname > < | |
2132 | +.CWBI dest\(hyname > \%< | |
2133 | 2133 | option is omitted, then the first word of |
2134 | 2134 | .CWI descriptive \& \& \~\c |
2135 | 2135 | .CWI text \& \& , |
2136 | 2136 | i.e.\~all text up to but not including the first space, |
2137 | 2137 | will be interpreted as the |
2138 | -.CWBI dest\(hyname > < | |
2138 | +.CWBI dest\(hyname > \%< | |
2139 | 2139 | for the link; this text will also appear in the running text of the document, |
2140 | 2140 | within the active region of the link. |
2141 | 2141 | Alternatively, if the |
2142 | 2142 | .CWB -D \& \& \~\c |
2143 | -.CWBI dest\(hyname > < | |
2143 | +.CWBI dest\(hyname > \%< | |
2144 | 2144 | option |
2145 | 2145 | .EM is |
2146 | 2146 | specified, and |
@@ -2165,10 +2165,10 @@ | ||
2165 | 2165 | .LP |
2166 | 2166 | The |
2167 | 2167 | .CWB -P \& \& \~\c |
2168 | -.CWBI prefix\(hytext > < | |
2168 | +.CWBI prefix\(hytext > \%< | |
2169 | 2169 | and |
2170 | 2170 | .CWB -A \& \& \~\c |
2171 | -.CWBI affixed\(hytext > < | |
2171 | +.CWBI affixed\(hytext > \%< | |
2172 | 2172 | options may be used to specify additional text |
2173 | 2173 | which will be placed before and after the linked text respectively, |
2174 | 2174 | with no intervening space. |
@@ -2264,14 +2264,14 @@ | ||
2264 | 2264 | be specified when referring to a destination in an external PDF file, |
2265 | 2265 | the |
2266 | 2266 | .CWB -DF \& \& \~\c |
2267 | -.CWBI dos\(hyfile > < , | |
2267 | +.CWBI dos\(hyfile > \%< , | |
2268 | 2268 | .CWB -MF \& \& \~\c |
2269 | -.CWBI mac\(hyfile > < , | |
2269 | +.CWBI mac\(hyfile > \%< , | |
2270 | 2270 | .CWB -UF \& \& \~\c |
2271 | -.CWBI unix\(hyfile > < | |
2271 | +.CWBI unix\(hyfile > \%< | |
2272 | 2272 | and |
2273 | 2273 | .CWB -WF \& \& \~\c |
2274 | -.CWBI win\(hyfile > < | |
2274 | +.CWBI win\(hyfile > \%< | |
2275 | 2275 | options may be used to specify the location of the file |
2276 | 2276 | containing the reference destination, |
2277 | 2277 | in a variety of operating system dependent formats. |
@@ -2290,22 +2290,22 @@ | ||
2290 | 2290 | .CWBI file > < |
2291 | 2291 | option, and the document is read on the appropriate operating systems, |
2292 | 2292 | then the path names specified by |
2293 | -.CWBI dos\(hyfile > < , | |
2294 | -.CWBI mac\(hyfile > < , | |
2295 | -.CWBI unix\(hyfile > < | |
2293 | +.CWBI dos\(hyfile > \%< , | |
2294 | +.CWBI mac\(hyfile > \%< , | |
2295 | +.CWBI unix\(hyfile > \%< | |
2296 | 2296 | and |
2297 | -.CWBI win\(hyfile > < | |
2297 | +.CWBI win\(hyfile > \%< | |
2298 | 2298 | will be searched, |
2299 | 2299 | .EM instead |
2300 | 2300 | of the path name specified by |
2301 | 2301 | .CWBI file > < , |
2302 | 2302 | for each of the |
2303 | -.CW MS\(hyDOS \*(rg, | |
2303 | +.CW \%MS\(hyDOS \*(rg, | |
2304 | 2304 | .CW Apple \*(rg |
2305 | 2305 | .CW Macintosh \*(rg, |
2306 | 2306 | .CW Unix \(tm |
2307 | 2307 | and |
2308 | -.CW MS\(hyWindows \*(rg | |
2308 | +.CW \%MS\(hyWindows \*(rg | |
2309 | 2309 | operating systems, respectively; see the |
2310 | 2310 | .pdfmark-manual , |
2311 | 2311 | for further details. |
@@ -2356,7 +2356,7 @@ | ||
2356 | 2356 | .CW pdfhref |
2357 | 2357 | macro is invoked with the |
2358 | 2358 | .CWB W \& \& \(rq \(lq |
2359 | -(for \(lqweb\(hylink\(rq) operator, rather than the | |
2359 | +(for \%\(lqweb\(hylink\(rq) operator, rather than the | |
2360 | 2360 | .CWB L \& \& \(rq \(lq |
2361 | 2361 | operator; nevertheless, the invocation syntax is similar, having the form |
2362 | 2362 | .QP |
@@ -2384,13 +2384,13 @@ | ||
2384 | 2384 | format, while the |
2385 | 2385 | .CWI descriptive |
2386 | 2386 | .CWI text |
2387 | -argument specifies the text which is to appear in the \(lqhot\(hyspot\(rq | |
2387 | +argument specifies the text which is to appear in the \%\(lqhot\(hyspot\(rq | |
2388 | 2388 | region, and the |
2389 | 2389 | .CWB -P |
2390 | -.CWBI prefix\(hytext > < | |
2390 | +.CWBI prefix\(hytext > \%< | |
2391 | 2391 | and |
2392 | 2392 | .CWB -A |
2393 | -.CWBI affixed\(hytext > < | |
2393 | +.CWBI affixed\(hytext > \%< | |
2394 | 2394 | options have the same effect as in the case of local document links, |
2395 | 2395 | .XR link-intern ). ( |
2396 | 2396 | .LP |
@@ -2404,7 +2404,7 @@ | ||
2404 | 2404 | .CWI descriptive |
2405 | 2405 | .CWI text |
2406 | 2406 | argument exactly defines the text |
2407 | -which will appear within the \(lqhot\(hyspot\(rq region, | |
2407 | +which will appear within the \%\(lqhot\(hyspot\(rq region, | |
2408 | 2408 | and this need not include the URI. |
2409 | 2409 | However, if the |
2410 | 2410 | .CWB -D \& \& \~\c |
@@ -2418,7 +2418,7 @@ | ||
2418 | 2418 | .EM exact |
2419 | 2419 | representation of the URI, which |
2420 | 2420 | .EM will , |
2421 | -therefore, appear as the entire content of the \(lqhot\(hyspot\(rq. | |
2421 | +therefore, appear as the entire content of the \%\(lqhot\(hyspot\(rq. | |
2422 | 2422 | For example, we could introduce a reference to |
2423 | 2423 | .pdfhref W -D \*[GROFF-WEBSITE] -A , the groff web site |
2424 | 2424 | in which the actual URI is concealed, by using mark up such as:\(en |
@@ -2512,16 +2512,16 @@ | ||
2512 | 2512 | .XN -N page-trap -- Links with a Page Transition in the Active Region |
2513 | 2513 | .LP |
2514 | 2514 | When a link is placed near the bottom of a page, |
2515 | -it is possible that its active region, or \(lqhot\(hyspot\(rq, | |
2515 | +it is possible that its active region, or \%\(lqhot\(hyspot\(rq, | |
2516 | 2516 | may extend on to the next page. |
2517 | 2517 | In this situation, a page trap macro is required |
2518 | 2518 | to intercept the page transition, and to restart the mapping of |
2519 | -the \(lqhot\(hyspot\(rq boundary on the new page. | |
2519 | +the \%\(lqhot\(hyspot\(rq boundary on the new page. | |
2520 | 2520 | .LP |
2521 | 2521 | The |
2522 | 2522 | .CW pdfmark |
2523 | 2523 | macro package includes a suitable page trap macro, to satisfy this requirement. |
2524 | -However, to avoid pre\(hyempting any other requirement the user may have for | |
2524 | +However, to avoid \%pre\(hyempting any other requirement the user may have for | |
2525 | 2525 | a page transition trap, this is |
2526 | 2526 | .EM not |
2527 | 2527 | installed as an active page trap, |
@@ -2626,7 +2626,7 @@ | ||
2626 | 2626 | .CW pdfview |
2627 | 2627 | and |
2628 | 2628 | .CW pdfinfo |
2629 | -\(lqmeta\(hydata\(rq, | |
2629 | +\%\(lqmeta\(hydata\(rq, | |
2630 | 2630 | this \(lqmore appropriate time\(rq is explicitly chosen by the user; |
2631 | 2631 | in the case of document outline data, |
2632 | 2632 | .EM some |
@@ -2652,7 +2652,7 @@ | ||
2652 | 2652 | .LP |
2653 | 2653 | This form of invocation ensures that |
2654 | 2654 | .EM both |
2655 | -the \(lqmeta\(hydata cache\(rq, containing | |
2655 | +the \%\(lqmeta\(hydata cache\(rq, containing | |
2656 | 2656 | .CW pdfview |
2657 | 2657 | and |
2658 | 2658 | .CW pdfinfo |
@@ -2669,8 +2669,8 @@ | ||
2669 | 2669 | terminates. |
2670 | 2670 | .LP |
2671 | 2671 | Occasionally, |
2672 | -it may be desirable to flush either the \(lqmeta\(hydata cache\(rq, | |
2673 | -without affecting the \(lqoutline cache\(rq, or vice\(hyversa, | |
2672 | +it may be desirable to flush either the \%\(lqmeta\(hydata cache\(rq, | |
2673 | +without affecting the \(lqoutline cache\(rq, or \%vice\(hyversa, | |
2674 | 2674 | at a user specified time, prior to reaching the end of the document. |
2675 | 2675 | This may be accomplished, by invoking the |
2676 | 2676 | .CW pdfsync |
@@ -2679,14 +2679,14 @@ | ||
2679 | 2679 | .fam C |
2680 | 2680 | .B ".pdfsync M" |
2681 | 2681 | .LP |
2682 | -to flush only the \(lqmeta\(hydata cache\(rq, or | |
2682 | +to flush only the \%\(lqmeta\(hydata cache\(rq, or | |
2683 | 2683 | .QP |
2684 | 2684 | .fam C |
2685 | 2685 | .B ".pdfsync O" |
2686 | 2686 | .LP |
2687 | 2687 | to flush only the \(lqoutline cache\(rq. |
2688 | 2688 | .LP |
2689 | -The \(lqmeta\(hydata cache\(rq can normally be safely flushed | |
2689 | +The \%\(lqmeta\(hydata cache\(rq can normally be safely flushed | |
2690 | 2690 | in this manner, at any time |
2691 | 2691 | .EM after |
2692 | 2692 | output of the first page has started; |