The Plover Wiki has moved!

The Plover Wiki has moved to GitHub

This wiki is only provided for archival purposes and should not be considered accurate or up to date.

Dictionary

From Plover Wiki
Jump to: navigation, search

EDITING

For more information on dictionary editing see Learn Plover! Appendix: The Dictionary Format or Joshua Lifton's 2010 documentation.

If you prefer a dictionary with UK/Canadian/Australian spellings rather than American spellings, you can download one here.

GENERATING

If you have an .rtf version of a steno dictionary from another source (for example, from another theory), then use the dict converter script or follow these instructions.

# escape backslashes
%s/\\/\\\\/g

# escape ' and "
%s/'/\\'/g
%s/"/\\"/g

# convert double spaces to single spaces
%s/  / /g

# Remove lines with court reporter-specific paragraphing commands
(this is drastic, but they cause no end of trouble. Will maybe try to
support them
# to some degree in a later version.)
%s/^.*{$}.*$\n//
%s/^.*\\\\par\\\\.*$\n//

# Convert steno half of entry to Python format
%s/{\\\\.\\\\cxs \([^\}]\+\)}/'\1': /

# Get rid of any lines that don't start with quotes. (i.e., more court
reporting formatting residue)
%s/^[^'].*$\n//

# Convert infixes.
%s/: \\\\cxds \(.*\)\\\\cxds/: {^\1^}/

# Convert suffixes.
%s/: \\\\cxds \(.*\)/: {^\1}/

# Convert prefixes.
%s/: \(.*\)\\\\cxds/: {\1^}/

# Delete "force uncap" command (caption-specific command that Plover
doesn't need to implement now, if ever.)
%s/{l1}//g
%s/{l0}//g

# Delete \\cxp, the punctuation marker, since Plover recognizes
specific punctuation marks independently.
%s/\\\\cxp//g

# Convert glue strokes.
%s/\\\\cxfing /\&/g

# Convert "cap next" strokes.
%s/\\\\cxfc /-|/g

# Convert "stitch" strokes to suffix with hyphen.
%s/{\\\\cxstit /{^-/

# Search for other cx strokes and deal with them manually.
/cx

# Delete spaces at ends of line.
%s/ \n/^M/g

# Convert other half of entries.
:%s/^'\([-A-Z\/\*]\+\)': \(.*\)$/'\1': '\2',

# Put in curly brackets at beginning and end of dictionary
I'm sure I could figure out how to do this automatically, but I just
did it manually.