---
name: "txt2gtab-phrase"
section: "1"
platform: "linux"
package: "gcin"
version: "2.8.8+dfsg1-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/txt2gtab-phrase"
---

# txt2gtab-phrase(1)

gcin's phrase builder for table-based input methods

## NAME

txt2gtab-phrase - gcin's phrase builder for table-based input methods

## SYNOPSIS

**txt2gtab-phrase** textfile gtab outfile

## DESCRIPTION

**txt2gtab-phrase** is a tool to generate input method table for specific phrases.

By inputing line-delimited phrases and a input method gtab file, it generates a input method table for the phrases according to the gtab file.

## EXAMPLES

Provide that we have a list named list.txt below:

```
心情好
我是個好人
```

and a CJ543 input method table provided with gcin.  By running:

txt2gtab-phrase list.txt cj543.gtab output.gtab

We have the result output.gtab below:

```
!!!!gtab-keys 6 5 abcdefghijklmnopqrstuvwxyz',.;/[]()~!:
心情好 p pqb vnd 0
心情好 p pqmb vnd 0
我是個好人 hqi amo owjr vnd o 0
我是個好人 hqi amyo owjr vnd o 0
我是個好人 hqi amo owr vnd o 0
我是個好人 hqi amyo owr vnd o 0
```

## SEE ALSO

[**gcin**(1)](/gcin/1.md).

## AUTHOR

txt2gtab-phrase is written by Edward Der-Hua Liu \<cp76@csie.nctu.edu.tw\>.
