Rakesh API

org.rakeshv.utils
Class LaTeXAccents

java.lang.Object
  extended by org.rakeshv.utils.LaTeXAccents

public class LaTeXAccents
extends java.lang.Object

Convert ISO character entities into their equivalent 7-bit ASCII characters, or LATEX equivalents.

Looks for the characters that are above 127, and tries to match them against the characters specified in the HTML specification (http://www.w3.org/TR/html4/sgml/entities.html).

Uses ISOToASCII and ISOToTeX HashMaps to perform the lookups.


Field Summary
private  java.lang.String content
          The String object that holds the modified contents.
 
Constructor Summary
private LaTeXAccents()
          Default constructor.
  LaTeXAccents(java.lang.String inString)
          Modifies all accentuated characters in the specified String
 
Method Summary
 java.lang.String getContent()
          Returns content.
private  java.lang.String modifyContent(java.lang.String inString)
          The method in which the conversion of the characters is done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

private java.lang.String content
The String object that holds the modified contents.

Constructor Detail

LaTeXAccents

private LaTeXAccents()

Default constructor. Cannot be invoked.


LaTeXAccents

public LaTeXAccents(java.lang.String inString)

Modifies all accentuated characters in the specified String

Parameters:
inString - - The input String to process.
Method Detail

modifyContent

private java.lang.String modifyContent(java.lang.String inString)
The method in which the conversion of the characters is done.

Parameters:
inString - - The input String that is to be processed.
Returns:
String - The modified String object.

getContent

public final java.lang.String getContent()
Returns content.

Returns:
String - The value/reference of/to content.

Rakesh API

Copyright © 2002-2005 - Rakesh Vidyadharan