⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 basic.man

📁 source of perl for linux application,
💻 MAN
字号:
.SH "NAME"basic.pod \- Test of various basic POD features in translators..SH "HEADINGS".IX Header "HEADINGS"Try a few different levels of headings, with embedded formatting codes andother interesting bits..ie n .SH "This ""is"" a ""level 1"" heading".el .SH "This \f(CWis\fP a ``level 1'' heading".IX Header "This is a level 1 heading".Sh "``Level'' ""2 \fIheading\fP".IX Subsection "``Level'' ""2 heading"\fILevel 3 \f(BIheading \f(BIwith \f(CB\*(C`weird \f(CBstuff "" (double quote)\f(CB\*(C'\f(BI\f(BI\fI\fR.IX Subsection "Level 3 heading with weird stuff """" (double quote)".PPLevel "4 \f(CW\*(C`heading\*(C'\fR.IX Subsection "Level ""4 heading".PPNow try again with \fBintermixed\fR \fItext\fR..ie n .SH "This ""is"" a ""level 1"" heading".el .SH "This \f(CWis\fP a ``level 1'' heading".IX Header "This is a level 1 heading"Text..Sh "``Level'' 2 \fIheading\fP".IX Subsection "``Level'' 2 heading"Text..PP\fILevel 3 \f(BIheading \f(BIwith \f(CB\*(C`weird \f(CBstuff\f(CB\*(C'\f(BI\f(BI\fI\fR.IX Subsection "Level 3 heading with weird stuff".PPText..PPLevel "4 \f(CW\*(C`heading\*(C'\fR.IX Subsection "Level ""4 heading".PPText..SH "LINKS".IX Header "LINKS"These are all taken from the Pod::Parser tests..PPTry out \fI\s-1LOTS\s0\fR of different ways of specifying references:.PPReference the \*(L"section\*(R" in manpage.PPReference the \*(L"section\*(R" in \*(L"manpage\*(R".PPReference the \*(L"section\*(R" in manpage.PPNow try it using the new \*(L"|\*(R" stuff ....PPReference the thistext|.PPReference the thistext |.PPReference the thistext|.PPReference the thistext |.PPReference the thistext|.PPReference the thistext|.PPAnd then throw in a few new ones of my own..PPfoo.PPfoo.PP\&\*(L"bar\*(R" in foo.PP\&\*(L"baz boo\*(R" in foo.PP\&\*(L"bar\*(R".PP\&\*(L"baz boo\*(R".PP\&\*(L"baz boo\*(R".PP\&\*(L"baz boo\*(R" in foo bar.PP\&\*(L"boo var baz\*(R".PP\&\*(L"bar baz\*(R".PP\&\*(L"boo\*(R", \*(L"bar\*(R", and \*(L"baz\*(R".PPfoobar.PPTesting \fIitalics\fR.PP"\fIItalic\fR text" in foo.PP"Section \f(CW\*(C`with\*(C'\fR \fI\f(BIother\fI markup\fR" in foo|bar.PPNested <http://www.perl.org/>.SH "OVER AND ITEMS".IX Header "OVER AND ITEMS"Taken from Pod::Parser tests, this is a test to ensure that multiline=item paragraphs get indented appropriately..IP "This is a test." 4.IX Item "This is a test.".PPThere should be whitespace now before this line..PPTaken from Pod::Parser tests, this is a test to ensure the nested =itemparagraphs get indented appropriately..IP "1." 2First section..RS 2.IP "a" 2.IX Item "a"this is item a.IP "b" 2.IX Item "b"this is item b.RE.RS 2.RE.IP "2." 2Second section..RS 2.IP "a" 2.IX Item "a"this is item a.IP "b" 2.IX Item "b"this is item b.IP "c" 2.IX Item "c".PD 0.IP "d" 2.IX Item "d".PDThis is item c & d..RE.RS 2.RE.PPNow some additional weirdness of our own.  Make sure that multiple tagsfor one paragraph are properly compacted..ie n .IP """foo""" 4.el .IP "``foo''" 4.IX Item "foo".PD 0.IP "\fBbar\fR" 4.IX Item "bar".ie n .IP """baz""" 4.el .IP "\f(CWbaz\fR" 4.IX Item "baz".PDThere shouldn't be any spaces between any of these item tags; this idiomis used in perlfunc..IP "Some longer item text" 4.IX Item "Some longer item text"Just to make sure that we test paragraphs where the item text doesn't fitin the margin of the paragraph (and make sure that this paragraph fills afew lines)..SpLet's also make it multiple paragraphs to be sure that works..PPTest use of =over without =item as a block \*(L"quote\*(R" or block paragraph..Sp.RS 4This should be indented four spaces but otherwise formatted the same asany other regular text paragraph.  Make sure it's long enough to see theresults of the formatting......RE.PPNow try the same thing nested, and make sure that the indentation is resetback properly..RS 4.Sp.RS 4This paragraph should be doubly indented..RE.RE.RS 4.SpThis paragraph should only be singly indented..IP "\(bu" 4This is an item in the middle of a block-quote, which should be allowed..IP "\(bu" 4We're also testing tagless item commands..RE.RS 4.SpShould be back to the single level of indentation..RE.PPShould be back to regular indentation..PPNow also check the transformation of * into real bullets for man pages..IP "\(bu" 4An item.  We're also testing using =over without a number, and making surethat item text wraps properly..IP "\(bu" 4Another item..PPand now test the numbering of item blocks..IP "1." 4First item..IP "2." 4Second item..SH "FORMATTING CODES".IX Header "FORMATTING CODES"Another test taken from Pod::Parser..PPThis is a test to see if I can do not only \f(CW$self\fR and \f(CW\*(C`method()\*(C'\fR, butalso \f(CW\*(C`$self\->method()\*(C'\fR and \f(CW\*(C`$self\->{FIELDNAME}\*(C'\fR and\&\f(CW\*(C`$Foo <=> $Bar\*(C'\fR without resorting to escape sequences. If I want to refer to the right-shift operator I can do somethinglike \f(CW\*(C`$x >> 3\*(C'\fR or even \f(CW\*(C`$y >> 5\*(C'\fR..PPNow for the grand finale of \f(CW\*(C`$self\->method()\->{FIELDNAME} = {FOO=>BAR}\*(C'\fR.And I also want to make sure that newlines work like this\&\f(CW\*(C`$self\->{FOOBAR} >> 3 and [$b => $a]\->[$a <=> $b]\*(C'\fR.PPOf course I should still be able to do all this \fIwith\fR escape sequencestoo: \f(CW\*(C`$self\->method()\*(C'\fR and \f(CW\*(C`$self\->{FIELDNAME}\*(C'\fR and\&\f(CW\*(C`{FOO=>BAR}\*(C'\fR..PPDont forget \f(CW\*(C`$self\->method()\->{FIELDNAME} = {FOO=>BAR}\*(C'\fR..PPAnd make sure that \f(CW0\fR works too!.PPNow, if I use << or >> as my delimiters, then I have to use whitespace.So things like \f(CW\*(C`<$self\-\*(C'\fR\fImethod()\fR>> and \f(CW\*(C`<$self\-\*(C'\fR{\s-1FIELDNAME\s0}>> wont endup doing what you might expect since the first > will still terminatethe first < seen..PPLets make sure these work for empty ones too, like \f(CW\*(C`\*(C'\fR and \f(CW\*(C`>>\*(C'\fR(just to be obnoxious).PPThe statement: \f(CW\*(C`This is dog kind\*(Aqs \f(CIfinest\f(CW hour!\*(C'\fR is a parody of aquotation from Winston Churchill..PPThe following tests are added to those:.PPMake sure that a few other odd \fIthings\fR still work.  This should bea vertical bar:  |.  Here's a test of a few more special escapesthat have to be supported:.IP "&" 3An ampersand..IP "'" 3An apostrophe..IP "<" 3A less-than sign..IP ">" 3A greater-than sign..IP """" 3A double quotation mark..IP "/" 3A forward slash..PPTry to get this bit of text over towards the edge so |that\ all\ of\ this\ text\ inside\ S<>\ won't| be wrapped.  Also test the|same\ thing\ with\ non-breaking\ spaces.|.PPThere is a soft hy\%phen in hyphen at hy-phen..PPThis is a test of an index entry..IX Xref "index entry".SH "VERBATIM".IX Header "VERBATIM"Throw in a few verbatim paragraphs..PP.Vb 8\&    use Term::ANSIColor;\&    print color \*(Aqbold blue\*(Aq;\&    print "This text is bold blue.\en";\&    print color \*(Aqreset\*(Aq;\&    print "This text is normal.\en";\&    print colored ("Yellow on magenta.\en", \*(Aqyellow on_magenta\*(Aq);\&    print "This text is normal.\en";\&    print colored [\*(Aqyellow on_magenta\*(Aq], "Yellow on magenta.\en";\&\&    use Term::ANSIColor qw(uncolor);\&    print uncolor \*(Aq01;31\*(Aq, "\en";.Ve.PPBut this isn't verbatim (make sure it wraps properly), and the nextparagraph is again:.PP.Vb 2\&    use Term::ANSIColor qw(:constants);\&    print BOLD, BLUE, "This text is in bold blue.\en", RESET;\&\&    use Term::ANSIColor qw(:constants); $Term::ANSIColor::AUTORESET = 1; print BOLD BLUE "This text is in bold blue.\en"; print "This text is normal.\en";.Ve.PP(Ugh, that's obnoxiously long.)  Try different spacing:.PP.Vb 7\&        Starting with a tab.\&Not\&starting\&with\&a\&tab.  But this should still be verbatim.\& As should this..Ve.PPThis isn't..PP.Vb 2\& This is.  And this:    is an internal tab.  It should be:\&                    |\-\-| <= lined up with that..Ve.PP(Tricky, but tabs should be expanded before the translator starts in onthe text since otherwise text with mixed tabs and spaces will get messedup.).PP.Vb 5\&    And now we test verbatim paragraphs right before a heading.  Older\&    versions of Pod::Man generated two spaces between paragraphs like this\&    and the heading.  (In order to properly test this, one may have to\&    visually inspect the nroff output when run on the generated *roff\&    text, unfortunately.).Ve.SH "CONCLUSION".IX Header "CONCLUSION"That's all, folks!

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -