phonetic-languages-simplified-examples-array-0.21.0.0: Helps to create Ukrainian texts with the given phonetic properties.
Copyright(c) OleksandrZhabenko 2020-2022
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010
Extensions
  • BangPatterns
  • TypeSynonymInstances
  • FlexibleContexts
  • FlexibleInstances

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.

-> PermutationsType

Whether to use just one of the express 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 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int

Whether to print more verbose information in the output with sorting in some way

-> 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.

-> PermutationsType

Whether to use just one of the express permutations, or the full universal set.

-> Bool 
-> Bool 
-> FilePath 
-> Bool 
-> Bool 
-> [String] 
-> Coeffs2 
-> Coeffs2 
-> [String] 
-> Bool 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> 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.

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

Whether to use the volatile syllables durations

-> PermutationsType

Whether to use just one of the express permutations, or the full universal set.

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

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionUkr, 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 Source #

Arguments

:: Bool 
-> (a -> String) 
-> [a] 
-> Bool

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> IO (ReadyForConstructionUkr, String) 

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

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

Whether to use the own volatile syllable durations.

-> PermutationsType

Whether to use just one of the express permutations, or the full universal set.

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

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionUkr, String) 

generalProcMs Source #

Arguments

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

Whether to use the own provided durations.

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

Whether to use the own volatile syllables durations.

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

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> IO [Result2 ReadyForConstructionUkr Double Double] 

show2 :: (Show a, Show a, Num p, Ord a, Ord a, Eq p) => p -> [Result2 ReadyForConstructionUkr a a] -> String Source #

print2 :: (Show a, Show a, Num p, Ord a, Ord a, Eq p) => p -> [Result2 ReadyForConstructionUkr a a] -> IO () Source #

generalProcMMs Source #

Arguments

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

Whether to use the own provided durations.

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

Whether to use the own volatile syllables durations.

-> PermutationsType

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

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

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionUkr, 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.

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

Whether to use the own volatile syllables durations.

-> PermutationsType

Whether to use just one of the express permutations, or the full universal set.

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

Whether to use volatile string weights

-> Int

Number of sets of volatile string weights for every processed line. Is used when the previous one is True

-> Int 
-> IO (ReadyForConstructionUkr, String) 

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

print1el :: Bool -> String -> [Result2 ReadyForConstructionUkr Double Double] -> IO (ReadyForConstructionUkr, String) Source #

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