Create a mapping from a string name to a CVS dialect. The optional "dialect" argument specifies the base dialect instance or the name of the registered dialect. The function also accepts optional keyword arguments which override settings provided by the dialect.