ruby_learner 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +6 -0
  7. data/Gemfile.lock +58 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +65 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/new_terminal +25 -0
  13. data/bin/setup +8 -0
  14. data/docs/happy_ruby/RussOlsen_EloquentRuby_c1.pdf +0 -0
  15. data/docs/happy_ruby/RussOlsen_EloquentRuby_c5.pdf +0 -0
  16. data/docs/happy_ruby/TanoshiiRuby_v3_c23.pdf +0 -0
  17. data/docs/happy_ruby/TanoshiiRuby_v5_c1.pdf +0 -0
  18. data/docs/happy_ruby/TanoshiiRuby_v5_c2-3.pdf +0 -0
  19. data/docs/happy_ruby/c2.ipynb +479 -0
  20. data/docs/happy_ruby/c3_4.ipynb +237 -0
  21. data/docs/seminar/8-1.org +18 -0
  22. data/exe/ruby_learner +5 -0
  23. data/lib/ruby_learner/h.rb +14 -0
  24. data/lib/ruby_learner/methods.rb +131 -0
  25. data/lib/ruby_learner/random_h.rb +16 -0
  26. data/lib/ruby_learner/ruby_learner.rb +43 -0
  27. data/lib/ruby_learner/sequential_h.rb +15 -0
  28. data/lib/ruby_learner/typing_practice.rb +21 -0
  29. data/lib/ruby_learner/version.rb +3 -0
  30. data/questions/random_check/.rspec +1 -0
  31. data/questions/random_check/random_h.rb +16 -0
  32. data/questions/random_check/section_1/.rspec +1 -0
  33. data/questions/random_check/section_1/lib/answer.rb +15 -0
  34. data/questions/random_check/section_1/lib/sentence.org +9 -0
  35. data/questions/random_check/section_1/lib/workplace.rb +5 -0
  36. data/questions/random_check/section_1/spec/spec_helper.rb +100 -0
  37. data/questions/random_check/section_1/spec/workplace_spec.rb +10 -0
  38. data/questions/random_check/section_2/.rspec +1 -0
  39. data/questions/random_check/section_2/lib/answer.rb +17 -0
  40. data/questions/random_check/section_2/lib/sentence.org +12 -0
  41. data/questions/random_check/section_2/lib/workplace.rb +5 -0
  42. data/questions/random_check/section_2/spec/.rspec +1 -0
  43. data/questions/random_check/section_2/spec/spec_helper.rb +100 -0
  44. data/questions/random_check/section_2/spec/workplace_spec.rb +11 -0
  45. data/questions/sequential_check/section_1/part_1/lib/answer.rb +9 -0
  46. data/questions/sequential_check/section_1/part_1/lib/sentence.org +9 -0
  47. data/questions/sequential_check/section_1/part_1/lib/workplace.rb +5 -0
  48. data/questions/sequential_check/section_1/part_1/spec/spec_helper.rb +100 -0
  49. data/questions/sequential_check/section_1/part_1/spec/workplace_spec.rb +10 -0
  50. data/questions/sequential_check/section_1/part_2/lib/answer.rb +16 -0
  51. data/questions/sequential_check/section_1/part_2/lib/sentence.org +12 -0
  52. data/questions/sequential_check/section_1/part_2/lib/workplace.rb +5 -0
  53. data/questions/sequential_check/section_1/part_2/spec/.rspec +1 -0
  54. data/questions/sequential_check/section_1/part_2/spec/spec_helper.rb +100 -0
  55. data/questions/sequential_check/section_1/part_2/spec/workplace_spec.rb +11 -0
  56. data/ruby_learner.gemspec +41 -0
  57. data/takahashi/docs/README.org +139 -0
  58. data/takahashi/docs/drill.html +875 -0
  59. data/takahashi/docs/drill.html~ +877 -0
  60. data/takahashi/docs/drill.org +446 -0
  61. data/takahashi/docs/ruby_for_beginner.html +2642 -0
  62. data/takahashi/docs/ruby_for_beginner.org +1430 -0
  63. data/takahashi/sample_prog/answer/10_1.rb +5 -0
  64. data/takahashi/sample_prog/answer/11_1.rb +5 -0
  65. data/takahashi/sample_prog/answer/11_2.rb +4 -0
  66. data/takahashi/sample_prog/answer/1_1.rb +1 -0
  67. data/takahashi/sample_prog/answer/1_2.rb +1 -0
  68. data/takahashi/sample_prog/answer/1_3.rb +1 -0
  69. data/takahashi/sample_prog/answer/2_1.rb +5 -0
  70. data/takahashi/sample_prog/answer/2_2.rb +12 -0
  71. data/takahashi/sample_prog/answer/3_1.rb +10 -0
  72. data/takahashi/sample_prog/answer/4_1.rb +7 -0
  73. data/takahashi/sample_prog/answer/5_1.rb +6 -0
  74. data/takahashi/sample_prog/answer/5_2.rb +3 -0
  75. data/takahashi/sample_prog/answer/6_1.rb +3 -0
  76. data/takahashi/sample_prog/answer/6_2.rb +5 -0
  77. data/takahashi/sample_prog/answer/6_3.rb +5 -0
  78. data/takahashi/sample_prog/answer/6_4.rb +7 -0
  79. data/takahashi/sample_prog/answer/7_1.rb +3 -0
  80. data/takahashi/sample_prog/answer/7_2.rb +8 -0
  81. data/takahashi/sample_prog/answer/9_1.rb +3 -0
  82. data/takahashi/sample_prog/answer/9_2.rb +5 -0
  83. data/takahashi/sample_prog/answer/9_3.rb +10 -0
  84. data/takahashi/sample_prog/answer/hello.rb +3 -0
  85. data/workshop/.rspec +1 -0
  86. data/workshop/emacs.d/ac-comphist.dat +50 -0
  87. data/workshop/emacs.d/cp5022x.el +156 -0
  88. data/workshop/emacs.d/elpa/archives/gnu/archive-contents +1240 -0
  89. data/workshop/emacs.d/elpa/archives/melpa/archive-contents +2 -0
  90. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-autoloads.el +65 -0
  91. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-config.el +551 -0
  92. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-config.elc +0 -0
  93. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete-pkg.el +6 -0
  94. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete.el +2164 -0
  95. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/auto-complete.elc +0 -0
  96. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ada-mode +72 -0
  97. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/c++-mode +99 -0
  98. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/c-mode +55 -0
  99. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/caml-mode +231 -0
  100. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/clojure-mode +580 -0
  101. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/clojurescript-mode +475 -0
  102. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/coq-mode +278 -0
  103. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/css-mode +874 -0
  104. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/erlang-mode +216 -0
  105. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ess-julia-mode +37 -0
  106. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/go-mode +25 -0
  107. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/haskell-mode +679 -0
  108. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/java-mode +53 -0
  109. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/js-mode +148 -0
  110. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/julia-mode +37 -0
  111. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/lua-mode +21 -0
  112. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/nim-mode +70 -0
  113. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/objc-mode +161 -0
  114. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/octave-mode +46 -0
  115. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/php-mode +6144 -0
  116. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/python-mode +379 -0
  117. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/qml-mode +183 -0
  118. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ruby-mode +181 -0
  119. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/scala-mode +1347 -0
  120. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/scheme-mode +216 -0
  121. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/sclang-mode +1481 -0
  122. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/sh-mode +182 -0
  123. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/swift-mode +87 -0
  124. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/tcl-mode +172 -0
  125. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/ts-mode +797 -0
  126. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/tuareg-mode +231 -0
  127. data/workshop/emacs.d/elpa/auto-complete-20170124.1845/dict/verilog-mode +313 -0
  128. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults-autoloads.el +16 -0
  129. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults-pkg.el +2 -0
  130. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults.el +90 -0
  131. data/workshop/emacs.d/elpa/better-defaults-20170613.2104/better-defaults.elc +0 -0
  132. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode-autoloads.el +26 -0
  133. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode-pkg.el +2 -0
  134. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode.el +877 -0
  135. data/workshop/emacs.d/elpa/haml-mode-20170923.2153/haml-mode.elc +0 -0
  136. data/workshop/emacs.d/elpa/haml-mode-readme.txt +8 -0
  137. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-light-theme.el +918 -0
  138. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-light-theme.elc +0 -0
  139. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme-autoloads.el +32 -0
  140. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme-pkg.el +8 -0
  141. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme.el +912 -0
  142. data/workshop/emacs.d/elpa/material-theme-20171123.1040/material-theme.elc +0 -0
  143. data/workshop/emacs.d/elpa/ox-bibtex-chinese-readme.txt +21 -0
  144. data/workshop/emacs.d/elpa/popup-20160709.729/popup-autoloads.el +15 -0
  145. data/workshop/emacs.d/elpa/popup-20160709.729/popup-pkg.el +2 -0
  146. data/workshop/emacs.d/elpa/popup-20160709.729/popup.el +1432 -0
  147. data/workshop/emacs.d/elpa/popup-20160709.729/popup.elc +0 -0
  148. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode-autoloads.el +33 -0
  149. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode-pkg.el +2 -0
  150. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode.el +470 -0
  151. data/workshop/emacs.d/elpa/yaml-mode-20180212.1556/yaml-mode.elc +0 -0
  152. data/workshop/emacs.d/elpa/yaml-mode-readme.txt +25 -0
  153. data/workshop/emacs.d/haml-mode-master/.gitignore +1 -0
  154. data/workshop/emacs.d/haml-mode-master/.mailmap +2 -0
  155. data/workshop/emacs.d/haml-mode-master/MIT-LICENSE +20 -0
  156. data/workshop/emacs.d/haml-mode-master/README.md +47 -0
  157. data/workshop/emacs.d/haml-mode-master/haml-mode.el +887 -0
  158. data/workshop/emacs.d/iceberg_theme.el +202 -0
  159. data/workshop/emacs.d/init-open-recentf.el +133 -0
  160. data/workshop/emacs.d/init.el +229 -0
  161. data/workshop/emacs.d/inits/line-num.el +264 -0
  162. data/workshop/emacs.d/install-elisp.el +366 -0
  163. data/workshop/emacs.d/markdown-mode/markdown-mode.el +5978 -0
  164. data/workshop/emacs.d/notes +12 -0
  165. data/workshop/emacs.d/processing-mode/processing-mode.el +275 -0
  166. data/workshop/emacs.d/recentf +31 -0
  167. data/workshop/emacs.d/ruby-mode/inf-ruby.el +416 -0
  168. data/workshop/emacs.d/ruby-mode/rdoc-mode.el +130 -0
  169. data/workshop/emacs.d/ruby-mode/ruby-electric.el +205 -0
  170. data/workshop/emacs.d/ruby-mode/ruby-mode.el +1496 -0
  171. data/workshop/emacs.d/ruby-mode/ruby-style.el +78 -0
  172. data/workshop/emacs.d/ruby-mode/rubydb2x.el +104 -0
  173. data/workshop/emacs.d/ruby-mode/rubydb3x.el +115 -0
  174. data/workshop/emacs.d/ruby_learner_init.el +244 -0
  175. data/workshop/emacs.d/themes/dracula-theme.el +431 -0
  176. data/workshop/emacs.d/themes/iceberg-theme.el +205 -0
  177. data/workshop/emacs.d/themes/my-misterioso-theme.el +109 -0
  178. data/workshop/emacs.d/themes/my-wombat-theme.el +121 -0
  179. data/workshop/emacs.d/wiki-mode/wiki.el +976 -0
  180. data/workshop/emacs_help.org +34 -0
  181. data/workshop/lib/answer.rb +1 -0
  182. data/workshop/lib/sentence.org +1 -0
  183. data/workshop/lib/workplace.rb +1 -0
  184. data/workshop/restore/empty.rb +0 -0
  185. data/workshop/spec/spec_helper.rb +100 -0
  186. data/workshop/spec/workplace_spec.rb +1 -0
  187. data/workshop/training_data.txt +3 -0
  188. metadata +343 -0
@@ -0,0 +1,5 @@
1
+ def hello
2
+ puts 'Hello, Ruby.'
3
+ end
4
+
5
+ hello
@@ -0,0 +1,5 @@
1
+ require_relative 'hello'
2
+
3
+ name = ARGV[0]
4
+
5
+ hello(name)
@@ -0,0 +1,4 @@
1
+ require 'date'
2
+
3
+ days = Date.today - Date.new(1993, 2, 24)
4
+ puts days.to_i
@@ -0,0 +1 @@
1
+ print 'Hello, Ruby.\n'
@@ -0,0 +1 @@
1
+ print "Hello, \"Ruby\".\n"
@@ -0,0 +1 @@
1
+ p "Hello,\n\tRuby."
@@ -0,0 +1,5 @@
1
+ puts ARGV[0]
2
+ puts ARGV[1]
3
+ puts ARGV[2]
4
+ puts ARGV[3]
5
+ puts ARGV[4]
@@ -0,0 +1,12 @@
1
+ num0 = ARGV[0].to_i
2
+ num1 = ARGV[1].to_i
3
+
4
+ sum = num0 + num1
5
+ dif = num0 - num1
6
+ pro = num0 * num1
7
+ quo = num0 / num1
8
+
9
+ puts sum
10
+ puts dif
11
+ puts pro
12
+ puts quo
@@ -0,0 +1,10 @@
1
+ # -*- coding: utf-8 -*-
2
+ x = ARGV[0].to_i
3
+ y = ARGV[1].to_i
4
+ z = ARGV[2].to_i
5
+
6
+ area = (x * y + y * z + z * x) * 2
7
+ volume = x * y * z
8
+
9
+ print '表面積=', area, "\n"
10
+ print '体積=', volume, "\n"
@@ -0,0 +1,7 @@
1
+ a = ARGV[0].to_i
2
+
3
+ if a >= 10
4
+ print "greater\n"
5
+ else
6
+ print "smaller\n"
7
+ end
@@ -0,0 +1,6 @@
1
+ n = ARGV[0].to_i
2
+ i = 1
3
+ while i <= n
4
+ print i, "\n"
5
+ i += 1
6
+ end
@@ -0,0 +1,3 @@
1
+ 5.times do
2
+ print "All work and no play makes Jack a dull boy.\n"
3
+ end
@@ -0,0 +1,3 @@
1
+ nums = [3, 1, 4, 1, 5]
2
+
3
+ print nums[ARGV[0].to_i]
@@ -0,0 +1,5 @@
1
+ nums = [3, 1, 4, 1, 5]
2
+
3
+ nums[0] = ARGV[0].to_i
4
+
5
+ print nums
@@ -0,0 +1,5 @@
1
+ nums = [3, 1, 4, 1, 5]
2
+
3
+ print nums, "\n"
4
+
5
+ print nums.size, "\n"
@@ -0,0 +1,7 @@
1
+ nums = [3, 1, 4, 1, 5]
2
+
3
+ print nums, "\n"
4
+
5
+ nums.each do |n|
6
+ puts n
7
+ end
@@ -0,0 +1,3 @@
1
+ n = ARGV[0]
2
+
3
+ p n.to_sym
@@ -0,0 +1,8 @@
1
+ # -*- coding: utf-8 -*-
2
+ address = { name: '高橋', furigana: 'タカハシ' }
3
+
4
+ puts address
5
+
6
+ address[:tel] = '000-1234-5678'
7
+
8
+ puts address
@@ -0,0 +1,3 @@
1
+ filename = ARGV[0]
2
+ text = File.read(filename)
3
+ print text
@@ -0,0 +1,5 @@
1
+ filename = ARGV[0]
2
+ file = File.open(filename)
3
+ file.each_line do |line|
4
+ print line
5
+ end
@@ -0,0 +1,10 @@
1
+ pattern = Regexp.new(ARGV[0])
2
+ filename = ARGV[1]
3
+
4
+ file = File.open(filename)
5
+ file.each_line do |line|
6
+ if pattern =~ line
7
+ print line
8
+ end
9
+ end
10
+ file.close
@@ -0,0 +1,3 @@
1
+ def hello(name)
2
+ print 'Hello, ', name, ".\n"
3
+ end
data/workshop/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
@@ -0,0 +1,50 @@
1
+ ((("typing" .
2
+ [1 0 0 0 0 0])
3
+ ("elsif" .
4
+ [0 0 0 0 1])
5
+ ("country" .
6
+ [0 0 3 1 0 0 0])
7
+ ("repuire" .
8
+ [1 0 0 0 0 0 0])
9
+ ("when" .
10
+ [1 0 0 0])
11
+ ("filePath" .
12
+ [0 0 0 0 4 2 0 0])
13
+ ("pathString" .
14
+ [0 0 0 0 0 0 0 1 0 0])
15
+ ("/Users/takakiotsu/NishitaniLab/grad_research_2018/members/takaki/daily_report/¥DR_" .
16
+ [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0])
17
+ ("/Users/takakiotsu/NishitaniLab/grad_research_2018/members/takaki/daily_report/DR_" .
18
+ [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0])
19
+ ("today" .
20
+ [3 0 0 0 0])
21
+ ("system" .
22
+ [0 0 0 0 0 3])
23
+ ("command" .
24
+ [1 0 0 0 1 2 1])
25
+ ("numbers" .
26
+ [0 0 3 3 0 0 0])
27
+ ("even_numbers" .
28
+ [0 0 0 1 0 0 1 0 0 0 0 0])
29
+ ("non_multiple_of_three" .
30
+ [0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0])
31
+ ("reject" .
32
+ [0 0 0 0 1 0])
33
+ ("person" .
34
+ [0 0 2 1 0 1])
35
+ ("name" .
36
+ [1 0 0 0])
37
+ ("age" .
38
+ [2 0 0])
39
+ ("friends" .
40
+ [0 0 0 1 1 0 0])
41
+ ("phones" .
42
+ [0 0 0 1 0 1])
43
+ ("home" .
44
+ [1 0 0 0])
45
+ ("mobile" .
46
+ [1 0 1 0 0 0])
47
+ ("sum" .
48
+ [3 0 0])
49
+ ("each" .
50
+ [0 0 1 0])))
@@ -0,0 +1,156 @@
1
+ ;;; cp5022x.el --- cp50220, cp50221, cp50222 coding system
2
+
3
+ ;; Copyright (C) 2008 ARISAWA Akihiro
4
+
5
+ ;; Author: ARISAWA Akihiro <ari@mbf.ocn.ne.jp>
6
+ ;; Keywords: languages, cp50220, cp50221, cp50222, cp51932, cp932
7
+
8
+ ;; This file is free software; you can redistribute it and/or modify
9
+ ;; it under the terms of the GNU General Public License as published by
10
+ ;; the Free Software Foundation; either version 3, or (at your option)
11
+ ;; any later version.
12
+
13
+ ;; This file is distributed in the hope that it will be useful,
14
+ ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+ ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
+ ;; GNU General Public License for more details.
17
+
18
+ ;; You should have received a copy of the GNU General Public License
19
+ ;; along with GNU Emacs; see the file COPYING. If not, write to
20
+ ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
+ ;; Boston, MA 02110-1301, USA.
22
+
23
+ ;;; Commentary:
24
+
25
+ ;; This program requires Mule-6.0 or later.
26
+
27
+ ;;; Code:
28
+
29
+ ;; http://unicode.org/reports/tr30/datafiles/WidthFolding.txt
30
+ (define-translation-table
31
+ 'cp50220-jisx0201-katakana-to-zenkaku
32
+ '(;; Half-width to generic width (singletons)
33
+ (#xFF61 . #x3002) ;; 。 → 。 HALFWIDTH IDEOGRAPHIC FULL STOP → IDEOGRAPHIC FULL STOP
34
+ (#xFF62 . #x300C) ;; 「 → 「 HALFWIDTH LEFT CORNER BRACKET → LEFT CORNER BRACKET
35
+ (#xFF63 . #x300D) ;; 」 → 」 HALFWIDTH RIGHT CORNER BRACKET → RIGHT CORNER BRACKET
36
+ (#xFF64 . #x3001) ;; 、 → 、 HALFWIDTH IDEOGRAPHIC COMMA → IDEOGRAPHIC COMMA
37
+ ;; Half-witdh to generic Katakana (singletons)
38
+ (#xFF65 . #x30FB) ;; ・ → ・ HALFWIDTH KATAKANA MIDDLE DOT → KATAKANA MIDDLE DOT
39
+ (#xFF66 . #x30F2) ;; ヲ → ヲ HALFWIDTH KATAKANA LETTER WO → KATAKANA LETTER WO
40
+ (#xFF67 . #x30A1) ;; ァ → ァ HALFWIDTH KATAKANA LETTER SMALL A → KATAKANA LETTER SMALL A
41
+ (#xFF68 . #x30A3) ;; ィ → ィ HALFWIDTH KATAKANA LETTER SMALL I → KATAKANA LETTER SMALL I
42
+ (#xFF69 . #x30A5) ;; ゥ → ゥ HALFWIDTH KATAKANA LETTER SMALL U → KATAKANA LETTER SMALL U
43
+ (#xFF6A . #x30A7) ;; ェ → ェ HALFWIDTH KATAKANA LETTER SMALL E → KATAKANA LETTER SMALL E
44
+ (#xFF6B . #x30A9) ;; ォ → ォ HALFWIDTH KATAKANA LETTER SMALL O → KATAKANA LETTER SMALL O
45
+ (#xFF6C . #x30E3) ;; ャ → ャ HALFWIDTH KATAKANA LETTER SMALL YA → KATAKANA LETTER SMALL YA
46
+ (#xFF6D . #x30E5) ;; ュ → ュ HALFWIDTH KATAKANA LETTER SMALL YU → KATAKANA LETTER SMALL YU
47
+ (#xFF6E . #x30E7) ;; ョ → ョ HALFWIDTH KATAKANA LETTER SMALL YO → KATAKANA LETTER SMALL YO
48
+ (#xFF6F . #x30C3) ;; ッ → ッ HALFWIDTH KATAKANA LETTER SMALL TU → KATAKANA LETTER SMALL TU
49
+ (#xFF70 . #x30FC) ;; ー → ー HALFWIDTH KATAKANA-HIRAGANA PROLONGED SOUND MARK → KATAKANA-HIRAGANA PROLONGED SOUND MARK
50
+ (#xFF71 . #x30A2) ;; ア → ア HALFWIDTH KATAKANA LETTER A → KATAKANA LETTER A
51
+ (#xFF72 . #x30A4) ;; イ → イ HALFWIDTH KATAKANA LETTER I → KATAKANA LETTER I
52
+ (#xFF73 . #x30A6) ;; ウ → ウ HALFWIDTH KATAKANA LETTER U → KATAKANA LETTER U
53
+ (#xFF74 . #x30A8) ;; エ → エ HALFWIDTH KATAKANA LETTER E → KATAKANA LETTER E
54
+ (#xFF75 . #x30AA) ;; オ → オ HALFWIDTH KATAKANA LETTER O → KATAKANA LETTER O
55
+ (#xFF76 . #x30AB) ;; カ → カ HALFWIDTH KATAKANA LETTER KA → KATAKANA LETTER KA
56
+ (#xFF77 . #x30AD) ;; キ → キ HALFWIDTH KATAKANA LETTER KI → KATAKANA LETTER KI
57
+ (#xFF78 . #x30AF) ;; ク → ク HALFWIDTH KATAKANA LETTER KU → KATAKANA LETTER KU
58
+ (#xFF79 . #x30B1) ;; ケ → ケ HALFWIDTH KATAKANA LETTER KE → KATAKANA LETTER KE
59
+ (#xFF7A . #x30B3) ;; コ → コ HALFWIDTH KATAKANA LETTER KO → KATAKANA LETTER KO
60
+ (#xFF7B . #x30B5) ;; サ → サ HALFWIDTH KATAKANA LETTER SA → KATAKANA LETTER SA
61
+ (#xFF7C . #x30B7) ;; シ → シ HALFWIDTH KATAKANA LETTER SI → KATAKANA LETTER SI
62
+ (#xFF7D . #x30B9) ;; ス → ス HALFWIDTH KATAKANA LETTER SU → KATAKANA LETTER SU
63
+ (#xFF7E . #x30BB) ;; セ → セ HALFWIDTH KATAKANA LETTER SE → KATAKANA LETTER SE
64
+ (#xFF7F . #x30BD) ;; ソ → ソ HALFWIDTH KATAKANA LETTER SO → KATAKANA LETTER SO
65
+ (#xFF80 . #x30BF) ;; タ → タ HALFWIDTH KATAKANA LETTER TA → KATAKANA LETTER TA
66
+ (#xFF81 . #x30C1) ;; チ → チ HALFWIDTH KATAKANA LETTER TI → KATAKANA LETTER TI
67
+ (#xFF82 . #x30C4) ;; ツ → ツ HALFWIDTH KATAKANA LETTER TU → KATAKANA LETTER TU
68
+ (#xFF83 . #x30C6) ;; テ → テ HALFWIDTH KATAKANA LETTER TE → KATAKANA LETTER TE
69
+ (#xFF84 . #x30C8) ;; ト → ト HALFWIDTH KATAKANA LETTER TO → KATAKANA LETTER TO
70
+ (#xFF85 . #x30CA) ;; ナ → ナ HALFWIDTH KATAKANA LETTER NA → KATAKANA LETTER NA
71
+ (#xFF86 . #x30CB) ;; ニ → ニ HALFWIDTH KATAKANA LETTER NI → KATAKANA LETTER NI
72
+ (#xFF87 . #x30CC) ;; ヌ → ヌ HALFWIDTH KATAKANA LETTER NU → KATAKANA LETTER NU
73
+ (#xFF88 . #x30CD) ;; ネ → ネ HALFWIDTH KATAKANA LETTER NE → KATAKANA LETTER NE
74
+ (#xFF89 . #x30CE) ;; ノ → ノ HALFWIDTH KATAKANA LETTER NO → KATAKANA LETTER NO
75
+ (#xFF8A . #x30CF) ;; ハ → ハ HALFWIDTH KATAKANA LETTER HA → KATAKANA LETTER HA
76
+ (#xFF8B . #x30D2) ;; ヒ → ヒ HALFWIDTH KATAKANA LETTER HI → KATAKANA LETTER HI
77
+ (#xFF8C . #x30D5) ;; フ → フ HALFWIDTH KATAKANA LETTER HU → KATAKANA LETTER HU
78
+ (#xFF8D . #x30D8) ;; ヘ → ヘ HALFWIDTH KATAKANA LETTER HE → KATAKANA LETTER HE
79
+ (#xFF8E . #x30DB) ;; ホ → ホ HALFWIDTH KATAKANA LETTER HO → KATAKANA LETTER HO
80
+ (#xFF8F . #x30DE) ;; マ → マ HALFWIDTH KATAKANA LETTER MA → KATAKANA LETTER MA
81
+ (#xFF90 . #x30DF) ;; ミ → ミ HALFWIDTH KATAKANA LETTER MI → KATAKANA LETTER MI
82
+ (#xFF91 . #x30E0) ;; ム → ム HALFWIDTH KATAKANA LETTER MU → KATAKANA LETTER MU
83
+ (#xFF92 . #x30E1) ;; メ → メ HALFWIDTH KATAKANA LETTER ME → KATAKANA LETTER ME
84
+ (#xFF93 . #x30E2) ;; モ → モ HALFWIDTH KATAKANA LETTER MO → KATAKANA LETTER MO
85
+ (#xFF94 . #x30E4) ;; ヤ → ヤ HALFWIDTH KATAKANA LETTER YA → KATAKANA LETTER YA
86
+ (#xFF95 . #x30E6) ;; ユ → ユ HALFWIDTH KATAKANA LETTER YU → KATAKANA LETTER YU
87
+ (#xFF96 . #x30E8) ;; ヨ → ヨ HALFWIDTH KATAKANA LETTER YO → KATAKANA LETTER YO
88
+ (#xFF97 . #x30E9) ;; ラ → ラ HALFWIDTH KATAKANA LETTER RA → KATAKANA LETTER RA
89
+ (#xFF98 . #x30EA) ;; リ → リ HALFWIDTH KATAKANA LETTER RI → KATAKANA LETTER RI
90
+ (#xFF99 . #x30EB) ;; ル → ル HALFWIDTH KATAKANA LETTER RU → KATAKANA LETTER RU
91
+ (#xFF9A . #x30EC) ;; レ → レ HALFWIDTH KATAKANA LETTER RE → KATAKANA LETTER RE
92
+ (#xFF9B . #x30ED) ;; ロ → ロ HALFWIDTH KATAKANA LETTER RO → KATAKANA LETTER RO
93
+ (#xFF9C . #x30EF) ;; ワ → ワ HALFWIDTH KATAKANA LETTER WA → KATAKANA LETTER WA
94
+ (#xFF9D . #x30F3) ;; ン → ン HALFWIDTH KATAKANA LETTER N → KATAKANA LETTER N
95
+ ; (#xFF9E . #x3099) ;; ゙ → ゙ HALFWIDTH KATAKANA VOICED SOUND MARK → COMBINING KATAKANA-HIRAGANA VOICED SOUND MARK
96
+ ; (#xFF9F . #x309A) ;; ゚ → ゚ HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK → COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
97
+ (#xFF9E . #x309B) ;; ゙ → ゛ HALFWIDTH KATAKANA VOICED SOUND MARK → KATAKANA-HIRAGANA VOICED SOUND MARK
98
+ (#xFF9F . #x309C) ;; ゚ → ゜ HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK → KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK
99
+ ))
100
+
101
+ (define-coding-system 'cp50220
102
+ "CP50220 (Microsoft iso-2022-jp for mail)"
103
+ :coding-type 'iso-2022
104
+ :mnemonic ?J
105
+ :designation [(ascii japanese-jisx0208-1978 japanese-jisx0208
106
+ latin-jisx0201 katakana-jisx0201)
107
+ nil nil nil]
108
+ :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation)
109
+ :charset-list '(ascii japanese-jisx0208
110
+ japanese-jisx0208-1978 latin-jisx0201
111
+ katakana-jisx0201)
112
+ :decode-translation-table '(cp51932-decode japanese-ucs-jis-to-cp932-map)
113
+ :encode-translation-table '(cp50220-jisx0201-katakana-to-zenkaku
114
+ cp51932-encode japanese-ucs-cp932-to-jis-map))
115
+
116
+ (define-coding-system 'cp50221
117
+ "CP50221 (Microsoft iso-2022-jp)"
118
+ :coding-type 'iso-2022
119
+ :mnemonic ?J
120
+ :designation [(ascii japanese-jisx0208-1978 japanese-jisx0208
121
+ latin-jisx0201 katakana-jisx0201)
122
+ nil nil nil]
123
+ :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation)
124
+ :charset-list '(ascii japanese-jisx0208
125
+ japanese-jisx0208-1978 latin-jisx0201
126
+ katakana-jisx0201)
127
+ :decode-translation-table '(cp51932-decode japanese-ucs-jis-to-cp932-map)
128
+ :encode-translation-table '(cp51932-encode japanese-ucs-cp932-to-jis-map))
129
+
130
+ (define-coding-system 'cp50222
131
+ "CP50222 (Microsoft iso-2022-jp)"
132
+ :coding-type 'iso-2022
133
+ :mnemonic ?J
134
+ :designation [(ascii japanese-jisx0208-1978 japanese-jisx0208
135
+ latin-jisx0201)
136
+ katakana-jisx0201 nil nil]
137
+ :flags '(short ascii-at-eol ascii-at-cntl 7-bit designation)
138
+ :charset-list '(ascii japanese-jisx0208
139
+ japanese-jisx0208-1978 latin-jisx0201
140
+ katakana-jisx0201)
141
+ :decode-translation-table '(cp51932-decode japanese-ucs-jis-to-cp932-map)
142
+ :encode-translation-table '(cp51932-encode japanese-ucs-cp932-to-jis-map))
143
+
144
+ (define-coding-system 'cp51932
145
+ "CP51932 (Microsoft euc-jp)"
146
+ :coding-type 'iso-2022
147
+ :mnemonic ?E
148
+ :designation [ascii japanese-jisx0208 katakana-jisx0201 nil]
149
+ :flags '(short ascii-at-eol ascii-at-cntl single-shift)
150
+ :charset-list '(ascii latin-jisx0201 japanese-jisx0208
151
+ katakana-jisx0201)
152
+ :decode-translation-table '(cp51932-decode japanese-ucs-jis-to-cp932-map)
153
+ :encode-translation-table '(cp51932-encode japanese-ucs-cp932-to-jis-map))
154
+
155
+ (provide 'cp5022x)
156
+ ;;; cp5022x.el ends here