Lines Matching full:section
31 # Parse the name and section portion of a link into a name and section.
37 # If the whole link is enclosed in quotes, interpret it all as a section
41 # Split into page and section on slash, and then clean up quoting in the
42 # section. If there is no section and the name contains spaces, also
43 # guess that it's an old section link.
44 my ($page, $section) = split (/\s*\/\s*/, $link, 2);
45 $section =~ s/^"\s*(.*?)\s*"$/$1/ if $section;
46 if ($page && $page =~ / / && !defined ($section)) {
47 $section = $page;
51 $section = undef unless $section;
53 return ($page, $section);
56 # Infer link text from the page and section.
58 my ($page, $section) = @_;
60 if ($page && !$section) {
62 } elsif (!$page && $section) {
63 $inferred = '"' . $section . '"';
64 } elsif ($page && $section) {
65 $inferred = '"' . $section . '" in ' . $page;
71 # the possibly inferred link text, the name or URL, the section, and the type
88 my ($name, $section) = _parse_section ($link);
93 $inferred = _infer_text ($name, $section);
96 return ($text, $inferred, $name, $section, $type);
119 my ($text, $inferred, $name, $section, $type) = parselink($link);
126 inferred from the name and section, the name or URL, the section if any,
131 links where there is no section and name contains spaces, or links where the
133 double-quotes are interpreted as links to a section (LE<lt>/sectionE<gt>).
138 L</section> => L<"section"|/section>
139 L<name/section> => L<"section" in name|name/section>
142 and the section, anchor text, and inferred anchor text may contain any
143 formatting codes. Any double quotes around the section are removed as part
147 quotes, it's interpreted as a link to a section for backward
159 and not as a link to the C<slash> section of the C<bar> POD page with an
163 the section may be necessary depending on whether the translator wants to