phonetic-languages-simplified-examples-common-0.6.2.0: Some commonly used by phonetic-languages-simplified* series functions.
Copyright(c) Oleksandr Zhabenko 2020-2023
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010
ExtensionsBangPatterns

Phladiprelio.Ukrainian.DeEnCoding

Description

Functions to encode and decode String -> \['Int8'\] used in the Simple/Main.hs code. Is taken from the phonetic-languages-simplified-lists-examples package.

Synopsis

Documentation

encodeToInt :: Ord a => [[a]] -> Int Source #

indexedL :: Foldable t => b -> t b -> [(Int8, b)] Source #

Is taken mostly from the Phonetic.Languages.Ukrainian.Simplified.Lists.UniquenessPeriodsG module from the phonetic-languages-simplified-common package.

trans2 :: [[a]] -> [(Int8, [a])] Source #

trans232 :: [[a]] -> [(Int, [a])] Source #

decodeToStr :: [Int8] -> String -> String Source #

So for the strings consisting of no more than 10 words: > decodeToStr (int2l . encodeToInt . words $ xs) xs == unwords . words $ xs

decodeToReadyFCUkr :: [Int8] -> ReadyForConstructionUkr -> ReadyForConstructionUkr Source #

For the ReadyForConstructionUkr that corresponds to the String consisting of no more than 10 words.

toHeap :: [String] -> Heap Int Source #

Every String consists of words with whitespace symbols in between.

toHeapR :: [ReadyForConstructionUkr] -> Heap Int Source #

Every ReadyForConstructionUkr corresponds to the String that consists of words with whitespace symbols in between. The list must be consistent -- either FSL-constructed or Str-constructed.

newLineEnding :: String Source #

Auxiliary printing function to define the line ending in some cases. Is taken from the Languages.UniquenessPeriods.Vector.General.DebugG module from the phonetic-languages-general package