polytexnic 0.7.1 → 0.7.2
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.
- checksums.yaml +4 -4
- data/.pull_requests/1386718874 +0 -0
- data/README.md +3 -3
- data/lib/polytexnic/preprocessors/polytex.rb +3 -3
- data/lib/polytexnic/utils.rb +8 -1
- data/lib/polytexnic/version.rb +1 -1
- data/precompiled_binaries/tralics-linux +0 -0
- data/precompiled_binaries/{tralics → tralics-os-x} +0 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b4c121bf68950ca38bc3289bba23be0aefc1dbc
|
|
4
|
+
data.tar.gz: 95bede188fb95eb68d77d6f5649bc0e13fce0e82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 08b4f08b13293443da017c949961a42d35e843259c44ccbcb0d2902452e2bf4f1efbcd4bdca55fef27eb4d5b9d30b813e1810226761360bcb8b84024e3d2b903
|
|
7
|
+
data.tar.gz: b354bb460db2386757b17f6665fa24a0e3ea538d744878bc6b6a4926cd61b3cd80fd9059a04253e82be7a9e5a2c32af525ff851c36763c40de08ce4af5fbac9f
|
|
File without changes
|
data/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# polytexnic
|
|
2
2
|
|
|
3
|
-
This is the `polytexnic` gem, which converts input in Markdown or PolyTeX to HTML and LaTeX. It currently has no standalone applications, but rather exists to support the `
|
|
3
|
+
This is the `polytexnic` gem, which converts input in Markdown or PolyTeX to HTML and LaTeX. It currently has no standalone applications, but rather exists to support the `softcover` gem.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
|
-
This gem is installed automatically as a dependency of the `
|
|
7
|
+
This gem is installed automatically as a dependency of the `softcover` gem:
|
|
8
8
|
|
|
9
9
|
$ gem install polytexnic
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
See [*The
|
|
13
|
+
See [*The Softcover Book*](http://manual.softcover.io/book) for more information.
|
|
14
14
|
|
|
15
15
|
## Contributing
|
|
16
16
|
|
|
@@ -23,7 +23,7 @@ module Polytexnic
|
|
|
23
23
|
# At this point, I fear that "Markdown" has become little more than a
|
|
24
24
|
# marketing term.</rant>
|
|
25
25
|
def to_polytex
|
|
26
|
-
require '
|
|
26
|
+
require 'kramdown'
|
|
27
27
|
cache = {}
|
|
28
28
|
math_cache = {}
|
|
29
29
|
cleaned_markdown = cache_code_environments
|
|
@@ -91,7 +91,7 @@ module Polytexnic
|
|
|
91
91
|
|
|
|
92
92
|
\\- # hyphenation
|
|
93
93
|
|
|
|
94
|
-
\\[
|
|
94
|
+
\\[ %&$\#@] # space or special character
|
|
95
95
|
)
|
|
96
96
|
/x
|
|
97
97
|
markdown.gsub!(command_regex) do
|
|
@@ -230,4 +230,4 @@ module Polytexnic
|
|
|
230
230
|
end
|
|
231
231
|
end
|
|
232
232
|
end
|
|
233
|
-
end
|
|
233
|
+
end
|
data/lib/polytexnic/utils.rb
CHANGED
|
@@ -7,8 +7,15 @@ module Polytexnic
|
|
|
7
7
|
|
|
8
8
|
# Returns the executable for the Tralics LaTeX-to-XML converter.
|
|
9
9
|
def tralics
|
|
10
|
+
filename = if RUBY_PLATFORM.match(/darwin/)
|
|
11
|
+
'tralics-os-x'
|
|
12
|
+
elsif RUBY_PLATFORM.match(/linux/)
|
|
13
|
+
'tralics-linux'
|
|
14
|
+
else
|
|
15
|
+
raise "Platform #{RUBY_PLATFORM} not supported"
|
|
16
|
+
end
|
|
10
17
|
File.join(File.dirname(__FILE__), '..', '..',
|
|
11
|
-
'precompiled_binaries',
|
|
18
|
+
'precompiled_binaries', filename)
|
|
12
19
|
end
|
|
13
20
|
|
|
14
21
|
# Returns a salted hash digest of the string.
|
data/lib/polytexnic/version.rb
CHANGED
|
Binary file
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: polytexnic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Hartl
|
|
@@ -190,6 +190,7 @@ files:
|
|
|
190
190
|
- .pull_requests/1386036048
|
|
191
191
|
- .pull_requests/1386105869
|
|
192
192
|
- .pull_requests/1386184858
|
|
193
|
+
- .pull_requests/1386718874
|
|
193
194
|
- .rspec
|
|
194
195
|
- Gemfile
|
|
195
196
|
- Guardfile
|
|
@@ -211,7 +212,8 @@ files:
|
|
|
211
212
|
- notes/pandoc.md
|
|
212
213
|
- polytexnic.gemspec
|
|
213
214
|
- polytexnic_commands.sty
|
|
214
|
-
- precompiled_binaries/tralics
|
|
215
|
+
- precompiled_binaries/tralics-linux
|
|
216
|
+
- precompiled_binaries/tralics-os-x
|
|
215
217
|
- spec/fixtures/code_listing.tex
|
|
216
218
|
- spec/fixtures/figures.tex
|
|
217
219
|
- spec/fixtures/inline_math.html
|