https://github.com/flaribbit/yumeiroyuram_translation
Text translation of yumeiroyuram.
https://github.com/flaribbit/yumeiroyuram_translation
Last synced: 3 months ago
JSON representation
Text translation of yumeiroyuram.
- Host: GitHub
- URL: https://github.com/flaribbit/yumeiroyuram_translation
- Owner: flaribbit
- Created: 2023-11-24T03:30:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-28T11:34:25.000Z (over 1 year ago)
- Last Synced: 2025-01-27T12:49:32.028Z (5 months ago)
- Language: Python
- Size: 73.2 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Translation
## Usage
Split `file.txt` into `1.txt` and `2.txt`
```bash
python tool.py split file.txt
```Merge `1.txt` and `2.txt` into `file.txt`
```bash
python tool.py merge file.txt
```Read `file.txt`, check if all characters are in `font.otf`, then generate a `missing.otf` with missing characters from `fallback.otf`.
```bash
python tool.py subset file.txt font.otf fallback.otf
```Then you can merge `font.otf` and `missing.otf` to ensure all characters can be displayed. Sadly, `fonttools` currently doesn't work well with some `CFF` features, so you need to merge them manually.
Translate strings in `binary.bin` accoring to `file.txt` and save to `translated.bin`
```bash
python tool.py translate file.txt binary.bin translated.bin
```