<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.6.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSOrthography/init(dominantScript:languageMap:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSOrthography(im)initWithDominantScript:languageMap:"
  },
  "title" : "init(dominantScript:languageMap:)"
}
-->

# init(dominantScript:languageMap:)

Creates an orthography object with the specified dominant script and language map.

```
init(dominantScript script: String, languageMap map: [String : [String]])
```

## Parameters

`script`

The dominant script.

`map`

A dictionary mapping ISO 15924 script codes to arrays of BCP-47 language tags.

## Return Value

An orthography object initialized with the specified script and language map.

## Discussion

You typically use the [`defaultOrthography(forLanguage:)`](/documentation/Foundation/NSOrthography/defaultOrthography(forLanguage:)) method to create orthography objects with automatic language mapping. Use this initializer only if you need to override the script associated with one or more languages.

## See Also

[`orthographyWithDominantScript:languageMap:`](/documentation/Foundation/NSOrthography/orthographyWithDominantScript:languageMap:)

Creates and returns an orthography object with the specified dominant script and language map.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)