[ale] [OT] Document formatter?

leam hall leamhall at gmail.com
Mon Apr 2 14:12:09 EDT 2018


On Mon, Apr 2, 2018 at 2:01 PM, Steve Litt via Ale <ale at ale.org> wrote:
> On Mon, 2 Apr 2018 13:26:50 -0400
> leam hall via Ale <ale at ale.org> wrote:
>
>> On Mon, Apr 2, 2018 at 1:21 PM, Steve Litt via Ale <ale at ale.org>
>> wrote:
>>
>> >
>> > Funny you should mention this.
>>
>> My current effort is really specific and in Ruby.
>>
>> https://github.com/makhidkarun/rb_tools/blob/master/bin/build_book
>>
>> That's why I asked.   :)
>>
>> Leam
>
> A couple minutes scanning your program brings me to the conclusion that
> your program is meant to write a book of a very specific structure, to
> enforce that structure, and compile.
>
> I'm confused as to why you delete and create empty the book_dir and
> chapter_dir on every run. What loads the proper stuff in those
> directories?
>
> So it looks to me like what you're done when finished is a bunch of
> text with no styles. Theoretically, you could write the subdocuments as
> Stylz files, run them through Stylz converters, and then put them
> together into a whole book. Or put the finished book through Stylz
> converter.
>
> What kinds of books are you facilitating writing? It looks like you
> have a formula to write a specific genre over and over, which is how a
> lot of people make good money.
>
> SteveT


Yup. Writing sci-fi with this being my second revision of the code,
hence the need for a converter. My stuff doesn't mark up the titles
internally or insert page breaks for PDFs. That's a useful thing when
writing technical stuff for work or draft copies for beta readers.

I clean the chapters and book directory just for good house-keeping.
Those two directories aren't stored in git either.

My needs are pretty simple; the first line of the chapter needs to be
bold and when compiled into the book the first line needs to follow a
page break. Chapters are fairly short, word count wise, and often
short in time span.

The reason I asked was that I know I need something, and I also like
to document my code. The hope is to find a common tool.

Leam


More information about the Ale mailing list