Skip to content

auramagi/furigana-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Japanese text transliteration

Overview

This is a sample iOS app for converting Japanese text with kanji to hiragana, katakana, or Latin alphabet.

Sample app in action

Functionality

There are 3 options for converting text.

A JSON API to convert Japanese text with kanji to either hiragana or katakana.

An XML API to put ruby (furigana) over Japanese text with kanji. In this app it is used to convert text to either hiragana or Latin alphabet.

3. Core Foundation

CFStringTokenizer can be used to generate Latin transcription of Japanese text on device without using network. From that, a String transformation can be applied to get hiragana or katakana transliterations.

Configuration

To use network APIs you must first register a developer account with Goo and Yahoo! Japan (both are in Japanese only) and obtain App IDs for each.

Then fill them in furigana-converter/secrets.xcconfig. Don't use quotation marks, e.g.:

GOO_APP_ID = 12345abcd
YAHOO_APP_ID = 12345abcd

Next steps

This sample app can be improved in several ways.

  1. Implement tests.

  2. Introduce 3rd party frameworks to reduce complexity.

Stuff like Moya or/and Alamofire for network abstraction, RxSwift for better state handling.

  1. Add new functionality.
  • Copying the result to clipboard.
  • Take full advantage of Yahoo API and surface different options to user, or show results as actual furigana.
  • Put UI into table view and implement showing and managing history of requests.

About

Sample iOS app for Japanese text transliteration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages