Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update some UI and Feature #426

Open
wants to merge 76 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d274988
Fix Progress Dialog Error
neilnguyen2208 Dec 6, 2019
bbb0032
Remake ActionMenu
neilnguyen2208 Dec 6, 2019
dd80e9a
Continue remake UI
neilnguyen2208 Dec 6, 2019
78a5c99
Remake-UI-Features
neilnguyen2208 Dec 6, 2019
bb664af
Update-UI-Features Highlight Note Fragment
neilnguyen2208 Dec 7, 2019
94d63ce
Merge pull request #1 from dongnvsince1999/Remake-UI-Features-1.4
neilnguyen2208 Dec 7, 2019
8f48310
Test library
neilnguyen2208 Dec 7, 2019
23cfa78
Fix bug Highlight and note fragment
neilnguyen2208 Dec 7, 2019
85060fa
Fix bug Note Inflate Fragment
neilnguyen2208 Dec 7, 2019
a159c96
Add delete note feature
neilnguyen2208 Dec 7, 2019
b560453
Merge pull request #3 from dongnvsince1999/add-vietnamese-language
neilnguyen2208 Dec 7, 2019
eeed13c
Add Vietnamese language
neilnguyen2208 Dec 7, 2019
9c735b8
Merge pull request #4 from dongnvsince1999/add-vietnamese-language
neilnguyen2208 Dec 7, 2019
d6888a4
Fix some bug
neilnguyen2208 Dec 7, 2019
b2786f3
Merge branch 'master' into add-vietnamese-language
neilnguyen2208 Dec 7, 2019
c880dea
Update HighlightFragment.java
neilnguyen2208 Dec 7, 2019
c4d0b54
Update
neilnguyen2208 Dec 8, 2019
cdacf76
Fix all bug of Edit note Fragment
neilnguyen2208 Dec 8, 2019
43626b7
Update translate feature
neilnguyen2208 Dec 16, 2019
ffec3ad
Update Vietnamese dictionary feature
neilnguyen2208 Dec 22, 2019
2751ed0
Fix change font
neilnguyen2208 Dec 25, 2019
2fbca0b
Update README.md
neilnguyen2208 Dec 27, 2019
030cb2c
Update README.md
neilnguyen2208 Dec 27, 2019
f3aacf0
Update README.md
neilnguyen2208 Dec 27, 2019
714bbd4
Update README.md
neilnguyen2208 Dec 27, 2019
fbedfef
Update README.md
neilnguyen2208 Dec 27, 2019
7922822
Update README.md
neilnguyen2208 Dec 27, 2019
4502d7e
Update README.md
neilnguyen2208 Dec 27, 2019
594f3c7
Fix bug translate fragment
neilnguyen2208 Dec 27, 2019
a24aeef
Merge branch 'master' of https://github.com/dongnvsince1999/FolioRead…
neilnguyen2208 Dec 27, 2019
39908f1
Fix bug feature Vietnamese Translate
neilnguyen2208 Dec 27, 2019
81c5694
Update README.md
neilnguyen2208 Dec 27, 2019
f5430eb
Update README.md
neilnguyen2208 Dec 27, 2019
8c0328c
Update README.md
neilnguyen2208 Dec 27, 2019
29b110c
Update README.md
neilnguyen2208 Dec 27, 2019
ebca51a
Update README.md
neilnguyen2208 Dec 27, 2019
6c769bc
test
neilnguyen2208 Dec 27, 2019
3558ea6
Merge branch 'master' of https://github.com/dongnvsince1999/FolioRead…
neilnguyen2208 Dec 27, 2019
c542a5a
test
neilnguyen2208 Dec 27, 2019
b61167a
test
neilnguyen2208 Dec 27, 2019
641c7c8
a
neilnguyen2208 Dec 27, 2019
f3187f9
test
neilnguyen2208 Dec 27, 2019
8828568
Update README.md
neilnguyen2208 Dec 27, 2019
7839c9c
Update README.md
neilnguyen2208 Dec 27, 2019
dd1d835
show
neilnguyen2208 Dec 27, 2019
e1714fe
Merge branch 'master' of https://github.com/dongnvsince1999/FolioRead…
neilnguyen2208 Dec 27, 2019
23e1d52
Update README.md
neilnguyen2208 Dec 27, 2019
94f4810
Merge branch 'master' of https://github.com/dongnvsince1999/FolioRead…
neilnguyen2208 Dec 27, 2019
0138c1e
contenthighlight
neilnguyen2208 Dec 27, 2019
2b3747f
Update README.md
neilnguyen2208 Dec 27, 2019
0b14fc1
Create nightmode.png
neilnguyen2208 Dec 27, 2019
3ff108c
Update README.md
neilnguyen2208 Dec 27, 2019
95a2371
Create search.png
neilnguyen2208 Dec 27, 2019
0d89e67
Update README.md
neilnguyen2208 Dec 27, 2019
cf9e47a
Create main.png
neilnguyen2208 Dec 27, 2019
58b1ec0
Merge branch 'master' of https://github.com/dongnvsince1999/FolioRead…
neilnguyen2208 Dec 27, 2019
32d0395
Create iconlogo.png
neilnguyen2208 Dec 27, 2019
d6ec5e0
Update iconlogo.png
neilnguyen2208 Dec 27, 2019
9124823
Update iconlogo.png
neilnguyen2208 Dec 27, 2019
62ac109
rename
neilnguyen2208 Dec 27, 2019
1083f9d
Create addmain.png
neilnguyen2208 Dec 27, 2019
efe7f11
Create highlightmain.png
neilnguyen2208 Dec 27, 2019
95aed56
xẫ
neilnguyen2208 Dec 28, 2019
5432998
Update README.md
neilnguyen2208 Dec 28, 2019
e59dedf
Fix bug English language Dictionary
neilnguyen2208 Dec 28, 2019
728616f
Merge branch 'master' of https://github.com/dongnvsince1999/FolioRead…
neilnguyen2208 Dec 28, 2019
41df605
Update README.md
neilnguyen2208 Dec 28, 2019
8447b33
Update TranslateFragment.java
Boga28 Jan 1, 2020
1021c1e
Added Tr Language
Boga28 Jan 2, 2020
ac519c2
Update README.md
Boga28 Jan 2, 2020
cda58ee
Tr Language
Boga28 Jan 2, 2020
07f4eea
Create posterapp.png
neilnguyen2208 Jan 7, 2020
dc0b673
Merge pull request #5 from Boga28/master
neilnguyen2208 Apr 18, 2020
5a5e0f2
Update README.md
neilnguyen2208 Apr 18, 2020
5b60148
Update README.md
neilnguyen2208 Apr 18, 2020
599a66d
Update README.md
neilnguyen2208 Apr 18, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
171 changes: 71 additions & 100 deletions README.md
@@ -1,44 +1,54 @@
![FolioReader logo](https://raw.githubusercontent.com/FolioReader/FolioReaderKit/assets/folioreader.png)

[![Build Status](https://api.travis-ci.org/FolioReader/FolioReader-Android.svg?branch=master)](https://travis-ci.org/FolioReader/FolioReader-Android)

FolioReader-Android is an EPUB reader written in Java and Kotlin.

### Features

- [x] Custom Fonts
- [x] Custom Text Size
- [x] Themes / Day mode / Night mode
- [x] Text Highlighting
- [x] List / Edit / Delete Highlights
- [x] Handle Internal and External Links
- [x] Portrait / Landscape
- [ ] Reading Time Left / Pages left
- [x] In-App Dictionary
- [ ] Media Overlays (Sync text rendering with audio playback)
- [ ] TTS - Text to Speech Support
- [ ] Parse epub cover image
- [ ] PDF support
- [x] Book Search
- [x] Add Notes to a Highlight
- [ ] Better Documentation
- [x] Last Read Locator
- [x] Horizontal Reading
- [x] Distraction Free Reading

## Demo
##### Custom Fonts
![Custom fonts](https://cloud.githubusercontent.com/assets/1277242/19012915/0661c7b2-87e0-11e6-81d6-8c71051e1074.gif)
##### Day and Night Mode
![Day night mode](https://cloud.githubusercontent.com/assets/1277242/19012914/f42059c4-87df-11e6-97f8-29e61a79e8aa.gif)
##### Text Highlighting
![Highlight](https://cloud.githubusercontent.com/assets/1277242/19012904/c2700c3a-87df-11e6-97ed-507765b3ddf0.gif)
##### Media Overlays
![Media Overlay](https://cloud.githubusercontent.com/assets/1277242/19012908/d61f3ce2-87df-11e6-8652-d72b6a1ad9a3.gif)

### Gradle

Add following dependency to your root project `build.gradle` file:
# Vietnamese version FolioReader 0.5.4 - 11
- Phiên bản nâng cấp tiếng Việt từ thư viện FolioReader-Android 0.5.4
+ FolioReader-Android is an EPUB reader written in Java and Kotlin. See the [FOLIOREADER_PROJECT](https://github.com/FolioReader/FolioReader-Android) .
+ FolioReaderKit is available under the BSD license. See the [LICENSE](https://github.com/FolioReader/FolioReader-Android/blob/master/License.md) file.

[![](https://jitpack.io/v/dongnvsince1999/FolioReader-Android.svg)](https://jitpack.io/#dongnvsince1999/FolioReader-Android)

### Các tính năng của FolioReader 0.5.4 + Demo: [FOLIOREADER_PROJECT](https://github.com/FolioReader/FolioReader-Android) .

### Các tính năng của phiên bản nâng cấp Tiếng Việt:
- Xử lý Internal / External links
- Portrait / Landscape
- Themes / Day mode / Night mode
- Highlight
- Tìm kiếm trong sách.
- Cập nhật ngôn ngữ tiếng Việt.
- Thay đổi toàn bộ giao diện.
- Custom Fonts cho tài liệu Tiếng Việt.
- Custom Textsize
- Thay đổi màu trong List / Edit / Delete Highlights.
- Hỗ trợ dịch từ trực tiếp trong ứng dụng.
- Hỗ trợ từ điển tiếng Việt offline.
- Bỏ tính năng share.
- Last ReadLocator
- Horizontal Reading
- Cập nhật ngôn ngữ Turkey
## Demo:

### Đọc sách:

![alt text](https://raw.githubusercontent.com/dongnvsince1999/FolioReader-Android/master/folioreader/readbook.png)

### Thao tác với từ ngữ trong sách:

![alt text](https://raw.githubusercontent.com/dongnvsince1999/FolioReader-Android/master/folioreader/show.png)

### Quản lý mục lục và ghi chú:

![alt text](https://raw.githubusercontent.com/dongnvsince1999/FolioReader-Android/master/folioreader/contenthighlight.png)

### Thay đổi font, cỡ chữ, chế độ ngày / đêm:

![alt text](https://raw.githubusercontent.com/dongnvsince1999/FolioReader-Android/master/folioreader/nightmode.png)

### Tìm kiếm trong sách:

![alt text](https://raw.githubusercontent.com/dongnvsince1999/FolioReader-Android/master/folioreader/search.png)

## Hướng dẫn các dependence:

Thêm dependency vào root project `build.gradle` file:

```groovy
allprojects {
Expand All @@ -51,30 +61,32 @@ allprojects {
}
```

Add following dependency to your app module `build.gradle` file:
Thêm dependency vào app module `build.gradle` file:

```groovy
dependencies {
...
implementation "com.folioreader:folioreader:0.5.4"
implementation 'com.github.dongnvsince1999:FolioReader-Android:0.5.4-10'
...
}
```

### Enable Multidex support

Enable Multidex support as explained in this [Android Doc](https://developer.android.com/studio/build/multidex)

### Usage
## Hướng dẫn sử dụng:

Get singleton object of `FolioReader`:
Lấy singleton object `FolioReader`:

```java
FolioReader folioReader = FolioReader.get();
```

Call the function `openBook()`:
Gọi hàm `openBook()`:

##### opening from file path:

```java
folioReader.openBook("/sdcard/Download/Book.epub");
```
##### opening book from assets -

```java
Expand All @@ -86,58 +98,17 @@ folioReader.openBook("file:///android_asset/TheSilverChair.epub");
folioReader.openBook(R.raw.accessible_epub_3);
```

## Đây là bản mở rộng của Folio Reader, mọi thông tin về Folio Reader có thể tham khảo tại: [FOLIOREADER_PROJECT](https://github.com/FolioReader/FolioReader-Android)

## WIKI

* [Home](https://github.com/FolioReader/FolioReader-Android/wiki)
* [Configuration](https://github.com/FolioReader/FolioReader-Android/wiki/Configuration)
* [Custom Configuration](https://github.com/FolioReader/FolioReader-Android/wiki/Custom-Configuration)
* [Highlight](https://github.com/FolioReader/FolioReader-Android/wiki/Highlight)
* [Highlight Action](https://github.com/FolioReader/FolioReader-Android/wiki/Highlight-Action)
* [Highlight Event](https://github.com/FolioReader/FolioReader-Android/wiki/Highlight-Event)
* [Providing External Highlight](https://github.com/FolioReader/FolioReader-Android/wiki/Providing-External-Highlight)
* [ReadLocator](https://github.com/FolioReader/FolioReader-Android/wiki/ReadLocator)
* [Clean up code](https://github.com/FolioReader/FolioReader-Android/wiki/Clean-up-code)

## Reporting Issue

See [KNOWN_ISSUES](https://github.com/FolioReader/FolioReader-Android/blob/master/KNOWN_ISSUES.md) and [CHANGELOG](https://github.com/FolioReader/FolioReader-Android/blob/master/CHANGELOG.md) first before reporting any issue. <br />
Please follow [Issue Template](https://github.com/FolioReader/FolioReader-Android/blob/master/.github/ISSUE_TEMPLATE.md) to report any issue.

## Share your application
If you are using FolioReader in your application, share your application link in [this issue](https://github.com/FolioReader/FolioReader-Android/issues/291)

### Credits
1. <a href="https://github.com/daimajia/AndroidSwipeLayout">SwipeLayout</a>
2. <a href="https://github.com/readium/r2-streamer-kotlin">r2-streamer-kotlin</a>
3. <a href="http://developer.pearson.com/apis/dictionaries">Pearson Dictionaries</a>
4. <a href="https://github.com/timdown/rangy">rangy</a>

### Author
### Tác giả của FolioReader-Android:
[**Heberti Almeida**](https://github.com/hebertialmeida)

- Follow me on **Twitter**: [**@hebertialmeida**](https://twitter.com/hebertialmeida)
- Contact me on **LinkedIn**: [**hebertialmeida**](http://linkedin.com/in/hebertialmeida)

[**CodeToArt Technology**](https://github.com/codetoart)

- Follow us on **Twitter**: [**@codetoart**](https://twitter.com/codetoart)
- Contact us on **Website**: [**codetoart**](http://www.codetoart.com)

## Donations

**This project needs you!** If you would like to support this project's further development, the creator of this project or the continuous maintenance of this project, **feel free to donate**. Your donation is highly appreciated. Thank you!

**PayPal**

- [**Donate 5 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hebertialmeida%40gmail%2ecom&lc=US&item_name=FolioReader%20Libraries&amount=5%2e00&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted): Thank's for creating this project, here's a tea (or some juice) for you!
- [**Donate 10 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hebertialmeida%40gmail%2ecom&lc=US&item_name=FolioReader%20Libraries&amount=10%2e00&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted): Wow, I am stunned. Let me take you to the movies!
- [**Donate 15 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hebertialmeida%40gmail%2ecom&lc=US&item_name=FolioReader%20Libraries&amount=15%2e00&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted): I really appreciate your work, let's grab some lunch!
- [**Donate 25 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hebertialmeida%40gmail%2ecom&lc=US&item_name=FolioReader%20Libraries&amount=25%2e00&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted): That's some awesome stuff you did right there, dinner is on me!
- [**Donate 50 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hebertialmeida%40gmail%2ecom&lc=US&item_name=FolioReader%20Libraries&amount=50%2e00&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted): I really really want to support this project, great job!
- [**Donate 100 $**](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hebertialmeida%40gmail%2ecom&lc=US&item_name=FolioReader%20Libraries&amount=100%2e00&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted): You are the man! This project saved me hours (if not days) of struggle and hard work, simply awesome!
- Of course, you can also [**choose what you want to donate**](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=hebertialmeida%40gmail%2ecom&lc=US&item_name=FolioReader%20Libraries&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted), all donations are awesome!

## License
FolioReaderKit is available under the BSD license. See the [LICENSE](https://github.com/FolioReader/FolioReader-Android/blob/master/License.md) file.
- **Twitter**: [**@hebertialmeida**](https://twitter.com/hebertialmeida)
- **LinkedIn**: [**hebertialmeida**](http://linkedin.com/in/hebertialmeida)

## Các tham khảo khác:
- FOLIOREADER WIKI
- [**EPUB CFI**](http://idpf.org/epub/linking/cfi/epub-cfi.html)
- [**Rangy**](https://github.com/timdown/rangy)
- API của Dịch từ của Google: translate.googleapis.com
- Data từ điển được lấy và convert từ [**UNDERTHESEAPROJECT**](https://github.com/undertheseanlp/underthesea)(Github)
1 change: 1 addition & 0 deletions folioreader/AndroidManifest.xml
Expand Up @@ -3,6 +3,7 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.folioreader">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />

Expand Down
Binary file added folioreader/addmain.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added folioreader/audioconfig.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added folioreader/audiomain.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 7 additions & 1 deletion folioreader/build.gradle
Expand Up @@ -83,8 +83,12 @@ dependencies {
implementation "androidx.appcompat:appcompat:$versions.appcompat"
implementation "androidx.constraintlayout:constraintlayout:$versions.constraintLayout"
implementation "androidx.recyclerview:recyclerview:$versions.recyclerview"
implementation "com.google.android.material:material:$versions.material"
implementation 'com.android.support:design:28.0.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'



implementation 'org.slf4j:slf4j-android:1.7.25'
implementation 'com.daimajia.swipelayout:library:1.2.0@aar'
Expand All @@ -103,6 +107,8 @@ dependencies {
implementation "com.squareup.retrofit2:retrofit:$versions.retrofit"
implementation "com.squareup.retrofit2:converter-jackson:$versions.retrofit"
implementation "com.squareup.retrofit2:converter-gson:$versions.retrofit"
implementation 'com.squareup.okhttp3:okhttp:3.12.0'
implementation 'com.squareup.moshi:moshi:1.2.0'

// R2 modules
api("com.github.codetoart:r2-shared-kotlin:$versions.r2SharedKotlin") {
Expand Down
Binary file added folioreader/contenthighlight.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added folioreader/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions folioreader/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
#Thu Jan 02 07:55:25 EET 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip