Copyright | (c) OleksandrZhabenko 2020-2021 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Extensions | BangPatterns |
Library module that contains functions earlier used by the rewritePoemG3
executable for the Ukrainian language (see: https://hackage.haskell.org/package/phonetic-languages-simplified-examples-array).
Inspired by: https://functional-art.org/2020/papers/Poetry-OleksandrZhabenko.pdf from the https://functional-art.org/2020/performances ;
Allows to rewrite the given text (usually a poetical one).
Is rewritten from the Phonetic.Languages.Lines module from the
phonetic-languages-simplified-examples-array
package.
Synopsis
- generalProcessment :: (Int, Int) -> GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> (Double -> String -> [[[PRS]]] -> [[Double]]) -> [[[[PRS]]] -> [[Double]]] -> Concatenations -> String -> String -> String -> Coeffs2 -> [String] -> String -> Int -> FilePath -> IO ()
- compareFilesToOneCommon :: FilePath -> FilePath -> FilePath -> IO ()
- circle2 :: GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> (Double -> String -> [[[PRS]]] -> [[Double]]) -> [[[[PRS]]] -> [[Double]]] -> Coeffs2 -> Array Int [Array Int Int] -> String -> [String] -> [String] -> [String]
- circle2I :: GWritingSystemPRPLX -> [(Char, Char)] -> CharPhoneticClassification -> SegmentRulesG -> String -> String -> (Double -> String -> [[[PRS]]] -> [[Double]]) -> [[[[PRS]]] -> [[Double]]] -> Coeffs2 -> Array Int [Array Int Int] -> String -> [String] -> Int -> [Int] -> Double -> Double -> [String] -> [String]
- toFileStr :: FilePath -> [String] -> IO ()
Documentation
:: (Int, Int) | Argument to specify possible 'line growing'. |
-> GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> (Double -> String -> [[[PRS]]] -> [[Double]]) | The function that is needed in the |
-> [[[[PRS]]] -> [[Double]]] | A list of 4 different functions that specifies the syllables durations, analogues of the
syllableDurationsD functions from the |
-> Concatenations | Data used to concatenate the basic grammar preserving words and word sequences to the next word to leave the most of the meaning (semantics) of the text available to easy understanding while reading and listening to. |
-> String | |
-> String | |
-> String | |
-> Coeffs2 | |
-> [String] | |
-> 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). Specifies the applied properties to get the result. The "z"-line uses 'F' functions. |
-> Int | |
-> FilePath | |
-> IO () |
:: GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | |
-> String | |
-> (Double -> String -> [[[PRS]]] -> [[Double]]) | The function that is needed in the |
-> [[[[PRS]]] -> [[Double]]] | A list of 4 different functions that specifies the syllables durations, analogues of the
syllableDurationsD functions from the |
-> Coeffs2 | |
-> Array Int [Array Int Int] | A permutations array of indices. |
-> 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). Specifies the applied properties to get the result. The "z"-line uses 'F' functions. |
-> [String] | |
-> [String] | |
-> [String] |
Processment without rearrangements.
:: GWritingSystemPRPLX | Data used to obtain the phonetic language representation of the text. |
-> [(Char, Char)] | The pairs of the |
-> CharPhoneticClassification | The |
-> SegmentRulesG | |
-> String | |
-> String | |
-> (Double -> String -> [[[PRS]]] -> [[Double]]) | The function that is needed in the |
-> [[[[PRS]]] -> [[Double]]] | A list of 4 different functions that specifies the syllables durations, analogues of the
syllableDurationsD functions from the |
-> Coeffs2 | |
-> Array Int [Array Int Int] | A permutations array of indices. |
-> 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). Specifies the applied properties to get the result. The "z"-line uses 'F' functions. |
-> [String] | |
-> Int | |
-> [Int] | |
-> Double | |
-> Double | |
-> [String] | |
-> [String] |
Processment with rearrangements.
:: FilePath | The |
-> [String] | Each element is appended on the new line to the file. |
-> IO () |
Prints every element from the structure on the new line to the file. Uses appendFile
function inside. Is taken from
the Languages.UniquenessPeriods.Vector.General.DebugG module from the phonetic-languages-general
package.