packages feed

mmsyn7s 0.7.0.0 → 0.8.0.0

raw patch · 3 files changed

+14/−11 lines, 3 filesdep ~mmsyn6ukrPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: mmsyn6ukr

API changes (from Hackage documentation)

- MMSyn7s: show7s :: String -> [String]

Files

CHANGELOG.md view
@@ -91,3 +91,6 @@ * Seventh version. Changed Double to Float in the MMSyn7s module so that the functons can be consistent with new dobutokO packages. Besides, the double precision  is not needed and in some cases is meaningless and can potentially (a little bit, however) reduce performance in some cases. Some minor code and documentation improvements. +## 0.8.0.0 -- 2020-08-16++* Eighth version. Changed the import from MMSyn6Ukr.Show7s module and therefore the mmsyn6ukr dependency bounds.
MMSyn7s.hs view
@@ -14,7 +14,6 @@   main7s   -- * Library functions   -- ** For the text as a whole object-  , show7s   , show7s2   -- ** For the text being treated as partial one   , show7s'@@ -50,6 +49,7 @@ import System.Environment (getArgs) import MMSyn7.Syllable import Control.Exception (onException)+import MMSyn6Ukr.Show7s  -- | Function takes the first command line argument and (may be) a Ukrainian text being written without quotes as the next command line arguments -- and prints the sorted list of the Ukrainian sounds representations that can be used further in mmsyn7 series of programs.@@ -107,7 +107,7 @@                  ; putStrLn "which shows what sound representations are needed to be created if every sound is unique; "                  ; putStrLn "      the other beginning is equivalent to the \"0\" behaviour."                   }-      "-v" -> putStrLn "mmsyn7s: version 0.7.0.0"+      "-v" -> putStrLn "mmsyn7s: version 0.8.0.0"       "-s" -> let ys = unwords . drop 1 $ texts                   zs = uniquenessPeriods ys in                   if zs /= [0::Int]@@ -165,11 +165,6 @@       ; exceptRead ns yss       })   --- | Function takes a Ukrainian text being a @String@ and returns a sorted list of the Ukrainian sounds representations that can be used further in mmsyn7 series of--- programs.-show7s :: String -> [String]-show7s = sort . nub . V.toList . V.filter (\x -> x /= "-" && x /= "1" && x /= "0") . convertToProperUkrainian-   -- | Function takes a Ukrainian text being a @String@ and returns a @String@ that shows a sorted list of the Ukrainian sounds representations that can be used further -- in mmsyn7 series of programs. show7s2 :: String -> String@@ -294,6 +289,11 @@ uniquenessPeriods :: String -> [Int] uniquenessPeriods xs | any (not . isSpace) xs = fmap length . show7s6 $ xs                      | otherwise = [0::Int]++uniquenessPeriodsV :: String -> V.Vector Int+uniquenessPeriodsV xs + | any (not . isSpace) xs = V.fromList . fmap length . show7s6 $ xs+ | otherwise = V.singleton 0  -- | Function 'uniqPeriodsMean' is a mathematical expectation for the list obtained by 'uniquenessPeriods' function. It is a statistic metric. -- It is a mean for the quantities of the unique (not duplicated, not repeated) Ukrainian sounds in the given Ukrainian text as a @String@.
mmsyn7s.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                mmsyn7s-version:             0.7.0.0+version:             0.8.0.0 synopsis:            Shows a sorted list of the Ukrainian sounds representations that can be used by mmsyn7 series of programs description:         A program and a library that show a sorted list of the Ukrainian sounds representations that can be used by mmsyn7 series of programs homepage:            https://hackage.haskell.org/package/mmsyn7s@@ -20,16 +20,16 @@   exposed-modules:     MMSyn7s, Main, MMSyn7.Syllable   -- other-modules:   -- other-extensions:-  build-depends:       base >=4.7 && <4.15, vector >=0.11 && <0.14, mmsyn6ukr >=0.7.2 && <1, mmsyn2 >=0.1.8 && < 1, mmsyn5 >=0.4.4  && < 1+  build-depends:       base >=4.7 && <4.15, vector >=0.11 && <0.14, mmsyn6ukr >=0.8 && <1, mmsyn2 >=0.1.8 && < 1, mmsyn5 >=0.4.4  && < 1   -- hs-source-dirs:   default-language:    Haskell2010   ghc-options:         -O2  executable mmsyn7s   main-is:             Main.hs-  -- other-modules:+  other-modules:       MMSyn7.Syllable, MMSyn7s   -- other-extensions:-  build-depends:       base >=4.7 && <4.15, vector >=0.11 && <0.14, mmsyn6ukr >=0.7.2 && <1, mmsyn2 >=0.1.8 && < 1, mmsyn5 >=0.4.4  && < 1+  build-depends:       base >=4.7 && <4.15, vector >=0.11 && <0.14, mmsyn6ukr >=0.8 && <1, mmsyn2 >=0.1.8 && < 1, mmsyn5 >=0.4.4  && < 1   -- hs-source-dirs:   default-language:    Haskell2010   ghc-options:         -O2