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 πŸ”₯

  • -f hinshidata β€” 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