Top Description Fields Constructors Methods
org.jabref.logic.openoffice.style

public Class OOPreFormatter

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
java.util.Map, .Objects, org.jabref.logic.layout.LayoutFormatter, org.jabref.logic.util.strings.HTMLUnicodeConversionMaps, org.jabref.model.strings.StringUtil

This formatter preprocesses JabRef fields before they are run through the layout of the bibliography style. It handles translation of LaTeX italic/bold commands into HTML tags.

Field Summary

Modifier and TypeField and Description
private static final Map<String, String>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
format(String
The text to layout.
field
)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

private String
getHTMLTag(String latexCommand)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CHARSback to summary
private static final Map<String, String> CHARS

Constructor Detail

OOPreFormatterback to summary
public OOPreFormatter()

Method Detail

formatback to summary
public String format(String field)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Doc from org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.

Parameters
field:String

The text to layout.

Returns:String

The layouted text.

Annotations
@Override
getHTMLTagback to summary
private String getHTMLTag(String latexCommand)