1BibTeX::Parser::Author(U3s)er Contributed Perl DocumentatBiiobnTeX::Parser::Author(3)
2
3
4
6 BibTeX::Author - Contains a single author for a BibTeX document.
7
9 This class ist a wrapper for a single BibTeX author. It is usually
10 created by a BibTeX::Parser.
11
12 use BibTeX::Parser::Author;
13
14 my $entry = BibTeX::Parser::Author->new($full_name);
15
16 my $firstname = $author->first;
17 my $von = $author->von;
18 my $last = $author->last;
19 my $jr = $author->jr;
20
21 # or ...
22
23 my ($first, $von, $last, $jr) = BibTeX::Author->split($fullname);
24
26 new
27 Create new author object. Expects full name as parameter.
28
29 first
30 Set or get first name(s).
31
32 von
33 Set or get 'von' part of name.
34
35 last
36 Set or get last name(s).
37
38 jr
39 Set or get 'jr' part of name.
40
41 split
42 Split name into (firstname, von part, last name, jr part). Returns
43 array with four strings, some of them possibly empty.
44
45 to_string
46 Return string representation of the name.
47
49 BibTeX allows three representations of a person's name:
50
51 1. First von Last
52
53 2. von Last, First
54
55 3. von Last, Jr, First
56
57 The module always converts the first form to the second of third one to
58 allow simple string comparisons.
59
60 The algorithm to determine the von part is the following: von part
61 consists of tokens where the first letter at brace level 0 is in lower
62 case. Anything in a "special characters" is on brace level 0. Thus
63 the following tokens are considered von parts: "von", "\NOOP{von}Von",
64 and the following token is not: "{von}"
65
67 version 1.04
68
70 Gerhard Gossen <gerhard.gossen@googlemail.com> and Boris Veytsman
71 <boris@varphi.com> and Karl Berry <karl@freefriends.org>
72
74 This software is copyright (c) 2013--2023 by Gerhard Gossen and Boris
75 Veytsman and Karl Berry.
76
77 This is free software; you can redistribute it and/or modify it under
78 the same terms as the Perl 5 programming language system itself.
79
80
81
82perl v5.38.0 2023-08-21 BibTeX::Parser::Author(3)