Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sj3dic(1) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sj3(1)

sj3serv(1)

sj3lib(3)

sj2(1)

SJ3DIC(1)  —  NEWS-OS Programmer’s Manual

NAME

sj3dic − sj3 user dictionary maintenance tool

SYNOPSIS

sj3dic −conv [ −H host_name ] [ input_file ]
sj3dic −text [ −H host_name ] [ output_file ]
sj3dic −dict [ −H host_name ] [ input_file ]

DESCRIPTION

sj3dic is a tool for maintaining user dictionaries on machines running the Kana-Kanji conversion server sj3serv(1).  A socket is used for interprocess communication between sj3dic and sj3serv(1).  The host to be connected can be specified with the option −H hose_name.  If this option is not specified and the environment variable SJ3SERV in the setup file also does not specify a server, an attempt will be made to connect the server on the localhost. 

1) Converting sj2 User Dictionaries and Adding New Entries

sj3dic −conv [ −H host_name ] [ input_file ] The command above causes entries in the user dictionary specified by input_file to be added to the user dictionary on the server machine.  If input_file is not specified, the entries in the user dictionary specified in the setup file for sj2(1) are added.  If no user dictionary is specified here either, the contents of the file sj2usr.dic in user’s home directory will be added. 

2) Making Visual Dictionary Files

sj3dic −text [ −H host_name ] [ output_file ] The command above converts entries in user dictionaries on the server machine to be converted to editable text and place in the file output_file.  If no output_file is specified, the command writes its output on the standard output.  Visual files are formatted as follows. (An equivalent list in English is given here). window            window              noun:
sony              Sony Corp.          noun:
postmark          postmark            noun:
work              workstation         noun: Each field is configured as follows.  1st field    Reading (in 2-byte hiragana)
2nd field    Output when this reading is entered
3rd field    Part of speech Either one-byte spaces or tabs can be used to delimit fields. Accordingly, neither one-byte spaces nor tabs can be used as part of a string definition within a field. The part-of-speech field (3rd field) specify any of the following. (An equivalent list in English is given here). meishi (nouns):  myoji (family names):
chimei (place names):  daimeishi (pronouns):
namae (names):  kenmei/kumei (prefecture/ward name):
sushi (numerals):  settogo (prefixes):
setsubigo (suffixes):  josushi (counters):
fukushi (adverbs):  setsuzokushi (conjunctions):
rentaishi (modifying forms):  keiyoshi (adjectives):
keiyodoshi (adjectival nouns):
doshi (verbs).sahen (sa-inflexion):
doshi (verbs).zahen (za-inflexion):
doshi (verbs).ichidan (ichidan class):
doshi (verbs).kagodan (godan class, ka-inflexion):
doshi (verbs).gagodan (godan class, ga-inflexion):
doshi (verbs).sagodan (godan class, ga-inflexion):
doshi (verbs).tagodan (godan class, ta-inflexion):
doshi (verbs).nagodan (godan class, na-inflexion):
doshi (verbs).bagodan (godan class, ba-inflexion):
doshi (verbs).magodan (godan clsss, ma-inflexion):
doshi (verbs).ragodan (godan class, ra-inflexion):
doshi (verbs).wagodan (godan class, wa-inflexion):
tankanji (single kanji character): Note that this is a guideline; Japanese parts of speech do not always have a one-to-one correspondence with their English counterparts.

3) Adding Entries to User Dictionary Files

sj3dic −dict [ −H host_name ] [ input_file ] The command above adds entries included in the visual dictionary file specified as input_file to the user’s dictionary on the server machine.  The command reads its input from the standard input if no input_file is specified. 

FILES

/usr/sony/bin/sj3serv Kana-Kanji conversion server

/usr/sony/lib/sj3/serverrc Setup file for the Kana-Kanji conversion server

/usr/sony/bin/sj3 Front-end processor for Japanese language input

/usr/sony/dict/sj3/ Default dictionary directory for the Kana-Kanji conversion server

    sj3main.dic Main dictionary for Kana-Kanji conversion

    user/username/private.dic User dictionary for Kana-Kanji conversion

    user/username/study.dat Study file for Kana-Kanji conversion

/usr/sony/include/sj3lib.h Include file for Kana-Kanji conversion library

/usr/sony/lib/libsj3lib.a Kana-Kanji conversion library

/usr/sony/demo/sj3/∗ Sample on how to use the Kana-Kanji conversion library
 

SEE ALSO

sj3(1), sj3serv(1), sj3lib(3), sj2(1)
 

NEWS-OSRelease 4.1C

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026