phladiprelio-general-shared-0.1.2.0: A shared by different general implementations of the PhLADiPreLiO functionality.
Copyright(c) Oleksandr Zhabenko 2021-2024
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010
ExtensionsBangPatterns

Phladiprelio.General.Parsing

Description

The additional parsing library functions for the PhLADiPreLiO both old and new variants. Is taken from the Phonetic.Languages.Parsing module from the phonetic-languages-simplified-examples-array package to reduce dependencies in general case.

Synopsis

Predicates

Transformations

Files processment for specifications

readLangSpecs Source #

Arguments

:: FilePath

With the GWritingSystemPRPLX specifications only (see the gwrsysExample.txt file in the phonetic-languages-phonetics-basics package as a schema);

-> FilePath

With the 5 meaningful lines that are delimited with the '~' line one from another with the specifications for the possible allophones (if any), CharPhoneticClassification, white spaces information (two Strings) and the String of all the possible PLL Chars;

-> FilePath

With the SegmentRulesG specifications only;

-> FilePath

With the Concatenations specifications only (see the data in the EnglishConcatenated.txt file in the phonetic-languages-phonetics-basics package as a list of English equivalents of the needed Strings). These are to be prepended to the next word.

-> FilePath

With the Concatenations specifications only (see the data in the EnglishConcatenated.txt file in the phonetic-languages-phonetics-basics package as a list of English equivalents of the needed Strings). These are to be appended to the previous word.

-> IO (GWritingSystemPRPLX, [(Char, Char)], CharPhoneticClassification, SegmentRulesG, String, String, Concatenations, Concatenations, String) 

The function that is mostly intended to be used by the end user. Reads the specifications from the5 given files and returns the data that can be used further for generalized PhLADiPreLiO.

innerProcessmentSimple Source #

Arguments

:: String

Must be a valid GWritingSystemPRPLX specifications String representation only (see the gwrsysExample.txt file in the phonetic-languages-phonetics-basics package as a schema);

-> String

Must be a String with the 5 meaningful lines that are delimited with the '~' line one from another with the specifications for the possible allophones (if any), CharPhoneticClassification, white spaces information (two Strings) and the String of all the possible PLL Chars;

-> String

Must be a String with the SegmentRulesG specifications only;

-> String

Must be a String with the Concatenations specifications only (see the data in the EnglishConcatenated.txt file in the phonetic-languages-phonetics-basics package as a list of English equivalents of the needed Strings). These are to be prepended to the next word.

-> String

Must be a String with the Concatenations specifications only (see the data in the EnglishConcatenated.txt file in the phonetic-languages-phonetics-basics package as a list of English equivalents of the needed Strings). These are to be appended to the previous word.

-> (GWritingSystemPRPLX, [(Char, Char)], CharPhoneticClassification, SegmentRulesG, String, String, Concatenations, Concatenations, String) 

argsProcessment Source #

Arguments

:: FilePath

With the GWritingSystemPRPLX specifications only (see the gwrsysExample.txt file in the phonetic-languages-phonetics-basics package as a schema);

-> FilePath

With the 5 meaningful lines that are delimited with the '~' line one from another with the specifications for the possible allophones (if any), CharPhoneticClassification, white spaces information (two Strings) and the String of all the possible PLL Chars;

-> FilePath

With the SegmentRulesG specifications only;

-> FilePath

With the Concatenations specifications only (see the data in the EnglishConcatenated.txt file in the phonetic-languages-phonetics-basics package as a list of English equivalents of the needed Strings). These are to be prepended to the next word.

-> FilePath

With the Concatenations specifications only (see the data in the EnglishConcatenated.txt file in the phonetic-languages-phonetics-basics package as a list of English equivalents of the needed Strings). These are to be appended to the previous word.

-> IO [String]