CDTOA(1) General Commands Manual CDTOA(1)NAME
cdtoa - To convert the binary format of a dictionary back to
text format.
SYNOPSIS
cdtoa [-n] [-s] [-z] [-e] [-E] infilename
[-h cixingfile ] [ usagefreqfile ]
DEFAULT PATH
/usr/local/bin/cWnn4/cdtoa
DESCRIPTION
To convert the binary format of the dictionary to text
format, and output to standard output(stdout).
infilename is the name of the input binary format
dictionary.
The output may be piped into a file by using the ">"
command. For example,
cdtoa dict.dic > dict.u
"dict.u" here is the output text format dictionary, while the "dict.dic" is the input binary format dictionary.
usagefreqfile may indicate more than one user usage frequency files (for a particular user). These usage frequency information will be
reflected in the text format dictionary created.
OPTIONS -s To order the entries in text dictionary according to Pinyin or Zhuyin.
-n To attach sequence numbers to the output.
-z To convert the binary format back to text format in Zhuyin.
(Note: default is Pinyin)
-e If the Hanzi inside the text dictionary contains characters such as space and tab, they will be compacted to special format.
(Default)
-E If the Hanzi inside the text dictionary contains characters such as space and tab, they will NOT be compacted to special format.
-h cixingfile
To specify the Cixing definition file.
NOTE
1. The parts in [ ] are options. They may be omitted.
2. The Pinyin and Zhuyin dictionary has the same format.
3. The default conversion result of the text dictionary is in Pinyin.
13 May 1992 CDTOA(1)
Check Out this Related Man Page
DPBINDIC(1) General Commands Manual DPBINDIC(1)NAME
dpbindic - Convert a binary-form dictionary into a text-form dictionary
SYNOPSYS
dpbindic [ -xiu [ frequency ] ] binary-file [ text-file ]
DESCRIPTION
dpbindic outputs the file information of the binary-form dictionary file specified in binary-file . At this time, the word information of
the dictionary can be output in text form to the standard output. To do so, use test-file to specify the text-form dictionary used as the
source of binary-form dictionary file. If this specification is omitted, the text dictionary file information in the binary dictionary
file will be output. The standard grammar file name is /usr/local/canna/lib/dic/hyoujun.gram. It will be used if the grammar file name
specification is omitted. The output format of word information data is specified using an option.
OPTIONS -x Outputs the data without using omission symbol @, which is used when the initial word represents the reading.
-i Replaces the reading and word for output.
-u Outputs the candidates used in conversion. Outputs all candidates having frequency or more. If frequency is omitted, all candi-
dates having frequency 1 will be output.
EXAMPLES
(1) If the text-form dictionary file name is omitted:
%dibindic iroha.cbd
(Text dictionary file name = Directory size + Word size, packed)
iroha.swd = 2985 + 5306 pak a4
iroha.mwd = 36276 + 113139 pak a4
(2) If the text-form dictionary file name iroha.mwd is specified:
%dpbindic iroha.cbd iroha.mwd
(Text dictionary file name = Directory size + Word size, packed)
iroha.mwd = 36276 + 113139 pak a4
SEE ALSO mkbindic(1), dicar(1)DPBINDIC(1)
Hi,
Please can any one tell me how to convert binary data to text format and vice versa.
If possible give me the algorithm or C program.
Thanks in advance
Waiting for reply
Bye:o (5 Replies)
Hi all,
I have a print control file (dflt) for Oracle which is in binary. As I am going to develope an application in Window environment, I would like to reference the dflt file. But it is in binary format and I cannot access it. Anyone can suggest me how to convert the file into text or... (5 Replies)
Im currently using execl() to run the ls command and redirect the output to a text file. Unfortunately, when I check the text file, no information has been written to it.
I am calling execl() with the ls command like this
execl( "/bin/ls" , "-al" , '>' , "dirlist.txt" ,(char *) 0 );
... (5 Replies)
Hi
I have a file which has ascii , binary, binary decimal coded,decimal & hexadecimal data with lot of special characters (like öƒ.ƒ.„İİ¡Š·œƒ.„İİ¡Š· ) in it. I want to standardize the file into ASCII format & later use that as source .
Can any one suggest a way a logic to convert such... (5 Replies)
Hi everybody,
I'm using Hp unix tru64.
I have generate one file from shell script.
bus that file content pre "8 space char" convert one tab character.
why?
result file hex format:
hex 20 20 20 20 20 to 09 (6 Replies)
Hi All,
i am trying to remove all special charecters().,/\~!@#%^$*&^_- and others from a tab delimited file.
I am using the following code.
while read LINE
do
echo $LINE | tr -d '=;:`"<>,./?!@#$%^&(){}'|tr -d "-"|tr -d "'" | tr -d "_"
done < trial.txt > output.txt
Problem
... (10 Replies)
Hi everyone.
I have a binary file in wich there is a date with format DDMMMYY, for example 02May09.
I can see it opening this file with vim: inside a binary mess, I can clearly read that string.
Now: do you know a way to extract this string from the file?
I woul like to do something... (14 Replies)
Hello Gurus,
I have a text file containing nearly 12,000 tab delimited characters with 4000 rows. If the file size is small, excel can convert the text into coloumns. However, the file that I have is very big. Can some body help me in solving this problem?
The input file example,
... (6 Replies)
Hi unix masters,
Im needing some guidance or a small code to enlight my problem.
Problem Example:
I have 3 different text ascii files. At each file, inside the text
have repeater marks.
--text 1 start--
123 -> mark
anytextanytext
anythinganything
123 ->mark
blahblah
blah
...... (6 Replies)
Hi all,
Here is a scim sample.bin.user file
a string1 0
a string2 0
a string3 63
b string4 126
c string5 315
d string6 0
e string7 63
e string8 126
f string9 0
I like to convert this into a dict.tab file to be compiled by the ... (4 Replies)
Hello,
I have a very large dictionary file which is in text format and which contains a large number of sub-sections. Each sub-section starts with the following header :
#DATA
#VALID 1
and ends with a footer as shown below
#END
The data between the Header and the Footer consists of... (6 Replies)
I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it.
Thx.
---------- Post updated at 05:01 AM ---------- Previous update was at 04:34 AM ----------
I have found the solution
cat file | tr -d '\0' (8 Replies)
Good morning everyone,
I'm currently trying to convert an environment variable into a string and then attach it at the end of a command and launch it.
I have the following right now, but it's very ugly:
AMI_TAGS="env=test,country=XX,city=blah,galaxy=blahblah"
aws ec2 create-tags... (8 Replies)
Hi,
I'm looking for a method to add hex increments as a first column to the following file.
Something like this:
0000
0010
0020
0030
0040
0050
0060
0070
0080
0090
00a0
00b0
00c0
00d0 (5 Replies)