review-peg 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd105d0821229e06a22f8f08a083d38808bc2da1
4
- data.tar.gz: 8a14d9cfd37d596ee0799a3a2c6b8fc1eaa7b260
3
+ metadata.gz: 03d1ef2fefa11d295fa174c87a4c40275a26f154
4
+ data.tar.gz: beac544612280cbb759cb38bad11afc6570d4efc
5
5
  SHA512:
6
- metadata.gz: 6a5fc7e268a64514a22901121da0119775cf0658f37e40a73460f4c8409e4df4dd3bb9573e737a91feb182cd4c4b3d32f3afa596271208bffaf69567da69da72
7
- data.tar.gz: ef828baa49aa15061de385aa1199e7b966dc8a548b35b5096bcec3ffc038546cbf100cc461615e35c2fd0f91487425d07ab849941f2a9a8f8f2f0f544eb70824
6
+ metadata.gz: 28bac4ddc963431f7e5886d181ec34e0a5ac51cb6973fba4a2ac872de357a86bac03190d40bcc92c00b0f949362113d4fd090f18a481489b9dbec7abca06eddd
7
+ data.tar.gz: c3dee71459430d4dcf890eba2066a27a5c4d7473f81138907f280530ac1ea14402885e177e193a62b8a7247389a443d52484b8ce254bd6ce33506b26dfedded2
@@ -581,13 +581,14 @@ module ReVIEW
581
581
  buf
582
582
  end
583
583
 
584
- def texequation(lines)
584
+ def node_texequation(node)
585
+ buf = ""
585
586
  buf << %Q[<div class="equation">\n]
586
587
  if @book.config["mathml"]
587
588
  require 'math_ml'
588
589
  require 'math_ml/symbol/character_reference'
589
590
  p = MathML::LaTeX::Parser.new(:symbol=>MathML::Symbol::CharacterReference)
590
- buf << p.parse(unescape_html(lines.join("\n")), true) << "\n"
591
+ buf << p.parse(node.to_raw, true).to_s << "\n"
591
592
  else
592
593
  buf << '<pre>'
593
594
  buf << lines.join("\n") << "\n"
@@ -1,3 +1,3 @@
1
1
  module ReVIEW
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
  gem.email = "kmuto@debian.org"
12
12
  gem.homepage = "http://github.com/kmuto/review"
13
13
  gem.summary = "Re:VIEW peg: a easy-to-use digital publishing system (PEG version)"
14
- gem.description = "Re:VIEW is a digital publishing system for books and ebooks. It supports InDesign, EPUB and LaTeX."
14
+ gem.description = "Re:VIEW is a digital publishing system for books and ebooks. It supports InDesign, EPUB and LaTeX. This gem is experimental version with PEG grammar"
15
15
  gem.required_rubygems_version = Gem::Requirement.new(">= 0") if gem.respond_to? :required_rubygems_version=
16
16
 
17
17
  gem.files = `git ls-files`.split("\n")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: review-peg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kmuto
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-11-01 00:00:00.000000000 Z
12
+ date: 2015-11-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -82,7 +82,7 @@ dependencies:
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  description: Re:VIEW is a digital publishing system for books and ebooks. It supports
85
- InDesign, EPUB and LaTeX.
85
+ InDesign, EPUB and LaTeX. This gem is experimental version with PEG grammar
86
86
  email: kmuto@debian.org
87
87
  executables:
88
88
  - review-catalog-converter-peg