[ale] Print vs electronic: Was: Remove systemd network handling
DJ-Pfulio
DJPfulio at jdpfu.com
Mon Sep 27 20:11:30 EDT 2021
Calibre has an epub conversion feature with a number of different formats supported for input and output. Conversion of PDF to the others generally ends badly, especially when the publisher uses 2 columns on a page. HTML and lightly formatted text as input generally converts to other formats nicely. That's been my experience.
I use pandoc to generate text and html output from my textile markup language.
I wrote a little perl script to generate an S5 slideshow from the same input. The input is a mix of textile with CSS hints.
Code:
#!/bin/bash
ROOT=${1/%.md/}
TITLE=$(echo "$ROOT" | sed -e 's/[_-]/ /g' )
pandoc -s -T "$TITLE" --standalone --slide-level=3 -f textile \
-t plain $ROOT.md -o $ROOT.txt
pandoc -s -T "$TITLE" --toc --standalone --slide-level=3 -f textile \
-t s5 $ROOT.md -o $ROOT.html
So, an input page in the 101-Wk04-Access_Control.md would be:
Code:
h3. Objectives: Access Control Systems
* <span class="incremental"> Understand Linux Access Controls </span>
* <span class="incremental"> View/Assign permissions for files/directories </span>
* <span class="incremental"> Understand umask </span>
* <span class="incremental"> Understand setuid, setguid, and "sticky bit" </span>
* <span class="incremental"> Ext file system Attributes </span>
All markdown languages have limitations, that's the price of simplification. The "incremental" span class is for the S5 part and ignored by the other two. You can guess the text and HTML output from that. No surprises.
On 9/27/21 7:41 PM, Steve Litt via Ale wrote:
> Thanks Liam!
>
> I always thought of Calibre as just an infinite bookshelf, and had no
> idea it had anything to do with LaTeX. I'll look into it.
>
> As far as Pandoc, everyone recommends it, but I've never encountered a
> person who claimed to be fluent and competent in it. I did enough
> reading and experimentation on Pandoc to conclude I wasn't going to go
> through that jungle without somebody in front of me cutting a trail.
>
> SteveT
>
>
> Leam Hall via Ale said on Mon, 27 Sep 2021 17:46:12 -0500
>
>> Steve, have you looked at Calibre? In my "big plan" is to learn more
>> LaTeX so I can format for Calibre better. It's not a high priority yet
>> since I'm just doing fiction, and there's no real need for markup. Of
>> course, you have to dive into Calibre to realize they actually do
>> conversions like that. I found out on IRC, I think.
>>
>> https://calibre-ebook.com
>>
>> Supposedly Pandoc does better HTML for docs, but I haven't tried it.
>>
>> Leam
More information about the Ale
mailing list