![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.core.Value
imp.core.Structure
imp.core.Text
public class Text
Implements a textual value.
Field Summary |
---|
Fields inherited from class imp.core.Value |
---|
NULL |
Constructor Summary | |
---|---|
Text()
Constructs an empty textual value. |
Method Summary | |
---|---|
static Text |
create(String string)
Creates a text from an HTML string and return this. |
static String |
html2xhtml(String text)
Converts an HTML text to UTF-8 XHTML. |
String |
htmlValue(String pattern)
Returns this text as a XHTML string. |
static Value |
latex2xml(String text)
Converts some LaTeX text to a XML structure. |
static void |
main(String[] arguments)
Translates a textual document in this context. |
static String |
xhtml2string(String text)
Converts an HTML text to a raw text. |
Methods inherited from class imp.core.Structure |
---|
clear, indexOf, setType, sort |
Methods inherited from class imp.core.Value |
---|
cloneThis, get, getWrapping, isCyclic, isName, load, save, toString, wrappedObject |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Text()
Method Detail |
---|
public static Text create(String string)
string
- A string containing an HTML piece of text.public static String html2xhtml(String text)
public String htmlValue(String pattern)
pattern
- Optional target XHTML pattern of the form:
<html><head>$head</head><body>$body</body><html>
where the $head and $body variables must be inserted to allows the text to be properly inserted in the XHTML pattern.
public static Value latex2xml(String text)
public static void main(String[] arguments)
public static String xhtml2string(String text)