FLUTTER ECOSYSTEM

krille-chan/fun-with-kanji

일본어 문자 체계인 히라가나, 카타카나, 한자 학습을 위한 간단한 플러터 앱.

한자와 함께 놀기 프로젝트 이미지
Stars
45
Forks
15
최근 푸시(UTC)
2024. 8. 2.
프로젝트 상태
활성
Krille-chan GitHub avatar
GITHUB User

Krille-chan ↗

Coffee-to-code-converter

@famedlyGermany, NRW공식 웹사이트 ↗
언어DartC++CMakeHTMLRubyCSwiftKotlinObjective-C

기술 주제

관련 패키지 및 예제

사용 중인 의존성

의존성 목록 22 개

앱 카테고리

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

Fun With Kanji

Simple Flutter app to learn Japanese writing systems Hiragana, Katakana and Kanji.

With Fun With Kanji you are able to learn all common used Japanese characters. All starts with Hiragana, Katakana and their special cases and combinations. After this you learn the Kanji Radicals and then you are ready to start with the 2136 Jōyō-Kanji. You no longer need 4 different apps to learn them!

The app also contains a dictionary and a full-text search over all characters.

Fun With Kanji is open source under Mozilla Public License 2.0. Contributions and new translations are always welcome <3.

Screenshots:

https://raw.githubusercontent.com/krille-chan/fun-with-kanji/HEAD/assets/screenshots/Simulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20-%202022-05-20%20at%2010.39.58.png https://raw.githubusercontent.com/krille-chan/fun-with-kanji/HEAD/assets/screenshots/Simulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20-%202022-05-20%20at%2010.40.09.png https://raw.githubusercontent.com/krille-chan/fun-with-kanji/HEAD/assets/screenshots/Simulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20-%202022-05-20%20at%2010.39.35.png https://raw.githubusercontent.com/krille-chan/fun-with-kanji/HEAD/assets/screenshots/Simulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20-%202022-05-20%20at%2010.40.18.png https://raw.githubusercontent.com/krille-chan/fun-with-kanji/HEAD/assets/screenshots/Simulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20-%202022-05-20%20at%2010.39.19.png https://raw.githubusercontent.com/krille-chan/fun-with-kanji/HEAD/assets/screenshots/Simulator%20Screen%20Shot%20-%20iPhone%2013%20Pro%20-%202022-05-20%20at%2010.40.04.png

Install:

Get it on F-Droid Get it on Google Play

Build:

Install Flutter and run with:

flutter run

Translate Kanji into more languages:

Import translator package and run this script:

import 'dart:io';

import 'package:translator/translator.dart';

void main() async {
  const language = 'de';
  for (var i = 1; i <= 8; i++) {
    print('Load Kanji Level $i');
    final radicalsFile = File('assets/data/kanji_level_$i.json');
    final radicals = jsonDecode(radicalsFile.readAsStringSync()) as List;

    final translator = GoogleTranslator();
    for (final radical in radicals) {
      final input = radical['meanings'].join(', ');
      print('Translate: ${radical['kanji']} (ID: ${radical['id']}) $input ...');
      try {
        final translated =
            await translator.translate(input, from: 'en', to: language);
        radical['meanings'] = translated.text.split(', ');
      } catch (e, s) {
        print('Translation failed! Stop here!');
        print(e);
        print(s);
        break;
      }
    }

    print('Write to output file...');
    final outputFile = File('assets/data/kanji_level_${i}_${language}.json');
    await outputFile.writeAsString(jsonEncode(radicals));
    print('Finished!');
  }
}