org.jabref.logic.citationstyle.CitationStyleGenerator ).
These methods are used in CSLCitationOOAdapter which inserts CSL citation text into an OO document.
| Modifier and Type | Field and Description |
|---|---|
| private static final Pattern | |
| public static final List | |
| public static final List | BIBLIOGRAPHY_TITLE_FORMATS
The formatting names specified to and understood by LibreOffice internally via code are often different from their displayed names in the LibreOffice application. |
| private static final Pattern | |
| private static final String | |
| private static final String | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String | changeToInText(String
the citation cleaned up and formatted using transformHTML. formattedCitation)Extracts year from a citation having single or multiple entries, for the purpose of using in in-text citations. |
| public static String | Returns: the alphanumeric citation (for a single entry or a group of entries).the list of entries for which the alphanumeric citation is to be generated. entries, BibDatabaseContext bibDatabaseContext)Alphanumeric citations are not natively supported by citeproc-java (see generateCitation). |
| public static String | |
| public static String | generateAuthorPrefix(BibEntry currentEntry, BibDatabaseContext bibDatabaseContext)
Generates Author Prefix for an in-text citation |
| public static String | |
| public static String | Returns: The formatted html string.The HTML string to be transformed into OO-write ready HTML. html)Transforms provided HTML into a format that can be fully parsed and inserted into an OO document. |
| A_OPEN_TAG | back to summary |
|---|---|
| private static final Pattern A_OPEN_TAG | |
| BIBLIOGRAPHY_BODY_FORMATS | back to summary |
|---|---|
| public static final List<String> BIBLIOGRAPHY_BODY_FORMATS | |
| BIBLIOGRAPHY_TITLE_FORMATS | back to summary |
|---|---|
| public static final List<String> BIBLIOGRAPHY_TITLE_FORMATS The formatting names specified to and understood by LibreOffice internally via code are often different from their displayed names in the LibreOffice application. For example, "Hanging Indent" as visible in LO styles list should be specified as "Hanging indent" (note casing) internally. Similarly, "Body Text, Indented" is specified as "Text body indent". This is also why we don't let users manually input the name of any pre-set format. The following two lists below are taken from https://github.com/LibreOffice/core/blob/0891df6b21fd95ec7c9614509d92829c0f17c353/sw/qa/python/check_styles.py#L132 | |
| BOLD_SPAN | back to summary |
|---|---|
| private static final Pattern BOLD_SPAN | |
| DEFAULT_BIBLIOGRAPHY_BODY_FORMAT | back to summary |
|---|---|
| private static final String DEFAULT_BIBLIOGRAPHY_BODY_FORMAT | |
| DEFAULT_HANGING_INDENT_BIBLIOGRAPHY_BODY_FORMAT | back to summary |
|---|---|
| private static final String DEFAULT_HANGING_INDENT_BIBLIOGRAPHY_BODY_FORMAT | |
| DIV_OPEN_TAG | back to summary |
|---|---|
| private static final Pattern DIV_OPEN_TAG | |
| ITALIC_SPAN | back to summary |
|---|---|
| private static final Pattern ITALIC_SPAN | |
| LEADING_EMPTY_PARAGRAPH_MARKER | back to summary |
|---|---|
| private static final Pattern LEADING_EMPTY_PARAGRAPH_MARKER | |
| LINE_BREAKS | back to summary |
|---|---|
| private static final Pattern LINE_BREAKS | |
| MARGIN_PATTERN | back to summary |
|---|---|
| private static final Pattern MARGIN_PATTERN | |
| REMAINING_SPAN_TAGS | back to summary |
|---|---|
| private static final Pattern REMAINING_SPAN_TAGS | |
| SMALL_CAPS_SPAN | back to summary |
|---|---|
| private static final Pattern SMALL_CAPS_SPAN | |
| TRAILING_EMPTY_PARAGRAPH_MARKERS | back to summary |
|---|---|
| private static final Pattern TRAILING_EMPTY_PARAGRAPH_MARKERS | |
| UNDERLINE_SPAN | back to summary |
|---|---|
| private static final Pattern UNDERLINE_SPAN | |
| YEAR_IN_CITATION_PATTERN | back to summary |
|---|---|
| private static final Pattern YEAR_IN_CITATION_PATTERN | |
| CSLFormatUtils | back to summary |
|---|---|
| private CSLFormatUtils() | |
| changeToInText | back to summary |
|---|---|
| public static String changeToInText(String formattedCitation) Extracts year from a citation having single or multiple entries, for the purpose of using in in-text citations.
| |
| generateAlphanumericCitation | back to summary |
|---|---|
| public static String generateAlphanumericCitation(List<BibEntry> entries, BibDatabaseContext bibDatabaseContext) Alphanumeric citations are not natively supported by citeproc-java (see generateCitation). Thus, we manually format a citation to produce its alphanumeric form. | |
| generateAlphanumericInTextCitation | back to summary |
|---|---|
| public static String generateAlphanumericInTextCitation(BibEntry entry, BibDatabaseContext bibDatabaseContext) | |
| generateAuthorPrefix | back to summary |
|---|---|
| public static String generateAuthorPrefix(BibEntry currentEntry, BibDatabaseContext bibDatabaseContext) Generates Author Prefix for an in-text citation | |
| getDefaultBodyFormatForStyle | back to summary |
|---|---|
| public static String getDefaultBodyFormatForStyle(CitationStyle style) | |
| transformHTML | back to summary |
|---|---|
| public static String transformHTML(String html) Transforms provided HTML into a format that can be fully parsed and inserted into an OO document.
Context: The HTML produced by generateBibliography or generateCitation is not directly (completely) parsable by write.
For more details, read the documentation for the | |