1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041
|
.\"
.pl 10.0i
.po 0
.ll 7.2i
.lt 7.2i
.nr LL 7.2i
.nr LT 7.2i
.ds LF Reschke
.ds RF FORMFEED[Page %]
.ds CF
.ds LH
.ds RH March 2010
.ds CH Basic Test Cases for RFC2629 Formatting
.hy 0
.nh
.ad l
.nf
.in 0
RFC2629 basis sample J. Reschke
greenbytes
March 31, 2010
.ce
Basic Test Cases for RFC2629 Formatting
.in 3
.in 0
Table of Contents
1. Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1. hanging list . . . . . . . . . . . . . . . . . . . . . . . 3
1.2. numbered list . . . . . . . . . . . . . . . . . . . . . . 3
1.3. ordered list (letters) . . . . . . . . . . . . . . . . . . 3
1.4. no explicit counters . . . . . . . . . . . . . . . . . . . 4
1.5. with explicit counters . . . . . . . . . . . . . . . . . . 5
1.6. Nested list . . . . . . . . . . . . . . . . . . . . . . . 6
1.7. list without style . . . . . . . . . . . . . . . . . . . . 6
2. spanx . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3. Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1. no borders . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2. borders around headers . . . . . . . . . . . . . . . . . . 9
3.3. example from xml2rc README . . . . . . . . . . . . . . . . 9
3.4. no column titles . . . . . . . . . . . . . . . . . . . . . 10
3.5. referencing tables . . . . . . . . . . . . . . . . . . . . 10
3.6. table captions . . . . . . . . . . . . . . . . . . . . . . 10
3.7. single column . . . . . . . . . . . . . . . . . . . . . . 11
3.8. table alignment . . . . . . . . . . . . . . . . . . . . . 11
4. Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.1. with preamble, no title... . . . . . . . . . . . . . . . . 13
4.2. with postamble and title... . . . . . . . . . . . . . . . 13
4.3. Whitespace handling . . . . . . . . . . . . . . . . . . . 13
4.4. Whitespace around figures . . . . . . . . . . . . . . . . 13
5. References . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.1. xref with no content . . . . . . . . . . . . . . . . . . . 15
5.2. xref to named <t> element . . . . . . . . . . . . . . . . 15
5.3. xref to named <t> element inside list . . . . . . . . . . 15
5.4. xref to named <cref> element . . . . . . . . . . . . . . . 15
5.5. xref to named <t> element inside list . . . . . . . . . . 15
5.6. xref with no \%auto-formatting . . . . . . . . . . . . . . . 15
5.7. xref with content and \%auto-formatting . . . . . . . . . . 15
5.8. xref with content and \'none\' formatting . . . . . . . . . 15
5.9. eref with no content . . . . . . . . . . . . . . . . . . . 15
5.10. eref with content . . . . . . . . . . . . . . . . . . . . 16
5.11. iref inside paragraph . . . . . . . . . . . . . . . . . . 16
6. Paragraph formatting . . . . . . . . . . . . . . . . . . . . . 17
7. Sections . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
.bp
7.1. Subsection with TOC entry . . . . . . . . . . . . . . . . 18
7.2.1. \%Sub-subsection with TOC entry . . . . . . . . . . . . 18
8. Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
9. Artwork width . . . . . . . . . . . . . . . . . . . . . . . . 20
10. Blank Lines . . . . . . . . . . . . . . . . . . . . . . . . . 21
11. Other . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
11.1. Comments in Text . . . . . . . . . . . . . . . . . . . . . 22
12. References . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Editorial Comments . . . . . . . . . . . . . . . . . . . . . . . .
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Author\'s Address . . . . . . . . . . . . . . . . . . . . . . . . . 26
.bp
.fi
.in 4
.ti 0
1. Lists
.in 3
.in 6
.ti 0
1.1. hanging list
.in 3
.in 6
.ti 3
Name:\0 timeout
.ti 3
Namespace:\0 DAV:
.ti 3
Purpose:\0 The timeout associated with a lock
.ti 3
Value:\0 TimeType ;Defined in section 9.8
.in 3
.in 6
.ti 0
1.2. numbered list
.in 3
A numbered list:
.in 7
.ti 3
1. one
.ti 3
2. two
.ti 3
3. three
.in 3
.in 6
.ti 0
1.3. ordered list (letters)
.in 3
An ordered list using letters:
.in 8
.ti 3
a. one
.ti 3
b. two
.ti 3
c. three
.ti 3
d. one
.ti 3
e. two
.ti 3
f. three
.ti 3
g. one
.ti 3
h. two
.ti 3
i. three
.ti 3
j. one
.ti 3
k. two
.bp
.ti 3
l. three
.ti 3
m. one
.ti 3
n. two
.ti 3
o. three
.ti 3
p. one
.ti 3
q. two
.ti 3
r. three
.ti 3
s. one
.ti 3
t. two
.ti 3
u. three
.ti 3
v. one
.ti 3
w. two
.ti 3
x. three
.ti 3
y. one
.ti 3
z. two
.ti 3
aa. three
.ti 3
ab. one
.ti 3
ac. two
.ti 3
ad. three
.in 3
.in 6
.ti 0
1.4. no explicit counters
.in 3
Example for numbered list with \%user-defined-format:
.in 8
.ti 3
R1: R1
.ti 3
R2: R2
.in 3
Another list:
.bp
.in 8
.ti 3
S1: S1
.ti 3
S2: S2
.in 3
Next list should continue counting R\'s:
.in 8
.ti 3
R1: R3
.ti 3
R2: R4
.in 3
Same with \%character-based numbering:
.in 9
.ti 3
\%c-a: \%c-a
.ti 3
\%c-b: \%c-b
.in 3
.in 6
.ti 0
1.5. with explicit counters
.in 3
A few requirements:
.in 8
.ti 3
R1: req R1
.ti 3
R2: req R2
.in 3
More requirements:
.in 8
.ti 3
R3: req R3
.ti 3
R4: req R4
.in 3
A few rules:
.in 8
.ti 3
R1: rule R1
.ti 3
R2: rule R2
.ti 3
R3: rule R3
.in 3
Explicit counter with name matching it\'s format string:
.in 9
.ti 3
\%c-a: \%c-c
.ti 3
\%c-b: \%c-d
.in 3
Same, without counter:
.bp
.in 9
.ti 3
\%c-a: \%c-e
.ti 3
\%c-b: \%c-f
.in 3
.in 6
.ti 0
1.6. Nested list
.in 3
.in 7
.ti 3
1. One
.ti 3
2. Two
.in 11
.ti 7
A. 17
.ti 7
B. 42
.in 7
.ti 3
3. Three
.in 3
.in 6
.ti 0
1.7. list without style
.in 3
.in 6
.ti 6
One
.ti 6
Two
.ti 6
Three
.in 3
.bp
.in 4
.ti 0
2. spanx
.in 3
This is _default_.
This is _emph(asized)_.
This is *strong*.
This is "verb(atim)".
Here is "a carriage return inside" a spanx element.
.bp
.in 4
.ti 0
3. Tables
.in 3
.ce 8192
The list of valid keywords are:
.ce 0
.in 0
.nf
\%+--------------+--------------+--------------------------+----------+
| keyword | default | meaning | not |
| | | | aligned |
\%+--------------+--------------+--------------------------+----------+
| strict | no | try to enforce the | a |
| | | \%ID-nits conventions and | |
| | | DTD validity | |
| | | | |
| iprnotified | no | include boilerplate from | bb bb |
| | | Section 10.4(d) of | |
| | | [RFC2026] | |
| | | | |
| compact | no | when producing a | ccc ccc |
| | | txt/nroff file, try to | ccc |
| | | conserve vertical | |
| | | whitespace | |
| | | | |
| subcompact | compact | if compact is "yes", | dddd |
| | | then setting this to | dddd |
| | | "no" will make things a | dddd |
| | | little less compact | dddd |
| | | | |
| needLines | n/a | an integer hint | eeeee |
| | | indicating how many | eeeee |
| | | contiguous lines are | eeeee |
| | | needed at this point in | eeeee |
| | | the output | eeeee |
| | | | |
| here come | | | |
| empty cells | | | |
\%+--------------+--------------+--------------------------+----------+
.in 3
.fi
.ce 8192
Remember, that as with everything else in XML, keywords and values
are \%case-sensitive.
.ce 0
.bp
.in 6
.ti 0
3.1. no borders
.in 3
.ce 8192
The table below should appear with no borders.
.ce 0
.in 0
.nf
C1 C2
11 12
21 22
.in 3
.ce
Table\01: a table with no borders
.fi
.in 6
.ti 0
3.2. borders around headers
.in 3
.ce 8192
The table below should appear with borders just around the headers.
.ce 0
.in 0
.nf
C1 C2
\%-- \%--
11 12
21 22
.in 3
.fi
.in 6
.ti 0
3.3. example from xml2rc README
.in 3
.ce 8192
So, putting it all together, we have, e.g.,
.ce 0
.in 0
.nf
\%+----------+----------+
| ttcol #1 | ttcol #2 |
\%+----------+----------+
| c #1 | c #2 |
| | |
| c #3 | c #4 |
| | |
| c #5 | c #6 |
\%+----------+----------+
.in 3
.fi
.ce 8192
which is a very simple example.
.ce 0
.ce
Table\02
.bp
.in 6
.ti 0
3.4. no column titles
.in 3
.ce 8192
The table below should appear with no titles.
.ce 0
.in 0
.nf
\%+----+----+
| 11 | 12 |
| | |
| 21 | 22 |
\%+----+----+
.in 3
.ce
Table\03: a table with no column titles
.fi
.ce 8192
The table below should appear with column titles (one being \%non-
empty).
.ce 0
.in 0
.nf
\%+-----+----+
| FOO | |
\%+-----+----+
| 11 | 12 |
| | |
| 21 | 22 |
\%+-----+----+
.in 3
.ce
Table\04: a table with a single column title
.fi
.in 6
.ti 0
3.5. referencing tables
.in 3
Table\01 shows a table with no borders.
The table above (Table\01) shows a table with no borders.
.in 6
.ti 0
3.6. table captions
.in 3
.ce 8192
No anchor, no title
.ce 0
.in 0
.nf
\%+--------+-------+
| Anchor | Title |
\%+--------+-------+
| \%- | \%- |
\%+--------+-------+
.in 3
.bp
.fi
.ce 8192
Anchor (not being referenced), no title
.ce 0
.in 0
.nf
\%+--------+-------+
| Anchor | Title |
\%+--------+-------+
| yes | \%- |
\%+--------+-------+
.in 3
.ce
Table\05
.fi
.ce 8192
No anchor, with title
.ce 0
.in 0
.nf
\%+--------+---------+
| Anchor | Title |
\%+--------+---------+
| \%- | "title" |
\%+--------+---------+
.in 3
.ce
title
.fi
.ce 8192
Both anchor and title
.ce 0
.in 0
.nf
\%+--------+---------+
| Anchor | Title |
\%+--------+---------+
| yes | "title" |
\%+--------+---------+
.in 3
.ce
Table\06: title
.fi
.in 6
.ti 0
3.7. single column
.in 3
.in 0
.nf
\%+-------+
| title |
\%+-------+
| 1 |
| |
| 2 |
\%+-------+
.in 3
.fi
.in 6
.ti 0
3.8. table alignment
.in 3
.in 0
.nf
\%+------+
| left |
\%+------+
| 1 |
\%+------+
.bp
.in 3
.in 0
.fi
.nf
\%+--------+
| center |
\%+--------+
| 1 |
\%+--------+
.in 3
.in 0
.fi
.nf
\%+-------+
| right |
\%+-------+
| 1 |
\%+-------+
.in 3
.in 0
.fi
.nf
\%+---------+
| default |
\%+---------+
| 1 |
\%+---------+
.in 3
.bp
.fi
.in 4
.ti 0
4. Figures
.in 3
.in 6
.ti 0
4.1. with preamble, no title...
.in 3
with preamble, no title...
.nf
+--+
| |
+--+
.fi
.in 6
.ti 0
4.2. with postamble and title...
.in 3
.nf
+--+
| |
+--+
.fi
with postamble and title...
.ce
Figure\01: another figure
The figure above has the title "another figure".
.in 6
.ti 0
4.3. Whitespace handling
.in 3
Para...
Leading whitespace
.nf
test test (leading ws)
.fi
Para...
Trailing whitespace
.nf
test test (trailing ws)
.fi
Para...
No whitespace
.nf
test test (no ws)
.fi
Para...
.in 6
.ti 0
4.4. Whitespace around figures
.in 3
spacing paragraph
.nf
ART
.fi
spacing paragraph
.bp
preamble, then
.nf
ART
.fi
spacing paragraph
.nf
ART
.fi
then postamble
spacing paragraph
.bp
.in 4
.ti 0
5. References
.in 3
.in 6
.ti 0
5.1. xref with no content
.in 3
Section\05 is the parent section.
.in 6
.ti 0
5.2. xref to named <t> element
.in 3
With content: see first sentence of previous section.
Without content: see Paragraph\01.
.in 6
.ti 0
5.3. xref to named <t> element inside list
.in 3
With content: see first element in list below.
.in 6
.ti 3
test\0 Test
.in 3
.in 6
.ti 0
5.4. xref to named <cref> element
.in 3
With content: see test comment.
Without content: see \%Comment\0comment-test.
.in 6
.ti 0
5.5. xref to named <t> element inside list
.in 3
See last entry in Section\01.3.
.in 6
.ti 0
5.6. xref with no \%auto-formatting
.in 3
So far we have sections 1 ("Lists") through 5 ("References").
.in 6
.ti 0
5.7. xref with content and \%auto-formatting
.in 3
This is a subsection of References (Section\05).
.in 6
.ti 0
5.8. xref with content and \'none\' formatting
.in 3
Here we are referring to RFC 2026, without emitting extra formatting.
Here we are referring to this Section, without emitting extra
formatting.
.in 6
.ti 0
5.9. eref with no content
.in 3
See also <http://greenbytes.de/tech/webdav>. Here\'s another one that
is quite long: <http://greenbytes.de/tech/webdav/
\%draft-reschke-rfc3744bis-issues.html#5.7_inherited-acl-set-
.bp
protected>. Does it break properly?
.in 7
.ti 0
5.10. eref with content
.in 3
See also greenbytes WebDAV resources\0[1].
.in 7
.ti 0
5.11. iref inside paragraph
.in 3
This paragraph contains an inline iref.
.bp
.in 4
.ti 0
6. Paragraph formatting
.in 3
This is the first sentence of the paragraph. This is the second
sentence of the paragraph (with two leading blanks). Here\'s another
sentence that was started on a separate line in the input file.
This is the second paragraph.
.bp
.in 4
.ti 0
7. Sections
.in 3
.in 6
.ti 0
7.1. Subsection with TOC entry
.in 3
.in 6
.ti 0
7.2. Subsection without TOC entry
.in 3
.in 8
.ti 0
7.2.1. \%Sub-subsection with TOC entry
.in 3
.bp
.in 4
.ti 0
8. Comments
.in 3
This line contains a few comments. \%[comment-test] This line contains
a few comments. [comment1] This line contains a few comments.
[comment2] This line contains a few comments. [anchor37] This line
contains a few comments. [anchor38]<http://xml.resource.org> This
line contains a few comments.
.bp
.in 4
.ti 0
9. Artwork width
.in 3
This should fit (69 characters plus three spaces of indentation in
text output).
.nf
012345678901234567890123456789012345678901234567890123456789012345678
.fi
This shouldn\'t.
.nf
.in 2
0123456789012345678901234567890123456789012345678901234567890123456789
.in 3
.bp
.fi
.in 5
.ti 0
10. Blank Lines
.in 3
Just a forced
.br
line break.
One
.sp 1
blank line.
Seven
.sp 7
blank lines.
.bp
.in 5
.ti 0
11. Other
.in 3
.in 7
.ti 0
11.1. Comments in Text
.in 3
First sentence (before XML comment, invisible here). Second
sentence.
.bp
.in 5
.ti 0
12. References
.in 3
.in 14
.ti 3
[RFC2026] Bradner, S., "The Internet Standards Process \%-- Revision
3", BCP\09, RFC\02026, October\01996.
.ti 3
[RFC2396] \%Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
Resource Identifiers (URI): Generic Syntax", RFC\02396,
August\01998.
This RFC will soon be updated, check <http://
\%cvs.apache.org/viewcvs.cgi/*checkout*/ietf-uri/rev-2002/
rfc2396bis.html> for the latest draft.
The issues list is at <http://cvs.apache.org/viewcvs.cgi/
\%*checkout*/ietf-uri/rev-2002/issues.html>.
.in 8
.ti 3
[1] <http://greenbytes.de/tech/webdav>
.bp
.ti 0
Editorial Comments
.in 19
.ti 3
[anchor37] No anchor, no source.
.ti 3
[anchor38] No anchor, no source, but embedded markup:.
.ti 3
\%[comment-test] JRE: No anchor, source given.
.ti 3
[comment1] Anchor given, no source.
.ti 3
[comment2] JRE: Both specified.
.bp
.in 0
Index
.in 12
.br
.ti 3
I
.br
.ti 6
inline iref 16
.bp
.in 3
.nf
.ti 0
Author\'s Address
Julian F. Reschke
greenbytes GmbH
Hafenweg 16
Muenster, NW 48155
Germany
Email: julian.reschke@greenbytes.de
URI: http://greenbytes.de/tech/webdav/
|