-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3d1a14b
Showing
27 changed files
with
1,912 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
bin | ||
.classpath | ||
dist | ||
.externalToolBuilders | ||
gen | ||
images | ||
.project | ||
project.properties | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.iiordanov.wiktionarylookup.WikiDici" | ||
android:versionCode="3" android:versionName="1.1"> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<application android:label="@string/app_name" android:icon="@drawable/dictionary"> | ||
<activity android:label="@string/app_name" android:name=".WikiDici"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
|
||
</manifest> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Wiktionary Lookup | ||
Copyright (C) 2012 Anh Truong | ||
|
||
|
||
Based on Wiki Dici | ||
Copyright (C) 2008 by the following: | ||
David Siegel | ||
Idealab | ||
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/layout" android:orientation="vertical" | ||
android:layout_width="fill_parent" android:layout_height="fill_parent"> | ||
|
||
<WebView android:id="@+id/webview" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" /> | ||
|
||
<LinearLayout android:id="@+id/LinearLayout01" | ||
android:orientation="horizontal" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" android:padding="5px"> | ||
|
||
<AutoCompleteTextView android:id="@+id/lookup_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="fill_parent" | ||
android:layout_weight="1" | ||
android:lines="1"> | ||
</AutoCompleteTextView> | ||
|
||
<Button android:id="@+id/lookup_button" | ||
android:text="@string/lookup" | ||
android:layout_width="wrap_content" | ||
android:layout_height="fill_parent"> | ||
</Button> | ||
|
||
</LinearLayout> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
|
||
<TextView android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/word_suggest_row_text" android:lines="1" | ||
android:textSize="22px"></TextView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html> | ||
<head> | ||
<title>Wiktionary Lookup</title> | ||
</head> | ||
<body> | ||
<center> | ||
<h1>Wiktionary Lookup</h1> | ||
<em>Powered by Wiktionary.org</em> | ||
<br /><br /> | ||
<em>Content is available under the<br />GNU Free Documentation License.</em> | ||
</center> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html> | ||
<head> | ||
<title>Wiktionary Lookup</title> | ||
</head> | ||
<body> | ||
<center> | ||
<h2>Looking up word...</h2> | ||
</center> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
<style type="text/css"> | ||
|
||
body { | ||
padding: 0.5em; | ||
} | ||
|
||
a { | ||
} | ||
|
||
table, | ||
.editsection, | ||
.noprint, | ||
.audiolink, | ||
.NavContent, | ||
.sister-wikipedia, | ||
.interProject, | ||
.portlet, | ||
.printfooter, | ||
.infl-table, | ||
.magnify { | ||
display: none; | ||
} | ||
|
||
.thumbcaption { | ||
} | ||
|
||
img { | ||
height: auto; | ||
margin: 0 auto; | ||
} | ||
|
||
dl, | ||
ul, | ||
ol { | ||
padding: 0 0 0 1em; | ||
} | ||
|
||
dd { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
</head> | ||
<body> | ||
CONTENT | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html> | ||
<head> | ||
<title>Wiktionary Lookup</title> | ||
</head> | ||
<body> | ||
<center> | ||
<h2>Word not found.</h2> | ||
</center> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<string name="app_name">Wiktionary Lookup</string> | ||
<string name="lookup">Lookup</string> | ||
<string name="word_not_found">Word Not Found</string> | ||
<string name="wotd">Word of the Day</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Act.java | ||
// | ||
// Wiktionary Lookup is the legal property of its developers. Please refer to the | ||
// COPYRIGHT file distributed with this source distribution. | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
package com.iiordanov.functional; | ||
|
||
public abstract class Act { | ||
|
||
public interface Of0 { | ||
void call (); | ||
} | ||
|
||
public interface Of1<T1> { | ||
void call (T1 t1); | ||
} | ||
|
||
public interface Of2<T1, T2> { | ||
void call (T1 t1, T2 t2); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// Fun.java | ||
// | ||
// Wiktionary Lookup is the legal property of its developers. Please refer to the | ||
// COPYRIGHT file distributed with this source distribution. | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
package com.iiordanov.functional; | ||
|
||
/** | ||
* | ||
* Class containing function types for higher-order programming. | ||
* | ||
*/ | ||
public abstract class Fun { | ||
|
||
/** | ||
* Function of one variable. | ||
* | ||
* @param <T1> | ||
*/ | ||
public interface Of1<T1> { | ||
T1 call (); | ||
} | ||
|
||
/** | ||
* Function of two variables. | ||
* | ||
* @param <T1> | ||
* @param <T2> | ||
*/ | ||
public interface Of2<T1, T2> { | ||
T2 call (T1 t1); | ||
} | ||
|
||
/** | ||
* Function of three variables. | ||
* | ||
* @param <T1> | ||
* @param <T2> | ||
* @param <T3> | ||
*/ | ||
public interface Of3<T1, T2, T3> { | ||
T3 call (T1 t1, T2 t2); | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/com/iiordanov/wiktionarylookup/WikiDici/Preferences.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Preferences.java | ||
// | ||
// Wiktionary Lookup is the legal property of its developers. Please refer to the | ||
// COPYRIGHT file distributed with this source distribution. | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
package com.iiordanov.wiktionarylookup.WikiDici; | ||
|
||
public abstract class Preferences { | ||
/** | ||
* Making links active slows down the application a lot. | ||
*/ | ||
public static final boolean LINKS_ACTIVE = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* AUTO-GENERATED FILE. DO NOT MODIFY. | ||
* | ||
* This class was automatically generated by the | ||
* aapt tool from the resource data it found. It | ||
* should not be modified by hand. | ||
*/ | ||
|
||
package com.iiordanov.wiktionarylookup.WikiDici; | ||
|
||
public final class R { | ||
public static final class attr { | ||
} | ||
public static final class drawable { | ||
public static final int dictionary=0x7f020000; | ||
public static final int wotd=0x7f020001; | ||
} | ||
public static final class id { | ||
public static final int LinearLayout01=0x7f060002; | ||
public static final int layout=0x7f060000; | ||
public static final int lookup_button=0x7f060004; | ||
public static final int lookup_text=0x7f060003; | ||
public static final int webview=0x7f060001; | ||
public static final int word_suggest_row_text=0x7f060005; | ||
} | ||
public static final class layout { | ||
public static final int main=0x7f030000; | ||
public static final int word_suggest_row=0x7f030001; | ||
} | ||
public static final class raw { | ||
public static final int index=0x7f040000; | ||
public static final int searching=0x7f040001; | ||
public static final int wiki_css=0x7f040002; | ||
public static final int wiki_page_template=0x7f040003; | ||
public static final int word_not_found=0x7f040004; | ||
} | ||
public static final class string { | ||
public static final int app_name=0x7f050000; | ||
public static final int lookup=0x7f050001; | ||
public static final int word_not_found=0x7f050002; | ||
public static final int wotd=0x7f050003; | ||
} | ||
} |
Oops, something went wrong.