-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcc2py_cli.yaml
More file actions
55 lines (46 loc) · 1.47 KB
/
cc2py_cli.yaml
File metadata and controls
55 lines (46 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# program name, name for the executable
ProgramName: cc2py
Authors: Tong Sun
PackageName: main
Name: cc2py
Desc: Chinese-Character to Pinyin converter
Text: Converter Chinese to pinyin in different ways
Verbose: true
Version: true
Options:
- Name: Filei
Type: string
Flag: "i,in"
Usage: 'the Chinese text file to read from (or \"-\" for stdin)'
- Name: Tone
Type: int
Flag: 't,tone'
EnvV: true
Usage: 'tone selection\n\t\t\t 0: normal. mnemonic~ nothing\n\t\t\t 1: tone at the end. mnemonic~ single sided\n\t\t\t 2: tone after yunmu. mnemonic~ double sided\n\t\t\t 3: tone on yunmu. mnemonic~ fancy'
- Name: Truncate
Type: int
Flag: 'l,truncate'
EnvV: true
Usage: 'select only part of the pinyin\n\t\t\t 0: normal. mnemonic~ nothing truncated\n\t\t\t 1: leave first char. mnemonic~ one\n\t\t\t 2: leave first shengmu. mnemonic~ might be two\n\t\t\t 9: leave only yunmu. mnemonic~ last'
- Name: Separator
Type: string
Flag: s,separator
EnvV: true
Usage: separator string between each pinyin
Value: " "
- Name: Polyphone
Type: bool
Flag: p,polyphone
EnvV: true
Usage: polyphone support, output each polyphone pinyin available
- Name: Capital
Type: bool
Flag: c,capitalized
EnvV: true
Usage: capitalized each pinyin word
- Name: Args
Args: |-
// positional arguments
// Args struct {
// CCStrs []string
// } `positional-args:"yes" required:"yes"`