phonetic-languages-simplified-examples-array-0.15.0.0: Helps to create Ukrainian texts with the given phonetic properties.
Copyright(c) OleksandrZhabenko 2020-2021
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010
ExtensionsBangPatterns

Phonetic.Languages.Simple

Description

The library functions for the lineVariantsG3 executable. Since 0.4.0.0 version it supports printing of the informational messages both in English and Ukrainian. Since the 0.13.0.0 version there is the possibility to provide custom durations instead of the default predefined ones.

Synopsis

Documentation

generalProc3G Source #

Arguments

:: FilePath

Whether to use the own provided durations from the file specified here.

-> Bool

Whether to use just pairwise permutations, or the full universal set.

-> [String] 
-> String

If empty, the function is just generalProc2G with the arguments starting from the first Bool here.

-> Int 
-> Bool 
-> Bool 
-> FilePath 
-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> [String] 
-> Bool 
-> IO () 

Is used to organize the most complex processment -- for multiple sources and probably recursively.

mightNotUkrWord :: String -> Bool Source #

If False then it might be the Ukrainian word in the phonetic languages approach. If True, it is not. Is an example of the predicate inside the fullArgsConvertTextual function for the Ukrainian language.

isUkrainianN :: Char -> Bool Source #

Is taken from the mmsyn6ukr package version 0.8.1.0 so that the amount of dependencies are reduced (and was slightly modified).

generalProc2G Source #

Arguments

:: [[[[Sound8]]] -> [[Double]]]

Whether to use the own provided durations.

-> Bool

Whether to use just pairwise permutations, or the full universal set.

-> Bool 
-> Bool 
-> FilePath 
-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> [String] 
-> Bool 
-> IO () 

since 0.3.0.0 Is used to do general processment. since 0.5.0.0 The meaning of the first command line argument (and Coeffs2 here everywhere in the module) depends on the String argument -- whether it starts with 'w', 'x' or otherwise. In the first case it represents the k1 and k2 coefficients (default ones equal to 2.0 and 0.125) for the functions from the Rhythmicity.TwoFourth module. Otherwise, it is used for the functions to specify the level of emphasizing the two-based and three-based periods (the default values here are 1.0 both). since 0.6.0.0 Changed the arguments signing so that capital letters changed to the small ones, double ++ changed to just singular +. since 0.9.0.0 Added a new argument to control whether to use interactive recursive mode.

generalProc2 Source #

Arguments

:: [[[[Sound8]]] -> [[Double]]]

Whether to use the own provided durations.

-> Bool

Whether to use just pairwise permutations, or the full universal set.

-> Bool 
-> Bool 
-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> [String] 
-> Bool 
-> IO String 

@ since 0.3.0.0 The result is not IO (), but IO String. The type also changed generally.

messageInfo :: Int -> Bool -> String Source #

  • - @ since 0.4.0.0 Function provides localized message information. If the Bool argument is True then it gives result in Ukrainian, otherwise -- in English.

interactivePrintResult :: Bool -> (a -> String) -> [a] -> IO String Source #

since 0.3.0.0 The result is not IO (), but IO String. The type also changed generally. since 0.8.0.0 The function has also the option for the empty result.

interactivePrintResultRecursive Source #

Arguments

:: [[[[Sound8]]] -> [[Double]]]

Whether to use the own provided durations.

-> Bool

Whether to use just pairwise permutations, or the full universal set.

-> Bool 
-> Bool 
-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> (a -> String) 
-> [a] 
-> [String] 
-> Bool 
-> IO String 

generalProcMs Source #

Arguments

:: [[[[Sound8]]] -> [[Double]]]

Whether to use the own provided durations.

-> Coeffs2 
-> Coeffs2 
-> [Array Int Int] 
-> [String] 
-> ([Int], Int, Int, String) 
-> IO [Result [] Char Double Double] 

generalProcMMs Source #

Arguments

:: [[[[Sound8]]] -> [[Double]]]

Whether to use the own provided durations.

-> Bool

Whether to use just pairwise permutations, or the full universal set.

-> Bool 
-> Bool 
-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> [([Int], Int, Int, String)] 
-> [Array Int Int] 
-> [String] 
-> [String] 
-> Bool 
-> IO String 

@ since 0.3.0.0 The result is not IO (), but IO String. The type also changed generally.

finalProc Source #

Arguments

:: [[[[Sound8]]] -> [[Double]]]

Whether to use the own provided durations.

-> Bool

Whether to use just pairwise permutations, or the full universal set.

-> Bool 
-> Bool 
-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> (a -> String) 
-> [a] 
-> [String] 
-> Bool 
-> IO String 

@ since 0.3.0.0 The result is not IO (), but IO String. The type also changed generally.

print1el :: Bool -> String -> [Result [] Char Double Double] -> IO String Source #

@ since 0.3.0.0 The result is not IO (), but IO String. The type also changed generally.