トップ回答者
WPF標準のスペルチェックについて

質問
回答
-
> これは仕様で、日本語をスペルエラーにしない方法は無いのでしょうか?
どうやらこれは仕様みたいです。指定言語の辞書に載ってない単語はスペルミスとして弾かれるようですね。
回避方法としてカスタム辞書を考えてみましたが、日本語を登録しても弾かれました。
スペルチェックを有効にして日本語をエラーにしないのはかなり厳しいように思えます。customwords.lex (カスタム辞書)
#LID 1033
MSDN
ViewModel
MVVM
garupan
こんにちは
こんばんは
<Window x:Class="SpellCheckTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=System" Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded" > <Grid Language="en-us" ><!-- 言語を英語に設定する --> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="80" /> </Grid.RowDefinitions> <TextBox AcceptsReturn="True" Name="textBox1" TextWrapping="Wrap" SpellCheck.IsEnabled="True" > <SpellCheck.CustomDictionaries> <!-- customwords.lex is included as a content file--> <sys:Uri>pack://application:,,,/customwords.lex</sys:Uri> </SpellCheck.CustomDictionaries> In a custum menu you need to write code to add speler choices because everything in a custom context menu has to be added explicitly. こんにちは MSDN MVVM ViewModel garupan </TextBox> <Button Grid.Row="1" Height="29" HorizontalAlignment="Left" Margin="400,27,0,0" Name="button1" VerticalAlignment="Top" Width="70" /> </Grid> </Window>
結果
ひらぽん http://d.hatena.ne.jp/hilapon/
- 回答としてマーク anakahala 2012年12月25日 5:28
すべての返信
-
> これは仕様で、日本語をスペルエラーにしない方法は無いのでしょうか?
どうやらこれは仕様みたいです。指定言語の辞書に載ってない単語はスペルミスとして弾かれるようですね。
回避方法としてカスタム辞書を考えてみましたが、日本語を登録しても弾かれました。
スペルチェックを有効にして日本語をエラーにしないのはかなり厳しいように思えます。customwords.lex (カスタム辞書)
#LID 1033
MSDN
ViewModel
MVVM
garupan
こんにちは
こんばんは
<Window x:Class="SpellCheckTest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=System" Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded" > <Grid Language="en-us" ><!-- 言語を英語に設定する --> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition Height="80" /> </Grid.RowDefinitions> <TextBox AcceptsReturn="True" Name="textBox1" TextWrapping="Wrap" SpellCheck.IsEnabled="True" > <SpellCheck.CustomDictionaries> <!-- customwords.lex is included as a content file--> <sys:Uri>pack://application:,,,/customwords.lex</sys:Uri> </SpellCheck.CustomDictionaries> In a custum menu you need to write code to add speler choices because everything in a custom context menu has to be added explicitly. こんにちは MSDN MVVM ViewModel garupan </TextBox> <Button Grid.Row="1" Height="29" HorizontalAlignment="Left" Margin="400,27,0,0" Name="button1" VerticalAlignment="Top" Width="70" /> </Grid> </Window>
結果
ひらぽん http://d.hatena.ne.jp/hilapon/
- 回答としてマーク anakahala 2012年12月25日 5:28