https://github.com/peterdavehello/docker-opencc
🐳 Dockerized OpenCC - An awesome tool to convert Traditional and Simplified Chinese ⚙️
https://github.com/peterdavehello/docker-opencc
chinese chinese-translation convert converter docker hacktoberfest opencc simplified-chinese traditional-chinese
Last synced: 3 months ago
JSON representation
🐳 Dockerized OpenCC - An awesome tool to convert Traditional and Simplified Chinese ⚙️
- Host: GitHub
- URL: https://github.com/peterdavehello/docker-opencc
- Owner: PeterDaveHello
- Created: 2019-11-18T07:29:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-16T18:02:58.000Z (6 months ago)
- Last Synced: 2025-03-17T00:07:51.254Z (3 months ago)
- Topics: chinese, chinese-translation, convert, converter, docker, hacktoberfest, opencc, simplified-chinese, traditional-chinese
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/peterdavehello/opencc
- Size: 16.6 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerized OpenCC
[](https://github.com/PeterDaveHello/docker-opencc)
[](https://github.com/PeterDaveHello/docker-opencc/actions/workflows/docker-build-test.yml)
[](https://hub.docker.com/r/peterdavehello/opencc/)[](https://hub.docker.com/r/peterdavehello/opencc/)
## About OpenCC
A project for conversion between Traditional and Simplified Chinese
- https://github.com/BYVoid/OpenCC
Please note that this Docker image repository is not part of the OpenCC project.
## Usage
Available OpenCC commands are:
- opencc
- opencc_dict
- opencc_phrase_extractFor OpenCC usage, take a look at [its own README.md](https://github.com/BYVoid/OpenCC#usage-%E4%BD%BF%E7%94%A8) and run each command with its `-h` or `--help` parameter to get help message, e.g.
```sh
$ docker run --rm -it peterdavehello/opencc opencc -hOpen Chinese Convert (OpenCC) Command Line Tool
Author: Carbo Kuo
Bug Report: http://github.com/BYVoid/OpenCC/issuesUsage:
opencc [--noflush ] [-i ] [-o ] [-c ] [--]
[--version] [-h]Options:
--noflush
Disable flush for every line-i , --input
Read original text from .-o , --output
Write converted text to .-c , --config
Configuration file--, --ignore_rest
Ignores the rest of the labeled arguments following this flag.--version
Displays version information and exits.-h, --help
Displays usage information and exits.Open Chinese Convert (OpenCC) Command Line Tool
```You'll need to mount your working directory into the container so that OpenCC can manipulate the file(s) in, for example:
```sh
docker run --rm -it -v ${PWD}:/text -w /text peterdavehello/opencc opencc -c s2tw -i SimplifiedChinese.srt -o TraditionalChinese.srt
```