ukrainian-phonetics-common (empty) → 0.1.0.0
raw patch · 5 files changed
+96/−0 lines, 5 filesdep +basedep +mmsyn2-arraysetup-changed
Dependencies added: base, mmsyn2-array
Files
- CHANGELOG.md +6/−0
- LICENSE +20/−0
- Melodics/Ukrainian/Common.hs +43/−0
- Setup.hs +2/−0
- ukrainian-phonetics-common.cabal +25/−0
+ CHANGELOG.md view
@@ -0,0 +1,6 @@+# Revision history for ukrainian-phonetics-common++## 0.1.0.0 -- 2022-02-19++* First version. Moved from the ukrainian-phonetics-basic-array common functionality. +
+ LICENSE view
@@ -0,0 +1,20 @@+Copyright (c) 2020-2022 Oleksandr Zhabenko++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the+"Software"), to deal in the Software without restriction, including+without limitation the rights to use, copy, modify, merge, publish,+distribute, sublicense, and/or sell copies of the Software, and to+permit persons to whom the Software is furnished to do so, subject to+the following conditions:++The above copyright notice and this permission notice shall be included+in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ Melodics/Ukrainian/Common.hs view
@@ -0,0 +1,43 @@+{-# OPTIONS_HADDOCK show-extensions #-}+{-# LANGUAGE BangPatterns #-}++-- |+-- Module : Melodics.Ukrainian.Common+-- Copyright : (c) OleksandrZhabenko 2021-2022+-- License : MIT+-- Maintainer : olexandr543@yahoo.com+--+-- Functions provide functionality of a musical instrument synthesizer or for Ukrainian speech synthesis+-- especially for poets, translators and writers. Is rewritten from the module Melodics.ByteString.Ukrainian.Arr+-- for optimization purposes. Contains the common for two modules definitions.+-- Phonetic material is taken from the :+--+-- Solomija Buk, Ján Mačutek, Andrij Rovenchak. Some properties of+-- the Ukrainian writing system. [Electronic resource] https://arxiv.org/ftp/arxiv/papers/0802/0802.4198.pdf++module Melodics.Ukrainian.Common where++import CaseBi.Arr+import GHC.Arr (Array(..))++{-+-- Inspired by: https://mail.haskell.org/pipermail/beginners/2011-October/008649.html+-}++data Triple = Z | O | T+ deriving (Eq,Ord,Show)++isUkrainianL :: Char -> Bool+isUkrainianL y | (y >= '\1070' && y <= '\1097') = True+ | otherwise = getBFstLSorted' False (map (\x -> (x, True)) "'-\700\1028\1030\1031\1068\1100\1102\1103\1108\1110\1111\1168\1169\8217") y++isUkrainianLTup :: Array Int (Char, Bool) -> Char -> Bool+isUkrainianLTup !tup15 y+ | (y >= '\1070' && y <= '\1097') = True+ | otherwise = getBFst' (False, tup15) y++isConsNotJ :: Char -> Bool+isConsNotJ = getBFstLSorted' False (zip "\1073\1074\1075\1076\1078\1079\1082\1083\1084\1085\1087\1088\1089\1090\1092\1093\1094\1095\1096\1097\1169" (repeat True))++isConsNotJTup :: Array Int (Char,Bool) -> Char -> Bool+isConsNotJTup !tup16 = getBFst' (False, tup16)
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ ukrainian-phonetics-common.cabal view
@@ -0,0 +1,25 @@+-- Initial ukrainian-phonetics-common.cabal generated by cabal init. For+-- further documentation, see http://haskell.org/cabal/users-guide/++name: ukrainian-phonetics-common+version: 0.1.0.0+synopsis: A library to work with the basic Ukrainian phonetics and syllable segmentation. +description: The functionality that is shared by the two dependent packages - ukrainian-phonetics-basic-array and ukranian-phonetics-basic-array-bytestring.+homepage: https://hackage.haskell.org/package/ukrainian-phonetics-common+license: MIT+license-file: LICENSE+author: OleksandrZhabenko+maintainer: olexandr543@yahoo.com+copyright: Oleksandr Zhabenko+category: Language+build-type: Simple+extra-source-files: CHANGELOG.md+cabal-version: >=1.10++library+ exposed-modules: Melodics.Ukrainian.Common+ -- other-modules:+ other-extensions: BangPatterns+ build-depends: base >=4.8 && <5, mmsyn2-array >=0.3 && <1+ -- hs-source-dirs:+ default-language: Haskell2010