class: BibTexUtil

public class: BibTexUtil
Author: franke (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 2013 $ $LastChangedDate: 2009-05-25 15:; Complexity: 1
Dates: Created: 16.07.2009 15:13:14; Modified: 16.07.2009 15:13:14;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {DAAC4428-86F2-4a78-8A90-5E40504B85D6}
Utility class for BibTeX handling.
 

Goto: Custom Properties, Fields, Methods

Appears in: util

Custom Properties
 
BibTexUtil Attributes
Attribute Details
private static LinkedHashMap
  encodingTable
Initial: new LinkedHashMap()
Notes: Mapping for BibTeX special characters.
public static const String
  ESCAPE_CHARACTERS
Initial: "$&%#_"
private static HashMap
  genreMapping
Initial: new HashMap()
Notes: Mapping between BibTeX and eSciDoc genres.
private static Logger
  logger
Initial: Logger.getLogger(BibTexUtil.class)
private static HashMap
  monthTable
Initial: new HashMap()
Notes: Mapping for month formats.
 
BibTexUtil Methods
Operation Details
public static
bibtexDecode(
   String text):String
Sequential
Notes: Translates from BibTeX to normalized UTF-8.
@return A UTF-8 encoded string.
private static
deEscapeCharacter(
   String text,
   String character):String
Sequential
public static
deEscapeCharacters(
   String text):String
Sequential
Notes: Replaces all BibTeX encoded special characters with UTF-8.
@return A UTF-8 encoded string.
public static
fillSourcePages(
   String pagesString,
   SourceVO sourceVO):void
Sequential
Notes: Parses a string containing information about start and end page.
@link SourceVO} where the pages information should be added.
public static
getGenreMapping():Map
Sequential
public static
parseMonth(
   String monthString):String
Sequential
Notes: Parses a given string into a valid month.
@return A string containing a month in eSciDoc format.
public static
setGenreMapping(
   Map genreMapping):void
Sequential
public static
stripBraces(
   String text):String
Sequential
Notes: Extracts all braces "{}" from BibTeX encoded strings.
@return A string without braces.