6 ms·
Ruby for eBook Publishing
- Lammy 5y ago>PDF publishing I'm also a big fan of the HexaPDF library: https://hexapdf.gettalong.org/ https://hexapdf.gettalong.org/
- strzibny 5y agoIt's mentioned! I used it to make all kind of previews.
- qwerty456127 5y agoCan it paint a PDF text between 2 pints in a color gradient?
- the_sleaze9 5y agoYep. It can also convert PDFs into nice PNGs
- gnicholas 5y agoAre you referring to the color gradients in text made popular by BeeLine Reader?
- qwerty456127 5y agoYes. The idea feels very nice but the implementation is unbearable. I want to imitate that without having to install a browser extension which is ridiculously slow and requires access to all the pages you visit. I would tolerate it if it would stay off until I actively invoke it when and where I want (mostly local disk/host documents) and if I could be sure it doesn't spy on me. So I am passively looking for an alternative. So far LaTeX was the only alternative I've found that can do that but it is otherwise too complex to use (I managed to achieve the effect but failed to build a book of specific structure I needed in reasonable time). Now I'm curious if Ruby can fill this gap between MarkDown/HTML+CSS and LaTeX.
- gnicholas 5y agoTotally understandable. I'm the creator of BeeLine (and the concept), and permissions in Chrome extensions are tough. One possible solution for concerned users is to whitelist certain sites via the extension manager, so that the extension only has access to those domains, but I don't think there's a way to do that for local files. If you want to just convert files, you might try the File Transformer[1] by Blackboard Ally. They've licensed the BeeLine technology and are temporarily making it available for free publicly through the File Transformer (it's also available to their university customers through their LMS interface). Lastly, I know it probably won't put your mind at ease, but I am the solo founder who runs BeeLine Reader. I do not do anything with user data, and in fact I don't even gather data at the individual user level. This is partly because my tools are used in K12 schools, and partly because I can't imagine selling out my customers. 1: https://ally.ac/covid19/ https://ally.ac/covid19/
- qwerty456127 5y agoI am happy to meet you. Thank you for the link (and for inventing the concept). I'll probably use it for some files but again this means uploading files to some untrusted server (I believe you when you say you don't gather data but uploading a file and being sure it won't be saved anywhere feels harder). You probably know better as you have probably done some business modelling but just for my piece of feedback - I would buy it if you would offer a purely offline Linux+Windows+Mac app that outputs coloured (and structured) PDFs given a MarkDown (or some XML intermediary, perhaps FB2, for more complex structures) file and a paper format for input. At the moment I feel like the price I would pay could be something near $100. I wouldn't even mind paying if it's just a proprietary script on top of free software. It would also be great if one day you would add an on-demand (on the extension button click) mode to the extension to save the users' CPUs and batteries. I hope you don't feel insulted or discouraged by how do I speak about your creation's performance - I understand it can be hard to teach a browser's text rendering engine a totally new trick. Perhaps you have even improved it since the last time I tried (which was years ago).
- gnicholas 5y ago
- dyingkneepad 5y agoMan, I love Ruby. I think it is much more elegant than Python and I really really wish Ruby would have taken the world instead of Python. That said, it's often the case where I want to do something where there's just no Ruby library for it (or at least not a maintained one) and there's a well known library for it in Python. Note: I do low level things, I don't do anything related to web or Rails. Also, sometimes I start writing scripts for simple things, then they grow and at some point it's interesting to share them to my teammates, and they all immediately dismiss it since it's in Ruby. For that reason, I started doing all my work-related scripting in Python. But oh boy, it's always with that sad feeling of "I wish I was doing this in Ruby". Sometimes I think I should just not have learned Ruby and jumped straight to Python.
- Torwald 5y agoCan you give me one or twoo examples for such missing low-level stuff Ruby libraries, please?
- dyingkneepad 5y agoTwo examples I remember researching Ruby for and ended up giving up: hardcore statistics stuff (I'm using using Python's scipy.stats now) and GUI toolkits (yes, there are some toolkits available, but nothing like Python's official bindings for gtk/qt). It's hard to remember more examples. I remember having problems even with FastCGI on Ruby, but I ended up not writing the code at all so that won't count. Also something related to parsing emails.
- stevekemp 5y agoI have to admit I've had a similar reaction, at a previous company we were "forced" to use Ruby to be consistent. I grew to love Ruby, though I admit I always approached it with half a mind pretending I was writing Perl. These days I've sometimes fallen back into Ruby, but then had issues sharing it with colleagues - so I've largely switched to Go. While most people don't have a dev-environment setup I can give them binaries built via github/gitlab/jenkins, and so sharing tools & utilities is just that little bit less painful than with Ruby (and even Python).
- jasonjei 5y agoThis is great, but wouldn’t it be easier to use a LaTeX ebook transformer since many books are already set in TeX?
- strzibny 5y agoI used Pandoc + LaTex for https://deploymentfromscratch.com/ https://deploymentfromscratch.com/ as mentioned in the post, but my brother is now taking the AsciiDoc approach and I think it's looking good. I will think hard next time and most likely give AsciiDoctor a chance.
- canyonero 5y agoI've been using mdBook: https://github.com/rust-lang/mdBook https://github.com/rust-lang/mdBook for a personal knowledge base in an ebook format and it's been a joy. Not Ruby, it's written in Rust instead. It's very easy to customize either via plugins with Rust or by overriding template files. While the linked article is cool, it seems like a lot of effort to maintain such a set up. Then again, if you're a Ruby expert I could see this being worth it.
- strzibny 5y agoDid not know about mdBook, will have a look!
- purpleidea 5y agoI know this guy, he is a good worker and puts passion into this book. Help him out and give him a sale!
- strzibny 5y agoThanks James ;)
- bovermyer 5y agoSounds like fun. However, I started using LaTeX instead of Markdown+pandoc for PDF creation because I needed more control over the layout than Markdown is capable of.
- redconfetti 5y agoI'm really liking this book. It almost seems like a light Unix administration handbook mixed with application deployment. I might just buy it to get some guidance with Podman.