Crate precis_tools

Source
Expand description

Tools and parsers to generate PRECIS tables from the Unicode Character Database (UCD) This crate is generally used to generate code to be used by other crates such as precis-core or precis-profiles. Consider adding this in your build-dependencies section instead.

Structs§

Ascii7Gen
Generates the ASCII7 table required by the PRECIS framework.
BackwardCompatibleGen
Generates the BackwardCompatible table required by the PRECIS framework.
BidiClassGen
Generates a table of tuples (Codepoints, BidiClass) representing the values of the Unicode character property Bidi_Class. Possible values are listed in UAX44, Table 13.
CodepointsGen
Generate the Codepoints struct used by all tables created by all generators.
CsvLineParser
A line oriented parser for a particular UCD file.
DerivedJoiningType
A single row in the DerivedJoiningType file.
DerivedPropertyValueGen
Generates the derived property enum with the values described in the PRECIS Code Point Properties section.
Error
Represents any kind of error that can occur while parsing files
ExceptionsGen
Generates the Exceptions table required by the PRECIS framework.
GeneralCategoryGen
Generator that aggregates elements that are able to generate tables from the UnicodeData file
HangulSyllableType
A single row in the HangulSyllableType file.
PrecisDerivedProperty
A single row in the precis-tables.csv file.
RustCodeGen
This is the main code generator element. It aggregates other CodeGen elements. The resulting file will contain the code generated by every element added to the code generator.
UcdFileGen
Generator that aggregates other UcdCodeGen elements.
UcdTableGen
Generator that crates tables of Unicode code points as a result of parsing properties in the UCD files.
UnassignedTableGen
Generator that creates a table of unassigned Unicode code points
UnicodeData
Extension of the UnicodeData struct provided by the ucd_parse crate. Unlike the original one, this struct does not represent a single line in the UnicodeData file, but it could be the result of a whole parsing of several files to contain range of Unicode code points. Note that this file, unlike others in the Unicode data files, represents ranges split in different lines in order not to break parsers compatibility.
UnicodeGen
Aggregator of elements that implement the UcdLineParser trait.
UnicodeVersionGen
Generates the UNICODE version variable used to generate the library.
ViramaTableGen
Generator that creates a table of Unicode code points with the Virama canonical combining class.
WidthMappingTableGen
Generator that creates a table of Unicode code points and their decomposition mappings.

Enums§

DerivedProperties
Second column in the precis-tables.csv file. Values could be made up of a single derived property value, or two combined with the or word
DerivedProperty
Represents the derived property value assigned to an Unicode code point. This value is parsed from the CSV maintained in the IANA registry.

Traits§

CodeGen
Trait implemented by all elements which are able to generate code.
UcdCodeGen
Trait implemented by all elements that are able to parse UCD files.
UcdLineParser
Generic trait used by parsers to generate code.