<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
- <list default="true" id="f146bc67-2578-4de3-9db2-94d2d43e9e83" name="Default" comment="wip #5410">
- <change beforePath="$PROJECT_DIR$/../../../src/PDFTools.php" beforeDir="false" afterPath="$PROJECT_DIR$/../../../src/PDFTools.php" afterDir="false" />
- </list>
+ <list default="true" id="f146bc67-2578-4de3-9db2-94d2d43e9e83" name="Default" comment="wip #5410" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<workItem from="1694090487471" duration="6051000" />
<workItem from="1694157597994" duration="9552000" />
<workItem from="1694187452028" duration="14000" />
- <workItem from="1694189811041" duration="112000" />
+ <workItem from="1694189811041" duration="768000" />
+ <workItem from="1694545035743" duration="798000" />
</task>
<task id="LOCAL-00001" summary="wip #1111 @0.5">
<created>1487172253077</created>
threads = Integer.parseInt(args[i].trim());
} else if (args[i].trim().compareTo("--mode") == 0) {
i++;
- robust = args[i].trim() == "robust";
+ robust = args[i].trim().equals("robust");
}
}
this.docURL = docURL;
this.method = method;
this.robust = robust;
+ if(this.robust){
+ this.method="fluidbook";
+ }
trimchars = new String[1];
trimchars[0] = " ";
try {
LayoutStripper layoutStripper;
layoutStripper = new LayoutStripper();
- layoutStripper.setRobust(robust);
+ layoutStripper.setRobust(this.robust);
layoutStripper.setIgnoredSeparators(ignoredSeparators);
layoutStripper.process((PDPage) doc.getDocumentCatalog().getAllPages().get(i - 1), i);
String fhfile = file.replaceFirst("%s", "fh");
fbtext = html2text(fbtext);
- if (robust) {
+ System.out.println("this.robust :: "+this.robust);
+ if (this.robust) {
fbtext=StringUtil.removeSpaces(fbtext);
}
out.write(fbtext);
out.close();
System.out.println("Save texts to "+fpfile);
- if (!robust) {
+ if (!this.robust) {
String fbindex = text2index(fbtext);
out = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(fifile), "UTF8"));
package cube.util;
import cube.util.AsciiUtils;
+import org.apache.commons.lang3.StringUtils;
import java.util.HashMap;
}
public static String removeSpaces(String in) {
- String res = in.replaceAll(
- "[\\u2000-\\u20ff\\ufffd]",
- "");
-
- return res;
+ return StringUtils.deleteWhitespace(in).replaceAll("\\s+","");
}
public static String removeControl(String in) {