Hiroyuki Komatsu
komat****@users*****
2004年 12月 9日 (木) 15:53:33 JST
Index: prime/lib/session.rb diff -u prime/lib/session.rb:1.4.4.6 prime/lib/session.rb:1.4.4.7 --- prime/lib/session.rb:1.4.4.6 Tue Dec 7 21:31:52 2004 +++ prime/lib/session.rb Thu Dec 9 15:53:33 2004 @@ -1,5 +1,5 @@ # session.rb -# $Id: session.rb,v 1.4.4.6 2004/12/07 12:31:52 komatsu Exp $ +# $Id: session.rb,v 1.4.4.7 2004/12/09 06:53:33 komatsu Exp $ # # Copyright (C) 2001 Satoru Takabayashi <sator****@namaz*****> # Copyright (C) 2002, 2003, 2004 Hiroyuki Komatsu <komat****@taiya*****> @@ -327,6 +327,7 @@ suikyo = PrimeTypeConv::initialize_suikyo() composer = SuikyoComposer.new(suikyo.table) composer.set_reverse_table(PRIME_ENV['suikyo_reverse_tables']) + composer.hybrid_typing = PRIME_ENV['hybrid_typing'] @session_no += 1 @sessions[@session_no.to_s] = composer @@ -360,6 +361,9 @@ def edit_erase (session) composer = session_get_composer(session) composer.edit_erase() + if PRIME_ENV['hybrid_typing'] then + composer.set_mode_hybrid() + end return reply_with_preediting_string(composer) end def edit_undo (session) @@ -399,6 +403,8 @@ def edit_set_mode (session, mode) composer = session_get_composer(session) case mode + when "hybrid" then # Original + composer.set_mode_hybrid() when "default" then # F6 composer.set_mode_default() when "katakana" then # F7 Index: prime/lib/prime-config.rb.in diff -u prime/lib/prime-config.rb.in:1.2.4.4 prime/lib/prime-config.rb.in:1.2.4.5 --- prime/lib/prime-config.rb.in:1.2.4.4 Sun Aug 29 21:54:18 2004 +++ prime/lib/prime-config.rb.in Thu Dec 9 15:53:33 2004 @@ -1,5 +1,5 @@ # prime-config.rb: Setting of global variables and default variables for PRIME. -# $Id: prime-config.rb.in,v 1.2.4.4 2004/08/29 12:54:18 komatsu Exp $ +# $Id: prime-config.rb.in,v 1.2.4.5 2004/12/09 06:53:33 komatsu Exp $ # # Copyright (C) 2003 Hiroyuki Komatsu <komat****@taiya*****> # All rights reserved. @@ -39,6 +39,11 @@ ## Suikyo: romaji-kana conversion library. PRIME_TYPING_METHOD_DEFAULT = 'romaji' PRIME_ENV['typing_method'] = PRIME_TYPING_METHOD_DEFAULT + +## If true, PRIME considers the validation of the preedition. +## ex). "あっplえ" => "apple". +PRIME_ENV['hybrid_typing'] = true + #PRIME_ENV['suikyo_tables'] = ["romaji"] #PRIME_ENV['suikyo_reverse_tables'] = ["romaji_reverse"] PRIME_ENV['suikyo_use_cache'] = true