to_ascii_latex 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,9 +42,11 @@ module ToAsciiLatex
42
42
 
43
43
  value = "``" if value == '\\textquotedblleft'
44
44
  value = "''" if value == '\\textquotedblright'
45
+ value = "`" if value == '\\textasciigrave'
45
46
  value = "'" if value == '\\textquotesingle'
47
+ value = ' ' if value == "\\space"
46
48
 
47
- next if key == value || value == "\\space"
49
+ next if key == value
48
50
 
49
51
  value = "\\ensuremath{#{value}}" if char['mode'] == 'math'
50
52
  value = "{#{value}}" if value !~ /^\\/ || value !~ /}$/
@@ -1,3 +1,3 @@
1
1
  module ToAsciiLatex
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -4,6 +4,7 @@ require 'to_ascii_latex'
4
4
  class TALTest < Test::Unit::TestCase
5
5
  def test_basics
6
6
  assert_equal "$".to_latex, '{\\textdollar}'
7
+ assert_equal "\u0027".to_latex, "'"
7
8
  assert_equal "\u00D6".to_latex, '\"{O}'
8
9
  end
9
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: to_ascii_latex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -108,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
108
  version: '0'
109
109
  segments:
110
110
  - 0
111
- hash: -615606285
111
+ hash: 692681489
112
112
  required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: -615606285
120
+ hash: 692681489
121
121
  requirements: []
122
122
  rubyforge_project:
123
123
  rubygems_version: 1.8.24