Diffs
sfJpMobilePlugin/tags/0.0.3-beta/config/jpmobile/emoji/sb_dec.yml
@@ -0,0 +1,256 @@
+# vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
+# $Id$
+dec:
+ "#xE63E": ""
+ "#xE63F": ""
+ "#xE640": ""
+ "#xE641": ""
+ "#xE642": ""
+ "#xE643": ""
+ "#xE644": ""
+ "#xE645": ""
+ "#xE646": ""
+ "#xE647": ""
+ "#xE648": ""
+ "#xE649": ""
+ "#xE64A": ""
+ "#xE64B": ""
+ "#xE64C": ""
+ "#xE64D": ""
+ "#xE64E": ""
+ "#xE64F": ""
+ "#xE650": ""
+ "#xE651": ""
+ "#xE652": ""
+ "#xE653": ""
+ "#xE654": ""
+ "#xE655": ""
+ "#xE656": ""
+ "#xE657": ""
+ "#xE658": ""
+ "#xE659": ""
+ "#xE65A": ""
+ "#xE65B": ""
+ "#xE65C": ""
+ "#xE65D": ""
+ "#xE65E": ""
+ "#xE65F": ""
+ "#xE660": ""
+ "#xE661": ""
+ "#xE662": ""
+ "#xE663": ""
+ "#xE664": ""
+ "#xE665": ""
+ "#xE666": ""
+ "#xE667": ""
+ "#xE668": ""
+ "#xE669": ""
+ "#xE66A": ""
+ "#xE66B": ""
+ "#xE66C": ""
+ "#xE66D": ""
+ "#xE66E": ""
+ "#xE66F": ""
+ "#xE670": ""
+ "#xE671": ""
+ "#xE672": ""
+ "#xE673": ""
+ "#xE674": ""
+ "#xE675": ""
+ "#xE676": ""
+ "#xE677": ""
+ "#xE678": ""
+ "#xE679": ""
+ "#xE67A": ""
+ "#xE67B": ""
+ "#xE67C": ""
+ "#xE67D": ""
+ "#xE67E": ""
+ "#xE67F": ""
+ "#xE680": ""
+ "#xE681": ""
+ "#xE682": ""
+ "#xE683": ""
+ "#xE684": ""
+ "#xE685": ""
+ "#xE686": ""
+ "#xE687": ""
+ "#xE688": ""
+ "#xE689": ""
+ "#xE68A": ""
+ "#xE68B": ""
+ "#xE68C": ""
+ "#xE68D": ""
+ "#xE68E": ""
+ "#xE68F": ""
+ "#xE690": ""
+ "#xE691": ""
+ "#xE692": ""
+ "#xE693": ""
+ "#xE694": ""
+ "#xE695": ""
+ "#xE696": ""
+ "#xE697": ""
+ "#xE698": ""
+ "#xE699": ""
+ "#xE69A": ""
+ "#xE69B": ""
+ "#xE69C": "●"
+ "#xE69D": "●"
+ "#xE69E": "●"
+ "#xE69F": "●"
+ "#xE6A0": "○"
+ "#xE6A1": ""
+ "#xE6A2": ""
+ "#xE6A3": ""
+ "#xE6A4": ""
+ "#xE6A5": ""
+ "#xE6AC": ""
+ "#xE6AD": ""
+ "#xE6AE": ""
+ "#xE6B1": ""
+ "#xE6B2": ""
+ "#xE6B3": ""
+ "#xE6B7": ""
+ "#xE6B8": "⇔"
+ "#xE6B9": ""
+ "#xE6BA": ""
+ "#xE6CE": ""
+ "#xE6CF": ""
+ "#xE6D0": ""
+ "#xE6D1": "Y!"
+ "#xE6D2": "Y!"
+ "#xE6D3": ""
+ "#xE6D4": "D"
+ "#xE6D5": "D"
+ "#xE6D6": "¥"
+ "#xE6D7": "FREE"
+ "#xE6D8": "ID"
+ "#xE6D9": ""
+ "#xE6DA": ""
+ "#xE6DB": "CL"
+ "#xE6DC": ""
+ "#xE6DD": ""
+ "#xE6DE": ""
+ "#xE6DF": ""
+ "#xE6E0": ""
+ "#xE6E1": "Q"
+ "#xE6E2": ""
+ "#xE6E3": ""
+ "#xE6E4": ""
+ "#xE6E5": ""
+ "#xE6E6": ""
+ "#xE6E7": ""
+ "#xE6E8": ""
+ "#xE6E9": ""
+ "#xE6EA": ""
+ "#xE6EB": ""
+ "#xE6EC": ""
+ "#xE6ED": ""
+ "#xE6EE": ""
+ "#xE6EF": ""
+ "#xE6F0": ""
+ "#xE6F1": ""
+ "#xE6F2": ""
+ "#xE6F3": ""
+ "#xE6F4": ""
+ "#xE6F5": ""
+ "#xE6F6": "♪"
+ "#xE6F7": ""
+ "#xE6F8": ""
+ "#xE6F9": ""
+ "#xE6FA": ""
+ "#xE6FB": ""
+ "#xE6FC": ""
+ "#xE6FD": ""
+ "#xE6FE": ""
+ "#xE6FF": ""
+ "#xE700": ""
+ "#xE701": ""
+ "#xE702": ""
+ "#xE703": "!?"
+ "#xE704": ""
+ "#xE705": ""
+ "#xE706": ""
+ "#xE707": ""
+ "#xE708": ""
+ "#xE709": "~"
+ "#xE70A": "~"
+ "#xE70B": ""
+ "#xE70C": "S!"
+ "#xE70D": "S!"
+ "#xE70E": ""
+ "#xE70F": ""
+ "#xE710": ""
+ "#xE711": ""
+ "#xE712": ""
+ "#xE713": ""
+ "#xE714": ""
+ "#xE715": ""
+ "#xE716": ""
+ "#xE717": ""
+ "#xE718": ""
+ "#xE719": ""
+ "#xE71A": ""
+ "#xE71B": ""
+ "#xE71C": ""
+ "#xE71D": ""
+ "#xE71E": ""
+ "#xE71F": ""
+ "#xE720": ""
+ "#xE721": ""
+ "#xE722": ""
+ "#xE723": ""
+ "#xE724": ""
+ "#xE725": ""
+ "#xE726": ""
+ "#xE727": ""
+ "#xE728": ""
+ "#xE729": ""
+ "#xE72A": ""
+ "#xE72B": ""
+ "#xE72C": ""
+ "#xE72D": ""
+ "#xE72E": ""
+ "#xE72F": ""
+ "#xE730": ""
+ "#xE731": ""
+ "#xE732": ""
+ "#xE733": ""
+ "#xE734": ""
+ "#xE735": ""
+ "#xE736": ""
+ "#xE737": ""
+ "#xE738": "禁"
+ "#xE739": ""
+ "#xE73A": "合"
+ "#xE73B": ""
+ "#xE73C": "⇔"
+ "#xE73D": "↑↓"
+ "#xE73E": ""
+ "#xE73F": ""
+ "#xE740": ""
+ "#xE741": ""
+ "#xE742": ""
+ "#xE743": ""
+ "#xE744": ""
+ "#xE745": ""
+ "#xE746": ""
+ "#xE747": ""
+ "#xE748": ""
+ "#xE749": ""
+ "#xE74A": ""
+ "#xE74B": ""
+ "#xE74C": ""
+ "#xE74D": ""
+ "#xE74E": ""
+ "#xE74F": ""
+ "#xE750": ""
+ "#xE751": ""
+ "#xE752": ""
+ "#xE753": ""
+ "#xE754": ""
+ "#xE755": ""
+ "#xE756": ""
+ "#xE757": ""
+
sfJpMobilePlugin/tags/0.0.3-beta/config/jpmobile/emoji/au_dec.yml
@@ -0,0 +1,256 @@
+# vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
+# $Id$
+dec:
+ "#xE63E": ""
+ "#xE63F": ""
+ "#xE640": ""
+ "#xE641": ""
+ "#xE642": ""
+ "#xE643": ""
+ "#xE644": ""
+ "#xE645": ""
+ "#xE646": ""
+ "#xE647": ""
+ "#xE648": ""
+ "#xE649": ""
+ "#xE64A": ""
+ "#xE64B": ""
+ "#xE64C": ""
+ "#xE64D": ""
+ "#xE64E": ""
+ "#xE64F": ""
+ "#xE650": ""
+ "#xE651": ""
+ "#xE652": ""
+ "#xE653": ""
+ "#xE654": ""
+ "#xE655": ""
+ "#xE656": ""
+ "#xE657": ""
+ "#xE658": ""
+ "#xE659": ""
+ "#xE65A": ""
+ "#xE65B": ""
+ "#xE65C": ""
+ "#xE65D": ""
+ "#xE65E": ""
+ "#xE65F": ""
+ "#xE660": ""
+ "#xE661": ""
+ "#xE662": ""
+ "#xE663": ""
+ "#xE664": ""
+ "#xE665": ""
+ "#xE666": ""
+ "#xE667": ""
+ "#xE668": ""
+ "#xE669": ""
+ "#xE66A": ""
+ "#xE66B": ""
+ "#xE66C": ""
+ "#xE66D": ""
+ "#xE66E": ""
+ "#xE66F": ""
+ "#xE670": ""
+ "#xE671": ""
+ "#xE672": ""
+ "#xE673": ""
+ "#xE674": ""
+ "#xE675": ""
+ "#xE676": ""
+ "#xE677": ""
+ "#xE678": ""
+ "#xE679": ""
+ "#xE67A": ""
+ "#xE67B": ""
+ "#xE67C": ""
+ "#xE67D": ""
+ "#xE67E": ""
+ "#xE67F": ""
+ "#xE680": ""
+ "#xE681": ""
+ "#xE682": ""
+ "#xE683": ""
+ "#xE684": ""
+ "#xE685": ""
+ "#xE686": ""
+ "#xE687": ""
+ "#xE688": ""
+ "#xE689": ""
+ "#xE68A": ""
+ "#xE68B": ""
+ "#xE68C": ""
+ "#xE68D": ""
+ "#xE68E": ""
+ "#xE68F": ""
+ "#xE690": ""
+ "#xE691": ""
+ "#xE692": ""
+ "#xE693": ""
+ "#xE694": ""
+ "#xE695": ""
+ "#xE696": ""
+ "#xE697": ""
+ "#xE698": ""
+ "#xE699": ""
+ "#xE69A": ""
+ "#xE69B": ""
+ "#xE69C": ""
+ "#xE69D": ""
+ "#xE69E": ""
+ "#xE69F": ""
+ "#xE6A0": "○"
+ "#xE6A1": ""
+ "#xE6A2": ""
+ "#xE6A3": ""
+ "#xE6A4": ""
+ "#xE6A5": ""
+ "#xE6AC": ""
+ "#xE6AD": ""
+ "#xE6AE": ""
+ "#xE6B1": ""
+ "#xE6B2": ""
+ "#xE6B3": ""
+ "#xE6B7": ""
+ "#xE6B8": ""
+ "#xE6B9": ""
+ "#xE6BA": ""
+ "#xE6CE": ""
+ "#xE6CF": ""
+ "#xE6D0": ""
+ "#xE6D1": ""
+ "#xE6D2": ""
+ "#xE6D3": ""
+ "#xE6D4": "D"
+ "#xE6D5": "D"
+ "#xE6D6": "¥"
+ "#xE6D7": ""
+ "#xE6D8": ""
+ "#xE6D9": ""
+ "#xE6DA": ""
+ "#xE6DB": ""
+ "#xE6DC": ""
+ "#xE6DD": ""
+ "#xE6DE": ""
+ "#xE6DF": ""
+ "#xE6E0": ""
+ "#xE6E1": ""
+ "#xE6E2": ""
+ "#xE6E3": ""
+ "#xE6E4": ""
+ "#xE6E5": ""
+ "#xE6E6": ""
+ "#xE6E7": ""
+ "#xE6E8": ""
+ "#xE6E9": ""
+ "#xE6EA": ""
+ "#xE6EB": ""
+ "#xE6EC": ""
+ "#xE6ED": ""
+ "#xE6EE": ""
+ "#xE6EF": ""
+ "#xE6F0": ""
+ "#xE6F1": ""
+ "#xE6F2": ""
+ "#xE6F3": ""
+ "#xE6F4": ""
+ "#xE6F5": ""
+ "#xE6F6": ""
+ "#xE6F7": ""
+ "#xE6F8": ""
+ "#xE6F9": ""
+ "#xE6FA": ""
+ "#xE6FB": ""
+ "#xE6FC": ""
+ "#xE6FD": ""
+ "#xE6FE": ""
+ "#xE6FF": ""
+ "#xE700": ""
+ "#xE701": ""
+ "#xE702": ""
+ "#xE703": ""
+ "#xE704": ""
+ "#xE705": ""
+ "#xE706": ""
+ "#xE707": ""
+ "#xE708": ""
+ "#xE709": ""
+ "#xE70A": ""
+ "#xE70B": ""
+ "#xE70C": ""
+ "#xE70D": ""
+ "#xE70E": ""
+ "#xE70F": ""
+ "#xE710": ""
+ "#xE711": ""
+ "#xE712": ""
+ "#xE713": ""
+ "#xE714": ""
+ "#xE715": ""
+ "#xE716": ""
+ "#xE717": ""
+ "#xE718": ""
+ "#xE719": ""
+ "#xE71A": ""
+ "#xE71B": ""
+ "#xE71C": ""
+ "#xE71D": ""
+ "#xE71E": ""
+ "#xE71F": ""
+ "#xE720": ""
+ "#xE721": ""
+ "#xE722": ""
+ "#xE723": ""
+ "#xE724": ""
+ "#xE725": ""
+ "#xE726": ""
+ "#xE727": ""
+ "#xE728": ""
+ "#xE729": ""
+ "#xE72A": ""
+ "#xE72B": ""
+ "#xE72C": ""
+ "#xE72D": ""
+ "#xE72E": ""
+ "#xE72F": ""
+ "#xE730": ""
+ "#xE731": ""
+ "#xE732": ""
+ "#xE733": ""
+ "#xE734": ""
+ "#xE735": ""
+ "#xE736": ""
+ "#xE737": ""
+ "#xE738": ""
+ "#xE739": ""
+ "#xE73A": "合"
+ "#xE73B": ""
+ "#xE73C": ""
+ "#xE73D": ""
+ "#xE73E": ""
+ "#xE73F": ""
+ "#xE740": ""
+ "#xE741": ""
+ "#xE742": ""
+ "#xE743": ""
+ "#xE744": ""
+ "#xE745": ""
+ "#xE746": ""
+ "#xE747": ""
+ "#xE748": ""
+ "#xE749": ""
+ "#xE74A": ""
+ "#xE74B": ""
+ "#xE74C": ""
+ "#xE74D": ""
+ "#xE74E": ""
+ "#xE74F": ""
+ "#xE750": ""
+ "#xE751": ""
+ "#xE752": ""
+ "#xE753": ""
+ "#xE754": ""
+ "#xE755": ""
+ "#xE756": ""
+ "#xE757": ""
+
sfJpMobilePlugin/tags/0.0.3-beta/config/jpmobile/emoji/dc_dec.yml
@@ -0,0 +1,3 @@
+# vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
+# $Id$
+dec: []
sfJpMobilePlugin/tags/0.0.3-beta/config/jpmobile/emoji/sb_enc.yml
@@ -0,0 +1,231 @@
+# vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
+# $Id$
+enc:
+ "ee818a": "#xE63E"
+ "ee8189": "#xE63F"
+ "ee818b": "#xE640"
+ "ee8188": "#xE641"
+ "ee84bd": "#xE642"
+ "ee9183": "#xE643"
+ "ee818b": "#xE644"
+ "ee90bc": "#xE645"
+ "ee88bf": "#xE646"
+ "ee8980": "#xE647"
+ "ee8981": "#xE648"
+ "ee8982": "#xE649"
+ "ee8983": "#xE64A"
+ "ee8984": "#xE64B"
+ "ee8985": "#xE64C"
+ "ee8986": "#xE64D"
+ "ee8987": "#xE64E"
+ "ee8988": "#xE64F"
+ "ee8989": "#xE650"
+ "ee898a": "#xE651"
+ "ee8899": "#xE652"
+ "ee8096": "#xE653"
+ "ee8094": "#xE654"
+ "ee8095": "#xE655"
+ "ee8098": "#xE656"
+ "ee8093": "#xE657"
+ "ee90aa": "#xE658"
+ "ee84b2": "#xE659"
+ "ee8089": "#xE65A"
+ "ee809e": "#xE65B"
+ "ee90b4": "#xE65C"
+ "ee809f": "#xE65D"
+ "ee809b": "#xE65E"
+ "ee90ae": "#xE65F"
+ "ee809e": "#xE660"
+ "ee8882": "#xE661"
+ "ee809d": "#xE662"
+ "ee80b6": "#xE663"
+ "ee80b8": "#xE664"
+ "ee8593": "#xE665"
+ "ee8595": "#xE666"
+ "ee858d": "#xE667"
+ "ee8594": "#xE668"
+ "ee8598": "#xE669"
+ "ee8596": "#xE66A"
+ "ee80ba": "#xE66B"
+ "ee858f": "#xE66C"
+ "ee858e": "#xE66D"
+ "ee90a8": "#xE66E"
+ "ee8183": "#xE66F"
+ "ee8185": "#xE670"
+ "ee8184": "#xE671"
+ "ee8187": "#xE672"
+ "ee84a0": "#xE673"
+ "ee84be": "#xE674"
+ "ee8c93": "#xE675"
+ "ee80bc": "#xE676"
+ "ee80bd": "#xE677"
+ "ee88b6": "#xE678"
+ "ee84a4": "#xE679"
+ "ee8c8a": "#xE67A"
+ "ee9482": "#xE67B"
+ "ee9483": "#xE67C"
+ "ee80b7": "#xE67D"
+ "ee84a5": "#xE67E"
+ "ee8c8e": "#xE67F"
+ "ee8888": "#xE680"
+ "ee8088": "#xE681"
+ "ee8ca3": "#xE682"
+ "ee8588": "#xE683"
+ "ee8c94": "#xE684"
+ "ee8492": "#xE685"
+ "ee8d8b": "#xE686"
+ "ee8089": "#xE687"
+ "ee808a": "#xE688"
+ "ee8c81": "#xE689"
+ "ee808c": "#xE68A"
+ "ee84ab": "#xE68B"
+ "ee84a6": "#xE68C"
+ "ee888c": "#xE68D"
+ "ee888e": "#xE68E"
+ "ee888d": "#xE68F"
+ "ee888f": "#xE690"
+ "ee9099": "#xE691"
+ "ee909b": "#xE692"
+ "ee8090": "#xE693"
+ "ee8091": "#xE694"
+ "ee8092": "#xE695"
+ "ee88b8": "#xE696"
+ "ee88b7": "#xE697"
+ "ee94b6": "#xE698"
+ "ee8087": "#xE699"
+ "ee8494": "#xE69A"
+ "ee888a": "#xE69B"
+ "ee8192": "#xE6A1"
+ "ee818f": "#xE6A2"
+ "ee809c": "#xE6A3"
+ "ee80b3": "#xE6A4"
+ "ee88b9": "#xE6A5"
+ "ee8ca4": "#xE6AC"
+ "ee8c8b": "#xE6AD"
+ "ee8c81": "#xE6AE"
+ "ee8081": "#xE6B1"
+ "ee849b": "#xE6B2"
+ "ee8586": "#xE6B3"
+ "ee88b4": "#xE6B7"
+ "ee88b5": "#xE6B9"
+ "ee80a5": "#xE6BA"
+ "ee8484": "#xE6CE"
+ "ee8483": "#xE6CF"
+ "ee808b": "#xE6D0"
+ "ee8483": "#xE6D3"
+ "ee80bf": "#xE6D9"
+ "ee88bd": "#xE6DA"
+ "ee8494": "#xE6DC"
+ "ee8892": "#xE6DD"
+ "ee84b2": "#xE6DE"
+ "ee8891": "#xE6DF"
+ "ee8890": "#xE6E0"
+ "ee889c": "#xE6E2"
+ "ee889d": "#xE6E3"
+ "ee889e": "#xE6E4"
+ "ee889f": "#xE6E5"
+ "ee88a0": "#xE6E6"
+ "ee88a1": "#xE6E7"
+ "ee88a2": "#xE6E8"
+ "ee88a3": "#xE6E9"
+ "ee88a4": "#xE6EA"
+ "ee88a5": "#xE6EB"
+ "ee80a2": "#xE6EC"
+ "ee8ca7": "#xE6ED"
+ "ee80a3": "#xE6EE"
+ "ee8ca7": "#xE6EF"
+ "ee9095": "#xE6F0"
+ "ee8199": "#xE6F1"
+ "ee8198": "#xE6F2"
+ "ee9087": "#xE6F3"
+ "ee9086": "#xE6F4"
+ "ee88b6": "#xE6F5"
+ "ee84a3": "#xE6F7"
+ "ee8c86": "#xE6F8"
+ "ee8083": "#xE6F9"
+ "ee8cae": "#xE6FA"
+ "ee848f": "#xE6FB"
+ "ee8cb4": "#xE6FC"
+ "ee808d": "#xE6FD"
+ "ee8c91": "#xE6FE"
+ "ee8ca6": "#xE6FF"
+ "ee88b8": "#xE700"
+ "ee84bc": "#xE701"
+ "ee80a1": "#xE702"
+ "ee8cb7": "#xE704"
+ "ee8cb5": "#xE705"
+ "ee8cb1": "#xE706"
+ "ee8cb1": "#xE707"
+ "ee8cb0": "#xE708"
+ "ee8cb2": "#xE70B"
+ "ee8c99": "#xE70E"
+ "ee8ca3": "#xE70F"
+ "ee8c9c": "#xE710"
+ "ee8c9b": "#xE711"
+ "ee8093": "#xE712"
+ "ee8ca5": "#xE713"
+ "ee80b6": "#xE714"
+ "ee84af": "#xE715"
+ "ee808c": "#xE716"
+ "ee8ca9": "#xE717"
+ "ee8496": "#xE718"
+ "ee8c81": "#xE719"
+ "ee848e": "#xE71A"
+ "ee80b4": "#xE71B"
+ "ee80a9": "#xE71C"
+ "ee84b6": "#xE71D"
+ "ee8cb8": "#xE71E"
+ "ee80a5": "#xE71F"
+ "ee9083": "#xE720"
+ "ee9094": "#xE721"
+ "ee9081": "#xE722"
+ "ee908f": "#xE723"
+ "ee9096": "#xE724"
+ "ee908e": "#xE725"
+ "ee8486": "#xE726"
+ "ee808e": "#xE727"
+ "ee9089": "#xE728"
+ "ee9085": "#xE729"
+ "ee9095": "#xE72A"
+ "ee9086": "#xE72B"
+ "ee9082": "#xE72C"
+ "ee9091": "#xE72D"
+ "ee9093": "#xE72E"
+ "ee8cb3": "#xE72F"
+ "ee8c81": "#xE730"
+ "ee898e": "#xE731"
+ "ee94b7": "#xE732"
+ "ee8495": "#xE733"
+ "ee8c95": "#xE734"
+ "ee8cb2": "#xE735"
+ "ee898f": "#xE736"
+ "ee84b7": "#xE737"
+ "ee88ab": "#xE739"
+ "ee88aa": "#xE73B"
+ "ee8597": "#xE73E"
+ "ee90be": "#xE73F"
+ "ee84ac": "#xE740"
+ "ee8490": "#xE741"
+ "ee8ca7": "#xE742"
+ "ee8c84": "#xE743"
+ "ee8d8a": "#xE744"
+ "ee8d85": "#xE745"
+ "ee8490": "#xE746"
+ "ee8498": "#xE747"
+ "ee80b0": "#xE748"
+ "ee8d82": "#xE749"
+ "ee8186": "#xE74A"
+ "ee8c8b": "#xE74B"
+ "ee8d80": "#xE74C"
+ "ee8cb9": "#xE74D"
+ "ee9181": "#xE74E"
+ "ee94a3": "#xE74F"
+ "ee8195": "#xE750"
+ "ee8099": "#xE751"
+ "ee8196": "#xE752"
+ "ee9084": "#xE753"
+ "ee809a": "#xE754"
+ "ee848b": "#xE755"
+ "ee8184": "#xE756"
+ "ee908b": "#xE757"
+
sfJpMobilePlugin/tags/0.0.3-beta/config/jpmobile/emoji/au_enc.yml
@@ -0,0 +1,251 @@
+# vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
+# $Id$
+enc:
+ "ee9288": "#xE63E"
+ "ee928d": "#xE63F"
+ "ee928c": "#xE640"
+ "ee9285": "#xE641"
+ "ee9287": "#xE642"
+ "ee91a9": "#xE643"
+ "ee9698": "#xE644"
+ "ee8aaf": "#xE645"
+ "ee928f": "#xE646"
+ "ee9290": "#xE647"
+ "ee9291": "#xE648"
+ "ee9292": "#xE649"
+ "ee9293": "#xE64A"
+ "ee9294": "#xE64B"
+ "ee9295": "#xE64C"
+ "ee9296": "#xE64D"
+ "ee9297": "#xE64E"
+ "ee9298": "#xE64F"
+ "ee9299": "#xE650"
+ "ee929a": "#xE651"
+ "ee91ab": "#xE652"
+ "ee92ba": "#xE653"
+ "ee9699": "#xE654"
+ "ee92b7": "#xE655"
+ "ee92b6": "#xE656"
+ "ee89b3": "#xE657"
+ "ee969a": "#xE658"
+ "ee92b9": "#xE659"
+ "ee969b": "#xE65A"
+ "ee92b5": "#xE65B"
+ "ee96bc": "#xE65C"
+ "ee92b0": "#xE65D"
+ "ee92b1": "#xE65E"
+ "ee92b1": "#xE65F"
+ "ee92af": "#xE660"
+ "ee8989": "#xE661"
+ "ee92b3": "#xE662"
+ "ee92ab": "#xE663"
+ "ee92ad": "#xE664"
+ "ee979e": "#xE665"
+ "ee979f": "#xE666"
+ "ee92aa": "#xE667"
+ "ee92a3": "#xE668"
+ "ee8988": "#xE669"
+ "ee92a4": "#xE66A"
+ "ee95b1": "#xE66B"
+ "ee92a6": "#xE66C"
+ "ee91aa": "#xE66D"
+ "ee92a5": "#xE66E"
+ "ee92ac": "#xE66F"
+ "ee9697": "#xE670"
+ "ee9382": "#xE671"
+ "ee9383": "#xE672"
+ "ee9396": "#xE673"
+ "ee949a": "#xE674"
+ "ee9496": "#xE675"
+ "ee9483": "#xE676"
+ "ee9497": "#xE677"
+ "ee9595": "#xE678"
+ "ee8aa9": "#xE679"
+ "ee9488": "#xE67A"
+ "ee969c": "#xE67B"
+ "ee8abc": "#xE67C"
+ "ee969e": "#xE67D"
+ "ee929e": "#xE67E"
+ "ee91bd": "#xE67F"
+ "ee91be": "#xE680"
+ "ee9495": "#xE681"
+ "ee929c": "#xE682"
+ "ee929f": "#xE683"
+ "ee969f": "#xE684"
+ "ee938f": "#xE685"
+ "ee96a0": "#xE686"
+ "ee9696": "#xE687"
+ "ee9688": "#xE688"
+ "ee8999": "#xE689"
+ "ee9482": "#xE68A"
+ "ee9386": "#xE68B"
+ "ee948c": "#xE68C"
+ "ee89ac": "#xE68D"
+ "ee96a1": "#xE68E"
+ "ee96a2": "#xE68F"
+ "ee96a3": "#xE690"
+ "ee96a4": "#xE691"
+ "ee96a5": "#xE692"
+ "ee8cb7": "#xE693"
+ "ee96a6": "#xE694"
+ "ee96a7": "#xE695"
+ "ee958d": "#xE696"
+ "ee958c": "#xE697"
+ "ee8b9e": "#xE698"
+ "ee8b9f": "#xE699"
+ "ee93be": "#xE69A"
+ "ee91bf": "#xE69B"
+ "ee96a8": "#xE69C"
+ "ee96a9": "#xE69D"
+ "ee96aa": "#xE69E"
+ "ee9286": "#xE69F"
+ "ee93a1": "#xE6A1"
+ "ee939b": "#xE6A2"
+ "ee92b4": "#xE6A3"
+ "ee9389": "#xE6A4"
+ "ee9596": "#xE6A5"
+ "ee92be": "#xE6AC"
+ "ee929c": "#xE6AD"
+ "eeac83": "#xE6AE"
+ "ee93bc": "#xE6B1"
+ "ee92ab": "#xE6B2"
+ "ee8ab8": "#xE6B3"
+ "ee9592": "#xE6B7"
+ "eeadba": "#xE6B8"
+ "ee9593": "#xE6B9"
+ "ee9694": "#xE6BA"
+ "ee9782": "#xE6CE"
+ "ee8c96": "#xE6CF"
+ "ee94a0": "#xE6D0"
+ "ee95b7": "#xE6D1"
+ "ee95b7": "#xE6D2"
+ "ee94a1": "#xE6D3"
+ "ee95b8": "#xE6D7"
+ "ee898f": "#xE6D8"
+ "ee9499": "#xE6D9"
+ "ee959d": "#xE6DA"
+ "ee96ab": "#xE6DB"
+ "ee9498": "#xE6DC"
+ "ee96b5": "#xE6DD"
+ "ee8ba0": "#xE6DE"
+ "ee95b8": "#xE6DF"
+ "ee8cb8": "#xE6E0"
+ "ee94ac": "#xE6E1"
+ "ee94a2": "#xE6E2"
+ "ee94a3": "#xE6E3"
+ "ee94a4": "#xE6E4"
+ "ee94a5": "#xE6E5"
+ "ee94a6": "#xE6E6"
+ "ee94a7": "#xE6E7"
+ "ee94a8": "#xE6E8"
+ "ee94a9": "#xE6E9"
+ "ee94aa": "#xE6EA"
+ "ee96ac": "#xE6EB"
+ "ee9695": "#xE6EC"
+ "ee8ca9": "#xE6ED"
+ "ee91b7": "#xE6EE"
+ "ee91b8": "#xE6EF"
+ "ee91b1": "#xE6F0"
+ "ee91b2": "#xE6F1"
+ "ee8a8a": "#xE6F3"
+ "eeab83": "#xE6F3"
+ "ee96ae": "#xE6F4"
+ "ee8ba1": "#xE6F5"
+ "ee96be": "#xE6F6"
+ "ee92bc": "#xE6F7"
+ "ee899c": "#xE6F8"
+ "ee93ab": "#xE6F9"
+ "ee89b2": "#xE6FA"
+ "ee91b6": "#xE6FB"
+ "ee93a5": "#xE6FC"
+ "ee93b3": "#xE6FD"
+ "ee91ba": "#xE6FE"
+ "ee9485": "#xE6FF"
+ "ee8ba2": "#xE700"
+ "ee91b5": "#xE701"
+ "ee9282": "#xE702"
+ "ee8ba3": "#xE703"
+ "ee8ba4": "#xE704"
+ "ee96b0": "#xE705"
+ "ee96b1": "#xE706"
+ "ee93a6": "#xE707"
+ "ee93b4": "#xE708"
+ "ee968c": "#xE709"
+ "ee8ba5": "#xE70A"
+ "ee8a9f": "#xE70B"
+ "ee96b2": "#xE70C"
+ "ee96b2": "#xE70D"
+ "ee96b6": "#xE70E"
+ "ee9484": "#xE70F"
+ "ee9489": "#xE710"
+ "ee8cab": "#xE711"
+ "ee92b8": "#xE712"
+ "ee9492": "#xE713"
+ "ee92ab": "#xE714"
+ "ee9387": "#xE715"
+ "ee96b8": "#xE716"
+ "ee8cac": "#xE717"
+ "ee9687": "#xE718"
+ "ee92a1": "#xE719"
+ "ee9789": "#xE71A"
+ "ee9494": "#xE71B"
+ "ee91bc": "#xE71C"
+ "ee92ae": "#xE71D"
+ "ee89b5": "#xE71E"
+ "ee95ba": "#xE71F"
+ "ee8a87": "#xE720"
+ "eeab85": "#xE721"
+ "ee96b1": "#xE722"
+ "ee9786": "#xE723"
+ "ee8c91": "#xE724"
+ "ee8a90": "#xE725"
+ "ee9784": "#xE726"
+ "ee93b9": "#xE727"
+ "ee93a7": "#xE728"
+ "ee9783": "#xE729"
+ "ee8a8c": "#xE72A"
+ "ee8a89": "#xE72B"
+ "ee8a86": "#xE72C"
+ "ee91b3": "#xE72D"
+ "ee8c9d": "#xE72E"
+ "ee8a9e": "#xE72F"
+ "ee92a0": "#xE730"
+ "ee9598": "#xE731"
+ "ee958e": "#xE732"
+ "ee91ab": "#xE733"
+ "ee93b1": "#xE734"
+ "ee8cad": "#xE735"
+ "ee9599": "#xE736"
+ "ee9281": "#xE737"
+ "ee9284": "#xE738"
+ "ee8991": "#xE739"
+ "ee8990": "#xE73B"
+ "ee8cae": "#xE73C"
+ "ee8caf": "#xE73D"
+ "ee8987": "#xE73E"
+ "ee8cb0": "#xE73F"
+ "ee96bd": "#xE740"
+ "ee9493": "#xE741"
+ "ee9392": "#xE742"
+ "ee93aa": "#xE743"
+ "ee8ba9": "#xE744"
+ "ee8a80": "#xE745"
+ "ee8cb1": "#xE746"
+ "ee938e": "#xE747"
+ "ee938a": "#xE748"
+ "ee9395": "#xE749"
+ "ee9390": "#xE74A"
+ "ee899e": "#xE74B"
+ "ee96b4": "#xE74C"
+ "ee89b6": "#xE74D"
+ "ee8cb2": "#xE74E"
+ "ee93a0": "#xE74F"
+ "ee939c": "#xE750"
+ "ee929a": "#xE751"
+ "ee8a94": "#xE752"
+ "ee8cb4": "#xE753"
+ "ee9398": "#xE754"
+ "ee939e": "#xE755"
+ "ee9381": "#xE756"
+ "ee9785": "#xE757"
+
sfJpMobilePlugin/tags/0.0.3-beta/config/jpmobile/emoji/dc_enc.yml
@@ -0,0 +1,240 @@
+# vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2:
+# $Id$
+enc:
+ "ee98be": "#xE63E"
+ "ee98bf": "#xE63F"
+ "ee9980": "#xE640"
+ "ee9981": "#xE641"
+ "ee9982": "#xE642"
+ "ee9983": "#xE643"
+ "ee9984": "#xE644"
+ "ee9985": "#xE645"
+ "ee9986": "#xE646"
+ "ee9987": "#xE647"
+ "ee9988": "#xE648"
+ "ee9989": "#xE649"
+ "ee998a": "#xE64A"
+ "ee998b": "#xE64B"
+ "ee998c": "#xE64C"
+ "ee998d": "#xE64D"
+ "ee998e": "#xE64E"
+ "ee998f": "#xE64F"
+ "ee9990": "#xE650"
+ "ee9993": "#xE653"
+ "ee9994": "#xE654"
+ "ee9995": "#xE655"
+ "ee9996": "#xE656"
+ "ee9997": "#xE657"
+ "ee9998": "#xE658"
+ "ee9999": "#xE659"
+ "ee999a": "#xE65A"
+ "ee999b": "#xE65B"
+ "ee999c": "#xE65C"
+ "ee999d": "#xE65D"
+ "ee999f": "#xE65F"
+ "ee99a0": "#xE660"
+ "ee99a1": "#xE661"
+ "ee99a2": "#xE662"
+ "ee99a4": "#xE664"
+ "ee99a5": "#xE665"
+ "ee99a6": "#xE666"
+ "ee99a7": "#xE667"
+ "ee99a8": "#xE668"
+ "ee99a9": "#xE669"
+ "ee99aa": "#xE66A"
+ "ee99ab": "#xE66B"
+ "ee99ac": "#xE66C"
+ "ee99ad": "#xE66D"
+ "ee99ae": "#xE66E"
+ "ee99af": "#xE66F"
+ "ee99b0": "#xE670"
+ "ee99b1": "#xE671"
+ "ee99b2": "#xE672"
+ "ee99b3": "#xE673"
+ "ee99b4": "#xE674"
+ "ee99b5": "#xE675"
+ "ee99b6": "#xE676"
+ "ee99b7": "#xE677"
+ "ee99b8": "#xE678"
+ "ee99b9": "#xE679"
+ "ee99ba": "#xE67A"
+ "ee99bb": "#xE67B"
+ "ee99bc": "#xE67C"
+ "ee99bd": "#xE67D"
+ "ee99be": "#xE67E"
+ "ee99bf": "#xE67F"
+ "ee9a80": "#xE680"
+ "ee9a81": "#xE681"
+ "ee9a83": "#xE683"
+ "ee9a84": "#xE684"
+ "ee9a85": "#xE685"
+ "ee9a86": "#xE686"
+ "ee9a87": "#xE687"
+ "ee9a88": "#xE688"
+ "ee9a89": "#xE689"
+ "ee9a8a": "#xE68A"
+ "ee9a8b": "#xE68B"
+ "ee9a8c": "#xE68C"
+ "ee9a8d": "#xE68D"
+ "ee9a8e": "#xE68E"
+ "ee9a8f": "#xE68F"
+ "ee9a90": "#xE690"
+ "ee9a91": "#xE691"
+ "ee9a92": "#xE692"
+ "ee9a93": "#xE693"
+ "ee9a94": "#xE694"
+ "ee9a95": "#xE695"
+ "ee9a96": "#xE696"
+ "ee9a97": "#xE697"
+ "ee9a98": "#xE698"
+ "ee9a99": "#xE699"
+ "ee9a9a": "#xE69A"
+ "ee9a9b": "#xE69B"
+ "ee9a9c": "#xE69C"
+ "ee9a9d": "#xE69D"
+ "ee9a9e": "#xE69E"
+ "ee9a9f": "#xE69F"
+ "ee9aa0": "#xE6A0"
+ "ee9aa1": "#xE6A1"
+ "ee9aa2": "#xE6A2"
+ "ee9aa3": "#xE6A3"
+ "ee9aa4": "#xE6A4"
+ "ee9aa5": "#xE6A5"
+ "ee9aac": "#xE6AC"
+ "ee9aad": "#xE6AD"
+ "ee9ab1": "#xE6B1"
+ "ee9ab3": "#xE6B3"
+ "ee9ab7": "#xE6B7"
+ "ee9ab9": "#xE6B9"
+ "ee9aba": "#xE6BA"
+ "ee9b8e": "#xE6CE"
+ "ee9b8f": "#xE6CF"
+ "ee9b90": "#xE6D0"
+ "ee9b92": "#xE6D2"
+ "ee9b93": "#xE6D3"
+ "ee9b95": "#xE6D5"
+ "ee9b96": "#xE6D6"
+ "ee9b98": "#xE6D8"
+ "ee9b99": "#xE6D9"
+ "ee9b9a": "#xE6DA"
+ "ee9b9b": "#xE6DB"
+ "ee9b9c": "#xE6DC"
+ "ee9b9d": "#xE6DD"
+ "ee9b9e": "#xE6DE"
+ "ee9b9f": "#xE6DF"
+ "ee9ba0": "#xE6E0"
+ "ee9ba1": "#xE6E1"
+ "ee9ba2": "#xE6E2"
+ "ee9ba3": "#xE6E3"
+ "ee9ba4": "#xE6E4"
+ "ee9ba5": "#xE6E5"
+ "ee9ba6": "#xE6E6"
+ "ee9ba7": "#xE6E7"
+ "ee9ba8": "#xE6E8"
+ "ee9ba9": "#xE6E9"
+ "ee9baa": "#xE6EA"
+ "ee9bab": "#xE6EB"
+ "ee9bac": "#xE6EC"
+ "ee9bad": "#xE6ED"
+ "ee9bae": "#xE6EE"
+ "ee9baf": "#xE6EF"
+ "ee9bb0": "#xE6F0"
+ "ee9bb1": "#xE6F1"
+ "ee9bb3": "#xE6F3"
+ "ee9bb4": "#xE6F4"
+ "ee9bb5": "#xE6F5"
+ "ee9bb6": "#xE6F6"
+ "ee9bb7": "#xE6F7"
+ "ee9bb8": "#xE6F8"
+ "ee9bb9": "#xE6F9"
+ "ee9bba": "#xE6FA"
+ "ee9bbb": "#xE6FB"
+ "ee9bbc": "#xE6FC"
+ "ee9bbd": "#xE6FD"
+ "ee9bbe": "#xE6FE"
+ "ee9bbf": "#xE6FF"
+ "ee9c80": "#xE700"
+ "ee9c81": "#xE701"
+ "ee9c82": "#xE702"
+ "ee9c83": "#xE703"
+ "ee9c84": "#xE704"
+ "ee9c85": "#xE705"
+ "ee9c87": "#xE707"
+ "ee9c88": "#xE708"
+ "ee9c8a": "#xE70A"
+ "ee9c8b": "#xE70B"
+ "ee9c8d": "#xE70D"
+ "ee9c8e": "#xE70E"
+ "ee9c8f": "#xE70F"
+ "ee9c90": "#xE710"
+ "ee9c91": "#xE711"
+ "ee9c92": "#xE712"
+ "ee9c93": "#xE713"
+ "ee9c94": "#xE714"
+ "ee9c95": "#xE715"
+ "ee9c96": "#xE716"
+ "ee9c97": "#xE717"
+ "ee9c98": "#xE718"
+ "ee9c99": "#xE719"
+ "ee9c9a": "#xE71A"
+ "ee9c9b": "#xE71B"
+ "ee9c9c": "#xE71C"
+ "ee9c9d": "#xE71D"
+ "ee9c9e": "#xE71E"
+ "ee9c9f": "#xE71F"
+ "ee9ca0": "#xE720"
+ "ee9ca2": "#xE722"
+ "ee9ca3": "#xE723"
+ "ee9ca4": "#xE724"
+ "ee9ca5": "#xE725"
+ "ee9ca6": "#xE726"
+ "ee9ca7": "#xE727"
+ "ee9ca8": "#xE728"
+ "ee9ca9": "#xE729"
+ "ee9caa": "#xE72A"
+ "ee9cab": "#xE72B"
+ "ee9cac": "#xE72C"
+ "ee9cad": "#xE72D"
+ "ee9cae": "#xE72E"
+ "ee9caf": "#xE72F"
+ "ee9cb0": "#xE730"
+ "ee9cb1": "#xE731"
+ "ee9cb2": "#xE732"
+ "ee9cb3": "#xE733"
+ "ee9cb4": "#xE734"
+ "ee9cb5": "#xE735"
+ "ee9cb6": "#xE736"
+ "ee9cb7": "#xE737"
+ "ee9cb8": "#xE738"
+ "ee9cb9": "#xE739"
+ "ee9cba": "#xE73A"
+ "ee9cbb": "#xE73B"
+ "ee9cbc": "#xE73C"
+ "ee9cbd": "#xE73D"
+ "ee9cbe": "#xE73E"
+ "ee9cbf": "#xE73F"
+ "ee9d80": "#xE740"
+ "ee9d81": "#xE741"
+ "ee9d82": "#xE742"
+ "ee9d83": "#xE743"
+ "ee9d84": "#xE744"
+ "ee9d85": "#xE745"
+ "ee9d86": "#xE746"
+ "ee9d87": "#xE747"
+ "ee9d88": "#xE748"
+ "ee9d89": "#xE749"
+ "ee9d8a": "#xE74A"
+ "ee9d8b": "#xE74B"
+ "ee9d8c": "#xE74C"
+ "ee9d8d": "#xE74D"
+ "ee9d8e": "#xE74E"
+ "ee9d8f": "#xE74F"
+ "ee9d90": "#xE750"
+ "ee9d91": "#xE751"
+ "ee9d92": "#xE752"
+ "ee9d93": "#xE753"
+ "ee9d94": "#xE754"
+ "ee9d95": "#xE755"
+ "ee9d96": "#xE756"
+ "ee9d97": "#xE757"
+
sfJpMobilePlugin/tags/0.0.3-beta/config/jpmobile/istyle.yml
@@ -0,0 +1,35 @@
+all:
+ istyle:
+ dc:
+ style:
+ - "-wap-input-format:"*<ja:h>";"
+ - "-wap-input-format:"*<ja:hk>";"
+ - "-wap-input-format:"*<ja:en>";"
+ - "-wap-input-format:"*<ja:n>";"
+
+ au:
+ style:
+ - "-wap-input-format:*M;"
+ - "-wap-input-format:*M;"
+ - "-wap-input-format:*m;"
+ - "-wap-input-format:*N;"
+
+ format:
+ - M
+ - M
+ - m
+ - N
+
+ sb:
+ style:
+ - "-wap-input-format:"*<ja:h>";"
+ - "-wap-input-format:"*<ja:hk>";"
+ - "-wap-input-format:"*<ja:en>";"
+ - "-wap-input-format:"*<ja:n>";"
+
+ mode:
+ - hiragana
+ - hankakukana
+ - alphabet
+ - numeric
+
sfJpMobilePlugin/tags/0.0.3-beta/config/config_handlers.yml
@@ -0,0 +1,12 @@
+config/jpmobile/emoji/*.yml:
+ file: %SF_PLUGINS_DIR%/sfJpMobilePlugin/lib/config/sfJpMobileEmojiConfigHandler.class.php
+ class: sfJpMobileEmojiConfigHandler
+<<<<<<< HEAD:config/config_handlers.yml
+=======
+
+config/jpmobile/istyle.yml:
+ class: sfDefineEnvironmentConfigHandler
+ param:
+ prefix: jpmobile_
+
+>>>>>>> 90b0425adb86dfa39cd2d6136786bebdcf1a378c:config/config_handlers.yml
sfJpMobilePlugin/tags/0.0.3-beta/config/sfJpMobilePluginConfiguration.class.php
@@ -0,0 +1,19 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * sfJpMobilePlugin configuration.
+ *
+ * @package sfJpMobilePlugin
+ * @subpackage config
+ * @version $Id$
+ */
+class sfJpMobilePluginConfiguration extends sfPluginConfiguration
+{
+ /**
+ * @see sfPluginConfiguration
+ */
+ public function initialize()
+ {
+ sfJpMobile::initialize();
+ }
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/device/sfJpMobileDeviceKddi.class.php
@@ -0,0 +1,28 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * KDDI用端末オブジェクト
+ *
+ * @package sfJpMobilePlugin
+ * @subpackage device
+ * @version $Id: 3ec9d2ff32ea2e10093131dca1f29b940f2ef230 $
+ */
+class sfJpMobileDeviceKddi extends sfJpMobileDevice
+{
+ protected $_emojiClass = 'sfJpMobileEmojiKddi';
+ protected function _initialize()
+ {
+ $this->_uid = getenv('HTTP_X_UP_SUBNO');
+ }
+ public function parse()
+ {
+ if ($ua = getenv('HTTP_USER_AGENT')) {
+ if (preg_match('/^.+?-([^\s]+)/', $ua, $matches)) {
+ $this->_deviceId = $matches[1];
+ }
+ return null;
+ }
+ throw new sfMobileNotDetermineException('May be access from PC browser');
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/device/sfJpMobileDevice.class.php
@@ -0,0 +1,86 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * sfDevice abstract class
+ * キャリア毎の実装をする際には、このクラスを継承する
+ *
+ * @package sfJpMobile
+ * @subpackage device
+ * @version $Id: 54197c2f015b7e40ff9ef92466479819b5ef72af $
+ */
+abstract class sfJpMobileDevice
+{
+ /**
+ * @var string uid
+ */
+ protected $_uid;
+ /**
+ * @var string model name
+ */
+ protected $_deviceId;
+ /**
+ * @var string emoji class name
+ */
+ protected $_emojiClass = null;
+ /**
+ * @var sfJpMobileEmoji
+ */
+ protected static $_emoji = null;
+ /**
+ * constructor
+ */
+ public function __construct()
+ {
+ $this->parse();
+ $this->_initialize();
+ }
+ /**
+ * initialize
+ * @return null
+ */
+ protected function _initialize(){}
+ /**
+ * parse UserAgent
+ * @throws sfMobilenotDetermineException
+ * @return null
+ */
+ public abstract function parse();
+ /**
+ * set emoji object
+ * @param string $class
+ * @return null
+ */
+ public function setEmojiClass($class)
+ {
+ $this->_emojiClass = $class;
+ }
+ /**
+ * get UID
+ * @return string
+ */
+ public function getUid()
+ {
+ return $this->_uid;
+ }
+ /**
+ * get device id
+ * @return string
+ */
+ public function getDeviceId()
+ {
+ return $this->_deviceId;
+ }
+
+ /**
+ * get emoji obuject
+ * @return sfJpMobileEmoji
+ */
+ public function getEmoji()
+ {
+ if (!(self::$_emoji instanceof $this->_emojiClass)) {
+ self::$_emoji = new $this->_emojiClass();
+ }
+ return self::$_emoji;
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/device/sfJpMobileDeviceDocomo.class.php
@@ -0,0 +1,34 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * DoCoMo用端末オブジェクト
+ *
+ * @package sfJpMobile
+ * @subpackage device
+ * @version $Id$
+ */
+class sfJpMobileDeviceDocomo extends sfJpMobileDevice
+{
+ protected $_emojiClass = 'sfJpMobileEmojiDocomo';
+ protected function _initialize()
+ {
+ if ($uid = getenv('HTTP_X_DCMGUID')) {
+ $this->_uid = $uid;
+ } else if (array_key_exists('uid', $_GET) && $_GET['uid'] != 'NULLGWDOCOMO') {
+ $this->_uid = $_GET['uid'];
+ } else if (array_key_exists('uid', $_POST) && $_POST['uid'] != 'NULLGWDOCOMO') {
+ $this->_uid = $_POST['uid'];
+ }
+ }
+ public function parse()
+ {
+ if ($ua = getenv('HTTP_USER_AGENT')) {
+ if (preg_match('#^DoCoMo/[12]\.0[/\s]([^/(]+)#', $ua, $matches)) {
+ $this->_deviceId = $matches[1];
+ return null;
+ }
+ }
+ throw new sfMobileNotDetermineException('May be access from PC browser');
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/device/sfJpMobileDevicePc.class.php
@@ -0,0 +1,22 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * PC用端末オブジェクト
+ *
+ * @package sfJpMobile
+ * @subpackage device
+ * @version $Id$
+ */
+class sfJpMobileDevicePc extends sfJpMobileDevice
+{
+ protected $_emojiClass = 'sfJpMobileEmojiPc';
+ protected function _initialize()
+ {
+ $uid = getenv('REMOTE_ADDR');
+ }
+ public function parse()
+ {
+ $this->_deviceId = "PC";
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/device/sfJpMobileDeviceSoftbank.class.php
@@ -0,0 +1,32 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * SoftBank用端末オブジェクト
+ *
+ * @package sfJpMobilePlugin
+ * @subpackage device
+ * @version $Id: e5d7ce4a97e9c6bbc88e82dcf199c81f3bec26cb $
+ */
+class sfJpMobileDeviceSoftbank extends sfJpMobileDevice
+{
+ protected $_emojiClass = 'sfJpMobileEmojiSoftbank';
+ protected function _initialize()
+ {
+ if ($this->_uid = getenv('HTTP_X_JPHONE_UID')) {
+ $this->_uid = substr($this->_uid, 2);
+ };
+ }
+ public function parse()
+ {
+ if ($ua = getenv('HTTP_USER_AGENT')) {
+ if (preg_match('!^MOT-([^/]+)!', $ua, $matches)) {
+ $this->_deviceId = $matches[1];
+ } else if (preg_match('!^.+?/.+?/([^/]+)!', $ua, $matches)) {
+ $this->_deviceId = $matches[1];
+ }
+ return null;
+ }
+ throw new sfMobileNotDetermineException('May be access from PC browser');
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/helper/JpMobileHelper.php
@@ -0,0 +1,56 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 携帯用ヘルパー
+ *
+ * @package sfJpMobile
+ * @subpackage helper
+ * @version $Id$
+ */
+
+/**
+ * 入力文字種類制御の属性を追加する(Formのattribute用)
+ *
+ * @param integer $style DoCoMoのistyle属性の値
+ * @param array $attr 合成元の属性
+ * @return array
+ */
+function add_istyle($style, $attr = array())
+{
+ $data = new stdClass();
+ $carrier = sfJpMobile::getShortCarrierName();
+ $config = sfConfig::get("jpmobile_istyle_{$carrier}");
+ switch ($carrier) {
+ case 'dc':
+ case 'au':
+ case 'sb':
+ $data->style = $config['style'][$style - 1];
+ break;
+ default:
+ break;
+ }
+ foreach ($data as $k => $v) {
+ if (array_key_exists($k, $attr)) {
+ $attr[$k] .= $v;
+ } else {
+ $attr[$k] = $v;
+ }
+ }
+ return $attr;
+}
+
+/**
+ * 入力文字種類制御の属性を生成
+ *
+ * @param integer $style DoCoMoのistyle属性の値
+ * @return string
+ */
+function istyle($style)
+{
+ $result = '';
+ foreach (add_istyle($style) as $k => $v) {
+ $result .= "{$k}=\"{$v}\"";
+ }
+ return $result;
+}
+
sfJpMobilePlugin/tags/0.0.3-beta/lib/helper/JpMobileUrlHelper.php
@@ -0,0 +1,35 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 携帯ページ用ヘルパ
+ *
+ * @package sfJpMobile
+ * @subpackage helper
+ * @version $Id$
+ */
+
+/**
+ * generate URI
+ * @param string|array $param
+ * @param bool $absolute
+ * @return string
+ */
+function jpmobile_url_for($param, $absolute = false)
+{
+ $url = url_for($param, $absolute);
+ if (sfJpMobile::isDocomo()) {
+ $url .= "?guid=ON";
+ }
+ return $url;
+}
+/**
+ * a tag
+ * @param string $name name of the link, i.e. string to appear between the <a> tags
+ * @param string $internal_uri 'module/action' or '@rule' of the action
+ * @param array $options additional HTML compliant <a> tag parameters
+ */
+function jpmobile_link_to($name, $internal_uri = '', $options = array())
+{
+ $url = jpmobile_url_for($internal_uri);
+ return link_to($name, $url, $options);
+}
\ No newline at end of file
sfJpMobilePlugin/tags/0.0.3-beta/lib/controller/sfJpMobileController.class.php
@@ -0,0 +1,79 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 携帯ページ用コントローラ
+ *
+ * @package sfJpMobilePlugin
+ * @subpackage controller
+ * @version $Id$
+ */
+class sfJpMobileController extends sfFrontWebController
+{
+ /**
+ * @see sfWebController
+ */
+ public function genUrl($parameters = array(), $absolute = false)
+ {
+ $url = parent::genUrl($parameters, $absolute);
+ if (sfJpMobile::isDocomo()) {
+ if (!preg_match('/(\?|&)guid=/', $url)) {
+ $url .= (strpos($url, '?') === false ? '?' : '&') . 'guid=ON';
+ }
+ }
+ return $url;
+ }
+ /**
+ * @see sfWebController
+ */
+ public function redirect($url, $delay = 0, $statusCode = 302)
+ {
+ $url = $this->genUrl($url, true);
+
+ if (!preg_match('/(\?|&)'.preg_quote(SID).'/', $url)) {
+ $url .= (strpos($url, '?') === false ? '?' : '&') . SID;
+ }
+
+ if (sfConfig::get('sf_logging_enabled'))
+ {
+ $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Redirect to "%s"', $url))));
+ }
+
+ // redirect
+ $response = $this->context->getResponse();
+ $response->clearHttpHeaders();
+ $response->setStatusCode($statusCode);
+ $response->setHttpHeader('Location', $url);
+ $response->setContent(sprintf('<html><head><meta http-equiv="refresh" content="%d;url=%s"/></head></html>', $delay, htmlspecialchars($url, ENT_QUOTES, sfConfig::get('sf_charset'))));
+ $response->send();
+ }
+ /**
+ * @see sfController
+ */
+ public function getView($moduleName, $actionName, $viewName)
+ {
+ // user view exists?
+ $file = sfConfig::get('sf_app_module_dir') . '/' . $moduleName . '/view/'
+ . $actionName . $viewName . 'View.class.php';
+
+ if (is_readable($file)) {
+ require_once($file);
+
+ $class = $actionName.$viewName.'View';
+
+ // fix for same name classes
+ $moduleClass = $moduleName.'_'.$class;
+
+ if (class_exists($moduleClass, false)) {
+ $class = $moduleClass;
+ }
+ } else {
+ // view class (as configured in module.yml or defined in action)
+ $class = sfConfig::get('app_view_class', 'sfJpMobile').'View';
+ if (!class_exists($class)) {
+ $class = sfConfig::get('mod_'.strtolower($moduleName).'_view_class', 'sfPHP').'View';
+ }
+ }
+
+ return new $class($this->context, $moduleName, $actionName, $viewName);
+ }
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/emoji/sfJpMobileEmojiSoftbank.class.php
@@ -0,0 +1,13 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * SoftBank絵文字オブジェクト
+ *
+ * @package sfJpMobile
+ * @subpackage emoji
+ * @version $Id: cc34213571e627a190f4758e2ab03b0574131ba0 $
+ */
+class sfJpMobileEmojiSoftbank extends sfJpMobileEmoji
+{
+ protected $_binCodeRegex = '/\xEE[\x80\x81\x84\x85\x88\x89\x8C\x8D\x90\x91\x94][\x80-\xBF]/';
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/emoji/sfJpMobileEmojiKddi.class.php
@@ -0,0 +1,13 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * KDDI絵文字オブジェクト
+ *
+ * @package sfJpMobile
+ * @subpackage emoji
+ * @version $Id: 2bb0147bc2c5d74e3fa9a042ae2cde838ee9c8f3 $
+ */
+class sfJpMobileEmojiKddi extends sfJpMobileEmoji
+{
+ protected $_binCodeRegex = '/\xEE(?:\x88[\xB4-\xBF]|\x8D[\x80-\x82]|\x91[\xA8-\xBF]|\x97[\x80-\x9F]|[\x89-\x8C\x92-\x96][\x80-\xBF])/';
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/emoji/sfJpMobileEmoji.class.php
@@ -0,0 +1,137 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 基本絵文字クラス
+ *
+ * @package sfJpMobile
+ * @subpackage emoji
+ * @version $Id: c91f5e46986310dd91ad9a92cda78305fa3ebd03 $
+ */
+abstract class sfJpMobileEmoji
+{
+ /**
+ * 変換テーブル
+ * @var array
+ */
+ protected $_decTable;
+ /**
+ * エンコードテーブル
+ * @var array
+ */
+ protected $_encTable;
+ /**
+ * Webコード検出パターン
+ * @var string
+ */
+ protected $_webCodeRegex = '/&(#xE(?:6|7)[A-F0-9]{2});/i';
+ /**
+ * テキストコード検出パターン
+ * @var string
+ */
+ protected $_textCodeRegex = '/\[(#xE(?:6|7)[A-F0-9]{2})\]/i';
+ /**
+ * バイナリコード検出パターン
+ * @var string
+ */
+ protected $_binCodeRegex;
+
+ /**
+ * constructor
+ */
+ public function __construct()
+ {
+ // 絵文字変換テーブルの読み込み
+ include sfContext::getInstance()->getConfigCache()->checkConfig('config/jpmobile/emoji/' . strtolower(sfJpMobile::getShortCarrierName()) . '_dec.yml');
+ include sfContext::getInstance()->getConfigCache()->checkConfig('config/jpmobile/emoji/' . strtolower(sfJpMobile::getShortCarrierName()) . '_enc.yml');
+ $this->_decTable = sfConfig::get('jpmobile_emoji_dec', array());
+ $this->_encTable = sfConfig::get('jpmobile_emoji_enc', array());
+ $this->initialize();
+ }
+ /**
+ * initialize
+ * @return null
+ */
+ public function initialize(){}
+ /**
+ * 変換
+ * @param string $str 変換対象
+ * @return string
+ */
+ public function convert($str)
+ {
+ foreach ($this->findWebCode($str) as $key) {
+ if (array_key_exists($key, $this->_decTable)) {
+ $str = str_replace("&{$key};", $this->_decTable[$key], $str);
+ }
+ }
+ return $str;
+ }
+ /**
+ * 各キャリア用のコードへのデコード
+ * @param string $str 変換対象
+ * @return string
+ */
+ public function decode($str)
+ {
+ foreach ($this->findTextCode($str) as $key) {
+ if (array_key_exists($key, $this->_decTable)) {
+ $str = str_replace("[{$key}]", $this->_decTable[$key], $str);
+ }
+ }
+ return $str;
+ }
+ /**
+ * DoCoMo用16進数コードへのエンコード
+ * @param string $str 対象
+ * @return string
+ */
+ public function encode($str)
+ {
+ foreach ($this->findBin($str) as $bin) {
+ $hex = bin2hex($bin);
+ $replace = array_key_exists($hex, $this->_encTable) ? $this->_encTable[$hex] : '';
+ $str = str_replace($bin, "[{$replace}]", $str);
+ }
+ return $str;
+ }
+ /**
+ * DoCoMo絵文字Web記述用コード検出
+ * @param string $str 検索対象文字列
+ * @return array
+ */
+ public function findWebCode($str)
+ {
+ $result = array();
+ if (preg_match_all($this->_webCodeRegex, $str, $matches)) {
+ $result = array_unique($matches[1]);
+ }
+ return $result;
+ }
+ /**
+ * DoCoMo絵文字テキストコード検出
+ * @param string $str 検索対象文字列
+ * @return array
+ */
+ public function findTextCode($str)
+ {
+ $result = array();
+ if (preg_match_all($this->_textCodeRegex, $str, $matches)) {
+ $result = array_unique($matches[1]);
+ }
+ return $result;
+ }
+ /**
+ * バイナリ絵文字検出
+ * @param string $str 検索対象文字列
+ * @return array
+ */
+ public function findBin($str)
+ {
+ $result = array();
+ if (preg_match_all($this->_binCodeRegex, $str, $matches)) {
+ $result = array_unique($matches[1]);
+ }
+ return $result;
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/emoji/sfJpMobileEmojiDocomo.class.php
@@ -0,0 +1,28 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * DoCoMo絵文字オブジェクト
+ *
+ * @package sfJpMobile
+ * @subpackage emoji
+ * @version $Id: 4abd1936fb25c82d327150c8a509d6aa86fe9bd9 $
+ */
+class sfJpMobileEmojiDocomo extends sfJpMobileEmoji
+{
+ public function initialize()
+ {
+ $this->_binCodeRegex = '/\xEE(?:'
+ . '\x98[\xBE-\xBF]'
+ . '|\x99[\x80-\xBF]'
+ . '|\x9A[\x80-\xBA]'
+ . '|\x9B[\x8E-\xBF]'
+ . '|\x9C[\x80-\xBF]'
+ . '|\x9D[\x80-\x97]'
+ . ')/';
+ }
+ public function convert($str)
+ {
+ return $str;
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/emoji/sfJpMobileEmojiPc.class.php
@@ -0,0 +1,22 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * PC用絵文字オブジェクト
+ *
+ * @package sfJpMobile
+ * @subpackage emoji
+ * @version $Id: 5d337a9f05d194c88d800baa2a5d76448fb0fcd4 $
+ */
+class sfJpMobileEmojiPc extends sfJpMobileEmoji
+{
+ public function convert($str)
+ {
+ return $str;
+ }
+ public function findBin($str)
+ {
+ $result = array();
+ return $result;
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/sfJpMobile.class.php
@@ -0,0 +1,214 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * Net_UserAgent_Mobileでは少々腰が重たいので、Railsのjpmobile風な判別方法で
+ *
+ * @package sfJpMobile
+ * @subpackage lib
+ * @version $Id$
+ */
+class sfJpMobile
+{
+ /**
+ * @var sfDevice
+ */
+ private static $_device = null;
+ /**
+ * @var stdClass
+ */
+ private static $_carrier = null;
+ /**
+ * initialize
+ * @return null
+ */
+ public static function initialize()
+ {
+ self::$_carrier = new stdClass();
+ }
+ /**
+ * ドライバの生成
+ * @return sfJpMobileDevice
+ */
+ public static function getDevice()
+ {
+ try {
+ $term = '';
+ switch (true) {
+ case self::isDocomo():
+ $term = 'Docomo';
+ break;
+ case self::isKddi():
+ $term = 'Kddi';
+ break;
+ case self::isSoftbank():
+ $term = 'Softbank';
+ break;
+ /*
+ case self::isWillcom():
+ $term = 'Willcom';
+ break;
+ */
+ default:
+ $term = 'Pc';
+ break;
+ }
+ return self::_termFactory($term);
+ } catch (sfMobileNotDetermineException $e) {
+ return self::_termFactory('Pc');
+ }
+ }
+
+ /**
+ * Deviceクラスのファクトリメソッド
+ * @param string
+ * @return sfJpMobileDevice
+ */
+ private static function _termFactory($term)
+ {
+ $class = "sfJpMobileDevice{$term}";
+ if (!(self::$_device instanceof sfDevice)) {
+ self::$_device = new $class;
+ }
+ return self::$_device;
+ }
+
+ /**
+ * UserAgentによるパターン検索
+ * @param array|string
+ * @return boolean
+ * @throws sfMobileNotDetermineException
+ */
+ private static function _checkCarrier($patterns)
+ {
+ include sfContext::getInstance()->getConfigCache()->checkConfig('config/jpmobile/istyle.yml');
+ if (!($ua = getenv('HTTP_USER_AGENT'))) {
+ throw new sfMobileNotDetermineException('May be access from PC Browser.');
+ }
+ if (!is_array($patterns)) {
+ $patterns = array($patterns);
+ }
+ foreach ($patterns as $pattern) {
+ if (preg_match($pattern, $ua)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ /**
+ * 携帯かどうか
+ * @return boolean
+ */
+ public static function isMobile()
+ {
+ return self::isDocomo() || self::isKddi() || self::isSoftbank() || self::isWillcom();
+ }
+
+ /**
+ * DoCoMoかどうか
+ * @return boolean
+ */
+ public static function isDocomo()
+ {
+ if (!isset(self::$_carrier->docomo)) {
+ self::$_carrier->docomo = self::_checkCarrier('/^DoCoMo/');
+ }
+ return self::$_carrier->docomo;
+ }
+
+ /**
+ * KDDIかどうか
+ * @return boolean
+ */
+ public static function isKddi()
+ {
+ if (!isset(self::$_carrier->kddi)) {
+ $patterns = array(
+ '/^KDDI-/',
+ '/^UP\.Browser/',
+ );
+ self::$_carrier->kddi = self::_checkCarrier($patterns);
+ }
+ return self::$_carrier->kddi;
+ }
+
+ /**
+ * SoftBankかどうか
+ * @return boolean
+ */
+ public static function isSoftbank()
+ {
+ if (!isset(self::$_carrier->softbank)) {
+ $patterns = array(
+ '/^SoftBank/',
+ '/^Semulator/',
+ '/^Vodafone/',
+ '/^Vemulator/',
+ '/^MOT-/',
+ '/^MOTEMULATOR/',
+ '/^J-PHONE/',
+ '/^J-EMULATOR/',
+ );
+ self::$_carrier->softbank = self::_checkCarrier($patterns);
+ }
+ return self::$_carrier->softbank;
+ }
+
+ /**
+ * WILLCOMかどうか
+ * @return boolean
+ */
+ public static function isWillcom()
+ {
+ if (!isset(self::$_carrier->willcom)) {
+ self::$_carrier->willcom = self::_checkCarrier('#^Mozilla/3\.0\((?:DDIPOCKET|WILLCOM);#');
+ }
+ return self::$_carrier->willcom;
+ }
+
+ /**
+ * キャリア名の取得
+ * @return string
+ */
+ public static function getCarrierName()
+ {
+ if (self::isDocomo()) {
+ return 'DoCoMo';
+ } else if (self::isKddi()) {
+ return 'KDDI';
+ } else if (self::isSoftbank()) {
+ return 'SoftBank';
+ } else if (self::isWillcom()) {
+ return 'willcom';
+ }
+ return 'PC';
+ }
+
+ /**
+ * 短いキャリア名の取得
+ * @return string
+ */
+ public static function getShortCarrierName()
+ {
+ if (self::isDocomo()) {
+ return 'dc';
+ } else if (self::isKddi()) {
+ return 'au';
+ } else if (self::isSoftbank()) {
+ return 'sb';
+ } else if (self::isWillcom()) {
+ return 'wm';
+ }
+ return 'pc';
+ }
+
+ /**
+ * 絵文字オブジェクトの取得
+ * @return sfJpMobileEmoji
+ */
+ public static function getEmoji()
+ {
+ return self::getDevice()->getEmoji();
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/storage/sfJpMobileSessionStorage.class.php
@@ -0,0 +1,27 @@
+<?php
+/* vim: set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 携帯用セッションストレージ
+ *
+ * @package sfJpMobile
+ * @subpackage storage
+ * @version $Id$
+ */
+class sfJpMobileSessionStorage extends sfSessionStorage
+{
+ /**
+ * @return null
+ */
+ public function initialize($options = null)
+ {
+ if (sfJpMobile::isMobile()) {
+ ini_set("session.use_trans_sid", 1);
+ ini_set("session.use_cookies", 0);
+ ini_set("session.use_only_cookies", 0);
+ } else {
+ ini_set("session.use_trans_sid", 0);
+ ini_set("session.use_cookies", 1);
+ }
+ parent::initialize($options);
+ }
+}
\ No newline at end of file
sfJpMobilePlugin/tags/0.0.3-beta/lib/config/sfJpMobileEmojiConfigHandler.class.php
@@ -0,0 +1,22 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 絵文字変換テーブルファイル用パーサー
+ *
+ * @package sfJpMobile
+ * @subpackage config
+ * @version $Id$
+ */
+class sfJpMobileEmojiConfigHandler extends sfYamlConfigHandler
+{
+ public function execute($configFiles)
+ {
+ $config = $this->parseYamls($configFiles);
+ $format = "<?php\n"
+ . "// auto-generated by %s\n"
+ . "// date: %s\n"
+ . "sfConfig::add(array('jpmobile_emoji_%s' => %s));"
+ . "";
+ return sprintf($format, __CLASS__, date('Y/m/d H:i:s'), key($config), var_export(current($config), true));
+ }
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/filter/sfJpMobileFilter.class.php
@@ -0,0 +1,123 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * モバイルページ用フィルタ
+ *
+ * @package sfJpMobile
+ * @subpackage filter
+ * @version $Id: bf86adb0f9c5084636a3ffea792b5fbf279a8e4a $
+ */
+class sfJpMobileFilter extends sfFilter
+{
+ /**
+ * @param sfFilter $filterChain
+ */
+ public function execute($filterChain)
+ {
+ if (sfJpMobile::isMobile()) {
+ if ($this->isFirstCall()) {
+ // UIDの取得
+ $this->_canGetUid();
+ // パラメータをシステム内で扱いやすいように変換
+ $this->_paramConvert();
+ // キャッシュ制御設定
+ $this->_setCacheControl();
+ // Content-Typeの設定
+ $this->_setContentType();
+ }
+
+ $filterChain->execute();
+
+ // 出力データの加工
+ $this->_convertContent();
+ } else {
+ $filterChain->execute();
+ }
+ }
+ /**
+ * UIDが取得できる状態かどうか
+ * 取得のためのパラメータが設定されていなかったら、パラメータを付けてリダイレクトする
+ *
+ * @return null
+ */
+ private function _canGetUid()
+ {
+ $context = $this->getContext();
+ $req = $context->getRequest();
+ if ($req->isMethod('get') && sfJpMobile::isDocomo() && $req->getParameter('guid') == null) {
+ $uri = getenv('REQUEST_URI');
+ $uri .= strpos($uri, '?') === false ? '?' : '&';
+ $context->getController()
+ ->getAction($context->getModuleName(), $context->getActionName())
+ ->redirect("{$uri}guid=ON");
+ }
+ }
+ /**
+ * パラメータの変換
+ * @return null
+ */
+ private function _paramConvert()
+ {
+ if (sfJpMobile::isDocomo() || sfJpMobile::isKddi()) {
+ foreach ($this->getContext()->getRequest()->getParameterHolder()->getAll() as $key => $val) {
+ mb_convert_variables('UTF-8', 'SJIS-win,UTF-8', $val);
+ $this->getContext()->getRequest()->setParameter($key, $val);
+ }
+ }
+ $content = $this->getContext()->getResponse()->getContent();
+ // 絵文字変換
+ if (!sfJpMobile::isDocomo()) {
+ $content = sfJpMobile::getEmoji()->encode($content);
+ }
+ }
+ /**
+ * Content-Typeの設定
+ * @return null
+ */
+ private function _setContentType()
+ {
+ $response = $this->getContext()->getResponse();
+ if (sfJpMobile::isDocomo()) {
+ // TODO XHTML対応機種かどうかの判別を入れる
+ $response->setHttpHeader("Content-Type", "application/xhtml+xml; charset=Shift_JIS");
+ $response->setContentType("application/xhtml+xml; charset=Shift_JIS");
+ } else if (sfJpMobile::isKddi()) {
+ $response->setHttpHeader("Content-Type", "text/html; charset=Shift_JIS");
+ $response->setContentType("text/html; charset=Shift_JIS");
+ } else {
+ $response->setHttpHeader("Content-Type", "text/html; charset=UTF-8");
+ $response->setContentType("text/html; charset=UTF-8");
+ }
+ }
+ /**
+ * キャッシュ制御
+ * @return null
+ */
+ private function _setCacheControl()
+ {
+ $response = $this->getContext()->getResponse();
+ $response->setHttpHeader("Expires", "Thu, 01 Dec 1994 16:00:00 GMT");
+ $response->setHttpHeader("Last-Modified", gmdate("D, d M Y H:i:s")." GMT");
+ $response->setHttpHeader("Cache-Control", "no-cache,must-revalidate");
+ $response->setHttpHeader("Cache-Control", "post-check=0,pre-check=0", false);
+ $response->setHttpHeader("Pragma", "no-cache");
+ }
+ /**
+ * 出力コンテンツの変換
+ * @return null
+ */
+ private function _convertContent()
+ {
+ $content = $this->getContext()->getResponse()->getContent();
+ // 絵文字変換
+ if (!sfJpMobile::isDocomo()) {
+ $content = sfJpMobile::getEmoji()->convert($content);
+ }
+ // 出力文字コードの変更
+ if (!sfJpMobile::isMobile() || (!sfJpMobile::isSoftbank() && !sfJpMobile::isWillcom())) {
+ $content = mb_convert_encoding($content, 'SJIS-win', 'UTF-8');
+ }
+ $this->getContext()->getResponse()->setContent($content);
+ }
+
+}
sfJpMobilePlugin/tags/0.0.3-beta/lib/view/sfJpMobileView.class.php
@@ -0,0 +1,26 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 携帯用標準ビュー
+ *
+ * @package sfJpMobileView
+ * @subpackage view
+ * @version $Id$
+ */
+class sfJpMobileView extends sfPHPView
+{
+ protected function renderFile($_sfFile)
+ {
+ $info = pathinfo($_sfFile);
+ $base = "{$info['dirname']}/{$info['filename']}";
+ $filename = $base . ucfirst(strtolower(sfJpMobile::getCarrierName())) . '.' . $info['extension'];
+ if (!is_readable($filename)) {
+ $filename = "{$base}Mobile.{$info['extension']}";
+ if (!sfJpMobile::isMobile() || !is_readable($filename)) {
+ $filename = $_sfFile;
+ }
+ }
+ return parent::renderFile($filename);
+ }
+
+}
\ No newline at end of file
sfJpMobilePlugin/tags/0.0.3-beta/lib/view/sfJpMobilePartialView.class.php
@@ -0,0 +1,26 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * 携帯用パーシャルビュー
+ *
+ * @package sfJpMobileView
+ * @subpackage view
+ * @version $Id: 5bbff10933284560e81f720f8647e68ad4033288 $
+ */
+class sfJpMobilePartialView extends sfPartialView
+{
+ protected function renderFile($_sfFile)
+ {
+ $info = pathinfo($_sfFile);
+ $base = "{$info['dirname']}/{$info['filename']}";
+ $filename = $base . ucfirst(strtolower(sfJpMobile::getCarrierName())) . '.' . $info['extension'];
+ if (!is_readable($filename)) {
+ $filename = "{$base}Mobile.{$info['extension']}";
+ if (!sfJpMobile::isMobile() || !is_readable($filename)) {
+ $filename = $_sfFile;
+ }
+ }
+ return parent::renderFile($filename);
+ }
+
+}
\ No newline at end of file
sfJpMobilePlugin/tags/0.0.3-beta/lib/exception/sfMobileNotDetermineException.class.php
@@ -0,0 +1,12 @@
+<?php
+/* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */
+/**
+ * sfMobileNotDetermineException
+ *
+ * @package sfJpMobilePlugin
+ * @subpackage exception
+ * @version $Id$
+ */
+class sfMobileNotDetermineException extends sfException
+{
+}
sfJpMobilePlugin/tags/0.0.3-beta/modules/jpmobile/templates/_dtd.php
@@ -0,0 +1,13 @@
+<?php echo '<?xml version="1.0" encoding="Shift_JIS"?>' ?>
+<?php if (sfJpMobile::isDocomo()): ?>
+<!DOCTYPE html PUBLIC "-//i-mode group (ja)//DTD XHTML i-XHTML(Locale/Ver.=ja/1.1) 1.0//EN" "i-xhtml_4ja_10.dtd">
+<?php elseif (sfJpMobile::isKddi()): ?>
+<!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML 1.0//EN" "http://www.openwave.com/DTD/xhtml-basic.dtd">
+<?php elseif (sfJpMobile::isSoftbank()): ?>
+<!DOCTYPE html PUBLIC "-//JPHONE//DTD XHTML Basic 1.0 Plus//EN" "xhtml-basic10-plus.dtd">
+<?php else: ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<?php endif; ?>
+
+<?php /* $Id$ */ ?>
+<?php /* vim:set expandtab tabstop=2 softtabstop=2 shiftwidth=2: */ ?>
\ No newline at end of file
sfJpMobilePlugin/tags/0.0.3-beta/README
@@ -0,0 +1,94 @@
+====== sfJpMobilePlugin: 携帯サイト作成支援のsymfony用プラグイン ======
+
+===== こんなもの =====
+symfonyで携帯サイトを作った際に作ったものをプラグインとして抜き出したもの。
+自分の仕事で利用しているので、下位機種はもとより、中位機種の対応すら考慮されてません。
+キャリア判別にはファイアーウォール側でIP判別を行っているので、IPによる判別機能はもっていません。
+
+IPによる判別を行いたいのであれば、sfMobileIPPluginを利用したほうがいいかなと思います。
+
+===== 実装機能 =====
+ * UserAgentによるキャリア判別
+ * 端末IDの取得
+ * 契約者番号の取得
+ * セッションへの対応
+ * 絵文字の相互変換
+ * テンプレートの自動振り分け
+
+===== 設置方法 =====
+
+==== 利用するコントローラの変更 ====
+
+<code yaml>
+#config/factories.yml
+all:
+ controlelr:
+ class: sfJpMobileController
+
+</code>
+
+==== フィルタの追加 ====
+
+<code yaml>
+# config/filters.yml
+jpmobile:
+ class: sfJpMobileFilter
+
+</code>
+
+==== ビュークラスの変更 ====
+
+<code yaml>
+#config/app.yml
+all:
+ view:
+ class: sfJpMobile
+
+</code>
+
+==== ヘルパーの追加 ====
+
+<code yaml>
+#config/factories.yml
+all:
+ .settings:
+ standard_helpers: [Partial, Cache, Form, JpMobile]
+
+</code>
+
+==== レイアウトの変更 ====
+
+自分で宣言してもいいけど、一応DOCTYPEの切り替えパーシャルがプリセットされている。
+
+apps/*/templates/layout.phpのDOCTYPE宣言のところをごっそり変更
+<code php>
+ <?php include_partial('jpmobile/dtd') ?>
+</code>
+
+==== セッションの利用 ====
+
+<code yaml>
+#config/factories.yml
+all:
+ storage:
+ class: sfJpMobileSessionStorage
+ param:
+ session_name: symfony # ここはお好きな名前で
+
+</code>
+
+==== テンプレートの振り分けについて ====
+
+下記の様にテンプレートファイル名を付けることで、振り分けることが可能です。
+
+* 通常: indexSuccess.php
+* 携帯共通: indexSuccessMobile.php
+* DoCoMo: indexSuccessDocomo.php
+* KDDI: indexSuccessKddi.php
+* SoftBank: indexSuccessSoftbank.php
+* PC: indexSuccessPc.php
+
+DoCoMoでアクセスした場合、***Docomo -> ***Mobile -> 通常 の順でテンプレートを探します。
+
+=== 副作用 ===
+レイアウトも同様に振り分けられちゃいます。