Quote:
Originally Posted by hybernation
Thank you for this tool! Was wondering if you could offer an option in the PDF conversion to retain the "smartquotes" ( “ and ” ) instead of converting them all to plain ones ( " ) ?
thanks again
John
|
Class lrf.Utils holds toXMLText method as:
Code:
public static String toXMLText(String app) {
app=app.replace('\u000C', ' ');
app=app.replace("’", "'");
app=app.replace("'", "'");
app=app.replace("‘", "'");
app=app.replace("\"", """);
app=app.replace("“", """);
app=app.replace("”", """);
app=app.replace(" & ", " & ");
app=app.replace("<", "<");
app=app.replace(">", ">");
app=app.replace("’", "'");
app=app.replace("—", "-");
app=app.replace("…", "...");
app=app.replace("’", "'");
app=app.replace("Æ", "AE");
app=app.replace("á", "á");
app=app.replace("é", "é");
app=app.replace("í", "í");
app=app.replace("ó", "ó");
app=app.replace("ú", "ú");
app=app.replace("Á", "Á");
app=app.replace("É", "É");
app=app.replace("Í", "Í");
app=app.replace("Ó", "Ó");
app=app.replace("Ú", "Ú");
app=app.replace("ñ", "ñ");
app=app.replace("Ñ", "Ñ");
return app;
}
How must be? app is a String holding raw UTF-8 text.