Ticket #49 enhancement closed invalid

Opened 11 years ago

Last modified 5 years ago

RFE: enhancements to Lore for --config book

Reported by: radix Owned by:
Priority: normal Milestone:
Component: lore Keywords:
Cc: radix, exarkun, spiv, thijs Branch:
Author: Launchpad Bug:

Description


Change History

1

  Changed 11 years ago by radix

Tasks:
1) Make lore use --template
2) Make default templates for both lore and latex
3) Implement the catalog: syntax in --template
4) With --config book, Instead of processing every
file, process only book.html, then find the files
mentioned in book and process them.


(capturing a conversation I had with spiv a while back):

Feb 20 16:37:09
<MoonFallen> spiv_work: the idea is to ditch book.tex
in favor
of howto/index.html; if you want to add latex
stylesheets you do them with
a <link rel="stylesheet" type="application/x-latex"
href="my.sty"/>
<MoonFallen> i designed it for my own needs. it works,
but i would like
to know if there's anything else you expect it to do,
that it doesn't do
<spiv> MoonFallen: Yes, I absolutely agree with the
idea of ditching book.tex.
<spiv> I'm hesistant to require latex-specific markup,
though.
<MoonFallen> browsers happily ignore it and it's 100%
xhtml compliant
<spiv> I think I'd prefer a --template argument to lint
-o latex.
<spiv> Which is what the current html output does, and
I think it works well.
<MoonFallen> spiv_work: i can do that
<spiv> MoonFallen: That'd be great. :)
<MoonFallen> spiv: there's another whole direction we
can go there,
though: make different templates available through the
system itself,
instead of requiring the developer to write one every time
<spiv> Hmm.
<spiv> Having default templates is probably good.
<spiv> What did you have in mind?
<MoonFallen> well, the first thing i noticed when i
started using lore
is it only supports letter-sized paper. so there's an
obvious need in my
mind for an a4 template
<itamar> yes
<MoonFallen> other than that, it's all just prettiness.
different colors
in the html, different fonts in the printed version, etc.
<MoonFallen> give people an option for how their
document looks
<spiv> Heh. I use a4, and I never noticed that. I
guess I've never
printed it :)
<MoonFallen> not so much the paper size actually, but
the units are in
inches
<MoonFallen> i think it might print ok
<MoonFallen> 80-column <pre> stuff won't fit though
<spiv> Hmm.
<spiv> I'd like 80-columns of pre to fit on the print
version.
<spiv> But I guess if someone knows what they're doing,
they're welcome to
change their own template.
<MoonFallen> well my train of thought is that you could
make an a4
template (or a4 versions of a series of templates,
depending on how motivated
we are) that just uses a slightly smaller font in \verbatim
<MoonFallen> i could also use this as an opportunity to
start putting in
color, which i think the printed version badly needs.
<MoonFallen> i'm thinking lore --template
catalog:letter-1 -o latex
<MoonFallen> if you want to use your own template you
give the filename,
otherwise you ask for a catalog: entry and it copies
the right one for you

2

  Changed 11 years ago by moonfallen

Some work has been done on this already, in fact --config
book will work, you give it some equivalent of index.html
(with optional stylesheet as specced above) and it will
produce index.tex.

Spiv has also done some work on this, the details of which I
don't know.

Finally, we want to get rid of the latex stylesheets in the
HTML code.  This can be done with magic latex macros which
have yet to be written.

3

follow-up: ↓ 5   Changed 11 years ago by spiv

More importantly, I want to get rid of the current
duplication of admin/book.tex and doc/howto/index.html.

4

  Changed 8 years ago by exarkun

Is this still relevant?

5

in reply to: ↑ 3   Changed 6 years ago by thijs

  • cc thijs added

Replying to spiv:

More importantly, I want to get rid of the current duplication of admin/book.tex and doc/howto/index.html.

Both files are gone, perhaps this ticket can be closed?

6

  Changed 6 years ago by exarkun

book.tex merely moved to doc/core/howto. Likewise, doc/howto/index.html is now doc/core/howto/index.xhtml

7

  Changed 5 years ago by glyph

  • status changed from new to closed
  • resolution set to invalid

I can't figure out what this is talking about any more. Many of the complaints may still be valid, but:

  1. they should be filed as individual tickets
  2. they should be better described
  3. some of them probably shouldn't be bothered with.

8

  Changed 3 years ago by <automation>

  • owner spiv deleted
Note: See TracTickets for help on using tickets.