michaelfranzl / docx_converter Goto Github PK
View Code? Open in Web Editor NEWRuby gem converting Word docx files into html or LaTeX via the Kramdown syntax
Ruby gem converting Word docx files into html or LaTeX via the Kramdown syntax
hey! great work!!!
I have a bunch of word documents written in spanish. can you add support for characters like ´, ñ and others please?
Hello,
I'd like to try your docx_converter, but I'm having troubles installing in on our ruby alpine docker image,
This is my dockerfile so far, (not working).
FROM ruby:2.6-alpine
RUN apk add --update \
libmagickwand-dev \
pkgconfig imagemagick imagemagick-dev imagemagick-libs
RUN gem install docx_converter
WORKDIR $APP_HOME
it complains that libmagickwand-dev
doesn't exist in the apk repo.
if I remove the library from installing, the gem install docx_converter
fails with a missing library (as expected)
the troublesome library failing seems to be ruby-filemagic-0.7.2,
with this log file (cat /usr/local/bundle/extensions/x86_64-linux/2.6.0/ruby-filemagic-0.7.2/mkmf.log
)
"gcc -o conftest -I/usr/local/include/ruby-2.6.0/x86_64-linux-musl -I/usr/local/include/ruby-2.6.0/ruby/backward -I/usr/local/include/ruby-2.6.0 -I. -I/opt/local/include -I/usr/local/include -I/usr/include -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -fPIC conftest.c -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/opt/local/lib -Wl,-rpath,/opt/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/lib -Wl,-rpath,/usr/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
I tried installing ruby-filemagic
separately, with this dockerfile:
FROM ruby:2.6-alpine
RUN apk add --update \
pkgconfig imagemagick imagemagick-dev imagemagick-libs \
musl libmagic file file-dev
RUN gem install ruby-filemagic
RUN gem install docx_converter
and get a make error
current directory: /usr/local/bundle/gems/ruby-filemagic-0.7.2/ext/filemagic
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20200810-1-s6d76t.rb extconf.rb
checking for -lgnurx... *** extconf.rb failed ***
would you be able to help me out with this?
Thanks,
G
Tried to install this gem but wasn't able to find it..
Could not find gem 'docx-converter' in any of the gem sources listed in your Gemfile.
This looks like a great project, parsing word files is a great addition to the community. But I can't download the gem, at ruby gems, or even get it to compile from the repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.