mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 03:09:33 -06:00
Unlexers: move capitalization of first word from GF.Text.Lexing to PGF.Lexing
The capitalization of the first word was done in GF.Text.Lexing.stringOp, but is now done in the functions unlexText and unlexMixed in PGF.Lexing. These functions are only used in stringOp and in PGFService (where the change is needed), so the subtle change in behaviour should not cause any bugs.
This commit is contained in:
@@ -16,9 +16,9 @@ stringOp name = case name of
|
||||
"words" -> Just $ appLexer words
|
||||
"bind" -> Just $ appUnlexer bindTok
|
||||
"unchars" -> Just $ appUnlexer concat
|
||||
"unlextext" -> Just $ capitInit . appUnlexer (unlexText . unquote)
|
||||
"unlextext" -> Just $ appUnlexer (unlexText . unquote)
|
||||
"unlexcode" -> Just $ appUnlexer unlexCode
|
||||
"unlexmixed" -> Just $ capitInit . appUnlexer (unlexMixed . unquote)
|
||||
"unlexmixed" -> Just $ appUnlexer (unlexMixed . unquote)
|
||||
"unwords" -> Just $ appUnlexer unwords
|
||||
"to_html" -> Just wrapHTML
|
||||
_ -> transliterate name
|
||||
|
||||
Reference in New Issue
Block a user