Commits

Toby Inkster committed e8f939a

Remove old test man page.

  • Participants
  • Parent commits de48e4a

Comments (0)

Files changed (1)

File foo.man

-.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07)
-.\"
-.\" Standard preamble:
-.\" ========================================================================
-.de Sp \" Vertical space (when we can't use .PP)
-.if t .sp .5v
-.if n .sp
-..
-.de Vb \" Begin verbatim text
-.ft CW
-.nf
-.ne \\$1
-..
-.de Ve \" End verbatim text
-.ft R
-.fi
-..
-.\" Set up some character translations and predefined strings.  \*(-- will
-.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
-.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
-.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
-.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
-.\" nothing in troff, for use with C<>.
-.tr \(*W-
-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
-.ie n \{\
-.    ds -- \(*W-
-.    ds PI pi
-.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
-.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
-.    ds L" ""
-.    ds R" ""
-.    ds C` ""
-.    ds C' ""
-'br\}
-.el\{\
-.    ds -- \|\(em\|
-.    ds PI \(*p
-.    ds L" ``
-.    ds R" ''
-'br\}
-.\"
-.\" Escape single quotes in literal strings from groff's Unicode transform.
-.ie \n(.g .ds Aq \(aq
-.el       .ds Aq '
-.\"
-.\" If the F register is turned on, we'll generate index entries on stderr for
-.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
-.\" entries marked with X<> in POD.  Of course, you'll have to process the
-.\" output yourself in some meaningful fashion.
-.ie \nF \{\
-.    de IX
-.    tm Index:\\$1\t\\n%\t"\\$2"
-..
-.    nr % 0
-.    rr F
-.\}
-.el \{\
-.    de IX
-..
-.\}
-.\"
-.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
-.\" Fear.  Run.  Save yourself.  No user-serviceable parts.
-.    \" fudge factors for nroff and troff
-.if n \{\
-.    ds #H 0
-.    ds #V .8m
-.    ds #F .3m
-.    ds #[ \f1
-.    ds #] \fP
-.\}
-.if t \{\
-.    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
-.    ds #V .6m
-.    ds #F 0
-.    ds #[ \&
-.    ds #] \&
-.\}
-.    \" simple accents for nroff and troff
-.if n \{\
-.    ds ' \&
-.    ds ` \&
-.    ds ^ \&
-.    ds , \&
-.    ds ~ ~
-.    ds /
-.\}
-.if t \{\
-.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
-.    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
-.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
-.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
-.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
-.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
-.\}
-.    \" troff and (daisy-wheel) nroff accents
-.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
-.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
-.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
-.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
-.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
-.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
-.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
-.ds ae a\h'-(\w'a'u*4/10)'e
-.ds Ae A\h'-(\w'A'u*4/10)'E
-.    \" corrections for vroff
-.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
-.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
-.    \" for low resolution devices (crt and lpr)
-.if \n(.H>23 .if \n(.V>19 \
-\{\
-.    ds : e
-.    ds 8 ss
-.    ds o a
-.    ds d- d\h'-1'\(ga
-.    ds D- D\h'-1'\(hy
-.    ds th \o'bp'
-.    ds Th \o'LP'
-.    ds ae ae
-.    ds Ae AE
-.\}
-.rm #[ #] #H #V #F C
-.\" ========================================================================
-.\"
-.IX Title "HTML::HTML5::Microdata::Parser 3"
-.TH HTML::HTML5::Microdata::Parser 3 "2009-12-04" "perl v5.10.1" "User Contributed Perl Documentation"
-.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
-.\" way too many mistakes in technical documents.
-.if n .ad l
-.nh
-.SH "NAME"
-HTML::HTML5::Microdata::Parser \- Parse HTML5 Microdata with Perl
-.SH "VERSION"
-.IX Header "VERSION"
-0.01
-.SH "SYNOPSIS"
-.IX Header "SYNOPSIS"
-.Vb 1
-\&  use HTML::HTML5::Microdata::Parser;
-\&  
-\&  my $parser = HTML::HTML5::Microdata::Parser\->new($html, $baseURI);
-\&  $parser\->consume;
-\&  my $graph  = $parser\->graph
-.Ve
-.SH "DESCRIPTION"
-.IX Header "DESCRIPTION"
-This package aims to have a roughly compatible \s-1API\s0 to RDF::RDFa::Parser.
-.ie n .IP "$p = HTML::HTML5::Microdata::Parser\->new($html, $baseuri, \e%options, $storage)" 8
-.el .IP "\f(CW$p\fR = HTML::HTML5::Microdata::Parser\->new($html, \f(CW$baseuri\fR, \e%options, \f(CW$storage\fR)" 8
-.IX Item "$p = HTML::HTML5::Microdata::Parser->new($html, $baseuri, %options, $storage)"
-This method creates a new HTML::HTML5::Microdata::Parser object and returns it.
-.Sp
-The \f(CW$xhtml\fR variable may contain an \s-1XHTML/XML\s0 string, or a
-XML::LibXML::Document. If a string, the document is parsed using
-HTML::HTML5::Parser and HTML::HTML5::Sanity, which may throw an
-exception. HTML::HTML5::Microdata::Parser does not catch the exception.
-.Sp
-The base \s-1URI\s0 is used to resolve relative URIs found in the document.
-.Sp
-Options [default in brackets]:
-.Sp
-.Vb 5
-\&  * alt_stylesheet  \- Magic rel="alternate stylesheet". [1]
-\&  * auto_config     \- See section "Auto Config" [0]
-\&  * prefix_empty    \- URI prefix for itemprops of untyped items.
-\&                      [undef]
-\&  * xhtml_time      \- Process <time> element nicely. [0]
-.Ve
-.Sp
-\&\f(CW$storage\fR is an RDF::Trine::Storage object. If undef, then a new
-temporary store is created.
-.ie n .IP "$p\->xhtml" 8
-.el .IP "\f(CW$p\fR\->xhtml" 8
-.IX Item "$p->xhtml"
-Returns the \s-1HTML\s0 source of the document being parsed.
-.ie n .IP "$p\->uri" 8
-.el .IP "\f(CW$p\fR\->uri" 8
-.IX Item "$p->uri"
-Returns the base \s-1URI\s0 of the document being parsed. This will usually be the
-same as the base \s-1URI\s0 provided to the constructor, but may differ if the
-document contains a <base> \s-1HTML\s0 element.
-.Sp
-Optionally it may be passed a parameter \- an absolute or relative \s-1URI\s0 \- in
-which case it returns the same \s-1URI\s0 which it was passed as a parameter, but
-as an absolute \s-1URI\s0, resolved relative to the document's base \s-1URI\s0.
-.Sp
-This seems like two unrelated functions, but if you consider the consequence
-of passing a relative \s-1URI\s0 consisting of a zero-length string, it in fact makes
-sense.
-.ie n .IP "$p\->dom" 8
-.el .IP "\f(CW$p\fR\->dom" 8
-.IX Item "$p->dom"
-Returns the parsed XML::LibXML::Document.
-.ie n .IP "$p\->set_callbacks(\e&func1, \e&func2)" 8
-.el .IP "\f(CW$p\fR\->set_callbacks(\e&func1, \e&func2)" 8
-.IX Item "$p->set_callbacks(&func1, &func2)"
-Set callbacks for handling \s-1RDF\s0 triples extracted from the document. The
-first function is called when a triple is generated taking the form of
-(\fIresource\fR, \fIresource\fR, \fIresource\fR). The second function is called when a
-triple is generated taking the form of (\fIresource\fR, \fIresource\fR, \fIliteral\fR).
-.Sp
-The parameters passed to the first callback function are:
-.RS 8
-.IP "\(bu" 4
-A reference to the \f(CW\*(C`HTML::HTML5::Microdata::Parser\*(C'\fR object
-.IP "\(bu" 4
-A reference to the \f(CW\*(C`XML::LibXML element\*(C'\fR being parsed
-.IP "\(bu" 4
-Subject \s-1URI\s0 or bnode
-.IP "\(bu" 4
-Predicate \s-1URI\s0
-.IP "\(bu" 4
-Object \s-1URI\s0 or bnode
-.IP "\(bu" 4
-Graph \s-1URI\s0 or bnode (if named graphs feature is enabled)
-.RE
-.RS 8
-.Sp
-The parameters passed to the second callback function are:
-.IP "\(bu" 4
-A reference to the \f(CW\*(C`HTML::HTML5::Microdata::Parser\*(C'\fR object
-.IP "\(bu" 4
-A reference to the \f(CW\*(C`XML::LibXML element\*(C'\fR being parsed
-.IP "\(bu" 4
-Subject \s-1URI\s0 or bnode
-.IP "\(bu" 4
-Predicate \s-1URI\s0
-.IP "\(bu" 4
-Object literal
-.IP "\(bu" 4
-Datatype \s-1URI\s0 (possibly undef or '')
-.IP "\(bu" 4
-Language (possibly undef or '')
-.IP "\(bu" 4
-Graph \s-1URI\s0 or bnode (if named graphs feature is enabled)
-.RE
-.RS 8
-.Sp
-In place of either or both functions you can use the string \f(CW\*(Aqprint\*(Aq\fR which
-sets the callback to a built-in function which prints the triples to \s-1STDOUT\s0
-as Turtle. Either or both can be set to undef, in which case, no callback
-is called when a triple is found.
-.Sp
-Beware that for literal callbacks, sometimes both a datatype *and* a language
-will be passed. (This goes beyond the normal \s-1RDF\s0 data model.)
-.Sp
-\&\f(CW\*(C`set_callbacks\*(C'\fR must be used \fIbefore\fR \f(CW\*(C`consume\*(C'\fR.
-.Sp
-\&\s-1IMPORTANT\s0 \- \s-1CHANGED\s0 \s-1IN\s0 \s-1VERSION\s0 0.20 \- callback functions should return true
-if they wish to prevent the triple from being added to the parser's built-in
-model; false otherwise.
-.RE
-.ie n .IP "$p\->consume" 8
-.el .IP "\f(CW$p\fR\->consume" 8
-.IX Item "$p->consume"
-The document is parsed for Microdata. Nothing of interest is returned by this
-function, but the triples extracted from the document are passed to the
-callbacks as each one is found.
-.ie n .IP "$p\->\fIgraph()\fR" 8
-.el .IP "\f(CW$p\fR\->\fIgraph()\fR" 8
-.IX Item "$p->graph()"
-This method will return an RDF::Trine::Model object with all
-statements of the full graph.
-.Sp
-It makes sense to call \f(CW\*(C`consume\*(C'\fR before calling \f(CW\*(C`graph\*(C'\fR. Otherwise
-you'll just get an empty graph.
-.SH "AUTO CONFIG"
-.IX Header "AUTO CONFIG"
-HTML::HTML5::Microdata::Parser has a lot of different options that can
-be switched on and off. Sometimes it might be useful to allow the page
-being parsed to control some of the options. If you switch on the
-\&'auto_config' option, pages can do this.
-.PP
-A page can set options using a specially crafted <meta> tag:
-.PP
-.Vb 2
-\&  <meta name="http://search.cpan.org/dist/HTML\-HTML5\-Microdata\-Parser/#auto_config"
-\&     content="alt_stylesheet=0&amp;prefix_empty=http://example.net/" />
-.Ve
-.PP
-Note that the \f(CW\*(C`content\*(C'\fR attribute is an application/x\-www\-form\-urlencoded
-string (which must then be HTML-escaped of course). Semicolons may be used
-instead of ampersands, as these tend to look nicer:
-.PP
-.Vb 2
-\&  <meta name="http://search.cpan.org/dist/HTML\-HTML5\-Microdata\-Parser/#auto_config"
-\&     content="alt_stylesheet=0;prefix_empty=http://example.net/" />
-.Ve
-.PP
-Any option allowed in the constructor may be given using auto config,
-except 'auto_config' itself.
-.SH "SEE ALSO"
-.IX Header "SEE ALSO"
-XML::LibXML, RDF::Trine, RDF::RDFa::Parser, 
-HTML::HTML5::Parser, HTML::HTML5::Sanity.
-.PP
-<http://www.perlrdf.org/>.
-.SH "AUTHOR"
-.IX Header "AUTHOR"
-Toby Inkster <tobyink@cpan.org>.
-.SH "COPYRIGHT AND LICENSE"
-.IX Header "COPYRIGHT AND LICENSE"
-Copyright (C) 2009 by Toby Inkster
-.PP
-This library is free software; you can redistribute it and/or modify
-it under the same terms as Perl itself, either Perl version 5.8.1 or,
-at your option, any later version of Perl 5 you may have available.