This commit is contained in:
Kathy Ruffing 2011-01-19 16:03:56 +00:00
parent 28325bb22d
commit ef377284ca

View File

@ -214,11 +214,19 @@ namespace DataLoader
} }
public static string ConvertDOSSuperAndSubScripts(string instr) public static string ConvertDOSSuperAndSubScripts(string instr)
{
try
{ {
string retval = Regex.Replace(instr, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript string retval = Regex.Replace(instr, "[#](.*?)[#]", "\\up2 $1\\up0 ");// DOS Superscript
retval = Regex.Replace(retval, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript retval = Regex.Replace(retval, "[~](.*?)[~]", "\\dn2 $1\\up0 ");// DOS Subscript
return retval; return retval;
} }
catch (Exception ex)
{
Console.WriteLine("Error in ConvertDOSSuperAndSubScripts");
}
return "";
}
private static string FixFortranNumber(Match match) private static string FixFortranNumber(Match match)
{ {
StringBuilder sb = new StringBuilder(match.Groups[1].Value); StringBuilder sb = new StringBuilder(match.Groups[1].Value);