2、编写解析word为text函数 publicList<String>parseWord(Stringinput){try{InputStreaminputStream=newFileInputStream(input);XWPFDocumentdocument=newXWPFDocument(inputStream);List<String>pList=newArrayList<>();Map<String,Poi.PraInfo>pMap=newHashMap<>();IntegerlineNum=1;List<XWPFParagraph>paras=document.getPar...
例如: //create a configured DiffRowGeneratorDiffRowGenerator generator = DiffRowGenerator.create().showInlineDiffs(true).mergeOriginalRevised(true).inlineDiffByWord(true).oldTag(f -> "~") //introduce markdown style for strikethrough.newTag(f -> "**") //introduce markdown style for bold.bui...
使用 LCSDiff lcsDiff = new LCSDiff(str1, str2, new EnglishWordMetadataPicker()); // 元数据的定义:一个英文单词视为一个不可分割单元(元数据),英文字母外的其余字符,单个字符视为一个不可分割单元(元数据) // LCSDiff lcsDiff = new LCSDiff(str1, str2); // 使用默认元数据采拣器的版本:单个...