如何在El Capitain中对一种语言进行拼写检查*但不能对另一种语言进行拼写检查?


3

我希望拼写检查希腊语(或您拥有的任何其他语言)和英语的OFF。

在系统偏好设置(键盘 - >文本)中,我启用了希腊语 (图中标有“Ελληνικά(iSquare)”的地方) 作为 只要 启用语言(我已禁用 所有其他人 从弹出菜单(设置...),我在同一菜单中选择它。

Set Up...

Greek Selected

所以希腊语拼写检查工作。 但问题是,当我输入一个 英语 一句话,它拼写检查这个词! (所以,如果我输入:“ helloo “它改变为” 你好 “!)

这是我想要避免的!

有没有办法完成检查 只要 在希腊语和 用英语讲?

所以“Εληνικά”将成为“Ελληνικά”,但“helloo”将保持“helloo”。


这可能是与使用非Apple拼写检查词典相关的错误。
Tom Gewecke

也许......但这对我没有帮助......我该怎么办?
Gik

据我所知,没什么。还有其他希腊语拼写检查可供选择吗?包括TextEdit在内的所有应用程序中是否存在问题?
Tom Gewecke

:-( ...(在所有应用程序中都一样。)
Gik

1
您是否已进入各个应用并选中了修改>拼写和语法>显示拼写和语法以确保字典设置为希腊语而不是“自动”?
Tom Gewecke

Answers:


1

以下脚本将拼写语言设置为仅韩语并打开TextEdit窗口。

#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin export PATH

CommandD()
{
osascript <<EndOfMyScript
tell application "System Events"
keystroke "d" using [command down, option down]
end tell
EndOfMyScript
}



currentDockHiddenState=$(defaults read com.apple.Dock autohide)
if [[ "$currentDockHiddenState" != "1" ]]; then
    CommandD
fi

# Disable text auto-replacement
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSAutomaticCapitalizationEnabled -bool false
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSAutomaticDashSubstitutionEnabled -bool false
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSAutomaticPeriodSubstitutionEnabled -bool false
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSAutomaticSpellingCorrectionEnabled -bool false
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSAutomaticTextCompletionEnabled -bool false
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSSpellCheckerAutomaticallyIdentifiesLanguages -bool false
defaults write ~/Library/Preferences/.GlobalPreferences.plist WebAutomaticSpellingCorrectionEnabled -bool false
defaults delete ~/Library/Preferences/.GlobalPreferences.plist NSUserDictionaryReplacementItems
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSUserDictionaryReplacementItems -array
defaults delete ~/Library/Preferences/.GlobalPreferences.plist AppleLanguages
defaults write ~/Library/Preferences/.GlobalPreferences.plist AppleLanguages -array-add "en" "ko"
defaults delete ~/Library/Preferences/.GlobalPreferences.plist NSLinguisticDataAssetsRequested
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSLinguisticDataAssetsRequested -array-add "en" "en_US" "ko"
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSPreferredSpellServerLanguage "ko"
defaults delete ~/Library/Preferences/.GlobalPreferences.plist NSPreferredSpellServerVendors
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSPreferredSpellServerVendors -dict "ko" -string "Apple"
defaults delete ~/Library/Preferences/.GlobalPreferences.plist NSPreferredSpellServers
defaults write ~/Library/Preferences/.GlobalPreferences.plist NSPreferredSpellServers -array-add "ko" "Apple"

osascript -e 'tell application "Finder"' -e 'set rrr to get bounds of window of desktop' -e 'end tell' -e 'tell application "TextEdit"' -e 'activate' -e 'set bounds of window 1 to rrr' -e 'end tell'
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.