phonetic-languages-phonetics-basics 0.8.0.0 → 0.8.1.0
raw patch · 3 files changed
+12/−6 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Data.Phonetic.Languages.PrepareText: prepareGrowTextN :: Int -> [[String]] -> String -> String -> [String]
+ Data.Phonetic.Languages.PrepareText: prepareGrowTextMN :: Int -> Int -> [[String]] -> String -> String -> [String]
Files
- ChangeLog.md +5/−0
- Data/Phonetic/Languages/PrepareText.hs +6/−5
- phonetic-languages-phonetics-basics.cabal +1/−1
ChangeLog.md view
@@ -95,3 +95,8 @@ * Eigth version. Added new functions to the Data.Phonetic.Languages.PrepareText module to 'grow' the phonetic languages text. Some code improvements in the module.++## 0.8.1.0 -- 2021-07-24++* Eigth version revised A. Changed the prepareGrowTextN function (and renamed it to prepareGrowTextMN) so that it+has some additional meaning.
Data/Phonetic/Languages/PrepareText.hs view
@@ -39,7 +39,7 @@ , prepareText , prepareTextN , growLinesN- , prepareGrowTextN+ , prepareGrowTextMN -- * Used to transform after convertToProperphonetic language from mmsyn6ukr package , isPLL ) where@@ -167,13 +167,14 @@ {-| @ since 0.8.0.0 The function combines the 'prepareTextN' and 'growLinesN' function. Applies needed phonetic language preparations to the text and tries to \'grow\' the resulting 'String's in the list so that the number of the words in every-of them is no greater than the given 'Int' number. +of them is no greater than the given first 'Int' number. -} -prepareGrowTextN+prepareGrowTextMN :: Int -- ^ A maximum number of the words or their concatenations in the resulting list of 'String's.+ -> Int -- ^ A number of words in every 'String' that the function firstly forms. To have some sense of usage, must be less than the first argument. -> [[String]] -- ^ Is intended to become a valid 'Concatenations'. -> String -- ^ A sorted 'String' of possible characters in the phonetic language representation. -> String -> [String]-prepareGrowTextN n ysss xs = growLinesN n . prepareTextN n ysss xs-{-# INLINE prepareGrowTextN #-}+prepareGrowTextMN m n ysss xs = growLinesN m . prepareTextN n ysss xs+{-# INLINE prepareGrowTextMN #-}
phonetic-languages-phonetics-basics.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/ name: phonetic-languages-phonetics-basics-version: 0.8.0.0+version: 0.8.1.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. Now it combines the functionality of the @r-glpk-phonetic-languages-ukrainian-durations@ and @phonetic-languages-ukrainian-array@ and some dependencies of the mentioned one. homepage: https://hackage.haskell.org/package/phonetic-languages-phonetics-basics