phonetic-languages-phonetics-basics 0.3.1.0 → 0.3.2.0
raw patch · 3 files changed
+7/−3 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Phonetic.Languages.Syllables: PF :: (SegmentationInfo1 -> [PRS] -> Bool) -> SegmentationPredFunction
+ Data.Phonetic.Languages.Syllables: PF :: (SegmentationInfo1 -> [(Char, Char)] -> [PRS] -> Bool) -> SegmentationPredFunction
Files
- ChangeLog.md +4/−0
- Data/Phonetic/Languages/Syllables.hs +2/−2
- phonetic-languages-phonetics-basics.cabal +1/−1
ChangeLog.md view
@@ -26,3 +26,7 @@ * Third version revised A. Changed some data types and type synonyms in the module Data.Phonetic.Languages.Syllables. Some code optimizations in it. Some documentation improvements. Added new auxiliary functions to the module.++## 0.3.2.0 -- 2021-04-21++* Third version revised B. Fixed issue with semantics of the 'divCnsnts' function and related data types.
Data/Phonetic/Languages/Syllables.hs view
@@ -168,7 +168,7 @@ predicateN :: Int8 -- ^ Number of predicates in the definition for the 'fieldN' that are needed to apply the segmentation rules. } deriving (Eq) -data SegmentationPredFunction = PF (SegmentationInfo1 -> [PRS] -> Bool)+data SegmentationPredFunction = PF (SegmentationInfo1 -> [(Char, Char)] -> [PRS] -> Bool) type DListFunctionResult = ([PRS] -> [PRS],[PRS] -> [PRS]) @@ -194,7 +194,7 @@ -- https://msn.khnu.km.ua/pluginfile.php/302375/mod_resource/content/1/%D0%9B.3.%D0%86%D0%86.%20%D0%A1%D0%BA%D0%BB%D0%B0%D0%B4.%D0%9D%D0%B0%D0%B3%D0%BE%D0%BB%D0%BE%D1%81.pdf -- The example of the 'divCnsnts' can be found at: https://hackage.haskell.org/package/ukrainian-phonetics-basic-array-0.1.2.0/docs/src/Languages.Phonetic.Ukrainian.Syllable.Arr.html#divCnsnts divCnsnts :: [(Char,Char)] -> SegmentRulesG -> [PRS] -> DListFunctionResult-divCnsnts ks gs xs@(_:_) = resF . fromJust . L.find ((\(PF f) -> f (infoS js) xs) . predF). lineFs $ js+divCnsnts ks gs xs@(_:_) = resF . fromJust . L.find ((\(PF f) -> f (infoS js) ks xs) . predF). lineFs $ js where !l = length xs !js = fromJust . L.find ((== l) . fromEnum . fieldN . infoS) $ gs -- js :: SegmentationRules1 divCnsnts _ _ [] = (id,id)
phonetic-languages-phonetics-basics.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/ name: phonetic-languages-phonetics-basics-version: 0.3.1.0+version: 0.3.2.0 synopsis: A library for working with generalized phonetic languages usage. description: There already exists a Ukrainian implementation for the phonetic languages approach published at: https://hackage.haskell.org/package/phonetic-languages-simplified-examples-array. It is optimized for the Ukrainian only and needs to be rewritten for every new language mostly from scratch using it as a template. To avoid this boilerplate, this one is provided. It can be used for different languages and even for music or other fields. homepage: https://hackage.haskell.org/package/phonetic-languages-phonetics-basics