public class MarkupDocument extends Object
Typesetting| Constructor and Description |
|---|
MarkupDocument(String headline)
Instantiates a new markup document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String header)
Adds a header.
|
void |
addSection(MarkupSection section)
Adds a section.
|
static String |
attribute(String s)
Highlights an attribute.
|
static String |
delete(String s)
Highlights a delete.
|
List<String> |
getHeader()
Gets the header.
|
String |
getHeadline()
Gets the headline.
|
List<MarkupSection> |
getSections()
Gets the sections.
|
static String |
highlight(String s)
Highlights a string, e.g.
|
static String |
insert(String s)
Highlights an insert.
|
static String |
math(String s)
Container for unchanged math.
|
static String |
math(String s,
boolean original)
Container for modified math.
|
static String |
multiply()
Produces a multiply symbol.
|
static String |
replaceAllMaths(String s,
String pre,
String post)
Replaces all math stuff, doesn't matter if inserted or deleted.
|
static String |
replaceAttributes(String s,
String pre,
String post)
Replaces attributes.
|
static String |
replaceDeletes(String s,
String pre,
String post)
Replaces deletes.
|
static String |
replaceHighlights(String s,
String pre,
String post)
Replaces highlights.
|
static String |
replaceInserts(String s,
String pre,
String post)
Replaces inserts.
|
static String |
replaceModifiedMaths(String s,
String pre,
String post)
Replaces modified math.
|
static String |
replaceMultiplication(String s,
String replacement)
Replaces multiplication.
|
static String |
replaceOriginalMaths(String s,
String pre,
String post)
Replaces original math.
|
static String |
replaceRightArrow(String s,
String replacement)
Replaces right arrow.
|
static String |
replaceSupplementals(String s,
String pre,
String post)
Replaces supplementary information.
|
static String |
replaceUnchangedMaths(String s,
String pre,
String post)
Replaces math that hasn't changed.
|
static String |
rightArrow()
Produces a right arrow.
|
static String |
supplemental(String s)
Highlights supplementary information.
|
public MarkupDocument(String headline)
headline - the headlinepublic void addHeader(String header)
header - the header to addpublic void addSection(MarkupSection section)
section - the sectionpublic static final String highlight(String s)
s - the string to highlightpublic static final String insert(String s)
s - the string to highlightpublic static final String delete(String s)
s - the string to highlightpublic static final String supplemental(String s)
s - the string to highlightpublic static final String attribute(String s)
s - the string to highlightpublic static final String math(String s)
s - the string representing mathpublic static final String math(String s, boolean original)
s - the string representing mathoriginal - the is that the original document?public static final String rightArrow()
public static final String multiply()
public List<MarkupSection> getSections()
public String getHeadline()
public static final String replaceHighlights(String s, String pre, String post)
s - the string containing highlightspre - the opening, e.g. <em>post - the closing, e.g. </em>public static final String replaceInserts(String s, String pre, String post)
s - the string containing insertspre - the opening, e.g. <ins>post - the closing, e.g. </ins>public static final String replaceDeletes(String s, String pre, String post)
s - the string containing deletespre - the opening, e.g. <del>post - the closing, e.g. </del>public static final String replaceSupplementals(String s, String pre, String post)
s - the string containing supp infopre - the opening, e.g. <supp>post - the closing, e.g. </supp>public static final String replaceAttributes(String s, String pre, String post)
s - the string containing attributespre - the opening, e.g. <attr>post - the closing, e.g. </attr>public static final String replaceModifiedMaths(String s, String pre, String post)
s - the string containing modified mathpre - the opening, e.g. <inserted math>post - the closing, e.g. </inserted math>public static final String replaceOriginalMaths(String s, String pre, String post)
s - the string containing original mathpre - the opening, e.g. <deleted math>post - the closing, e.g. </deleted math>public static final String replaceAllMaths(String s, String pre, String post)
s - the string containing inserted or deleted mathpre - the opening, e.g. <my math tag>post - the closing, e.g. </my math tag>public static final String replaceUnchangedMaths(String s, String pre, String post)
s - the string containing mathpre - the opening, e.g. <unchanged math>post - the closing, e.g. </unchanged math>public static final String replaceMultiplication(String s, String replacement)
s - the string containing multiplicationsreplacement - the replacement, e.g. "*"Copyright © 2019 SEMS project @ University of Rostock. All rights reserved.