[header]
language = FIF
charset = utf-8

[data]
# normalize nonbreaking spaces to spaces
# ignore other unicode space characters such as Ogham space mark
# (U+1680), Mongolian vowel separator (U+180e), general punctuation
# block spaces (U+2000-U+200B, U+202F, U+205F), ideographic space
# (U+3000), and zero width no-break space (U+FEFF)
/[\xA0]/   -->   " "

# nonbreaking space test rules
# the rules below contain a normal space and a nonbreaking
# space respectively
#/test1: space/   -->   "pass space"
#/test2: nonbreakingspace/   -->   "pass nonbreaking space"

# normalize smart quote to apostrophe
# the official orthography uses U+2019 instead of apostrophe
# <rdar://problem/34551032> [fi_FI] Normalize U+2019 (right single quotation mark) to U+0027 (apostrophe)
/’/   -->   "'"

/([0-9][0-9]*) *kk\b/   -->   " $1 kuukautta "
/\b1 kk\b/   -->   "1 kuukausi "
#
/(\d) kasvot\b/   -->   "$1:t kasvot"
/\.com\b/   -->   ".kom"
#
# order space normalization rules by number of tokens first
# 4 tokens
/\b10[.,]5 tuuman iPad ?Pro/i   -->   "10,5_tuuman_iPadPro"
/\b13 tuuman iPad ?Pro/i   -->   "13_tuuman_iPadPro"
/\bApple Watch Series ([1-3])/i   -->   "AppleWatchSeries$1"
# 3 tokens
/\b10[.,]5[”"] iPad ?Pro/i   -->   "10,5_tuuman_iPadPro"
/\b13[”"] iPad ?Pro/i   -->   "13_tuuman_iPadPro"
/\bApple Music Festival/i   -->   "AppleMusicFestival"
/\bApple Pay Cash/i   -->   "ApplePayCash"
/\biPhone ([4-8]) ?Plus/i   -->   "iPhone$1 Plus"
/\bMac App Store/i   -->   "MacAppStore"
/\bMade for iPad/i   -->   "MadeforiPad"
/\bMade for iPhone/i   -->   "MadeforiPhone"
/\bMade for iPod/i   -->   "MadeforiPod"
/\bMac OS X/i   -->   "MacOSX"
/\bMy Little Pony/i   -->   "MyLittlePony"
/\bPuhu autom\. tekstit\b/i   -->   "Puhu_autom_tekstit"
/\bSuper Retina Display/i   -->   "SuperRetinaDisplay"
# 2 tokens
/\bAirPort Express/i   -->   "AirPortExpress"
/\bAngry Birds/i   -->   "AngryBirds"
/\bApp Store/i   -->   "AppStore"
/\bApple ID/i   -->   "AppleID"
/\bApple Music/i   -->   "AppleMusic"
/\bApple Pay/i   -->   "ApplePay"
/\bApple Remote/i   -->   "AppleRemote"
/\bApple Watch/i   -->   "AppleWatch"
/\bBackstreet Boys/i   -->   "BackstreetBoys"
/\bBeats 1/i   -->   "Beats1"
/\bDigital Crown/i   -->   "DigitalCrown"
/\bDigital Touch/i   -->   "DigitalTouch"
/\bFace ID/i   -->   "FaceID"
/\bFace Time/i   -->   "FaceTime"
/\bForce Touch/i   -->   "ForceTouch"
/\bGame Center/i   -->   "GameCenter"
/\bGarage Band/i   -->   "GarageBand"
/\biBooks Author/i   -->   "iBooksAuthor"
/\biBooks Store/i   -->   "BooksStore"
/\biCloud Drive/i   -->   "iCloudDrive"
/\biMac Pro/i   -->   "iMacPro"
/\biMovie Theater/i   -->   "iMovieTheater"
/\biPhone ([4-8]s?)/i   -->   "iPhone$1"
/\biPhone 10/i   -->   "iPhoneX"
/\biPhone SE/i   -->   "iPhoneSE"
/\biPhone X/i   -->   "iPhoneX"
/\biPad Air/i   -->   "iPadAir"
/\biPad Pro/i   -->   "iPadPro"
/\biPod Shuffle/i   -->   "iPodShuffle"
/\biTunes Match/i   -->   "iTunesMatch"
/\biTunes Producer/i   -->   "iTunesProducer"
/\biTunes Store/i   -->   "iTunesStore"
/\bKeynote Remote/i   -->   "KeynoteRemote"
/\bLogic Remote/i   -->   "LogicRemote"
/\bLos Angeles/i   -->   "LosAngeles"
/\bMacBook Air/i   -->   "MacBookAir"
/\bMacBook Pro/i   -->   "MacBookPro"
/\bMac Mini/i   -->   "MacMini"
/\bMac OS/i   -->   "MacOS"
/\bMac Pro/i   -->   "MacPro"
/\bMagic Keyboard/i   -->   "MagicKeyboard"
/\bMagic Mouse/i   -->   "MagicMouse"
/\bMagic Trackpad/i   -->   "MagicTrackpad"
/\bMail Drop/i   -->   "MailDrop"
/\bMulti Touch/i   -->   "MultiTouch"
/\bNew York/i   -->   "NewYork"
/\bNäytä tallenteet\b/i   -->   "Näytä_tallenteet"
/\bPhoto Booth/i   -->   "PhotoBooth"
/\bPower Beats/i   -->   "PowerBeats"
/\bQuickTime Player/i   -->   "QuickTimePlayer"
/\bSiri[ -–-]kellotaulu/i  -->   "Siri-kellotaulu"
/\bSiri Remote/i   -->   "SiriRemote"
/\bSlide Over/i   -->   "SlideOver"
/\bSmart Keyboard/i   -->   "SmartKeyboard"
/\bSplit View/i   -->   "SplitView"
/\bSunrise Avenue/i   -->   "SunriseAvenue"
/\bTee kysely\b/i   -->   "Tee_kysely"
/\bTime Capsule/i   -->   "TimeCapsule"
/\bTime Machine/i   -->   "TimeMachine"
/\bTop Sites/i   -->   "TopSites"
/\bTouch ID/i   -->   "TouchID"
//   -->   " Apple "
# rules for compound parts
/\bmanner-/i   -->   "\e/+'mA.n:er\e/+"
/pizza/i   -->   "\e/+'pit.sA\e/+"
/\bAUX/   -->   "\e/+'Auk.s\e/+"
/\bMM-/   -->   "\e/+'@m_@m\e/+"
/\bSM-/   -->   "\e/+'@s_@m\e/+"
/\bApple[-:]/   -->   "\e/+'@p.l\e/+"
/\bTV-/   -->   "\e/+'te:.ve:\e/+"
/\biCloud-/i   -->   "\e/+'A&ik.lA&ud\e/+"
/\biOS-/i   -->   "\e/+'A&i.o&u.es\e/+"
# rules for sentences
/\ben aseta sitä\b/i   -->   "\e/+'en_'A.setAs_'si.t@\e/+"
