packages feed

ukrainian-phonetics-basic 0.3.0.0 → 0.3.1.0

raw patch · 3 files changed

+11/−4 lines, 3 filesdep −subGPVP ok

version bump matches the API change (PVP)

Dependencies removed: subG

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -69,3 +69,6 @@ * Third version. Added new functions to support not only vector-based computations in the Languages.Phonetics.Ukrainian.Syllable module, but also the list-based ones. Added a  new dependency of subG package. +## 0.3.1.0 -- 2020-11-25++* Third version revised A. Removed subG from the dependencies. Some code improvements.
Languages/Phonetic/Ukrainian/Syllable.hs view
@@ -23,7 +23,7 @@ import CaseBi.Unboxed (getBFst') import qualified CaseBi as X (getBFst') import Data.List.InnToOut.Basic (mapI)-import Data.SubG (subG)+import Data.Maybe (mapMaybe)  -- Inspired by: https://github.com/OleksandrZhabenko/mm1/releases/tag/0.2.0.0 @@ -190,7 +190,11 @@ {-# INLINE createSyllablesUkr #-}  createSyllablesUkrS :: String -> [[[UZPP2]]]-createSyllablesUkrS = map (divVwls . reSyllableCntnts . groupSnds . str2UZPP2s) . subG " 1-" . filter (/='0') . convertToProperUkrainianS . map (\x -> if x == '-' then ' ' else x)+createSyllablesUkrS = map (divVwls . reSyllableCntnts . groupSnds . str2UZPP2s) . words . mapMaybe g . convertToProperUkrainianS . map (\x -> if x == '-' then ' ' else x)+  where g x+          | x `elem` " 1-" = Just ' '+          | x == '0' = Nothing+          | otherwise = Just x {-# INLINE createSyllablesUkrS #-}  createSyllablesUkrP :: String -> [[[UZPP2]]]
ukrainian-phonetics-basic.cabal view
@@ -2,7 +2,7 @@ -- further documentation, see http://haskell.org/cabal/users-guide/  name:                ukrainian-phonetics-basic-version:             0.3.0.0+version:             0.3.1.0 synopsis:            A library to work with the basic Ukrainian phonetics and syllable segmentation. description:         A library to work with the basic Ukrainian phonetics and syllable segmentation. Rewritten from the mmsyn6ukr and mmsyn7s packages. homepage:            https://hackage.haskell.org/package/ukrainian-phonetics-basic@@ -20,6 +20,6 @@   exposed-modules:     Languages.Phonetic.Ukrainian.Syllable, Melodics.ByteString.Ukrainian   -- other-modules:   other-extensions:    DeriveDataTypeable, FlexibleInstances, OverloadedStrings-  build-depends:       base >=4.7 && <4.15, vector >=0.11 && <0.14, mmsyn2 >=0.3 && <1, bytestring >=0.10 && <0.13, mmsyn5 >=0.5 && <1, subG >=0.4.2 && <1+  build-depends:       base >=4.7 && <4.15, vector >=0.11 && <0.14, mmsyn2 >=0.3 && <1, bytestring >=0.10 && <0.13, mmsyn5 >=0.5 && <1   -- hs-source-dirs:   default-language:    Haskell2010