项目作者: mathewthe2

项目描述 :
Complete toolbox for gamifying language learning
高级语言: Python
项目地址: git://github.com/mathewthe2/Game2Text.git
创建时间: 2021-01-12T06:47:56Z
项目社区:https://github.com/mathewthe2/Game2Text

开源协议:Apache License 2.0

下载


Game2Text

image

Game2Text is an all-in-one application that helps you learn languages from the games you play.

Platforms

  • Windows 10
  • Mac OSX Mojave, Catalina

Text Extraction Modes

  • Classic OCR with Tesseract, Tesseract Legacy, or OCR Space.
  • OCR-assisted game script matching. You can find game scripts in this repository.
  • Text hooking for Visual Novels
  • Clipboard to Game2Text

Features

  • Dictionary lookup with browser dictionaries like Yomichan and Rikaichan
  • Translation tools including DeepL, Papago, and Google Translate.
  • Create game flashcards with screenshot and game audio via Anki and AnkiConnect

Download

Download Game2Text

User Guide

Read User Guide

FAQ

Read FAQ

Development

Create a venv and activate it.

  1. virtualenv venv --python=python3.7.4
  2. source venv/bin/activate

Install requirements:

  1. pip install -r requirements.txt
  2. python game2text.py

Extra Packages for Windows Development

Install C++ Build Tools

Extra Packages for Linux Development

Install Tesseract by following the installation instructions here.

Run tests

  1. python -m unittest

Distribution

Unzip resources/sudachidict_small.zip into the same directory.

Windows:

  1. Mac:
  2. ```sh build.sh

Temporary fix for all read/write operations using os.path on Mac builds with pyinstaller: create a wrapper file that runs the Game2Text executable inside the package

Acknowledgement

Tools

Tool Description Version
Python Eel Electron-like Library for Python 0.14.0
Tesseract OCR Tool 4.1.1
AnkiConnect Anki Remote API Extension /
SudachiPy Japanese Morphological Analyzer 0.5.2
Textractor Texthooker 4.16.1
FFmpeg Audio Converter 4.4

Resources

Jun Mako (Game Scripts)

Unboxious (Game Scripts)