WTOC(1)
πΈ NAME πΈ
okay so bestie, meet wtoc β the little glow-up machine that takes a Wnn text-form dictionary (or a whole lil stack of them) and turns it into Canna text-form dictionaries. it's giving translator energy, no cap π
this one lives in the General Commands Manual, section 1, so it's a user-level command, iykyk.
β¨ SYNOPSIS β¨
wtoc [-f hinshidata] [wnnjisho] [cannajisho]
like, that's the whole summoning ritual π
π¦ DESCRIPTION π¦
so wtoc converts a Wnn text-form dictionary file into a Canna text-form dictionary file. simple premise, iconic execution. π
now here's the tea on the file arguments:
- if all the dictionary files are omitted, the Wnn dictionary data comes in through standard input. and in that case, the dictionary of the Japanese Input System gets output to standard output. π«Ά
- if one dictionary file is specified, it gets treated as a Wnn dictionary. and at that time, the Canna dictionary output goes to standard output. β¨
π₯ OPTIONS π₯
-fhinshidata β okay so this one is the β¨customizationβ¨ option. you can add new info about word-type correspondence between Wnn and Canna, and you put it in the hinshidata file. inside one line, you describe the Wnn word type name and the Canna word type, and you separate them with a space (or spaces) or a tab. like this:
Wnn word type Canna word type
Adverb #F04
literally that's it. one line, one pair, vibes immaculate π
π EXAMPLE π
first one, bestie:
% wtoc -f tsuikahinshi kihon.u kihon.t
what's happening here: it inputs word-type correspondence information from tsuikahinshi, then converts the Wnn text-form dictionary kihon.u into the Canna text-form dictionary before output. π
and the second one, the pipe girlie:
% wtoc special.u | lpr
this converts the Wnn text-form dictionary special.u into a Canna text-form dictionary, then outputs the result to the line printer. yes she's piping, yes she ate π
π SEE ALSO π
ctow(1)β the reverse trip, bestie, go look π¦
and that's the whole page, mwah π β this was WTOC(1) from the General Commands Manual, so take the manual name and that section-1 stamp with you, and honestly the footer is just the same WTOC(1) energy all over again. iconic, consistent, obsessed. πβ¨π
π¦ where this page comes from
- debian bookworm: canna 3.7p3-20 Β· ISC
- debian trixie: canna 3.7p3-25 Β· ISC
- ubuntu jammy: canna 3.7p3-17 Β· ISC
- ubuntu noble: canna 3.7p3-20 Β· ISC
- ubuntu questing: canna 3.7p3-26
- ubuntu resolute: canna 3.7p3-26build1 Β· ISC
- ubuntu stonking: canna 3.7p3-29 Β· ISC
- Copyright 1994 NEC Corporation, Tokyo, Japan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms