limarka 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/limarka/conversor.rb +4 -2
- data/lib/limarka/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf26e91e95ba226f1f033c75bf2db82a198c1fc7
|
4
|
+
data.tar.gz: 5d1e8187941cb3cfc86a730cb895d161c77ed4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eec5393be8d09a1c73d6e55a09201a441ee47458b8f8ab6dd70671f75282ed1deda1b67e1c86dc9e3e72f92b5de78e5768db22cbe075bac191802b856b4c3ae0
|
7
|
+
data.tar.gz: 5c5f87097754470626d660f9162ec135894731cb0990385bc8c8e3928ce27d93785da33cc063cad5c0bdbd25e44dfa510dbca73be634f74fd04dbae90264d6d7
|
data/lib/limarka/conversor.rb
CHANGED
@@ -55,8 +55,10 @@ module Limarka
|
|
55
55
|
Dir.chdir(options[:output_dir]) do
|
56
56
|
basename = File.basename(texto_tex_file, '.tex')
|
57
57
|
system "latexmk --quiet --xelatex -f #{basename}", :out=>File::NULL, :err=>File::NULL
|
58
|
-
|
59
|
-
|
58
|
+
if (usa_pdftotext) then
|
59
|
+
system "pdftotext -enc UTF-8 #{basename}.pdf"
|
60
|
+
File.open("#{basename}.txt", 'r') {|f| @txt = f.read}
|
61
|
+
end
|
60
62
|
end
|
61
63
|
end
|
62
64
|
|
data/lib/limarka/version.rb
CHANGED