phladiprelio-general-simple 0.8.0.0 → 0.9.0.0
raw patch · 4 files changed
+43/−25 lines, 4 filesdep ~phladiprelio-general-shareddep ~phonetic-languages-phonetics-basicsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: phladiprelio-general-shared, phonetic-languages-phonetics-basics
API changes (from Hackage documentation)
+ Phladiprelio.General.Simple: argsProcessing :: [[String]] -> [[String]] -> String -> IO (String, String, Int, Bool, Int8, FilePath, Int, Bool, String, [String])
Files
- CHANGELOG.md +4/−0
- Phladiprelio/General/Simple.hs +31/−20
- README.md +5/−2
- phladiprelio-general-simple.cabal +3/−3
CHANGELOG.md view
@@ -108,3 +108,7 @@ command line arguments. Moved the shared with phladiprelio-ukrainian-simple code to the new package phladiprelio-tests to reduce code duplication. Updated the dependencies. +## 0.9.0.0 -- 2023-09-22++* Ninth version. Added new function argsProcessing to the library. Some code and documentation improvements. Updated the dependencies boundaries. Added devotion to Nathalie Kok on her Birthday.+
Phladiprelio/General/Simple.hs view
@@ -157,24 +157,15 @@ then parseLineNumber l1 else return . fromJust $ num -processingF- :: GWritingSystemPRPLX -- ^ Data used to obtain the phonetic language representation of the text.- -> [(Char,Char)] -- ^ The pairs of the 'Char' that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly. - -> CharPhoneticClassification- -> SegmentRulesG- -> String -- ^ Corresponds to the 100 delimiter in the @ukrainian-phonetics-basic-array@ package.- -> String -- ^ Corresponds to the 101 delimiter in the @ukrainian-phonetics-basic-array@ package.- -> ([[[PRS]]] -> [[Double]])- -> Int- -> HashCorrections - -> (Int8,[Int8]) - -> [[String]] - -> [[String]] - -> Bool- -> Int -- ^ The hashing function step. The default value is 20. Is expected to be greater than 2, and better greater than 12. +{-| Uses 'getArgs' inside to get the needed data from the command line arguments. Use with this in+ mind. +-}+argsProcessing+ :: [[String]]+ -> [[String]] -> String - -> IO ()-processingF wrs ks arr gs us vs h numTest hc (grps,mxms) ysss zsss descending hashStep xs = do+ -> IO (String, String, Int, Bool, Int8, FilePath, Int, Bool, String, [String]) -- ^ These ones are intended to be used inside 'generalF'.+argsProcessing ysss zsss xs = do args0 <- getArgs let (argsC, args) = takeCs1R ('+','-') cSpecs args0 (argsB, args11) = takeBsR bSpecs args@@ -214,15 +205,35 @@ | otherwise = (head filedata,0) ll = take (if any (== "+x") arg3s then 9 else 7) . (if prepare then id else words . mconcat . prepareText ysss zsss xs . unwords) $ arg3s l = length ll- argCs = catMaybes (fmap (readMaybeECG l) -- . (showB l lstW2:)- . getC "+a" $ argsC)+ argCs = catMaybes (fmap (readMaybeECG l) . getC "+a" $ argsC) argCBs = unwords . getC "+b" $ argsC -- If you use the parenthese with +b ... -b then consider also using the quotation marks for the whole algebraic constraint. At the moment though it is still not working properly for parentheses functionality. The issue should be fixed in the further releases. !perms | not (null argCBs) = filterGeneralConv l argCBs . genPermutationsL $ l | null argCs = genPermutationsL l | otherwise = decodeLConstraints argCs . genPermutationsL $ l + basiclineoption = unwords arg3s variants1 = uniquenessVariants2GNBL ' ' id id id perms ll- generalF (prestr,poststr) lineNmb wrs ks arr gs us vs h numTest hc (grps,mxms) descending hashStep emptyline splitting (filesave, codesave) concurrently (unwords arg3s) variants1 >> return ()+ return (prestr, poststr, lineNmb, emptyline, splitting, filesave, codesave, concurrently, basiclineoption, variants1)++processingF+ :: GWritingSystemPRPLX -- ^ Data used to obtain the phonetic language representation of the text.+ -> [(Char,Char)] -- ^ The pairs of the 'Char' that corresponds to the similar phonetic languages consonant phenomenon (e. g. allophones). Must be sorted in the ascending order to be used correctly. + -> CharPhoneticClassification+ -> SegmentRulesG+ -> String -- ^ Corresponds to the 100 delimiter in the @ukrainian-phonetics-basic-array@ package.+ -> String -- ^ Corresponds to the 101 delimiter in the @ukrainian-phonetics-basic-array@ package.+ -> ([[[PRS]]] -> [[Double]])+ -> Int+ -> HashCorrections + -> (Int8,[Int8]) + -> [[String]] + -> [[String]] + -> Bool+ -> Int -- ^ The hashing function step. The default value is 20. Is expected to be greater than 2, and better greater than 12. + -> String + -> IO ()+processingF wrs ks arr gs us vs h numTest hc (grps,mxms) ysss zsss descending hashStep xs = argsProcessing ysss zsss xs >>= \(prestr, poststr, lineNmb, emptyline, splitting, filesave, codesave, concurrently, basiclineoption, variants1) -> generalF (prestr,poststr) lineNmb wrs ks arr gs us vs h numTest hc (grps,mxms) descending hashStep emptyline splitting (filesave, codesave) concurrently basiclineoption variants1 >> return ()+{-# INLINE processingF #-} -- | Specifies the group of the command line arguments for 'processingF', which specifies the -- PhLADiPreLiO constraints. For more information, see:
README.md view
@@ -56,8 +56,8 @@ Devotion ======== -The author would like to devote this project to support the Foundation GASTROSTARS. The release-version 0.7.0.0 is dedicated to Vico Kok.+The author would like to devote this project to support the [Foundation+Gastrostars](https://gastrostars.nl). The release version 0.7.0.0 is dedicated to Vico Kok. At the day of publication of the first version of the package (12/03/2023) there is the foundation founder's (this is [Emma Kok](https://www.emmakok.nl)) Birthday.@@ -83,6 +83,9 @@ release version 0.7.0.0 is devoted to Vico Kok. The version 0.8.0.0 is devoted to [Enzo Kok](https://enzokok.nl) who has Birthday on the 14/08/2023.++The version 0.9.0.0 is devoted to Nathalie Kok, the mother of the founder of the Foundation and the+member of the foundation board, who has Birthday on the 22/09/2023. If you would like to share some financial support, please, contact the foundation using the URL:
phladiprelio-general-simple.cabal view
@@ -1,12 +1,12 @@ cabal-version: 2.4 name: phladiprelio-general-simple-version: 0.8.0.0+version: 0.9.0.0 -- A short (one-line) description of the package. synopsis: A generalized functionality of PhLADiPreLiO for different languages that uses hash algorithms. -- A longer description of the package.-description: The basic ideas of PhLADiPreLiO (Phonetic Languages Approach to Discovering Preferred Line Options). The usage ideas are described in the new scientific draft papers: [Ukranian paper](https://www.academia.edu/105067723/%D0%A7%D0%BE%D0%BC%D1%83_%D0%B4%D0%B5%D1%8F%D0%BA%D1%96_%D1%80%D1%8F%D0%B4%D0%BA%D0%B8_%D0%BB%D0%B5%D0%B3%D0%BA%D0%BE_%D0%B2%D0%B8%D0%BC%D0%BE%D0%B2%D0%BB%D1%8F%D1%82%D0%B8_%D0%B0_%D1%96%D0%BD%D1%88%D1%96_%D0%BD%D1%96_%D0%B0%D0%B1%D0%BE_%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B4%D0%B8%D1%87%D0%BD%D0%B0_%D0%BD%D0%B5%D1%81%D0%BF%D1%80%D0%BE%D0%B3%D0%BD%D0%BE%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D1%96%D1%81%D1%82%D1%8C_%D1%8F%D0%BA_%D1%85%D0%B0%D1%80%D0%B0%D0%BA%D1%82%D0%B5%D1%80%D0%B8%D1%81%D1%82%D0%B8%D0%BA%D0%B0_%D1%82%D0%B5%D0%BA%D1%81%D1%82%D1%83) and [English paper](https://www.academia.edu/105067761/Why_some_lines_are_easy_to_pronounce_and_others_are_not_or_prosodic_unpredictability_as_a_characteristic_of_text).+description: The basic ideas of PhLADiPreLiO (Phonetic Languages Approach to Discovering Preferred Line Options). The usage ideas are described in the new scientific draft papers: [Чому деякі рядки легко вимовляти, а інші — ні, або просодична неспрогнозованість як характеристика тексту](https://www.academia.edu/105067723/%D0%A7%D0%BE%D0%BC%D1%83_%D0%B4%D0%B5%D1%8F%D0%BA%D1%96_%D1%80%D1%8F%D0%B4%D0%BA%D0%B8_%D0%BB%D0%B5%D0%B3%D0%BA%D0%BE_%D0%B2%D0%B8%D0%BC%D0%BE%D0%B2%D0%BB%D1%8F%D1%82%D0%B8_%D0%B0_%D1%96%D0%BD%D1%88%D1%96_%D0%BD%D1%96_%D0%B0%D0%B1%D0%BE_%D0%BF%D1%80%D0%BE%D1%81%D0%BE%D0%B4%D0%B8%D1%87%D0%BD%D0%B0_%D0%BD%D0%B5%D1%81%D0%BF%D1%80%D0%BE%D0%B3%D0%BD%D0%BE%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D1%96%D1%81%D1%82%D1%8C_%D1%8F%D0%BA_%D1%85%D0%B0%D1%80%D0%B0%D0%BA%D1%82%D0%B5%D1%80%D0%B8%D1%81%D1%82%D0%B8%D0%BA%D0%B0_%D1%82%D0%B5%D0%BA%D1%81%D1%82%D1%83) and [Why some lines are easy to pronounce and others are not, or prosodic unpredictability as a characteristic of text](https://www.academia.edu/105067761/Why_some_lines_are_easy_to_pronounce_and_others_are_not_or_prosodic_unpredictability_as_a_characteristic_of_text). -- A URL where users can report bugs. -- bug-reports:@@ -28,7 +28,7 @@ -- LANGUAGE extensions used by modules in this package. other-extensions: NoImplicitPrelude, BangPatterns- build-depends: base >=4.13 && <5, rhythmic-sequences ==0.4.0.0, phonetic-languages-phonetics-basics ==0.10.0.2, phladiprelio-general-shared ==0.1.0.0, cli-arguments ==0.7.0.0, phonetic-languages-permutations-array ==0.4.0.0, phonetic-languages-constraints-array ==0.7.3.0, phonetic-languages-simplified-base ==0.7.1.0, halfsplit ==0.3.0.0, directory >=1.3.4.0 && <2, rev-scientific ==0.2.1.0, async >=2.2.2 && <3, phladiprelio-tests ==0.1.0.0+ build-depends: base >=4.13 && <5, rhythmic-sequences ==0.4.0.0, phonetic-languages-phonetics-basics ==0.10.1.0, phladiprelio-general-shared ==0.1.1.0, cli-arguments ==0.7.0.0, phonetic-languages-permutations-array ==0.4.0.0, phonetic-languages-constraints-array ==0.7.3.0, phonetic-languages-simplified-base ==0.7.1.0, halfsplit ==0.3.0.0, directory >=1.3.4.0 && <2, rev-scientific ==0.2.1.0, async >=2.2.2 && <3, phladiprelio-tests ==0.1.0.0 hs-source-dirs: . default-language: Haskell2010