Skip to content

Commit ff79991

Browse files
committed
chore: Publish version 0.0.2
1 parent 196ea3d commit ff79991

7 files changed

Lines changed: 18 additions & 6648 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ doc/api/
2020
*.info.json
2121
# When generated by dart2js. Don't specify *.js if your
2222
# project includes source files written in JavaScript.
23+
*.js
2324
*.js_
2425
*.js.deps
2526
*.js.map

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [next]
1+
## 0.0.2
22

33
- Japanese Kanji support added using [`kuromoji`](https://pub.dev/packages/kuromoji).
44
- Hebrew romanization support added based on ISO 259 / DIN 31636.

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ A powerful Dart package for seamlessly converting multilingual text into its Rom
22

33
## Features
44

5-
- 🌏 **Multi-language support**: Korean, Japanese, Chinese, Cyrillic, and Arabic
5+
- 🌏 **Multi-language support**: Korean, Japanese, Chinese, Cyrillic, Hebrew and Arabic
66
- 🔍 **Auto-detection**: Automatically detects the languages present in the input text
77
- 🛠️ **Flexible & extensible**: Easily create your own custom romanizer for any language or writing system
88
- 📦 **Lightweight**: Minimal dependencies, fast performance
@@ -194,13 +194,14 @@ dart run benchmark_harness:bench --flavor aot --target=benchmark/romanize_benchm
194194
The results will be logged to the console.
195195

196196
```
197-
KoreanRomanize(RunTime): 35.53725970192239 us.
198-
JapaneseRomanize(RunTime): 281.2901698691172 us.
199-
ChineseRomanize(RunTime): 1736.711451758341 us.
200-
CyrillicRomanize(RunTime): 59.59739989290177 us.
201-
ArabicRomanize(RunTime): 52.565961208465495 us.
202-
MultiLanguageRomanize(RunTime): 184.99707850343984 us.
203-
LanguageDetection(RunTime): 28.325652046087722 us.
204-
DirectRomanizer(RunTime): 10321.13 us.
205-
LongTextRomanize(RunTime): 16493.885245901638 us.
197+
KoreanRomanize(RunTime): 141.92337494619028 us.
198+
JapaneseRomanize(RunTime): 15999.04132231405 us.
199+
ChineseRomanize(RunTime): 5923.219780219781 us.
200+
CyrillicRomanize(RunTime): 339.5049698260561 us.
201+
ArabicRomanize(RunTime): 219.66374012291485 us.
202+
HebrewRomanize(RunTime): 541.422 us.
203+
MultiLanguageRomanize(RunTime): 770.36225 us.
204+
LanguageDetection(RunTime): 46.14784148669472 us.
205+
DirectRomanizer(RunTime): 15284.26119402985 us.
206+
LongTextRomanize(RunTime): 30877.984848484848 us.
206207
```

example/lib/pages/home.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'package:example/main.client.dart';
22
import 'package:jaspr/dom.dart';
33
import 'package:jaspr/jaspr.dart';
4+
import 'package:romanize/romanize.dart';
45
import 'package:web/web.dart' as web;
56

67
class Home extends StatefulComponent {
@@ -12,7 +13,7 @@ class Home extends StatefulComponent {
1213

1314
class _HomeState extends State<Home> {
1415
String _text = '안녕하세요, 만나서 반갑습니다.';
15-
late String _romanized = _text;
16+
late String _romanized = TextRomanizer.romanize(_text);
1617

1718
void _syncScroll(web.Event event, String otherId) {
1819
final source = event.target as web.HTMLTextAreaElement;

example/pubspec.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,5 @@ dev_dependencies:
2121
lints: ^5.0.0
2222
isolate_manager_generator: ^0.3.0
2323

24-
dependency_overrides:
25-
kuromoji:
26-
git:
27-
url: https://github.com/bdlukaa/kuromoji
28-
ref: web-support
29-
3024
jaspr:
3125
mode: client

0 commit comments

Comments
 (0)