any_ascii 1.0.0+1 copy "any_ascii: ^1.0.0+1" to clipboard
any_ascii: ^1.0.0+1 copied to clipboard

Unicode to ASCII transliteration for Dart, ported from the anyascii project.

example/main.dart

// ignore_for_file: avoid_print

import 'package:any_ascii/any_ascii.dart';

void main() {
  print(anyAscii('άνθρωποι')); // anthropoi
  print(anyAscii('Борис')); // Boris
  print(anyAscii('深圳')); // ShenZhen
  print(anyAscii('Blöße')); // Blosse
  print(anyAscii('Trần Hưng Đạo')); // Tran Hung Dao
  print(anyAscii('👑 🌴')); // :crown: :palm_tree:
  print(anyAscii('さいたま')); // saitama
  print(anyAscii('دمنهور')); // dmnhwr
  print(anyAscii('Αθήνα')); // Athina
  print(anyAscii('에 가 힣 널')); // E Ga Hih Neol

  print(anyAsciiChar('æ')); // ae
  print(anyAsciiChar('ß')); // ss
  print(anyAsciiChar('深')); // Shen
  print(anyAsciiChar('👑')); // :crown:
  print(anyAsciiChar('ж')); // zh
  print(anyAsciiChar('λ')); // l
  print(anyAscii('Ελλάδα')); // Ellada
}
0
likes
160
points
--
downloads

Documentation

API reference

Publisher

verified publisherganeshrvel.com

Weekly Downloads

Unicode to ASCII transliteration for Dart, ported from the anyascii project.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on any_ascii