-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathRebuild_latin.java
More file actions
35 lines (22 loc) · 812 Bytes
/
Copy pathRebuild_latin.java
File metadata and controls
35 lines (22 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package test.Examples;
import java.io.FileNotFoundException;
import java.io.IOException;
import com.knziha.plod.dictionary.mdict;
import com.knziha.plod.dictionaryBuilder.mdictBuilder;
/**
* TEsts
* @author KnIfER
* @date 2018/05/31
*/
public class Rebuild_latin {
static int d=0;
public static void main(String[] args) throws IOException{
mdictBuilder mdxBD = new mdictBuilder("encarta2009_converted","converted by mdict-java builder from encarta2009","UTF-8");
mdict mraw = new mdict("E:\\assets\\mdicts\\测试用\\encarta2009.mdx");
for(int i=0;i<mraw.getNumberEntries();i++) {
mdxBD.insert(mraw.getEntryAt(i), mraw.getRecordAt(i));
}
mdxBD.write("F:\\123Test.mdx");
//mdict md = new mdict("F:\\123Test.mdx");//en-irish.mdx
}
}