hiki2latex 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8a55aa25b0e67f85197587c3826d6f4a9adf217a
4
+ data.tar.gz: 4efaae4633dd05b0b5a6f462eeb541029f2729f9
5
+ SHA512:
6
+ metadata.gz: efb3e42289ff956f0a43ed6055bdcc976c2ad4e2669ed866cc73706220f9d7e27b08a061fddcf96705a7700905752293ee3807ec77fa34d643b26291513be4de
7
+ data.tar.gz: 176ad009018fd81b89197e4f71f0c40c9e22aade7fe85b9534b03589ccc3e7e934c37ed4791b7576db7c6b09970bf45aaf6446401cebed3cda210e7b924a1ff9
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.2
4
+ before_install: gem install bundler -v 1.10.6
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in hiki2latex.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Shigeto R. Nishitani
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,54 @@
1
+ # Hiki2latex
2
+
3
+ convert hikidoc to latex format.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'hiki2latex'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install hiki2latex
20
+
21
+ ## Usage
22
+
23
+ Use as a gem library:
24
+
25
+ require 'hiki2latex'
26
+
27
+ or as a command line tool:
28
+
29
+ ```ruby
30
+ Usage: hiki2latex [options] FILE
31
+ -v, --version show program Version.
32
+ -l, --level VALUE set Level for output section.
33
+ -p, --plain FILE make Plain document.
34
+ -b, --bare FILE make Bare document.
35
+ --head FILE put headers of maketitle file.
36
+ --pre FILE put preamble file.
37
+ --post FILE put post file.
38
+ ```
39
+
40
+ ## Development
41
+
42
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. Run `bundle exec hiki2latex` to use the gem in this directory, ignoring other installed copies of this gem.
43
+
44
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
45
+
46
+ ## Contributing
47
+
48
+ Bug reports and pull requests are welcome on GitHub at https://github.com/daddygongon/hiki2latex. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
49
+
50
+
51
+ ## License
52
+
53
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
54
+
data/Rakefile ADDED
@@ -0,0 +1,25 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+ require "rake/testtask"
4
+ require 'yard'
5
+
6
+ #task :default => :test
7
+ task :default do
8
+ system 'rake -T'
9
+ end
10
+
11
+
12
+ YARD::Rake::YardocTask.new
13
+
14
+ RSpec::Core::RakeTask.new(:spec)
15
+
16
+ #task :default => :spec
17
+
18
+ desc "gem upload"
19
+ task :upload do
20
+ system "rsync -auvz -e ssh pkg/ dmz0:~/Sites/nishitani0/gems/gems/"
21
+ print "command at dmz0:cd ~/Sites/nishitani0/gems \n"
22
+ print "command at dmz0:gem generate_index \n"
23
+ system "ssh dmz0"
24
+ end
25
+
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "hiki2latex"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
data/exe/hiki2latex ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "hiki2latex"
4
+
5
+ Hiki2latex::Command.run(ARGV)
@@ -0,0 +1,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'hiki2latex/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "hiki2latex"
8
+ spec.version = Hiki2latex::VERSION
9
+ spec.authors = ["Shigeto R. Nishitani"]
10
+ spec.email = ["shigeto_nishitani@me.com"]
11
+
12
+ spec.summary = %q{convert hiki text to latex.}
13
+ spec.description = %q{convert hiki text to latex format.}
14
+ spec.homepage = 'https://github.com/daddygongon/hiki2latex'
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
18
+ # delete this section to allow pushing this gem to any host.
19
+ # if spec.respond_to?(:metadata)
20
+ # spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
21
+ # else
22
+ # raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
23
+ # end
24
+
25
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_development_dependency "bundler", "~> 1.10"
31
+ spec.add_development_dependency "rake", "~> 10.0"
32
+ spec.add_development_dependency "rspec"
33
+ spec.add_development_dependency "yard", "~> 0.8"
34
+ spec.add_development_dependency "hikidoc","~>0.1.0"
35
+ end
@@ -0,0 +1,357 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright (c) 2015 Shigeto R. Nishitani
3
+ # All rights reserved.
4
+ #
5
+ require 'hikidoc'
6
+
7
+ class HikiDoc
8
+ def HikiDoc.to_latex(src, options = {})
9
+ new(LatexOutput.new(), options).compile(src)
10
+ end
11
+ end
12
+
13
+
14
+ class LatexOutput
15
+ def initialize(suffix = "")
16
+ @suffix = suffix
17
+ # @f = nil
18
+ @f, @head, @caption, @table ="","","",""
19
+ end
20
+
21
+ def reset
22
+ # @f = StringIO.new
23
+ @f, @head, @caption, @table ="","","",""
24
+ end
25
+
26
+ def finish
27
+ if @head != "" then
28
+ @head << "\\date\{\}\n" if !@head.include?("date")
29
+ @head << "\\maketitle\n"
30
+ return @head+@f
31
+ else
32
+ return @f
33
+ end
34
+ end
35
+
36
+ def container(_for=nil)
37
+ case _for
38
+ when :paragraph
39
+ []
40
+ else
41
+ ""
42
+ end
43
+ end
44
+
45
+ #
46
+ # Procedures
47
+ #
48
+
49
+ def headline(level, title)
50
+ title = escape_snake_names(title)
51
+ tmp=title.split(/:/)
52
+ if tmp.size!=1 then
53
+ case tmp[0]
54
+ when 'title','author','date'
55
+ @head << "\\#{tmp[0]}\{#{tmp[1]}\}\n"
56
+ when 'caption'
57
+ @caption << "#{tmp[1]}"
58
+ when 'reference'
59
+ @f << "\\section*\{#{tmp[1]}\}\n"
60
+ else
61
+ @f << "\\#{tmp[0]}\{#{tmp[1]}\}\n"
62
+ end
63
+ return
64
+ end
65
+ if level==1 then
66
+ @f << "\\section\{#{title}\}\n"
67
+ elsif level==2 then
68
+ @f << "\\subsection\{#{title}\}\n"
69
+ elsif level==3 then
70
+ @f << "\\subsubsection\{#{title}\}\n"
71
+ else
72
+ @f << "\\paragraph\{#{title}\}\n"
73
+ end
74
+ end
75
+
76
+ def block_plugin(str)
77
+ tmp=[]
78
+ if ( /(\w+)\((.+)\)/ =~ str ) or ( /(\w+).\'(.+)\'/ =~str ) or (/(\w+)/ =~ str)
79
+ tmp = [$1,$2]
80
+ end
81
+
82
+ case tmp[0]
83
+ when 'toc'
84
+ @f << "\\tableofcontents\n"
85
+ when 'attach_anchor'
86
+ @f << "\\input\{#{tmp[1]}\}\n"
87
+ when 'attach_view'
88
+ @f << "\\begin{figure}[htbp]\\begin{center}\n"
89
+ @f << "\\includegraphics[width=6cm]\{./#{tmp[1]}\}\n"
90
+ # @f << "\\vspace{-2.5mm}\n"
91
+ @f << "\\caption\{"+@caption+"\}\n"
92
+ # @f << "\\vspace{-10mm}\n"
93
+ @f << "\\label\{default\}\\end\{center\}\\end\{figure\}\n"
94
+ @caption = ""
95
+ else
96
+ @f << "Don\'t know \verb|{{#{str}}}|\n"
97
+ end
98
+ end
99
+
100
+ def text(str)
101
+ str
102
+ end
103
+
104
+ def inline_plugin(src)
105
+ if ( /(\w+)\s+\'(.+)\'/ =~src ) or ( /(\w+)\((.+)\)/ =~ src ) or (/(\w+)/ =~ src)
106
+ tmp = [$1,$2]
107
+ end
108
+ case tmp[0]
109
+ when 'dmath'
110
+ "\\begin{equation}\n#{tmp[1]}\n\\end{equation}"
111
+ when 'math'
112
+ "\$#{tmp[1]}\$"
113
+ # when 'attach_view'
114
+ # @f << "\n\\includegraphics[scale=0.3]\{./#{tmp[1]}\}\n"
115
+ else
116
+ %Q(\\verb\|{{#{src}}}\|)
117
+ end
118
+ end
119
+
120
+ def escape_html(text)
121
+ text
122
+ end
123
+
124
+ def unescape_html(text)
125
+ text
126
+ end
127
+
128
+ def escape_htm_param(str)
129
+ str
130
+ end
131
+
132
+ def escape_snake_names(str)
133
+ str.gsub!(/_/,"\\_")
134
+ str.gsub!(/\$.+?\$/){ |text|
135
+ if text =~ /\\_/ then
136
+ text.gsub!(/\\_/,"_")
137
+ else
138
+ text
139
+ end
140
+ }
141
+ str.gsub!(/\verb|.+?|/){ |text|
142
+ if text =~ /\\_/ then
143
+ text.gsub!(/\\_/,"_")
144
+ else
145
+ text
146
+ end
147
+ }
148
+ str.gsub!(/equation.+?equation/m){ |text|
149
+ if text =~ /\\_/ then
150
+ text.gsub!(/\\_/,"_")
151
+ else
152
+ text
153
+ end
154
+ }
155
+ str
156
+ end
157
+
158
+ def paragraph(lines)
159
+ lines.each{|line| line = escape_snake_names(line) }
160
+ @f << "#{lines.join("\n")}\n\n"
161
+ end
162
+ def blockquote_open()
163
+ end
164
+ def blockquote_close()
165
+ end
166
+
167
+ def del(item)
168
+ # use ulem or jumoline
169
+ end
170
+
171
+ def em(item)
172
+ @f << "\\textbf\{#{item}\}"
173
+ end
174
+
175
+ def strong(item)
176
+ @f << "\\textbf\{#{item}\}"
177
+ end
178
+
179
+ def block_preformatted(str, info)
180
+ preformatted(text(str))
181
+ end
182
+ def preformatted(str)
183
+ @f.slice!(-1)
184
+ @f << "\\begin{quote}\\begin{verbatim}\n"
185
+ @f << str+"\n"
186
+ @f << "\\end{verbatim}\\end{quote}\n"
187
+ end
188
+
189
+ def list_begin
190
+ end
191
+
192
+ def list_end
193
+ end
194
+
195
+ def list_open(type)
196
+ @f.slice!(-1) #こいつがわからん.\begin{item..}の前に改行が入るから...なぜ?
197
+ #二重のitemizeでおかしくなるが,へんなところで改行は入らないので.
198
+ case type
199
+ when 'ul' then
200
+ @f << "\\begin{itemize}\n"
201
+ when 'ol' then
202
+ @f << "\\begin{enumerate}\n"
203
+ end
204
+ end
205
+
206
+ def list_close(type)
207
+ case type
208
+ when 'ul' then
209
+ @f << "\\end{itemize}\n"
210
+ when 'ol' then
211
+ @f << "\\end{enumerate}\n"
212
+ end
213
+ end
214
+
215
+ def listitem_open
216
+ @f << "\\item "
217
+ end
218
+
219
+ def listitem_close
220
+ # @f << "\n" #closeでやるとうまくいかないときあり.listitemに改行を付け足した.
221
+ end
222
+
223
+ def listitem(item)
224
+ @f << escape_snake_names(item) << "\n"
225
+ end
226
+
227
+ def dlist_open
228
+ @f.slice!(-1)
229
+ @f << "\\begin{description}\n"
230
+ end
231
+
232
+ def dlist_close
233
+ @f << "\\end{description}\n"
234
+ end
235
+
236
+ def dlist_item(dt, dd)
237
+ case
238
+ when dd.empty?
239
+ @f << "\\item[#{dt}]"
240
+ when dt.empty?
241
+ @f << "\\item #{dd}"
242
+ else
243
+ @f << "\\item[#{dt}] #{dd}\n"
244
+ end
245
+ end
246
+
247
+ def table_open
248
+ @table = ""
249
+ end
250
+
251
+ def table_close
252
+ @f << make_table
253
+ end
254
+
255
+ DT_ALIGN='l'
256
+ # tableから連結作用素に対応したmatrixを作る
257
+ # input:lineごとに分割されたcont
258
+ # output:matrixと最長列数
259
+ def make_matrix(cont)
260
+ t_matrix=[]
261
+ cont.each{|line|
262
+ tmp=line.split('||')
263
+ tmp.slice!(0)
264
+ tmp.slice!(-1) if tmp.slice(-1)=="\n"
265
+ tmp.each_with_index{|ele,i| tmp[i] = ele.match(/\s*(.+)/)[1]}
266
+ t_matrix << tmp
267
+ }
268
+ t_matrix.each_with_index{|line,i|
269
+ line.each_with_index{|ele,j|
270
+ if ele=~/\^+/ then
271
+ t_matrix[i][j]=""
272
+ rs=$&.size
273
+ c_rs=rs/2
274
+ rs.times{|k| t_matrix[i+k+1].insert(j,"")}
275
+ t_matrix[i+c_rs][j]=$'
276
+ end
277
+ }
278
+ }
279
+ max_col=0
280
+ t_matrix.each_with_index{|line,i|
281
+ n_col=line.size
282
+ line.each_with_index{|ele,j|
283
+ if ele=~/>+/ then
284
+ cs=$&.size
285
+ t_matrix[i][j]= "\\multicolumn{#{cs+1}}{#{DT_ALIGN}}{#{$'}} "
286
+ n_col+=cs
287
+ end
288
+ }
289
+ max_col = n_col if n_col>max_col
290
+ }
291
+ return t_matrix,max_col
292
+ end
293
+
294
+ # tableを整形する
295
+ def make_table
296
+ cont,max_col = make_matrix(@table.split("\n"))
297
+
298
+ position = "{"
299
+ max_col.times{ position << DT_ALIGN}
300
+ position << "}"
301
+ buf = "\\begin{table}[htbp]\\begin{center}\n"
302
+ buf << "\\caption{#{@caption}}\n"
303
+ buf << "\\begin{tabular}#{position}\n\\hline\n"
304
+
305
+ cont.each_with_index{|line,i|
306
+ line.each{|ele|
307
+ buf << "#{ele} &"
308
+ }
309
+ buf.slice!(-1)
310
+ buf << ((i==0)? "\\\\ \\hline\n" : "\\\\\n")
311
+ }
312
+ buf << "\\hline\n\\end{tabular}\n"
313
+ buf << "\\label{default}\n\\end{center}\\end{table}\n"
314
+ @caption = ""
315
+ buf << "%横罫を入れる場合は, \\hline, \\cline{2-3}などで.\n\n"
316
+ return buf
317
+ end
318
+
319
+ def table_record_open
320
+ @table << "\|\| "
321
+ end
322
+
323
+ def table_record_close
324
+ @table << " \n"
325
+ end
326
+
327
+ def table_head(item, rs, cs)
328
+ @table << item.chomp+" \|\| "
329
+ end
330
+
331
+ def table_data(item, rs, cs)
332
+ @table << "#{tdattr(rs,cs)}#{item.chomp} \|\| "
333
+ end
334
+
335
+ def tdattr(rs, cs)
336
+ buf = ""
337
+ (rs.to_i-1).times{ buf << "^"}
338
+ (cs.to_i-1).times{ buf << ">"}
339
+ return buf
340
+ end
341
+ private :tdattr
342
+
343
+
344
+ def hyperlink(uri, title)
345
+ %Q(\\verb\|#{title}(#{uri})\|)
346
+ end
347
+
348
+ end
349
+
350
+ if __FILE__ == $0
351
+ # puts HikiDoc.to_html(ARGF.read(nil))
352
+ puts "\\documentclass[12pt,a4paper]{jsarticle}"
353
+ puts "\\usepackage[dvipdfmx]{graphicx}"
354
+ puts "\\begin{document}"
355
+ puts HikiDoc.to_latex(ARGF.read(nil))
356
+ puts "\\end{document}"
357
+ end
@@ -0,0 +1,3 @@
1
+ module Hiki2latex
2
+ VERSION = "0.9.0"
3
+ end
data/lib/hiki2latex.rb ADDED
@@ -0,0 +1,62 @@
1
+ require 'optparse'
2
+ require "hiki2latex/version"
3
+ #require "hiki2latex/hikidoc"
4
+ require "hiki2latex/hiki2latex"
5
+
6
+ module Hiki2latex
7
+ class Command
8
+
9
+ def self.run(argv=[])
10
+ new(argv).execute
11
+ end
12
+
13
+ def initialize(argv=[])
14
+ @argv = argv
15
+ @pre=@head=@post=nil
16
+ end
17
+
18
+ def execute
19
+ @argv << '--help' if @argv.size==0
20
+ command_parser = OptionParser.new do |opt|
21
+ opt.on('-v', '--version','show program Version.') { |v|
22
+ opt.version = Hiki2latex::VERSION
23
+ puts opt.ver
24
+ }
25
+ opt.on('-l VALUE','--level','set Level for output section.'){|level| @level=level.to_i}
26
+ opt.on('-p FILE', '--plain','make Plain document.') { |file| plain_doc(file) }
27
+ opt.on('-b FILE', '--bare','make Bare document.') { |file| bare_doc(file) }
28
+ opt.on('--head FILE', 'put headers of maketitle file.') { |file| @head=file }
29
+ opt.on('--pre FILE', 'put preamble file.') { |file| @pre=file }
30
+ opt.on('--post FILE', 'put post file.') { |file| @post=file }
31
+ end
32
+ command_parser.banner = "Usage: hiki2latex [options] FILE"
33
+ command_parser.parse!(@argv)
34
+ # p @argv
35
+ plain_doc(@argv[0]) if @argv[0]!=nil
36
+ exit
37
+ end
38
+
39
+ def plain_doc(file)
40
+ if @pre==nil then
41
+ puts "\\documentclass[12pt,a4paper]{jsarticle}"
42
+ puts "\\usepackage[dvipdfmx]{graphicx}"
43
+ else
44
+ puts File.read(@pre)
45
+ end
46
+ puts "\\begin{document}"
47
+ puts File.read(@head) if @head!=nil
48
+ puts HikiDoc.to_latex(File.read(file))
49
+ puts File.read(@post) if @post!=nil
50
+ puts "\\end{document}"
51
+ end
52
+ def bare_doc(file)
53
+ puts HikiDoc.to_latex(File.read(file),{:level=>@level})
54
+ end
55
+
56
+ end
57
+ end
58
+
59
+
60
+ =begin
61
+ =end
62
+
metadata ADDED
@@ -0,0 +1,130 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hiki2latex
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.9.0
5
+ platform: ruby
6
+ authors:
7
+ - Shigeto R. Nishitani
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-02-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: yard
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.8'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: hikidoc
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.1.0
83
+ description: convert hiki text to latex format.
84
+ email:
85
+ - shigeto_nishitani@me.com
86
+ executables:
87
+ - hiki2latex
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - ".travis.yml"
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - bin/console
99
+ - bin/setup
100
+ - exe/hiki2latex
101
+ - hiki2latex.gemspec
102
+ - lib/hiki2latex.rb
103
+ - lib/hiki2latex/hiki2latex.rb
104
+ - lib/hiki2latex/version.rb
105
+ homepage: https://github.com/daddygongon/hiki2latex
106
+ licenses:
107
+ - MIT
108
+ metadata: {}
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ requirements: []
124
+ rubyforge_project:
125
+ rubygems_version: 2.5.1
126
+ signing_key:
127
+ specification_version: 4
128
+ summary: convert hiki text to latex.
129
+ test_files: []
130
+ has_rdoc: