My own dictionary and proof tool

P

Pablo Cardellino

Hi

There is a new ortography in Portuguese, and Microsoft has said that they
are not going to deliver a new dictionary for Office (lower than 2007). So,
I'm preparing a proof tool that will work analysing the words in the document
one-by-one and, if they were old style typed, it will give some options, such
as correct once, correct all in the document, correct always, add to
dictionary, remove from dictionary. The dictionary is a txt file with tab
separated data: old style form in the column A and new style form in the
column B.

Well, my questions are:
1. is the txt with tab-separated data the propest way of storing the data?

2. one tab of the form is intended to show the dictionary and some managing
tools. So I need to show a two-column table with the old-style forms and the
respective new-style forms (and an automatic scroll bar because the list will
be quickly longer than the form height). How to draw the table and how to
fill its rows? (not a code, please, just the idea).

3. With the dictionary I will construct two parallel arrays, one with the
old-style forms and the other with the new ones. I don't know which method
says if the A array contains certain element (if there is a more apropriate
way of managing the dictionary, let me know)


Thanks in advance

Pablo Cardellino
 
P

Pablo Cardellino

For the number (2), a control like the "Replace text as you type" control,
wich is at the bottom of the AutoCorrect tab, within the AutoCorrect dialog,
would be useful, but I didn't find out wich type of control is that.

Best regards,

Pablo Cardellino
 
D

Doug Robbins - Word MVP

P

Pablo Cardellino

Hi, Doug,
first of all, thanks for your answer.

That's interesting, but what if the user didn't installed Excel? The macro
will be able to create and manage the spreadsheet even so?

The txt I would open with Word, I would convert text in a table and I'd
perform the searches using Word search tool. It doesn't seem to be too
difficult and I think it'll do the job, even though the spreadsheet would be
faster, probably. Perhaps I could do 2 parallel set of subroutines for
managing the data, one for the case Excel is installed, one for the opposite.

I will search the documentation relative to spreadsheet manipulation in Word
VBA.

Best regards,

Pablo Cardellino
 
D

Doug Robbins - Word MVP

The lists could be in a table in a Word document. There is code for that on
the page in the second link that I sent to you.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top