Assorted bugfixes
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@101 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
4a63a1ce8c
commit
26de5a45df
13 changed files with 59 additions and 39 deletions
|
@ -149,14 +149,16 @@ public abstract class ExportFilterBase implements
|
|||
else if (c=='>'){
|
||||
buf.append(">");
|
||||
}
|
||||
else if (c=='\u0009' || c=='\n' || c=='\r' || (c>='\u0020' && c<='\uD7FF') || (c>='\uE000' && c<'\uFFFD')) {
|
||||
//else if (c=='\u0009' || c=='\n' || c=='\r' || (c>='\u0020' && c<='\uD7FF') || (c>='\uE000' && c<'\uFFFD')) {
|
||||
else if (c=='\u0009' || c=='\n' || c=='\r' || (c>='\u0020' && c<'\uFFFD')) {
|
||||
// Valid characters found at xml.com
|
||||
// Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
|
||||
// (the latter are represented as surrogate pairs (#xD800-#xDFFF)
|
||||
buf.append(c);
|
||||
}
|
||||
else {
|
||||
// Found illegal character
|
||||
System.out.println("Illegal character : "+Integer.toHexString(c));
|
||||
//System.out.println("Illegal character : "+Integer.toHexString(c));
|
||||
}
|
||||
}
|
||||
return buf.toString();
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2011-03-10)
|
||||
* Version 1.2 (2011-03-23)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -551,7 +551,7 @@ public final class Writer4LaTeX extends WeakBase
|
|||
if (sDocumentUrl.length()!=0) {
|
||||
if (sDocumentUrl.startsWith("file:")) {
|
||||
if (System.getProperty("os.name").startsWith("Windows")) {
|
||||
Pattern windowsPattern = Pattern.compile("^file:///[A-Za-z][|:]");
|
||||
Pattern windowsPattern = Pattern.compile("^file:///[A-Za-z][|:].*");
|
||||
if (!windowsPattern.matcher(sDocumentUrl).matches()) {
|
||||
MessageBox msgBox = new MessageBox(m_xContext, m_xFrame);
|
||||
msgBox.showMessage("Please save the document on a location with a drive name!",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue