phonetic-languages-simplified-properties-array 0.1.1.0 → 0.1.2.0
raw patch · 4 files changed
+46/−8 lines, 4 filesdep ~ukrainian-phonetics-basic-arrayPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ukrainian-phonetics-basic-array
API changes (from Hackage documentation)
+ Phonetic.Languages.Array.Ukrainian.PropertiesFuncRepG2: procBoth4F :: Ord c => (Double -> c) -> Coeffs2 -> FuncRep2 String Double c
+ Phonetic.Languages.Array.Ukrainian.PropertiesFuncRepG2: procBoth4InvF :: Ord c => (Double -> c) -> Coeffs2 -> FuncRep2 String Double c
+ Phonetic.Languages.Array.Ukrainian.PropertiesSyllablesG2: rhythmicity04 :: String -> Double
+ Phonetic.Languages.Array.Ukrainian.PropertiesSyllablesG2: rhythmicityK4 :: Double -> Double -> String -> Double
Files
- CHANGELOG.md +4/−0
- Phonetic/Languages/Array/Ukrainian/PropertiesFuncRepG2.hs +19/−1
- Phonetic/Languages/Array/Ukrainian/PropertiesSyllablesG2.hs +21/−5
- phonetic-languages-simplified-properties-array.cabal +2/−2
CHANGELOG.md view
@@ -8,3 +8,7 @@ * First version revised A. Changed the dependencies. +## 0.1.2.0 -- 2021-01-27++* First version revised B. Added new properties related to the new durations-related functionality in the ukrainian-phonetics-basic-array-0.1.2.0 package.+
Phonetic/Languages/Array/Ukrainian/PropertiesFuncRepG2.hs view
@@ -2,7 +2,7 @@ -- | -- Module : Phonetic.Languages.Array.Ukrainian.PropertiesFuncRepG2--- Copyright : (c) OleksandrZhabenko 2020+-- Copyright : (c) OleksandrZhabenko 2020-2021 -- License : MIT -- Stability : Experimental -- Maintainer : olexandr543@yahoo.com@@ -26,6 +26,8 @@ -- ** NEW Working with generated by r-glpk-phonetic-languages-ukrainian-durations syllable durations , procBoth3F , procBoth3InvF+ , procBoth4F+ , procBoth4InvF -- * Working with rhythmicity , procRhythmicity23F ) where@@ -157,6 +159,22 @@ -> FuncRep2 String Double c procBoth3InvF g coeffs = procB2InvF g SD.syllableDurationsD3 coeffs {-# INLINE procBoth3InvF #-}++-------------------------------------------------------------++procBoth4F+ :: (Ord c) => (Double -> c)+ -> Coeffs2+ -> FuncRep2 String Double c+procBoth4F g coeffs = procB2F g SD.syllableDurationsD4 coeffs+{-# INLINE procBoth4F #-}++procBoth4InvF+ :: (Ord c) => (Double -> c)+ -> Coeffs2+ -> FuncRep2 String Double c+procBoth4InvF g coeffs = procB2InvF g SD.syllableDurationsD4 coeffs+{-# INLINE procBoth4InvF #-} -------------------------------------------------------------
Phonetic/Languages/Array/Ukrainian/PropertiesSyllablesG2.hs view
@@ -2,7 +2,7 @@ -- | -- Module : Phonetic.Languages.Array.Ukrainian.PropertiesSyllablesG2--- Copyright : (c) OleksandrZhabenko 2020+-- Copyright : (c) OleksandrZhabenko 2020-2021 -- License : MIT -- Stability : Experimental -- Maintainer : olexandr543@yahoo.com@@ -33,11 +33,13 @@ , rhythmicity02 -- ** With weight coefficients , rhythmicityK2- -- * NEW Rhythmicity metrices from generated with r-glpk-phonetic-languages-ukrainian-durations package (since 0.2.0.0 version)- -- ** Simple one+ -- * NEW Rhythmicity metrices from generated with r-glpk-phonetic-languages-ukrainian-durations package+ -- ** Simple ones , rhythmicity03+ , rhythmicity04 -- ** With weight coefficients , rhythmicityK3+ , rhythmicityK4 -- * General , rhythmicity ) where@@ -132,12 +134,26 @@ ------------------------------------------------------------------ +rhythmicity04 :: String -> Double+rhythmicity04 xs+ | null xs = 0.0+ | otherwise = eval23 . syllableDurationsD4 . createSyllablesUkrS $ xs++rhythmicityK4 :: Double -> Double -> String -> Double+rhythmicityK4 k2 k3 xs+ | null xs = 0.0+ | otherwise = eval23K k2 k3 . syllableDurationsD4 . createSyllablesUkrS $ xs++---------------------------------------------------------------- + rhythmicity :: String -> Coeffs2 -> String -> Double rhythmicity choice CF0 | choice == "0y" = rhythmicity0 | choice == "02y" = rhythmicity02- | otherwise = rhythmicity03+ | choice == "03y" = rhythmicity03+ | otherwise = rhythmicity04 rhythmicity choice (CF2 x y) | choice == "0y" = rhythmicityK (fromMaybe 1.0 x) (fromMaybe 1.0 y) | choice == "02y" = rhythmicityK2 (fromMaybe 1.0 x) (fromMaybe 1.0 y)- | otherwise = rhythmicityK3 (fromMaybe 1.0 x) (fromMaybe 1.0 y)+ | choice == "03y" = rhythmicityK3 (fromMaybe 1.0 x) (fromMaybe 1.0 y)+ | otherwise = rhythmicityK4 (fromMaybe 1.0 x) (fromMaybe 1.0 y)
phonetic-languages-simplified-properties-array.cabal view
@@ -2,7 +2,7 @@ -- For further documentation, see http://haskell.org/cabal/users-guide/ name: phonetic-languages-simplified-properties-array-version: 0.1.1.0+version: 0.1.2.0 synopsis: A generalization of the uniqueness-periods-vector-properties package. description: Is a simplified version of the functionality of the former one. Uses lists and arrays as main processment data types. Uses Double whenever applicable. homepage: https://hackage.haskell.org/package/phonetic-languages-simplified-properties-array@@ -20,6 +20,6 @@ exposed-modules: Phonetic.Languages.Array.Ukrainian.PropertiesFuncRepG2, Phonetic.Languages.Array.Ukrainian.PropertiesSyllablesG2 -- other-modules: other-extensions: BangPatterns, CPP- build-depends: base >=4.8 && <4.15, phonetic-languages-rhythmicity >=0.1.2 && <1, phonetic-languages-simplified-base >=0.1 && <1, ukrainian-phonetics-basic-array >=0.1.1 && <1+ build-depends: base >=4.8 && <4.15, phonetic-languages-rhythmicity >=0.1.2 && <1, phonetic-languages-simplified-base >=0.1 && <1, ukrainian-phonetics-basic-array >=0.1.2 && <1 -- hs-source-dirs: default-language: Haskell2010