Skip to main content

mixed_script

Function mixed_script 

Source
pub fn mixed_script(name: &str) -> Option<MixedScript>
Expand description

Is this name spelled in more than one script?

The rule is UAX #39’s Highly Restrictive profile: a name whose characters resolve to one script is fine, and so are the three script sets a writing system needs — Latin with Japanese, with Chinese, or with Korean. café, 名前, переменная, and 変数x all pass. PАTH does not.

Separate from validate on purpose. validate returns an Err its callers refuse on, and this is a warning: the name binds either way.