phonetic-languages-phonetics-basics 0.8.1.0 → 0.8.2.0
raw patch · 3 files changed
+23/−18 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog.md +15/−11
- Data/Phonetic/Languages/PrepareText.hs +7/−6
- phonetic-languages-phonetics-basics.cabal +1/−1
ChangeLog.md view
@@ -11,11 +11,11 @@ ## 0.2.1.0 -- 2021-04-20 -* Second version revised A. Fixed issues with being not compiled for GHC versions less than 8.2. +* Second version revised A. Fixed issues with being not compiled for GHC versions less than 8.2. ## 0.2.2.0 -- 2021-04-20 -* Second version revised B. Fixed issues with being not compiled because of no Ix instance specified for Array first argument. +* Second version revised B. Fixed issues with being not compiled because of no Ix instance specified for Array first argument. ## 0.3.0.0 -- 2021-04-20 @@ -29,12 +29,12 @@ ## 0.3.2.0 -- 2021-04-21 -* Third version revised B. Fixed issue with semantics of the 'divCnsnts' function and related data types. +* Third version revised B. Fixed issue with semantics of the 'divCnsnts' function and related data types. ## 0.3.3.0 -- 2021-04-24 * Third version revised C. Some code improvements. Added classes and instances for classes. Some changes to imrove overall-representation possibilities. +representation possibilities. ## 0.3.4.0 -- 2021-04-26 @@ -46,27 +46,27 @@ * Fourth version. Added a new module Numeric.Wrapper.R.GLPK.Phonetic.Languages.Durations to find out the approximations of the phonetic languages representation element durations. For this added two new lightweight dependencies of lists-flines-and foldable-ix. +and foldable-ix. ## 0.5.0.0 -- 2021-04-29 * Fifth version. Added two new modules Data.Phonetic.Languages.SpecificationsRead and Main. Added an executable pldPL (anologue-of the pldUkr from r-glpk-phonetic-languages-ukrainian-durations package). +of the pldUkr from r-glpk-phonetic-languages-ukrainian-durations package). ## 0.5.1.0 -- 2021-04-30 * Fifth version revised A. Added two example files with data syntaxis, first of all useful for the pldPL executable. See README.md.-Added also README.md file with a brief description of the possible scenario of the usage for pldPL. Some code improvements. +Added also README.md file with a brief description of the possible scenario of the usage for pldPL. Some code improvements. ## 0.6.0.0 -- 2021-05-03 * Sixth version. Added a module Data.Phonetic.Languages.PrepareText. Added a file EnglishConcatenated.txt that contains additional list of the English words the corresponding translations of which are intended to be concatenated to the next phonetic language-words to preserve the basic grammar. Some code and documentation improvements. +words to preserve the basic grammar. Some code and documentation improvements. ## 0.6.0.1 -- 2021-05-04 -* Sixth version revised A. Extended the data in the EnglishConcatenated.txt file. Fixed some issues with the README.md file. +* Sixth version revised A. Extended the data in the EnglishConcatenated.txt file. Fixed some issues with the README.md file. ## 0.6.1.0 -- 2021-05-07 @@ -76,12 +76,12 @@ ## 0.6.2.0 -- 2021-05-10 * Sixth version revised C. Some documentation improvements. Fixed issues with being not compiled because of 2 doc-style comments-(thanks to: Jonathan Ringer at notifications@github.com). +(thanks to: Jonathan Ringer at notifications@github.com). ## 0.6.3.0 -- 2021-05-19 * Sixth version revised D. Added Read and added / changed Show instances to the data types in the SegmentRulesG data type in the-Data.Phonetic.Languages.Syllables module. +Data.Phonetic.Languages.Syllables module. ## 0.7.0.0 -- 2021-06-04 @@ -100,3 +100,7 @@ * Eigth version revised A. Changed the prepareGrowTextN function (and renamed it to prepareGrowTextMN) so that it has some additional meaning.++## 0.8.2.0 -- 2021-08-30++* Eigth version revised B. Removed deprecated filtering from the Data.Phonetic.Languages.PrepareText module.
Data/Phonetic/Languages/PrepareText.hs view
@@ -96,7 +96,7 @@ prepareConcats = toSequentialApp . sort2Concat {-# INLINABLE prepareConcats #-} -{-| Applies the full complex words concatenations (opposite to the 'complexWords' that applies only partial concatenations). +{-| Applies the full complex words concatenations (opposite to the 'complexWords' that applies only partial concatenations). -} complexNWords :: [[String]] -> [String] -> [String] complexNWords xsss yss = complexNWords' tssss yss@@ -125,16 +125,17 @@ -> String -- ^ A sorted 'String' of possible characters in the phonetic language representation. -> String -> [String]-prepareTextN n ysss xs = filter (any (isPLL xs)) . splitLinesN n . map (unwords . complexNWords ysss . words .- filter (\t -> isAlpha t || isSpC t)) . filter (not . null) . lines+prepareTextN n ysss xs = filter (any (isPLL xs)) . splitLinesN n . map (unwords . complexNWords ysss . words) .+ filter (not . null) . lines -- | A predicate to check whether the given character is one of the \"\' \\x2019\\x02BC-\". isSpC :: Char -> Bool isSpC x = x == '\'' || x == ' ' || x == '\x2019' || x == '\x02BC' || x == '-' {-# INLINE isSpC #-}+{-# DEPRECATED #-} -- | The first argument must be a 'String' of sorted 'Char's in the ascending order of all possible symbols that can be--- used for the text in the phonetic language selected. Can be prepared beforehand, or read from the file. +-- used for the text in the phonetic language selected. Can be prepared beforehand, or read from the file. isPLL :: String -> Char -> Bool isPLL xs y = getBFstL' False (zip xs . replicate 10000 $ True) y @@ -167,8 +168,8 @@ {-| @ 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 first 'Int' number. --} +of them is no greater than the given first 'Int' number.+-} 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.
phonetic-languages-phonetics-basics.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/ name: phonetic-languages-phonetics-basics-version: 0.8.1.0+version: 0.8.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. 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