|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display.TeXParser
public class TeXParser
Field Summary | |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
charMap
|
Constructor Summary | |
---|---|
TeXParser()
|
Method Summary | |
---|---|
static java.lang.String |
addSubscript(java.lang.String root,
java.lang.String subscript)
Adds a subscript to the root of an input String. |
static java.lang.String |
getSubscript(java.lang.String input)
Gets the subscript from an input String. |
static java.lang.String |
parseTeX(java.lang.String inputStr)
Converts TeX-like notation for Greek symbols to unicode characters. |
static java.lang.String |
removeSubscript(java.lang.String input)
Removes the subscript from an input String. |
static java.lang.String |
removeSubscripting(java.lang.String input)
Removes subscripting notation from an input String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.Map<java.lang.String,java.lang.String> charMap
Constructor Detail |
---|
public TeXParser()
Method Detail |
---|
public static java.lang.String parseTeX(java.lang.String inputStr)
inputStr
- the string in TeX-like notation
public static java.lang.String removeSubscripting(java.lang.String input)
input
- the string with (possible) subscripting notation
public static java.lang.String removeSubscript(java.lang.String input)
input
- the string with (possible) subscript
public static java.lang.String getSubscript(java.lang.String input)
input
- the string with (possible) subscript
public static java.lang.String addSubscript(java.lang.String root, java.lang.String subscript)
root
- the root to which the subscript will be addedsubscript
- the subscript
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |