[year]_[author]_[firstpage], using information from a provided BibEntry. The above-mentioned expression would yield
2017_Kitsune_123 when expanded using the BibTeX entry @Article{ authors = {O. Kitsune}, year = {2017}, pages={123-6}}.
The embedding in JabRef is explained at Customize the citation key generator.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | CHARS_OF_FIRST
The maximum number of characters in the first author's last name. |
| private static final Pattern | DEPARTMENTS
Matches with "dep"/"dip", case-insensitive |
| private static final Pattern | |
| private static final RemoveEnclosingBracesFormatter | |
| private static final Pattern | INLINE_ABBREVIATION
Matches uppercase english letters between "({" and "})", which should be used to abbreviate the name of an institution |
| private static final Logger | |
| private static final int | MAX_ALPHA_AUTHORS
The maximum number of name abbreviations that can be used. |
| private static final Pattern | NOT_CAPITAL_CHARACTER
Matches everything that is not an uppercase ASCII letter. |
| private static final Pattern | |
| private final String | |
| private static final Map | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | Returns: the surname of all authors/editorsan authorList)AuthorListGets the last name of all authors/editors. |
| private static void | appendQuote(StringBuilder
the stringBuilder, Iterator<String> StringBuilder to which tokens will be appendedthe tokenizer producing the tokens tokenizer)Appends the content between, and including, two " to the provided |
| pack-priv static String | Returns: The modified label.The generated label. label, final List<String> String array containing the modifiers. parts, final int The number of initial items in the modifiers array to skip. offset, Function<String, String> a function to expand the content in the parentheses. expandBracketContent)Applies modifiers to a label generated based on a field marker. |
| pack-priv static String | |
| pack-priv static String | |
| pack-priv static String | authIniN(AuthorList
The authors to format. authorList, int The maximum number of characters this string will be long. A negative number or zero will lead to "" be returned. n)authIniN format |
| private static String | |
| private static String | authNofMth(AuthorList authorList, int n, int m)
The first N characters of the Mth author's or editor's last name. |
| public static String | Returns: the initials of all authors' namesan authorList)AuthorListReturns the authors according to the BibTeX-alpha-Style |
| public static String | Returns: the initials of all authors' namesan authorList)AuthorListReturns the authors according to the BibTeX LNI template Examples: Examples from the tmplate Also see discussion at the pull request that introduced this. |
| pack-priv static String | |
| public static String | camelizeSignificantWordsInTitle(String title)
Capitalises the significant words of the "title" field in the given BibTeX entry |
| private static String | |
| private static String | |
| private static String | Returns: the content enclosed by bracketsthe tokenizer producing the tokens tokenizer, final String pattern used by pattern)expandBrackets, used for loggingReturns the content enclosed between brackets, including enclosed quotes, and excluding the paired enclosing brackets. |
| private static AuthorList | Returns: anAuthorList consisting of authors and institution keys with resolved latex.a string representation of authors or editors unparsedAuthors)Parses the provided string to an |
| public String | |
| public String | Returns: The expanded pattern. The empty string is returned, if it could not be expanded.The bibentry to expand. bibentry, BibDatabase The database to use for string-lookups and cross-refs. May be null. database)Expands the current pattern using the given bibentry and database. |
| public String | Returns: The expanded pattern. The empty string is returned, if it could not be expanded.The bibentry to expand. bibentry, Character The keyword delimiter to use. keywordDelimiter, BibDatabase The database to use for string-lookups and cross-refs. May be null. database)Expands the current pattern using the given bibentry, keyword delimiter, and database. |
| public static Function | Returns: a function accepting a bracketed expression and returning the result of expanding itThe keyword delimiter to use keywordDelimiter, BibEntry The entry, BibDatabase BibEntry to use for expansionThe database)BibDatabase for field resolving. May be null.Utility method creating a function taking the string representation of the content of a bracketed expression and expanding it. |
| public static String | Returns: The expanded pattern. Not null.The pattern to expand pattern, Character The keyword delimiter to use keywordDelimiter, @NonNull BibEntry The bibEntry to use for expansion entry, BibDatabase The database for field resolving. May be null. database)Expands a pattern |
| public static String | |
| private static String | Returns: the surname of an author/editor or the von part if no lastname is prsent or "" if no author was found or both firstname+lastname are empty This method is guaranteed to never return null.an authorList)AuthorListGets the last name of the first author/editor |
| private static String | Returns: the first name initial of an author/editor or "" if no author was found This method is guaranteed to never return null.an authorList)AuthorListGets the first name initials of the first author/editor |
| private static String | Returns: the von part and surname of an author/editor or "" if no author was found. This method is guaranteed to never return null.an authorList)AuthorListGets the von part and the last name of the first author/editor. |
| public static String | |
| private static String | |
| pack-priv static @Nullable String | Returns:
the institution to generate a Bibtex key for content)An author or editor may be an institution not a person. |
| public static String | getCamelizedTitle(String title)
Capitalises and concatenates the words out of the "title" field in the given BibTeX entry |
| public static String | getCamelizedTitle_N(String title, int number)
Capitalises and concatenates the words out of the "title" field in the given BibTeX entry, to a maximum of N words. |
| public static String | Returns: String containing the evaluation result. Empty string if the pattern cannot be resolved.The entry to get the field value from entry, String A pattern string (such as auth, pureauth, authorLast) pattern, Character The de keywordDelimiter, BibDatabase The database to use for field resolving. May be null. database)Evaluates the given pattern to the given bibentry and database |
| private static String | |
| private static List | |
| private static String | |
| public static String | getTitleWords(int number, String title)
Determines "number" words out of the "title" field in the given BibTeX entry |
| private static String | |
| private static List | |
| private static boolean | Returns: true if only the last name is present and it contains at least one whitespace character.the checked author author)Checks if an author is an institution which can get a citation key from |
| public static String | Returns: a string consisting of authors' last names separated by adelimiter and with any authors excess of
maxAuthors replaced with suffixthe list of authors authorList, int the maximum number of authors in the string maxAuthors, String delimiter separating the last names of the authors delimiter, final String to replace excess authors with. Also used to replace suffix)and others.Creates a string with all last names separated by a |
| private static String | |
| pack-priv static String | Returns: the surname of an author/editoran authorList)AuthorListGets the last name of the last author/editor |
| private static String | Returns: the forename initial of an author/editor or "" if no author was found This method is guaranteed to never return null.an authorList)AuthorListGets the forename initials of the last author/editor |
| public static String | |
| private static String | Returns: Gets the surnames of the first N authors and appends EtAl if there are more than N authorsan authorList, int AuthorListthe number of desired authors n)Gets the surnames of the first N authors and appends EtAl if there are more than N authors |
| private static boolean | noOtherInstitutionKeyWord(String
to check word)Helper method for |
| pack-priv static String | Returns: the surname of all authors/editorsan authorList)AuthorListGets the first part of the last name of the first author/editor, and appends the last name initial of the remaining authors/editors. |
| public static String | Returns: the non-digit prefix of pages (like "L" of L7) or "" if no non-digit prefix is found in the string(may not be null) a pages string such as 42--111 or 7,41,73--97, 43+ or iv--xx pages)Return the non-digit prefix of pages |
| private static Comparator | |
| protected static List | Returns: An array of strings representing the parts of the markerThe argument string. arg)Parse a field marker with modifiers, possibly containing a parenthesised modifier, as well as escaped colons and parentheses. |
| public static String | |
| private static int | |
| public String |