Kelvin Eldridge wrote:
TomW wrote:
Kelvin Eldridge wrote:
Russell Butler wrote:
Kelvin Eldridge wrote:
<snip>
Kelvin:
I made a couple of changes in your code. You were trying to start at
a certain character (255) to start parsing the text. Because of a
number of other control characters in the file, it would not put the
'crlf' in the correct places. I had it skip the first ll passes in
the loop before parsing the text. I then changed the 'Select Case' to
look for 0 (null),instead of 3,6,8, to insert the 'crlf'. I only had
some small samples to work with for user dictionaries, but it seemed
to work okay with them. Also of note is that the code will give an
error if the number of lines to parse is too great from what I could
gather. I am not that familiar with StarBasic so I do not know what
the character limit is for a textbox.
TomW
---------------------------------------------------------------------
Hi,
Thanks to Tom's ideas and for making changes to the code.
I've now release a new version (V1.02) of the utility which uses a
different approach (based on Tom's ideas) and can now optionally save
the list of words (again based on Tom's work).
I've tested this on my custom dictionary standard.dic and a separate
.dic file and it works much better than before. It still doesn't handle
Unicode characters. I will leave that to someone else.
The new version is available from www.dictionary.JustLocal.com.au.
Thanks Tom, Russell and Terje.
Thanks Kelvin
That works much better. I actually have a second user dictionary called
new_medical.dic which is a "conventional" user dictionary, and it was
that I was testing, not the list I had sent you previously.
I haven't tried going through the hoops of saving the list and using it
as an actual dictionary. That would be desirable to see if the .txt
format is usable as it is. The only obviously odd things are a few
characters at the end of the list which would be easy enough to edit out
if they appeared to cause any conflicts. Each word now comes up on a new
line and looking at it in a Hex editor just has an 0A (newline)
character there as a separator.
I tried opening the Medical_en_AU.dic and it gave an "Inadmissible
value or data type. Overflow" error. Not surprising as this has
something like 5300 words and the limit for a user dictionary is 2000+
Anyway I see this as a very good little utility for anyone wanting to
set up their own additional list.
Well done Kelvin/Tom
Russell
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]