Copyright | (c) OleksandrZhabenko 2020-2022 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Extensions |
|
Generalization and extension of the functionality of the DobutokO.Poetry.Norms
and DobutokO.Poetry.Norms.Extended modules
from the dobutokO-poetry
package and more recent package phonetic-languages-simplified-properties-array
.
Uses syllables information.
Instead of the vector-related, uses arrays.
If you use the functionality of the Phonetic.Languages.Array.Ukrainian.PropertiesSyllablesG2 module,
then import it qualified (or this module) because they have many common data. Is provided as a standalone one
to reduce dependencies list in general case.
Synopsis
- data CoeffTwo a
- type Coeffs2 = CoeffTwo Double
- isEmpty :: CoeffTwo a -> Bool
- isPair :: CoeffTwo a -> Bool
- fstCF :: CoeffTwo a -> Maybe a
- sndCF :: CoeffTwo a -> Maybe a
- readCF :: String -> Coeffs2
- data MappingFunctionPL
- isPhoPaaW :: MappingFunctionPL -> Bool
- isSaaW :: MappingFunctionPL -> Bool
- fromPhoPaaW :: MappingFunctionPL -> Maybe ([[[PRS]]] -> [[Double]])
- fromSaaW :: MappingFunctionPL -> Maybe ([[[Int8]]] -> [[Double]])
- rhythmicity0i :: MappingFunctionPL -> String -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> ReadyForConstructionPL -> Double
- rhythmicity0Fi :: MappingFunctionPL -> Double -> String -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> ReadyForConstructionPL -> Double
- rhythmicityKi :: MappingFunctionPL -> Double -> Double -> String -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> ReadyForConstructionPL -> Double
- rhythmicityKFi :: MappingFunctionPL -> Double -> Double -> Double -> String -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> ReadyForConstructionPL -> Double
- rhythmicityG :: MappingFunctionPL -> ([[Double]] -> Double) -> String -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> ReadyForConstructionPL -> Double
- rhythmicity :: Double -> String -> (Double -> String -> MappingFunctionPL) -> Coeffs2 -> String -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> ReadyForConstructionPL -> Double
Newtype to work with
type Coeffs2 = CoeffTwo Double Source #
A data type that is used to represent the coefficients of the rhythmicity functions as a one argument value.
Mapping function data type
isPhoPaaW :: MappingFunctionPL -> Bool Source #
isSaaW :: MappingFunctionPL -> Bool Source #
fromPhoPaaW :: MappingFunctionPL -> Maybe ([[[PRS]]] -> [[Double]]) Source #
Rhythmicity properties (semi-empirical)
Simple one
:: MappingFunctionPL | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> String | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> ReadyForConstructionPL | |
-> Double |
:: MappingFunctionPL | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> Double | |
-> String | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> ReadyForConstructionPL | |
-> Double |
With weight coefficients
:: MappingFunctionPL | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> Double | |
-> Double | |
-> String | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> ReadyForConstructionPL | |
-> Double |
:: MappingFunctionPL | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> Double | |
-> Double | |
-> Double | |
-> String | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> ReadyForConstructionPL | |
-> Double |
General
:: MappingFunctionPL | A function that specifies the syllables durations, analogue of the
syllableDurationsD functions from the |
-> ([[Double]] -> Double) | Usually some kind of flattening of the double list into a single value. |
-> String | The starting |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | Corresponds to the '0' symbol delimiter in the |
-> String | Corresponds to the '1' and '-' symbol delimiters in the |
-> ReadyForConstructionPL | |
-> Double |
:: Double | |
-> String | Is intended to be one of the following strings: "02y", "02z", "03y", "03z", "04y", "04z", "0y", "0z", "y", "y0", "y2", "y3", "y4", "yy", "yy2", "yy3", "z", "z2", "z3", "z4", "zz", "zz2", "zz3", "zz4" or some other one (that is the default one). Since the version 0.3.0.0 you can also use "w" or "x"-based lines. Specifies the applied properties to get the result. The "z"-line uses 'F' functions. |
-> (Double -> String -> MappingFunctionPL) | The function that is needed in the |
-> Coeffs2 | |
-> String | |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | |
-> String | |
-> ReadyForConstructionPL | |
-> Double |