GitXplorerGitXplorer
P

docker-opencc

public
7 stars
0 forks
1 issues

Commits

List of commits on branch master.
Verified
0bcd2b310089785e7d33f4df1bba2ec85dcff3b9

Merge pull request #10 from PeterDaveHello/migrate-ci-pipeline

PPeterDaveHello committed a month ago
Verified
483045d119f7a6c232e6b5d71847461edcfe54cb

Merge pull request #9 from PeterDaveHello/renovate/alpine-3.x

PPeterDaveHello committed a month ago
Verified
65e74825f169d74b5c70a74b18b54777892eb7a8

Update alpine Docker tag to v3.21

rrenovate[bot] committed a month ago
Unverified
30fa98ae8c0210040cf5acc9c7c60a330e423d40

Migrate CI pipeline from Travis CI to GitHub Actions

PPeterDaveHello committed a month ago
Unverified
f3b920f0a858d6173fb6d458d72374a77da214bc

Use stable opencc package from Alpine Linux repository

PPeterDaveHello committed a month ago
Verified
a31edcb30cdab9305aa95ee4e1ac93a58ef9f41b

Merge pull request #8 from PeterDaveHello/renovate/alpine-3.x

PPeterDaveHello committed 8 months ago

README

The README file for this repository.

Dockerized OpenCC

PRs Welcome Build Status Docker Hub pulls

Docker Hub badge

About OpenCC

A project for conversion between Traditional and Simplified Chinese

Please note that this Docker image repository is not part of the OpenCC project.

Usage

Available OpenCC commands are:

  • opencc
  • opencc_dict
  • opencc_phrase_extract

For OpenCC usage, take a look at its own README.md and run each command with its -h or --help parameter to get help message, e.g.

$ docker run --rm -it peterdavehello/opencc opencc -h

Open Chinese Convert (OpenCC) Command Line Tool
Author: Carbo Kuo <byvoid@byvoid.com>
Bug Report: http://github.com/BYVoid/OpenCC/issues

Usage:

   opencc  [--noflush <bool>] [-i <file>] [-o <file>] [-c <file>] [--]
           [--version] [-h]

Options:

   --noflush <bool>
     Disable flush for every line

   -i <file>,  --input <file>
     Read original text from <file>.

   -o <file>,  --output <file>
     Write converted text to <file>.

   -c <file>,  --config <file>
     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:

docker run --rm -it -v ${PWD}:/text -w /text peterdavehello/opencc opencc -c s2tw -i SimplifiedChinese.srt -o TraditionalChinese.srt