Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update package * Complete update packaga
- Loading branch information
Showing
10 changed files
with
73 additions
and
81 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
### Version 0.2.0 (22-04-2019) | ||
- Rename package **vn_unsign** to **tiengviet** | ||
|
||
### Version 0.1.0 (21-04-2019) | ||
- First version of the **vn_unsign** package |
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# vn_unsign | ||
# vn | ||
|
||
Convert vietnamese sign to unsign easily. | ||
|
||
[![Build Status](https://travis-ci.org/tvc12/vn-unsign.svg?branch=master)](https://travis-ci.org/tvc12/vn-unsign) | ||
![](https://img.shields.io/github/contributors/tvc12/vn-unsign.svg) | ||
![](https://img.shields.io/badge/pub-v0.1.0-brightgreen.svg) | ||
![GitHub](https://img.shields.io/github/license/tvc12/vn-unsign.svg) | ||
[![Build Status](https://travis-ci.com/tvc12/tiengviet.svg?branch=master)](https://travis-ci.com/tvc12/tiengviet) | ||
![](https://img.shields.io/github/contributors/tvc12/tiengviet.svg) | ||
![GitHub](https://img.shields.io/github/license/tvc12/tiengviet.svg) | ||
![GitHub](https://img.shields.io/github/license/tvc12/tiengviet.svg) | ||
|
||
Loại bỏ dấu tiếng việt một cách dễ dàng với vn_unsign | ||
🇻🇳 Công cụ chuyển đổi Tiếng Việt có dấu sang không dấu. | ||
|
||
### Getting Started | ||
|
||
```dart | ||
import 'package:vn_unsign/vn_unsign.dart'; | ||
import 'package:tiengviet/tiengviet.dart'; | ||
print(vn('Xin chào việt nam')); // xin chao viet nam | ||
print(tiengviet('Xin chào việt nam')); // xin chao viet nam | ||
``` | ||
|
||
### Contributors | ||
|
||
| [![Vi Chi Thien](https://github.com/tvc12.png?size=150)](https://github.com/tvc12) | | ||
| [![Vi Chi Thien](https://github.com/tvc12.png?size=100)](https://github.com/tvc12) | | ||
| :---: | | ||
| [Vi Chi Thien](https://github.com/tvc12) | |
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,6 @@ | ||
import 'package:tiengviet/tiengviet.dart'; | ||
|
||
main() { | ||
var str = tiengviet("Hello Việt Nam"); | ||
print(str); // Hello Viet Nam | ||
} |
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
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,4 @@ | ||
library tiengviet; | ||
import 'tiengviet.core.dart'; | ||
|
||
String tiengviet(String text) => TiengvietCore().Unsign(text); |
This file was deleted.
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
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 @@ | ||
import "package:test/test.dart"; | ||
import 'package:tiengviet/tiengviet.dart'; | ||
|
||
void main() { | ||
group("String", () { | ||
test("Test API none vietnamese", () { | ||
expect(tiengviet("Tests can be grouped "), equals("Tests can be grouped ")); | ||
expect( | ||
tiengviet( | ||
"Each group's description is added to the beginning of its test's descriptions"), | ||
equals("Each group's description is added to the beginning of its test's descriptions")); | ||
}); | ||
test("Test API vietnamese unsign", () { | ||
expect(tiengviet("viet nam"), equals("viet nam")); | ||
expect(tiengviet("Vi Chi Thien"), equals("Vi Chi Thien")); | ||
}); | ||
test("Test API vietnamese sign", () { | ||
expect(tiengviet("Văn học theo cách nói chung nhất, là bất kỳ tác phẩm nào bằng văn bản"), | ||
equals("Van hoc theo cach noi chung nhat, la bat ky tac pham nao bang van ban")); | ||
expect(tiengviet("Bạn đang có ý tưởng về 1 công cụ nào đó"), | ||
equals("Ban dang co y tuong ve 1 cong cu nao do")); | ||
}); | ||
}); | ||
group("String and int", () { | ||
test("Test API none vietnamese", () { | ||
expect(tiengviet("360–400 million (2006);"), equals("360–400 million (2006);")); | ||
expect(tiengviet("B2 upper intermediate: An interview"), | ||
equals("B2 upper intermediate: An interview")); | ||
}); | ||
test("Test API vietnamese unsign", () { | ||
expect(tiengviet("Cuoi the ky thu 19 tro di"), equals("Cuoi the ky thu 19 tro di")); | ||
expect(tiengviet("Tap 1, Van hoc the ky thu 10 - 15"), | ||
equals("Tap 1, Van hoc the ky thu 10 - 15")); | ||
}); | ||
test("Test API vietnamese sign", () { | ||
expect(tiengviet("Sau hơn 10 thế kỷ hình thành và phát triển"), | ||
equals("Sau hon 10 the ky hinh thanh va phat trien")); | ||
expect(tiengviet("Đây là tiếng mẹ đẻ của khoảng 85% dân cư Việt Nam"), | ||
equals("Day la tieng me de cua khoang 85% dan cu Viet Nam")); | ||
}); | ||
}); | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.