コピーして貼り付けて拡張子を.mayuにして使って下さい。

include ".mayu"

#ロックキー全解除
keyseq $off    = &Toggle(Lock0,off) &Toggle(Lock9,off) &Toggle(Lock8,off) &Toggle(Lock7,off)  &Toggle(Lock6,off) &Toggle(Lock5,off) &Toggle(Lock4,off) &Toggle(Lock3,off) &Toggle(Lock2,off) &Toggle(Lock1,off)

#ロックキー母音解除
keyseq $Boff    = &Toggle(Lock5,off) &Toggle(Lock4,off) &Toggle(Lock3,off) &Toggle(Lock2,off) &Toggle(Lock1,off)

#ロックキー子音解除
keyseq $Soff    = &Toggle(Lock0,off) &Toggle(Lock9,off) &Toggle(Lock8,off) &Toggle(Lock7,off)  &Toggle(Lock6,off)


#-------------------------------------
#子音キーマップ設定
#-------------------------------------

key IL-*IC- =

keymap t
key t =
key r = b y o u
key e = b y u u
key j = b a
key i = b i
key k = b u
key o = b e
key l = b o

keymap r
key r =
key e = h y o u
key w = h y u u
key j = h a
key i = h i
key k = h u
key o = h e
key l = h o

keymap e
key e =
key r = r y o u
key w = r y u u
key j = r a
key i = r i
key k = r u
key o = r e
key l = r o

keymap w
key w =
key j = y a
key i =  i
key k = y u
key o =  e
key l = y o

keymap q
key q =
key w = p y o u
key e = p y u u
key j = p a
key i = p i
key k = p u
key o = p e
key l = p o

keymap g
key g =
key j = w a
key i = $QUESTION_MARK        #?
key k = n n
key o = S-_1            #!
key l = w o

keymap f
key f =
key d = n y o u
key s = n y u u
key j = n a
key i = n i
key k = n u
key o = n e
key l = n o

keymap d
key d =
key f = k y o u
key s = k y u u
key j = k a
key i = k i
key k = k u
key o = k e
key l = k o

key e = &SetImeString(から)
key c = &SetImeString(こと)

keymap s
key s =
key d = t y o u
key f = t y u u
key j = t a
key i = t i
key k = t u
key o = t e
key l = t o
key w = &SetImeString(った)
key x = &SetImeString(って)

keymap a
key a =
key s = s y o u
key d = s y u u
key j = s a
key i = s i
key k = s u
key o = s e
key l = s o

keymap b
key b =
key j = l a
key i = l i
key k = l u
key o = l e
key l = l o

keymap v
key v =
key c = m y o u
key x = m y u u
key j = m a
key i = m i
key k = m u
key o = m e
key l = m o

keymap c
key c =
key v = g y o u
key x = g y u u
key j = g a
key i = g i
key k = g u
key o = g e
key l = g o

keymap x
key x =
key c = d y o u
key v = d y u u
key j = d a
key i = d i
key k = d u
key o = d e
key l = d o

keymap z
key z =
key x = z y o u
key c = z y u u
key j = z a
key i = z i
key k = z u
key o = z e
key l = z o



keymap y
key semicolon = S-equal

keymap u
key semicolon = w o

keymap h
key semicolon = Hyphen

keymap n
key semicolon = n n
key n = n n

keymap m
key semicolon = Period

keymap comma
key semicolon = comma



#-------------------------------------------------
#----------つ・く・ち・き-------------------------
#-------------------------------------------------

#----------あ行---------
keymap atu
key p =
key t = b a t u
key r = h a t u
key e = r a t u
key w = y a t u
key q = p a t u
#key g =  a t u
key f = n a t u
key d = k a t u
key s = t a t u
key a = s a t u
#key b =  a t u
key v = m a t u
key c = g a t u
key x = d a t u
key z = z a t u
key b = a t u
 
keymap aku
key Apostrophe =
key t = b a k u
key r = h a k u
key e = r a k u
key w = y a k u
key q = p a k u
#key g =  a k u
key f = n a k u
key d = k a k u
key s = t a k u
key a = s a k u
#key b =  a k u
key v = m a k u
key c = g a k u
key x = d a k u
key z = z a k u
key b = a k u

keymap ati
key Comma =
key t = b a t i
key r = h a t i
key e = r a t i
key w = y a t i
key q = p a t i
#key g =  a t i
key f = n a t i
key d = k a t i
key s = t a t i
key a = s a t i
#key b =  a t i
key v = m a t i
key c = g a t i
key x = d a t i
key z = z a t i
key b = a t i

keymap aki
key FullStop =
key t = b a k i
key r = h a k i
key e = r a k i
key w = y a k i
key q = p a k i
#key g =  a k i
key f = n a k i
key d = k a k i
key s = t a k i
key a = s a k i
key v = m a k i
key c = g a k i
key x = d a k i
key z = z a k i
key b = a k i


#----------い行---------
keymap itu
key h =
key t = b i t u
key r = h i t u
key e = r i t u
key w = y i t u
key q = p i t u
#key g =  i t u
key f = n i t u
key d = k i t u
key s = t i t u
key a = s i t u
key v = m i t u
key c = g i t u
key x = d i t u
key z = z i t u
key b = i t u

keymap iku
key n =
key t = b i k u
key r = h i k u
key e = r i k u
key w = y i k u
key q = p i k u
#key g =  i k u
key f = n i k u
key d = k i k u
key s = t i k u
key a = s i k u
key v = m i k u
key c = g i k u
key x = d i k u
key z = z i k u
key b = i k u

keymap iti
key y =
key t = b i t i
key r = h i t i
key e = r i t i
key w = y i t i
key q = p i t i
#key g =  i t i
key f = n i t i
key d = k i t i
key s = t i t i
key a = s i t i
key v = m i t i
key c = g i t i
key x = d i t i
key z = z i t i
key b = i t i

keymap iki
key u =
key t = b i k i
key r = h i k i
key e = r i k i
key w = y i k i
key q = p i k i
#key g =  i k i
key f = n i k i
key d = k i k i
key s = t i k i
key a = s i k i
key v = m i k i
key c = g i k i
key x = d i k i
key z = z i k i
key b = i k i


#----------う行---------
keymap utu
key h =
key t = b u t u
key r = h u t u
key e = r u t u
key w = y u t u
key q = p u t u
#key g =  u t u
key f = n u t u
key d = k u t u
key s = t u t u
key a = s u t u
key v = m u t u
key c = g u t u
key x = d u t u
key z = z u t u
key b = u t u

keymap uku
key n =
key t = b u k u
key r = h u k u
key e = r u k u
key w = y u k u
key q = p u k u
#key g =  u k u
key f = n u k u
key d = k u k u
key s = t u k u
key a = s u k u
key v = m u k u
key c = g u k u
key x = d u k u
key z = z u k u
key b = u k u

keymap uti
key y =
key t = b u t i
key r = h u t i
key e = r u t i
key w = y u t i
key q = p u t i
#key g =  u t i
key f = n u t i
key d = k u t i
key s = t u t i
key a = s u t i
key v = m u t i
key c = g u t i
key x = d u t i
key z = z u t i
key b = u t i

keymap uki
key u =
key t = b u k i
key r = h u k i
key e = r u k i
key w = y u k i
key q = p u k i
#key g =  u k i
key f = n u k i
key d = k u k i
key s = t u k i
key a = s u k i
key v = m u k i
key c = g u k i
key x = d u k i
key z = z u k i
key b = u k i


#----------え行---------
keymap etu
key h =
key t = b e t u
key r = h e t u
key e = r e t u
key w = y e t u
key q = p e t u
#key g =  e t u
key f = n e t u
key d = k e t u
key s = t e t u
key a = s e t u
key v = m e t u
key c = g e t u
key x = d e t u
key z = z e t u
key b = e t u

keymap eku
key n =
key t = b e k u
key r = h e k u
key e = r e k u
key w = y e k u
key q = p e k u
#key g =  e k u
key f = n e k u
key d = k e k u
key s = t e k u
key a = s e k u
key v = m e k u
key c = g e k u
key x = d e k u
key z = z e k u
key b = e k u

keymap eti
key y =
key t = b e t i
key r = h e t i
key e = r e t i
key w = y e t i
key q = p e t i
#key g =  e t i
key f = n e t i
key d = k e t i
key s = t e t i
key a = s e t i
key v = m e t i
key c = g e t i
key x = d e t i
key z = z e t i
key b = e t i

keymap eki
key u =
key t = b e k i
key r = h e k i
key e = r e k i
key w = y e k i
key q = p e k i
#key g =  e k i
key f = n e k i
key d = k e k i
key s = t e k i
key a = s e k i
key v = m e k i
key c = g e k i
key x = d e k i
key z = z e k i
key b = e k i


#----------お行---------
keymap otu
key h =
key t = b o t u
key r = h o t u
key e = r o t u
key w = y o t u
key q = p o t u
#key g =  o t u
key f = n o t u
key d = k o t u
key s = t o t u
key a = s o t u
key v = m o t u
key c = g o t u
key x = d o t u
key z = z o t u
key b = o t u

keymap oku
key n =
key t = b o k u
key r = h o k u
key e = r o k u
key w = y o k u
key q = p o k u
#key g =  o k u
key f = n o k u
key d = k o k u
key s = t o k u
key a = s o k u
key v = m o k u
key c = g o k u
key x = d o k u
key z = z o k u
key b = o k u

keymap oti
key y =
key t = b o t i
key r = h o t i
key e = r o t i
key w = y o t i
key q = p o t i
#key g =  o t i
key f = n o t i
key d = k o t i
key s = t o t i
key a = s o t i
key v = m o t i
key c = g o t i
key x = d o t i
key z = z o t i
key b = o t i

keymap oki
key u =
key t = b o k i
key r = h o k i
key e = r o k i
key w = y o k i
key q = p o k i
#key g =  o k i
key f = n o k i
key d = k o k i
key s = t o k i
key a = s o k i
key v = m o k i
key c = g o k i
key x = d o k i
key z = z o k i
key b = o k i



#-------------------------------------------------
#母音・子音第一打設定
#-------------------------------------------------

keymap global

key IL-*IC- =

key p =
key y =
key h =
key Apostrophe =
key m =
key Comma =
key Period =


key bs = bs $off
key del = del $off

key ~U-D-t = &Prefix(t)
key ~U-D-r = &Prefix(r)
key ~U-D-e = &Prefix(e)
key ~U-D-w = &Prefix(w)
key ~U-D-q = &Prefix(q)
key ~U-D-g = &Prefix(g)
key ~U-D-f = &Prefix(f)
key ~U-D-d = &Prefix(d)
key ~U-D-s = &Prefix(s)
key ~U-D-a = &Prefix(a)
key ~U-D-b = &Prefix(b)
key ~U-D-v = &Prefix(v)
key ~U-D-c = &Prefix(c)
key ~U-D-x = &Prefix(x)
key ~U-D-z = &Prefix(z)

key ~U-D-y = &Prefix(y)
key ~U-D-u = &Prefix(u)
key ~U-D-h = &Prefix(h)
key ~U-D-n = &Prefix(n)
key ~U-D-m = &Prefix(m)
key ~U-D-comma = &Prefix(comma)
#key ~U-D-Period = &Prefix(Period)

key ~U-D-j = &Toggle(Lock1,on)        #あ
key ~D-U-j = &Toggle(Lock1,off)     #あ
key ~U-D-i = &Toggle(Lock2,on)        #い
key ~D-U-i = &Toggle(Lock2,off)     #い
key ~U-D-k = &Toggle(Lock3,on)        #う
key ~D-U-k = &Toggle(Lock3,off)     #う
key ~U-D-o = &Toggle(Lock4,on)        #え
key ~D-U-o = &Toggle(Lock4,off)     #え
key ~U-D-l = &Toggle(Lock5,on)        #お
key ~D-U-l = &Toggle(Lock5,off)     #お


key ~U-D-semicolon = &Toggle(Lock6,on)         #ん
key ~D-U-semicolon = &Toggle(Lock6,off)        #



#使ってないロックキー
#key ~U-D- = &Toggle(Lock7,on)        #
#key ~D-U- = $Soff                    #
#key ~U-D- = &Toggle(Lock8,on)        #
#key ~D-U- = $Soff                    #
#key ~U-D- = &Toggle(Lock9,on)        #
#key ~D-U- = $Soff                    #
#key ~U-D-b = &Toggle(Lock0,on)        #
#key ~D-U-b = $Soff                    #


#ロックキー全部押してない状態テンプレート
#key ~L1-~L2-~L3-~L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =



#-----------あ行-----------
key L1-~L2-~L3-~L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =
key t = b a
key r = h a
key e = r a
key w = y a
key q = p a

key g = w a
key f = n a
key d = k a
key s = t a
key a = s a

key v = m a
key c = g a
key x = d a
key z = z a
key semicolon = a

key b = l a

key p = &Prefix(atu)
key R-p = &Prefix(atu)
key Apostrophe = &Prefix(aku)
key R-Apostrophe = &Prefix(aku)
key Comma = &Prefix(ati)
key R-Comma = &Prefix(ati)
key FullStop = &Prefix(aki)
key R-FullStop = &Prefix(aki)


#-----------い行-----------
key ~L1-L2-~L3-~L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =
key t = b i
key r = h i
key e = r i
key w = y i
key q = p i

key g = w i
key f = n i
key d = k i
key s = t i
key a = s i

key v = m i
key c = g i
key x = d i
key z = z i
key semicolon = i

key b = l i

key h = &Prefix(itu)
key R-h = &Prefix(itu)
key n = &Prefix(iku)
key R-n = &Prefix(iku)
key y = &Prefix(iti)
key R-y = &Prefix(iti)
key u = &Prefix(iki)
key R-u = &Prefix(iki)




#-----------う行-----------
key ~L1-~L2-L3-~L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =
key t = b u
key r = h u
key e = r u
key w = y u
key q = p u

key g = w u
key f = n u
key d = k u
key s = t u
key a = s u

key v = m u
key c = g u
key x = d u
key z = z u
key semicolon = u

key b = l u

key h = &Prefix(utu)
key R-h = &Prefix(utu)
key n = &Prefix(uku)
key R-n = &Prefix(uku)
key y = &Prefix(uti)
key R-y = &Prefix(uti)
key u = &Prefix(uki)
key R-u = &Prefix(uki)


#-----------え行-----------
key ~L1-~L2-~L3-L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =
key t = b e
key r = h e
key e = r e
key w = y e
key q = p e

key g = w e
key f = n e
key d = k e
key s = t e
key a = s e

key v = m e
key c = g e
key x = d e
key z = z e
key semicolon = e

key b = l e

key h = &Prefix(etu)
key R-h = &Prefix(etu)
key n = &Prefix(eku)
key R-n = &Prefix(eku)
key y = &Prefix(eti)
key R-y = &Prefix(eti)
key u = &Prefix(eki)
key R-u = &Prefix(eki)


#-----------お行-----------
key ~L1-~L2-~L3-~L4-L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =
key t = b o
key r = h o
key e = r o
key w = y o
key q = p o

key g = w o
key f = n o
key d = k o
key s = t o
key a = s o

key v = m o
key c = g o
key x = d o
key z = z o
key semicolon = o

key b = l o

key h = &Prefix(otu)
key R-h = &Prefix(otu)
key n = &Prefix(oku)
key R-n = &Prefix(oku)
key y = &Prefix(oti)
key R-y = &Prefix(oti)
key u = &Prefix(oki)
key R-u = &Prefix(oki)


#-----------ん行-----------
key ~L1-~L2-~L3-~L4-~L5-L6-~L7-~L8-~L9-~L0-~S-D-~U- =

key semicolon = &Toggle(Lock6,on)
key R-semicolon = &Toggle(Lock6,on)
key j = &Toggle(Lock1,on)
key R-j =
key i = &Toggle(Lock2,on)
key R-i =
key k = &Toggle(Lock3,on)
key R-k =
key o = &Toggle(Lock4,on)
key R-o =
key l = &Toggle(Lock5,on)
key R-l =

key y = S-equal
key R-y =
key u = w o
key R-u =
key h = Hyphen
key R-h =
key n = n n
key R-n =
key m = comma
key R-m =
key comma = Period
key R-comma =

key t = l y a
key R-t =
key g = l y u
key R-g =
key b = l y o
key R-b =

key f = l t u
key R-f =

#---------------------------------------------------
#-------------------拡張----------------------------
#---------------------------------------------------

key L1-L2-~L3-~L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =  #あい
key t = b a i
key r = h a i
key e = r a i
key w = y a i
key q = p a i

key g = w a i
key f = n a i
key d = k a i
key s = t a i
key a = s a i

key v = m a i
key c = g a i
key x = d a i
key z = z a i
key b = a i

key ~L1-L2-L3-~L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =   #うい
key t = b u i
key r = h u i
key e = r u i
key w = y u i
key q = p u i

key g = w u i
key f = n u i
key d = k u i
key s = t u i
key a = s u i

key v = m u i
key c = g u i
key x = d u i
key z = z u i
key b = u i

key ~L1-L2-~L3-L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =    #えい
key t = b e i
key r = h e i
key e = r e i
key w = y e i
key q = p e i

key g = w e i
key f = n e i
key d = k e i
key s = t e i
key a = s e i

key v = m e i
key c = g e i
key x = d e i
key z = z e i
key b = e i

key ~L1-L2-~L3-~L4-L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =    #おい
key t = b o i
key r = h o i
key e = r o i
key w = y o i
key q = p o i

key g = w o i
key f = n o i
key d = k o i
key s = t o i
key a = s o i

key v = m o i
key c = g o i
key x = d o i
key z = z o i
key b = o i

key ~L1-~L2-L3-~L4-L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- =    #おう
key t = b o u
key r = h o u
key e = r o u
key w = y o u
key q = p o u

key g = w o u
key f = n o u
key d = k o u
key s = t o u
key a = s o u

key v = m o u
key c = g o u
key x = d o u
key z = z o u
key b = o u

key L1-~L2-~L3-~L4-~L5-L6-~L7-~L8-~L9-~L0-~S-D-~U- = #あん
key t = b a n n
key r = h a n n
key e = r a n n
key w = y a n n
key q = p a n n

key g = w a n n
key f = n a n n
key d = k a n n
key s = t a n n
key a = s a n n

key v = m a n n
key c = g a n n
key x = d a n n
key z = z a n n

key b = a n n

key ~L1-L2-~L3-~L4-~L5-L6-~L7-~L8-~L9-~L0-~S-D-~U- = #いん
key t = b i n n
key r = h i n n
key e = r i n n
key w = y i n n
key q = p i n n

key g = w i n n
key f = n i n n
key d = k i n n
key s = t i n n
key a = s i n n

key v = m i n n
key c = g i n n
key x = d i n n
key z = z i n n

key b = i n n

key ~L1-~L2-L3-~L4-~L5-L6-~L7-~L8-~L9-~L0-~S-D-~U- = #うん
key t = b u n n
key r = h u n n
key e = r u n n
key w = y u n n
key q = p u n n

key g = w u n n
key f = n u n n
key d = k u n n
key s = t u n n
key a = s u n n

key v = m u n n
key c = g u n n
key x = d u n n
key z = z u n n

key b = u n n

key ~L1-~L2-~L3-L4-~L5-L6-~L7-~L8-~L9-~L0-~S-D-~U- = #えん
key t = b e n n
key r = h e n n
key e = r e n n
key w = y e n n
key q = p e n n

key g = w e n n
key f = n e n n
key d = k e n n
key s = t e n n
key a = s e n n

key v = m e n n
key c = g e n n
key x = d e n n
key z = z e n n

key b = e n n

key ~L1-~L2-~L3-~L4-L5-L6-~L7-~L8-~L9-~L0-~S-D-~U- = #おん
key t = b o n n
key r = h o n n
key e = r o n n
key w = y o n n
key q = p o n n

key g = w o n n
key f = n o n n
key d = k o n n
key s = t o n n
key a = s o n n

key v = m o n n
key c = g o n n
key x = d o n n
key z = z o n n

key b = o n n

key L1-~L2-~L3-~L4-L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- = # y a
key t = b y a
key r = h y a
key e = r y a
key w = y y a
key q = p y a

key g = w y a
key f = n y a
key d = k y a
key s = t y a
key a = s y a

key v = m y a
key c = g y a
key x = d y a
key z = z y a

key L1-~L2-~L3-L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- = # y u
key t = b y u
key r = h y u
key e = r y u
key w = y y u
key q = p y u

key g = w y u
key f = n y u
key d = k y u
key s = t y u
key a = s y u

key v = m y u
key c = g y u
key x = d y u
key z = z y u

key L1-~L2-L3-~L4-~L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- = # y o
key t = b y o
key r = h y o
key e = r y o
key w = y y o
key q = p y o

key g = w y o
key f = n y o
key d = k y o
key s = t y o
key a = s y o

key v = m y o
key c = g y o
key x = d y o
key z = z y o



key L1-~L2-L3-~L4-L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- = # 特殊拡張1

key e = up
key d = down
key s = left
key f = right
key r = PageUp
key w = PageDown


key L1-L2-~L3-~L4-L5-~L6-~L7-~L8-~L9-~L0-~S-D-~U- = # 特殊拡張2
key f = bs
key d = enter
key s = del