Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.6d

Application v 6.1b

  

 

Chapter FiveGeneral Functions (continued)

5.6 Dictionary Functions

5.6.1 Overview

The application employs various dictionaries to support a number of functions. The most obvious is functions the spell function and on-screen spelling (for applications with editor functions. Dictionaries are also used in certain functions requiring language analysis, such as automatic XDX cover page tagging.

Default dictionary files are located in the main application program folder. These are as follows:

us-abb.dic — Abbreviated Word Dictionary

us-com.dic — Common Errors Dictionary

us-hyp.dic — Hyphenated Word Dictionary

us-nb.dic — Non-breaking Word Dictionary

us-spl.dic — Main Word Dictionary

Depending on the application, dictionary files may not be part of the installation. For applications such as Legato Basic, dictionary files can be added to the program folder.

Dictionaries can be user-customized to meet specific implementation requirements. Note that the software update function will overwrite such files.

5.6.2 Dictionary Types

When referencing dictionaries, the following codes are used:

spl — Main Dictionary

abb — Abbreviated Dictionary

hyp — Hyphenated Word Dictionary

cus — Custom Dictionary

nb  — Non-breaking Word Dictionary

ce  — Common Errors Dictionary

all — All Dictionaries (limited)

A language can be specified but will be ignored until language features are added.

5.6.3 Dictionary Format

While the file extension is “.dic”, diction files are in 8-bit text format. The file consists of two parts: the header and the body. The header uses ‘;’ characters for comments. It can contain two keywords, for example:

;Title:         Abbreviated and Capitalized Words
;
;Comments:      This dictionary contains words for Abbreviated and Capitalized Words
;
;               07/01/25 SAT
;
;               (c) 2006-2025 Novaworks, LLC
;

The second part is the data with each word separated with a line return. For example:

10-K
10-Q
1080i
1080p
12b-1
12b-2
13D
13G ...

Dictionary words must be sorted in binary order, that is ‘A-Z’ then ‘a-z’. Within the Code View (Text View) editor, the Edit | Content | Sort Data function can be used as well as Edit | Content | Remove Duplicate Lines to remove identical items after sorting. Failure to sort the list will result in erratic behavior.

The main spelling dictionary, hyphenated word and abbreviated word dictionaries contain words only. The common spelling errors and non-breaking word dictionaries contain additional information separated by a vertical bar character (‘|’). Common error list has the misspelled candidate followed by the correct word.

The non-breaking word dictionary contains a control code: ‘A’fter for no break on next word and ‘B’efore for non-break on prior word. For example, “Dr. Jones” should have a non-breaking space between the ‘.’ and ‘J’ while “Novaworks, LLC” puts a non-breaking spacing between “Novaworks,” and “LLC”.

The main dictionary must contain only lowercase words. Words are checked against the dictionary as lower-case, upper-case and title-case. When a word is tested against the dictionary, it tests for the previous conditions, makes the test word lower-case and then checks the dictionary.

The hyphenated and abbreviated word dictionaries are case-sensitive

5.6.4 Functions

Page revised 2025-08-15