An open API service indexing awesome lists of open source software.

https://github.com/ryouze/aegyo

Cross-platform GUI app for learning Korean Hangul.
https://github.com/ryouze/aegyo

cmake cmake-fetchcontent cpp cross-platform gui korean korean-language korean-letters learning sfml

Last synced: 2 months ago
JSON representation

Cross-platform GUI app for learning Korean Hangul.

Awesome Lists containing this project

README

        

# aegyo

[![CI](https://github.com/ryouze/aegyo/actions/workflows/ci.yml/badge.svg)](https://github.com/ryouze/aegyo/actions/workflows/ci.yml)
[![Release](https://github.com/ryouze/aegyo/actions/workflows/release.yml/badge.svg)](https://github.com/ryouze/aegyo/actions/workflows/release.yml)
![Release version](https://img.shields.io/github/v/release/ryouze/aegyo)

aegyo is a cross-platform GUI app for learning Korean Hangul.

![Screenshot](assets/screenshot.jpeg)

## Motivation

When I was learning Japanese kana, I liked the idea of drilling the characters into my memory through pure brute-force repetition. I found an iOS app called [Kana School](https://apps.apple.com/us/app/kana-school-japanese-letters/id1214626499) that did exactly that. Unfortunately, no similar app existed for Korean Hangul, so I decided to create one myself.

## Features

- Written in modern C++ (C++17).
- Verified for accuracy by a Korean language teacher.
- Comprehensive documentation with doxygen-style comments.
- Automatic third-party dependency management using CMake's [FetchContent](https://www.foonathan.net/2022/06/cmake-fetchcontent/).
- No missing STL headers thanks to [header-warden](https://github.com/ryouze/header-warden).

### To-Do

- [x] Upgrade to SFML v3.0.
- [ ] Wait for v3.0.x release for potential bug fixes.
- [x] Research why normal exit on macOS causes `libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument`.
- ~~[ ] Possibly open an issue on SFML's GitHub.~~
- [x] Refactor font loading code to make it less ugly.
- [x] Move the ugly category code from `app.cpp` to `ui`.
- [ ] Create a hint button in the middle of the answer buttons that displays hint on click or on space press.
- [ ] Find out how to properly package macOS binaries instead of copying icons and resources via `add_custom_command`.
- [ ] Add version information to Windows binary.

## Tested Systems

This project has been tested on the following systems:

- macOS 15.2 (Sequoia)
- Manjaro 24.0 (Wynsdey)
- Windows 11 23H2

Automated testing is also performed on the latest versions of macOS, GNU/Linux, and Windows using GitHub Actions.

## Pre-built Binaries

Pre-built binaries are available for macOS (ARM64), GNU/Linux (x86_64), and Windows (x86_64). You can download the latest version from the [Releases](../../releases) page.

To remove macOS quarantine, use the following commands:

```sh
xattr -d com.apple.quarantine aegyo-macos-arm64.app
chmod +x aegyo-macos-arm64.app
```

On Windows, the OS might complain about the binary being unsigned. You can bypass this by clicking on "More info" and then "Run anyway".

## Requirements

To build and run this project, you'll need:

- C++17 or higher
- CMake

## Build

Follow these steps to build the project:

1. **Clone the repository**:

```sh
git clone https://github.com/ryouze/aegyo.git
```

2. **Generate the build system**:

```sh
cd aegyo
mkdir build && cd build
cmake ..
```

Optionally, you can disable compile warnings by setting `ENABLE_COMPILE_FLAGS` to `OFF`:

```sh
cmake .. -DENABLE_COMPILE_FLAGS=OFF
```

3. **Compile the project**:

To compile the project, use the following command:

```sh
cmake --build . --parallel
```

After successful compilation, you can run the program using `./aegyo` (`open aegyo.app` on macOS). However, it is highly recommended to install the program, so that it can be run from any directory. Refer to the [Install](#install) section below.

> [!TIP]
> The mode is set to `Release` by default. To build in `Debug` mode, use `cmake .. -DCMAKE_BUILD_TYPE=Debug`.

## Install

If not already built, follow the steps in the [Build](#build) section and ensure that you are in the `build` directory.

To install the program, use the following command:

```sh
sudo cmake --install .
```

On macOS, this will install the program to `/Applications`. You can then run `aegyo.app` from the Launchpad, Spotlight, or by double-clicking the app in Finder.

## Usage

To start the program, simply run the `aegyo` executable (`aegyo.app` on macOS, `open /Applications/aegyo.app` to run from the terminal).

### Controls

You can select the correct answer by clicking on it or by pressing the corresponding number key on your keyboard (1, 2, 3, 4).

The buttons in the top right corner toggle the vocabulary category:

- `Vow` for Basic Vowels
- `Con` for Basic Consonants
- `DCon` for Double Consonants
- `CompV` for Compound Vowels

All categories are enabled by default. You can disable a category by clicking on the corresponding button.

> [!TIP]
> If you're a beginner, start with the `Vow` categories and gradually enable the other categories as you continue to learn.

## Testing

Tests are included in the project but are not built by default.

To enable and build the tests manually, run the following commands from the `build` directory:

```sh
cmake .. -DBUILD_TESTS=ON
cmake --build . --parallel
ctest --output-on-failure
```

## Credits

- [fmt](https://github.com/fmtlib/fmt)
- [Language](https://macosicons.com/#/u/Bonjour)
- [Let's Learn Hangul!](http://letslearnhangul.com/)
- [Nanum Gothic](https://fonts.google.com/specimen/Nanum+Gothic)
- [Simple and Fast Multimedia Library 3](https://github.com/sfml/sfml)

## Contributing

All contributions are welcome.

## License

This project is licensed under the MIT License.