あり うべき 日本語処理とは by 中 博俊

  • Upload
    dara

  • View
    22

  • Download
    1

Embed Size (px)

DESCRIPTION

あり うべき 日本語処理とは by 中 博俊. 我々が普段利用している日本語。 無意識のうちに日本語処理を行っていませんか? 日本人が、日本語を使う上で、自然体に利用できる情報処理が求められています。. 残念ながら私は日本語学者ではなく Developer です。 記述の中には日本語の歴史などで誤りがあるかもしれませんが、その節はご容赦ください。. キーワードについて. 言語処理についてのキーワードはいろいろあります。 1 つ 1 つおさらいしましょう。. キーワードについて. 文字セット (Character Sets) 字体を定義した文字の集合 - PowerPoint PPT Presentation

Citation preview

#1

by #6

#6Developer #611 #6(Character Sets)ASCII, JIS, UnicodeJIS(nmo) Unicode(U+0000)(Encode)ShiftJIS, EUC, UTF-8, UTF-16ShiftJISJIS #6(Character) (Glyph)(Style)()(MSP)

#6 JIS

(JIS) #6JISASCII(1963)JISX0201(1969)JISX0208(1978(JIS), 1983(JIS))1, 2JISX0212(1990)JISX0213(2000)3, 4 #6ASCIIJISASCIIJIS

YEN SIGNOVER LINE #6JISASCII(1963)JISX0201(1969)

#6Vista #6 #6(JISX0208)

#6200020003 Hirotoshi, NakaNAKA Hirotoshi () 5 #6

#6()1716 #6()1716

#6()vs1946()/1/161949(/4/28 #6 #6(U+6F80, JIS213:1-63-8)(U+6F81, JIS213:1-63-7)(U+6E0B,JIS213:1-29-34)(U+533A, JIS213:1-22-72)(U+5340, JIS213:1-50-31)

#6.NET System.StringPS C:\Users\localnaka> "" -eq ""FalsePS C:\Users\localnaka> "" -eq ""False.NET System.Data.SqlTypes.SqlString$a = New-Object Data.SqlTypes.SqlString ""$b = New-Object Data.SqlTypes.SqlString ""$a -eq $bSQL Server 2005declare @a table( col nvarchar(100))insert into @a values('')insert into @a values('')insert into @a values('')select * from @a where [col] collate Japanese_90_CI_AI = '' #6.NET System.StringPS C:\Users\localnaka> "" -eq ""FalsePS C:\Users\localnaka> "" -eq ""False.NET System.Data.SqlTypes.SqlString$a = New-Object Data.SqlTypes.SqlString ""$b = New-Object Data.SqlTypes.SqlString ""$a -eq $bSQL Server 2005declare @a table( col nvarchar(100))insert into @a values('')insert into @a values('')insert into @a values('')select * from @a where [col] collate Japanese_90_CI_AI = '' #6Vista #6VistaUnicode

#6Vista #6Unicode

U+304CU+304B, U+3099Windows Vista

#6Unicode.NET System.String1(Equal)string a = ";string b = "";MessageBox.Show((a + "==" + b +"=" + (a == b).ToString()).ToString());.NET System.String1()MessageBox.Show((a + "==" + b + "=" + (string.Equals( a, b, StringComparison.CurrentCulture)).ToString()).ToString());.NET System.Data.SqlTypes.SqlStringSystem.Data.SqlTypes.SqlString a = new System.Data.SqlTypes.SqlString(");System.Data.SqlTypes.SqlString b = new System.Data.SqlTypes.SqlString("");MessageBox.Show((a + "==" + b +"=" + (a == b).ToString()).ToString());SQL Server 2005declare @a table(col nvarchar(100))insert into @a values(nchar(12363) + nchar(12441))insert into @a values('')select * from @a where [col] = '' #6Unicode.NET System.String1(Equal)string a = ";string b = "";MessageBox.Show((a + "==" + b +"=" + (a == b).ToString()).ToString());.NET System.String1()MessageBox.Show((a + "==" + b + "=" + (string.Equals( a, b, StringComparison.CurrentCulture)).ToString()).ToString());.NET System.Data.SqlTypes.SqlStringSystem.Data.SqlTypes.SqlString a = new System.Data.SqlTypes.SqlString(");System.Data.SqlTypes.SqlString b = new System.Data.SqlTypes.SqlString("");MessageBox.Show((a + "==" + b +"=" + (a == b).ToString()).ToString());SQL Server 2005declare @a table(col nvarchar(100))insert into @a values(nchar(12363) + nchar(12441))insert into @a values('')select * from @a where [col] = ''

#6 #6

#6

#6 vs = vs ==

#6 vs 1=(U+13A0)(U+0410) #6

#6

#6() #6 #6

#6Business Value Launch 200607/4/16 2335 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.38Michel Caplan(International Fundamentals team )http://blogs.msdn.com/michkapJIS X 0213:2004 http://www.microsoft.com/japan/windows/products/windowsvista/jp_font/default.mspxhttp://www.mext.go.jp/b_menu/shingi/12/kokugo/index.htm()http://aozora.gr.jp/kanji_table/http://members.jcom.home.ne.jp/w3c/Unicode http://www.unicode.org/charts/http://www.bunka.go.jp/kokugo/frame.asp?tm=20070409103237

#6IME2007

Windows #6