phonetic-languages-phonetics-basics 0.10.0.2 → 0.10.1.0
raw patch · 5 files changed
+39/−8 lines, 5 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Phladiprelio.General.Syllables: P :: !Int8 -> PhoneticType
+ Phladiprelio.General.Syllables: P :: {-# UNPACK #-} !Int8 -> PhoneticType
- Phladiprelio.General.Syllables: SylS :: !Char -> !PhoneticType -> PRS
+ Phladiprelio.General.Syllables: SylS :: {-# UNPACK #-} !Char -> {-# UNPACK #-} !PhoneticType -> PRS
- Phladiprelio.General.Syllables: [charS] :: PRS -> !Char
+ Phladiprelio.General.Syllables: [charS] :: PRS -> {-# UNPACK #-} !Char
- Phladiprelio.General.Syllables: [phoneType] :: PRS -> !PhoneticType
+ Phladiprelio.General.Syllables: [phoneType] :: PRS -> {-# UNPACK #-} !PhoneticType
Files
- ChangeLog.md +6/−0
- Phladiprelio/General/Base.hs +1/−1
- Phladiprelio/General/Syllables.hs +3/−3
- README.md +28/−3
- phonetic-languages-phonetics-basics.cabal +1/−1
ChangeLog.md view
@@ -136,3 +136,9 @@ * Tenth version revised B. Fixed issue with integer conversions that caused build to fail. +## 0.10.1.0 -- 2023-09-22++* Tenth version revised C. Fixed issues with README.md file. Changed the data types inner+ representations where possible to use one less level of redirection for the compiler (experimental+and not well tested move). Added a devotion to the README.md file.+
Phladiprelio/General/Base.hs view
@@ -325,7 +325,7 @@ stringToXSG :: GWritingSystemPRPLX -> Generations -> String -> IGWritingSystemPRPLX stringToXSG xs n ys | any ((== n) . snd) xs && n > 0 = stringToXSGI (xs \\ ts) (n - 1) . xsG zs n $ pss- | otherwise = error "Data.Phonetic.Languages.Base.stringToXSG: Not defined for these first two arguments. "+ | otherwise = error "Phladiprelio.General.Base.stringToXSG: Not defined for these first two arguments. " where !pss = stringToXS (concatMap fst xs) ys -- ps :: [String] !ts = filter ((== n) . snd) $ xs -- ts :: GWritingSystemPRPLX !zs = if null ts then [] else fst . head $ ts -- zs :: PhoneticRepresentationX
Phladiprelio/General/Syllables.hs view
@@ -78,8 +78,8 @@ -- CAUTION: Please, do not mix with the show7s functions, they are not interoperable. data PRS = SylS {- charS :: !Char, -- ^ Phonetic languages phenomenon representation. Usually, a phoneme, but it can be otherwise something different.- phoneType :: !PhoneticType -- ^ Some encoded type. For the vowels it has reserved value of 'P' 0, for the sonorous consonants - 'P' 1 and 'P' 2,+ charS :: {-# UNPACK #-} !Char, -- ^ Phonetic languages phenomenon representation. Usually, a phoneme, but it can be otherwise something different.+ phoneType :: {-# UNPACK #-} !PhoneticType -- ^ Some encoded type. For the vowels it has reserved value of 'P' 0, for the sonorous consonants - 'P' 1 and 'P' 2, -- for the voiced consonants - 'P' 3 and 'P' 4, for the voiceless consonants - 'P' 5 and 'P' 6. Nevertheless, it is possible to redefine the data by rewriting the -- respective parts of the code here. } deriving ( Eq, Read )@@ -93,7 +93,7 @@ instance Show PRS where show (SylS c (P x)) = "SylS \'" `mappend` (c:'\'':' ':show x) -data PhoneticType = P !Int8 deriving (Eq, Ord, Read)+data PhoneticType = P {-# UNPACK #-} !Int8 deriving (Eq, Ord, Read) instance Show PhoneticType where show (P x) = "P " `mappend` show x
README.md view
@@ -29,13 +29,18 @@ Also let in the file gwrsys.txt you have GWritingSystemPRPLX specifications, an example of syntaxis for which is in the file gwrsysExample.txt. -Then the following commands can be variants of the usage of the pldPL executable.+Idea of Basic Usage+=================== +* You can use the executable in the procedure of minimizing the sets of values in the following way.++The commands below can be variants of the usage of the pldPL executable.+ 1) pldPL 0.001 0.001 0.01 0.02 words.txt controlData.txt gwrsys.txt 0.3 0.2 0.02 0.06 1.8 -1 0.01 0.01 1.5 1.5 1.5 1.5 1.5 1.5 | R --quiet --no-save This variant tries to minimize the duration of the only one element belonging to the special phonetic language representation-elements (-1 as the second parameter after the file name), tries-to reduce the influence of the two other elements (the third and the fourth parameters as 0.01) and tries to somewhat+elements (-1 as the sixth parameter after the file names), tries+to reduce the influence of the two other elements (the seventh and the eighth parameters as 0.01) and tries to somewhat make longer the 6 vowels (all the consonants have by that the default coefficients equal to 1.0) (a simple example, though the program supports also the more complicated ones). @@ -66,3 +71,23 @@ In the file EnglishConcatenated.txt in the source tarball there are English words the translations of which are intended to be concatenated to the next word in the phonetic language before applying sound processing so that the basic grammar is preserved.++Devotion+========+++P.S.: the author would like to devote this project to support the [Foundation+Gastrostars](https://gastrostars.nl).++On the 22/09/2023 there is Nathalie's Kok birthday, the mother of the founder of the Foundation,+[Emma Kok](https://www.emmakok.nl), and the member of the Foundation board.++If you would like to share some financial support, please, contact the mentioned foundation+using the URL:++[Contact Foundation GASTROSTARS](https://gastrostars.nl/hou-mij-op-de-hoogte)++or ++[Donation Page](https://gastrostars.nl/doneren)+
phonetic-languages-phonetics-basics.cabal view
@@ -3,7 +3,7 @@ -- http://haskell.org/cabal/users-guide/ name: phonetic-languages-phonetics-basics-version: 0.10.0.2+version: 0.10.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