mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-23 01:52:50 -06:00
trying to get the coding flag to work in grammars
This commit is contained in:
@@ -186,9 +186,11 @@ moduleOptionsGFO :: ModuleOptions -> [(String,String)]
|
|||||||
moduleOptionsGFO (ModuleOptions o) =
|
moduleOptionsGFO (ModuleOptions o) =
|
||||||
maybe [] (\x -> [("language",x)]) (optSpeechLanguage mfs)
|
maybe [] (\x -> [("language",x)]) (optSpeechLanguage mfs)
|
||||||
++ maybe [] (\x -> [("startcat",x)]) (optStartCat mfs)
|
++ maybe [] (\x -> [("startcat",x)]) (optStartCat mfs)
|
||||||
|
-- ++ maybe [] (\x -> [("coding", e2s x)]) (Just (optEncoding mfs))
|
||||||
++ (if optErasing mfs then [("erasing","on")] else [])
|
++ (if optErasing mfs then [("erasing","on")] else [])
|
||||||
where mfs = o defaultModuleFlags
|
where
|
||||||
|
mfs = o defaultModuleFlags
|
||||||
|
e2s e = maybe [] id $ lookup e [(s,e) | (e,s) <- encodings]
|
||||||
|
|
||||||
-- Option manipulation
|
-- Option manipulation
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user