|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rakeshv.utils.Change8Crmp10
public class Change8Crmp10
This utility class changes all the text that are enclosed within
/ characters with \textit{<text>}.
An attempt is also made to convert all accentuated characters
with their LATEX
equivalents.
| Field Summary | |
|---|---|
private java.lang.String |
contents
The String object that is used to store the contents
of the file being modified. |
| Constructor Summary | |
|---|---|
private |
Change8Crmp10()
Default constructor. |
|
Change8Crmp10(java.lang.String fileName)
Open the specified file, and read its contents into a String object. |
| Method Summary | |
|---|---|
private java.lang.String |
accentuateCharacters()
Convert all accentuated characters to their LATEX equivalent. |
private java.lang.String |
emphasiseText()
Convert all words or phrases that are wrapped in /
to \textit{<word or phrase>} |
private java.lang.String |
getContents(java.lang.String fileName)
Read the contents of the specified file, and pass it back as a String. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String contents
String object that is used to store the contents
of the file being modified.
| Constructor Detail |
|---|
private Change8Crmp10()
public Change8Crmp10(java.lang.String fileName)
String object. Apply the different
Regular Expressions to the String, and also apply
the accentuated character to
LATEX
conversions.
fileName - - The file to open. The path to the file
should be explicitly specified if the file is not in the
current working directory.| Method Detail |
|---|
private java.lang.String getContents(java.lang.String fileName)
String.
fileName - - The file to open and read.
private java.lang.String emphasiseText()
/
to \textit{<word or phrase>}
private java.lang.String accentuateCharacters()
public static void main(java.lang.String[] args)
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||