Top Description Fields Constructors Methods
org.jabref.logic.formatter.bibtexfields

public Class HtmlToLatexFormatter

extends Formatter
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
java.util.Objects, .Set, java.util.regex.Matcher, .Pattern, org.jabref.logic.cleanup.Formatter, org.jabref.logic.l10n.Localization, org.jabref.logic.layout.LayoutFormatter, org.jabref.logic.util.strings.HTMLUnicodeConversionMaps, org.slf4j.Logger, .LoggerFactory

The inverse operation is "somehow" contained in org.jabref.logic.openoffice.style.OOPreFormatter

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Logger
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements abstract org.jabref.logic.cleanup.Formatter.format.

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

Failure Mode:

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

public String
getDescription()

Implements abstract org.jabref.logic.cleanup.Formatter.getDescription.

Returns a description of the formatter.

public String
getExampleInput()

Implements abstract org.jabref.logic.cleanup.Formatter.getExampleInput.

Returns an example input string of the formatter.

public String
getKey()

Implements abstract org.jabref.logic.cleanup.Formatter.getKey.

Returns a unique key for the formatter that can be used for its identification

public String
getName()

Implements abstract org.jabref.logic.cleanup.Formatter.getName.

Returns a human readable name of the formatter usable for e.g. in the GUI

private int
readTag(String text, int position)

Inherited from org.jabref.logic.cleanup.Formatter:
equalshashCode

Field Detail

ESCAPED_PATTERNback to summary
private static final Pattern ESCAPED_PATTERN
ESCAPED_PATTERN2back to summary
private static final Pattern ESCAPED_PATTERN2
ESCAPED_PATTERN3back to summary
private static final Pattern ESCAPED_PATTERN3
ESCAPED_PATTERN4back to summary
private static final Pattern ESCAPED_PATTERN4
LOGGERback to summary
private static final Logger LOGGER
MAX_TAG_LENGTHback to summary
private static final int MAX_TAG_LENGTH

Constructor Detail

HtmlToLatexFormatterback to summary
public HtmlToLatexFormatter()

Method Detail

formatback to summary
public String format(String text)

Implements abstract org.jabref.logic.cleanup.Formatter.format.

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
text:String

The text to layout.

Returns:String

The layouted text.

Annotations
@Override
getDescriptionback to summary
public String getDescription()

Implements abstract org.jabref.logic.cleanup.Formatter.getDescription.

Doc from org.jabref.logic.cleanup.Formatter.getDescription.

Returns a description of the formatter.

Returns:String

the description string, always non empty

Annotations
@Override
getExampleInputback to summary
public String getExampleInput()

Implements abstract org.jabref.logic.cleanup.Formatter.getExampleInput.

Doc from org.jabref.logic.cleanup.Formatter.getExampleInput.

Returns an example input string of the formatter. This example is used as input to the formatter to demonstrate its functionality

Returns:String

the example input string, always non empty

Annotations
@Override
getKeyback to summary
public String getKey()

Implements abstract org.jabref.logic.cleanup.Formatter.getKey.

Doc from org.jabref.logic.cleanup.Formatter.getKey.

Returns a unique key for the formatter that can be used for its identification

Returns:String

the key of the formatter, always not null

Annotations
@Override
getNameback to summary
public String getName()

Implements abstract org.jabref.logic.cleanup.Formatter.getName.

Doc from org.jabref.logic.cleanup.Formatter.getName.

Returns a human readable name of the formatter usable for e.g. in the GUI

Returns:String

the name of the formatter, always not null

Annotations
@Override
readTagback to summary
private int readTag(String text, int position)