-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
56 lines (40 loc) · 1.82 KB
/
README.txt
File metadata and controls
56 lines (40 loc) · 1.82 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
56
README - Calling Executable Programs
///////////////////////////////////////////////////////////////////////////////
Version: 0.2
Author: Keith Herbert
Date: 26 May 2014
Description:
Translate is an interactive console prompt that takes a word from the user and
returns its translation. It requires a translation file as a command-line
argument and may have an audit file specified to log its output.
Dictionary is a program used by Translate to process the translation file and
lookup the translation for each word supplied by the user.
A separate file containing the words to look up and their translations must be
provided. This file must have each word and its translation together on a single
line, separated by a tab.
///////////////////////////////////////////////////////////////////////////////
Usage
Translate.jar and Dictionary.jar must be in same directory.
> java -jar Translate.jar wordlist.txt
Enter a word to translate or !!! to quit: boy
мальчик
Enter a word to translate or !!! to quit: girl
девушка
Enter a word to translate or !!! to quit: fnord
FNORD not found in dictionary.
Enter a word to translate or !!! to quit: !!!
>
>java -jar Dictionary.jar boy wordlist.txt
мальчик
>java -jar Dictionary.jar fnord wordlist.txt
FNORD not found in dictionary.
>
///////////////////////////////////////////////////////////////////////////////
Compilation Instructions
From CEP directory containing Translate and Dictionary directories, each
containing the java source files and the jar manifest file:
CEP>javac Translate\Translate.java
CEP>javac Dictionary\Dictionary.java
CEP>jar vmcf Translate\MANIFEST.MF Translate.jar Translate\Translate.class
CEP>jar vmcf Dictionary\MANIFEST.MF Dictionary.jar Dictionary\Dictionary.class
///////////////////////////////////////////////////////////////////////////////