Skip to content

Commit

Permalink
bugfixes + keyb. shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
ejvindh committed Oct 29, 2014
1 parent cff17de commit 9a3afb5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
Binary file modified bin/first/Dictionary.class
Binary file not shown.
Binary file modified bin/first/Gui.class
Binary file not shown.
13 changes: 0 additions & 13 deletions src/first/Dictionary.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,14 @@ public class Dictionary {

public static String[][] lookup(boolean toD, boolean fromD, boolean eks, boolean rev,
int doubflag, String lang_longname, String gdd_file_path, String dat_file_path
<<<<<<< HEAD
, String search_string_orig) throws ClassNotFoundException, SQLException, IOException {
=======
, String search_string) throws ClassNotFoundException, SQLException, IOException {
>>>>>>> a07388813fc646b77195251e38855273ee66cb5d
// Hovedopgaven for denne metode er at finde ud af hvilke tabeller der skal kigges i i Gdd-databasen
// Til slut kaldes metoden getEntries for at finde vektorerne i gdd-databasen for de indtastede søgeord
// Og getRawEntryText bruges til at udtrække selve opslagene i dat-databasen
Class.forName("org.sqlite.JDBC");
Connection conn = null;
conn = DriverManager.getConnection("jdbc:sqlite:" + gdd_file_path);
RandomAccessFile dat_file = new RandomAccessFile(dat_file_path, "r");

<<<<<<< HEAD
String search_string = search_string_orig.toLowerCase()
.replaceAll("[éèêë]", "e")
.replaceAll("[àâ]", "a")
Expand All @@ -33,8 +27,6 @@ public static String[][] lookup(boolean toD, boolean fromD, boolean eks, boolean
.replaceAll("ñ", "n")
.replaceAll("ß", "ss")
.replaceAll("œ", "oe");
=======
>>>>>>> a07388813fc646b77195251e38855273ee66cb5d
String[][] results = new String[2][3];
ArrayList<String> tables = new ArrayList<String>();
tables.add("lookup");
Expand Down Expand Up @@ -164,11 +156,6 @@ public static String getRawEntryText(RandomAccessFile dat_file, ArrayList<int[]>
}
String raw_entry = Groparser.parse_entry(data, entry_id);
String filtered_entry = Groparser.filter_entry(raw_entry);
<<<<<<< HEAD
//TODO:
System.out.println(filtered_entry + "\n\nhansen\n\n");
=======
>>>>>>> a07388813fc646b77195251e38855273ee66cb5d
raw_entries.add(filtered_entry);
}
StringBuffer raw_entries_collect_to_string = new StringBuffer();
Expand Down

0 comments on commit 9a3afb5

Please sign in to comment.