Skip to content

Commit

Permalink
added xml grammars for each pdf version
Browse files Browse the repository at this point in the history
  • Loading branch information
4gac committed Jun 8, 2020
1 parent 2b38500 commit 32e0b3b
Show file tree
Hide file tree
Showing 13 changed files with 167,142 additions and 10,237 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/gcxml/nbproject/private/
2 changes: 1 addition & 1 deletion gcxml/build/built-jar.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Tue, 02 Jun 2020 17:13:40 +0200
#Mon, 08 Jun 2020 20:11:31 +0200


/home/fero/Work/PDFGrammar/PDF20_Grammar/gcxml=
Binary file modified gcxml/build/classes/gcxml/XMLCreator.class
Binary file not shown.
6 changes: 3 additions & 3 deletions gcxml/src/gcxml/XMLCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class XMLCreator {
private Document new_doc = null;

public XMLCreator(File[] list_of_files, String delimiter, String pdf_version) {
this.output_folder = System.getProperty("user.dir") + "/xml/objects/";
this.output_folder = System.getProperty("user.dir") + "/xml/";
this.input_folder = System.getProperty("user.dir") + "/tsv/";

// sort files by name alphabetically
Expand Down Expand Up @@ -89,7 +89,7 @@ public XMLCreator(File[] list_of_files, String delimiter, String pdf_version) {
}

public void convertFile() {
output_folder += "_pdf_grammar" + pdf_version + ".xml" ;
output_folder += "pdf_grammar" + pdf_version + ".xml" ;
error_count = 0;

int rows_count = -1;
Expand All @@ -100,7 +100,7 @@ public void convertFile() {
root_elem.setAttribute("pdf_version", pdf_version );
root_elem.setAttribute("grammar_version", grammar_version );
root_elem.setAttribute("iso_ref", "ISO-32000" );
root_elem.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
//root_elem.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink");
new_doc.appendChild(root_elem);

// Read tsv files
Expand Down
Loading

0 comments on commit 32e0b3b

Please sign in to comment.