Changelog
Unreleased
Added
Dictionary build
--no-output
optionDictionaryOutputOptions
class forDictionaryBuilder.build
BuildSummary
class for results ofDictionaryBuilder.build
Experimental pipelines for dictionary builds
ignore_case
option toGrasciiValidator
Changed
Searcher.__init__
does not handleDictionaryNotFound
exceptionsgrascii search
prints an error if a dictionary cannot be foundMany
DictionaryBuilder.__init__
options moved toDictionaryBuilder.build
or were removedDictionaryBuilder.build
takesinfiles
andoutput
arguments and returns aBuildSummary
Removed
grascii.grammars.get_grammar
: UseLark.open_from_package("grascii.grammars", grammar_name)
instead.BuildDirectory
configuration file optionDictionary build
--check-only
option: Use--no-output
insteadgrascii.dictionary.build.build
function: UseDictionaryBuilder.build
instead
0.5.0 - 2022-08-12
Added
SearchResult
class to group together relevant data from matches.Searcher.sorted_search
to obtain a list of sortedSearchResult
s.grascii.dictionary.common
module to containDictionaryException
s and utility functions.Dictionary
class to work with grascii dictionaries.config.get_default_config
to get the text of the default configuration file.-V
and--version
command line options.InvalidGrascii
exception which is produced by a parser.--no-sort
option forgrascii search
.grascii.parser.get_grascii_regex_str()
to get a string that can be compiled into a regular expression that recognizes grascii strings.
Changed
Searcher.search
no longer sorts results.grascii.dictionary.list
:get_installed
andget_built_ins
return a collection of installed dictionary names (prefixed with:
).grascii.dictionary.install.install_dict
renamed toinstall_dictionary
and accepts more options.grascii.dictionary.uninstall.uninstall_dict
renamed touninstall_dictionary
and accepts more options.DICTIONARY_PATH
renamed toINSTALLATION_DIR
.Using builtin
sorted
function speeds up general grascii searches.GrasciiParser.interpret
returns an iterator instead of a list.Updated preanniversary dictionary to 2022.07.26.
Removed
Dropped Python 3.6 support.
grascii.dictionary.get_dict_file
: Usegrascii.dictionary.Dictionary.open
instead.GrasciiValidator.__init__
use_cache
option
Fixed
Typing issues with searchers and metrics.
Errors when passing a grascii string with boundaries or disjoiners to the aggressive dephraser.
0.4.1 - 2022-06-29
Added
Some classes and functions that are considered to be part of the public API are importable from the top-level
grascii
.
Fixed
Included
TV
ingrammar.STROKES
.
0.4.0 - 2022-06-27
Added
New
parser
module abstracts away Grascii parsing details.grammar.CONSONANTS
andgrammar.VOWELS
constants.Experimental
outline
module withOutline
class to infer directions of shorthand strokes.GrasciiValidator
class to quickly validate, but not interpret, Grascii strings.dictionaries
submodule to include dictionary source files.Dictionary build
--words
option to specify words file for spell checking.Dictionary build
--verbose
option to increase build output.New
docs
extra to specify doc building requirements.
Changed
Switched from
lark-parser
to newlark
package.Boundaries can be retained during Grascii Interpretation creation.
grascii.lark
is compatible with LALR.An apostrophe is accepted to represent “a” or “an”.
Multiple semantic
grascii.lark
grammar changes (see @7ebfd07).Dictionary build
--parse
option is now much faster.ReverseSearcher
provides a more useful sorting of results.Updated preanniversary dictionary to r00004.
Removed
The
types
module has been removed.Interpretation
is now defined ingrascii.parser
.The
utils
module has been removed.Dictionary source files are no longer stored in
dsrc
.The dictionary build
--spell
option has been removed. (Succeeded by--words
)
Fixed
Removed
Y
fromgrammar.HARD_CHARACTERS
andgrammar.ALPHABET
.Included
DV
ingrammar.STROKES
.Grascii contain searches do not match translations.
Grascii searches match -ing(s) at the end of words.
Grascii searches match a disjoiner at the end of words.
Grascii searches do not match double aspirates (except at the end of a word) or double disjoiners.
Fixed crash on interrupt during interactive interpretation selection.
0.3.0 - 2021-12-14
Added
New interactive search mode setting to select the dictionaries to search.
Changed
The search
-d/--dictionary
option can be specified multiple times to search more than one dictionary at a time.The config file
[Search] Dictionary
option now accepts a list of dictionaries.
0.2.2 - 2021-07-08
Added
Added the
-n/--count
option todictionary build
to enable the validation of expected word counts.
Changed
Word count validation for dictionary builds is no longer performed by default, but enabled with the
--count
option–helpful for phrase dictionaries.When the dictionary builder cannot determine an appropriate output file for an entry, it now prints an error and continues instead of crashing the build process.
Fixed
In dictionary builds, the incorrect number of words warning now properly behaves like a warning. The entry with the warning is now included in the build instead of being skipped.
0.2.1 - 2021-07-02
Added
grascii.grammar.ALPHABET
: The set of valid characters in the Grascii language.
Changed
Grascii Search produces a better error message when given an invalid Grascii string.
Grascii Dephrase produces a better error message when there are no results.
0.2.0 - 2021-06-25
First Release
Added
Grascii Search with Grascii, Interactive, Reverse, and Regex modes
Grascii Dictionary build and installation tools
Grascii Configuration file and management
Built-in pre-anniversary dictionary [Status: Review]
Experimental Grascii Dephrase tool