Copyright | (c) Oleksandr Zhabenko 2021-2024 |
---|---|
License | MIT |
Maintainer | oleksandr.zhabenko@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Extensions | BangPatterns |
Aftovolio.General.Parsing
Description
The additional parsing library functions for the AFTOVolio 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
- isClosingCurlyBracket :: String -> Bool
- isSlash :: String -> Bool
- isOpeningCurlyBracket :: String -> Bool
- variations :: [String] -> Bool
- breakGroupOfStrings :: [String] -> (([String], [[String]]), [String])
- breakInSlashes :: [String] -> [[String]] -> [[String]]
- combineVariants :: ([String], [[String]]) -> [[String]]
- combineHeadsWithNexts :: [[String]] -> [String] -> [[String]]
- transformToVariations :: [String] -> [[String]]
- readLangSpecs :: FilePath -> FilePath -> FilePath -> FilePath -> FilePath -> IO (GWritingSystemPRPLX, [(Char, Char)], CharPhoneticClassification, SegmentRulesG, String, String, Concatenations, Concatenations, String)
- innerProcessmentSimple :: String -> String -> String -> String -> String -> (GWritingSystemPRPLX, [(Char, Char)], CharPhoneticClassification, SegmentRulesG, String, String, Concatenations, Concatenations, String)
- argsProcessment :: FilePath -> FilePath -> FilePath -> FilePath -> FilePath -> IO [String]
Predicates
isClosingCurlyBracket :: String -> Bool Source #
isOpeningCurlyBracket :: String -> Bool Source #
variations :: [String] -> Bool Source #
Transformations
transformToVariations :: [String] -> [[String]] Source #
Files processment for specifications
Arguments
:: FilePath | With the |
-> FilePath | With the 5 meaningful lines that are delimited with the '~' line one from another with the specifications for the possible allophones (if any), |
-> FilePath | With the |
-> FilePath | With the |
-> FilePath | With the |
-> 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 AFTOVolio.
innerProcessmentSimple Source #
Arguments
:: String | Must be a valid |
-> String | Must be a |
-> String | Must be a |
-> String | Must be a |
-> String | Must be a |
-> (GWritingSystemPRPLX, [(Char, Char)], CharPhoneticClassification, SegmentRulesG, String, String, Concatenations, Concatenations, String) |
Arguments
:: FilePath | With the |
-> FilePath | With the 5 meaningful lines that are delimited with the '~' line one from another with the specifications for the possible allophones (if any), |
-> FilePath | With the |
-> FilePath | With the |
-> FilePath | With the |
-> IO [String] |