comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Ada Reference Manual 2012 in info format
Date: Fri, 11 May 2012 12:47:28 +0100
Date: 2012-05-11T12:47:28+01:00	[thread overview]
Message-ID: <82d36bgcrz.fsf@stephe-leake.org> (raw)
In-Reply-To: jofr4d$umf$1@speranza.aioe.org

"Nasser M. Abbasi" <nma@12000.org> writes:

> On 5/10/2012 2:21 AM, Dmitry A. Kazakov wrote:
>> On Wed, 9 May 2012 20:42:56 -0500, Randy Brukardt wrote:
>>
>>> Anyway, enough griping. I'm interested in concrete suggestions that can be
>>> implemented (not to promise that they would be). But be aware that I don't
>>> have much budget for RM work at this point, so I can't promise anything.
>>
>
>> I would lump everything in just one HTML page. Index and contents could be
>> in a separate frame, but not really necessary.
>>
>
> Why not use Latex? 

For what? 

If you mean "rewrite the original Scheme sources in Latex", that will
never happen.

1) read the Scheme (available at
http://www.stephe-leake.org/ada/arm_info-20120428-src.tar.gz)

2) there is a _lot_ more information in the Scheme than in a typical
Latex document. Three date versions: 1995, 2005, 2012. Two complexity
versions: ARM, Annotated ARM.

3) It would take way too much time to verify that the translation is
_perfect_

4) it would significantly change the layout.

> Then you get the full 30 years of latex scientific publication tools
> that Latex has, with all the indexing, table of contents,
> bibliography, page numbers, cross referneces, 

Already have all that. Yes, it was partly re-inventing the wheel, but it
was for good reasons.

It _might_ have made sense for someone very familiar with Latex, and
able to write complex Latex macros, to write the ARM in Latex starting
in 1983. But they didn't, and we have a working system, so there's no
reason to change it now.

> tables, figure, graphics, etc.. 

None of those appear in the current ARM; why are they needed?

> and zillions of latex packages that comes with it for free.

ditto.

> Then use Latex2html to convert everything to HTML. 

Have you actually compared the current HTML to Latex2html output? I
suspect the current HTML is much better (I have never used Latex2html; I
have used makeinfo to convert texinfo source to html; the result is
pretty horrible, although functional).

Is there an example of Latex2HTML output somewhere accessible? I'd like
to see it.

> Use pdflatex to generate PDF, generate .ps etc... all from the SAME
> plain text source files. see

Already have that; why does it need to change? Well, it might get
hyperlinks in the PDF; that would be good.

Note that you did not mention 'generate xml', which might be
interesting. Is there an xml backend for Latex? I have not heard of one.

I tried to add an arm_form option to generate Latex, so I could get PDF
with hyperlinks. It proved difficult; the semantic mismatch between the
Scheme and Latex was too large (which would also be a problem in manual
translation). I suspect it would be easier to generate PDF directly,
although that would mean implementing a paragraph fill algorithm.

Randy produces the PDF with Microsoft Word RTF as an intermediate; my
package produces PDF with texinfo as an intermediate. Randy's PDF is
much nicer, but neither has hyperlinks. 

> I do not know why any one will choose a different tool
> to publish anything. It is all there ;)

Time to learn! go read the Scheme source, and try to translate one small
file into Latex.

I am a big fan of Latex; I use it for all of my documents. But writing
new macros in it is a _pain_; the core language is just weird, most
existing macros are very poorly documented, and trying to read the
source code for them makes my head ache. You would need several new,
complex macros to attempt to translate the full ARM Scheme into Latex.

Since Randy writes both the Scheme and the arm_form Ada code that
processes, he can make it do _exactly_ what is needed, and can easily
understand the total system. That is a _Huge_ advantage over Latex.

arm_form was written for a very specific purpose; to format the various
versions of the ARM. It could be used for similar docs, such as the C++
standard (although the code might object :). There is no need for a
general purpose document prep system for the ARM.

-- 
-- Stephe



  parent reply	other threads:[~2012-05-11 11:46 UTC|newest]

Thread overview: 104+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-29 15:22 Ada Reference Manual 2012 in info format Stephen Leake
2012-04-30  6:06 ` Jerrid Kimball
2012-05-01  3:19   ` Randy Brukardt
2012-05-01  6:06     ` Thomas Løcke
2012-05-01  9:56       ` Yannick Duchêne (Hibou57)
2012-05-03 15:26       ` J Kimball
2012-05-03 14:26     ` [OT] CSS max-width (Was: Ada Reference Manual 2012 in info format) Jacob Sparre Andersen
2012-05-03 15:52       ` Yannick Duchêne (Hibou57)
2012-05-03 22:34         ` Randy Brukardt
2012-05-03 15:23     ` Ada Reference Manual 2012 in info format Jerrid Kimball
2012-05-03 23:25       ` Randy Brukardt
2012-05-04  1:28         ` BrianG
2012-05-09 11:17         ` Oliver Kleinke
2012-05-09 12:06           ` Nasser M. Abbasi
2012-05-09 13:00             ` Dmitry A. Kazakov
2012-05-09 13:56               ` Georg Bauhaus
2012-05-09 14:09                 ` Dmitry A. Kazakov
2012-05-09 14:52                   ` Ludovic Brenta
2012-05-09 16:33                   ` Georg Bauhaus
2012-05-09 16:39                     ` Dmitry A. Kazakov
2012-05-09 16:51                   ` Jerrid Kimball
2012-05-09 17:21                     ` Dmitry A. Kazakov
2012-05-09 19:53                       ` Georg Bauhaus
2012-05-10 10:15                         ` Stephen Leake
2012-05-09 19:59                     ` Simon Wright
2012-05-10  1:42                     ` Randy Brukardt
2012-05-10  7:21                       ` Dmitry A. Kazakov
2012-05-10  7:35                         ` Nasser M. Abbasi
2012-05-10  9:43                           ` Simon Wright
2012-05-10 10:44                           ` Jacob Sparre Andersen
2012-05-10 13:19                             ` Nasser M. Abbasi
2012-05-11 11:49                               ` Stephen Leake
2012-05-11 15:06                                 ` Nasser M. Abbasi
2012-05-10 15:05                           ` Manuel Collado
2012-05-10 15:42                             ` Yannick Duchêne (Hibou57)
2012-05-10 22:15                               ` Manuel Collado
2012-05-11  1:16                                 ` Yannick Duchêne (Hibou57)
2012-05-11 10:47                                   ` Manuel Collado
2012-05-11 11:35                                     ` Yannick Duchêne (Hibou57)
2012-05-12  0:52                                     ` Randy Brukardt
2012-05-14 11:03                                       ` Manuel Collado
2012-05-12 10:04                                     ` Stephen Leake
2012-05-14 11:07                                       ` Manuel Collado
2012-05-11 11:47                           ` Stephen Leake [this message]
2012-05-11 14:42                             ` Simon Wright
2012-05-12 10:52                               ` Stephen Leake
2012-05-12  0:59                             ` Randy Brukardt
2012-05-10 13:47                       ` Yannick Duchêne (Hibou57)
2012-05-11 11:57                         ` Stephen Leake
2012-05-11 12:55                           ` Yannick Duchêne (Hibou57)
2012-05-11 13:43                             ` Georg Bauhaus
2012-05-12  0:46                       ` Randy Brukardt
2012-05-10  0:57                   ` Yannick Duchêne (Hibou57)
2012-05-10  7:13                     ` Dmitry A. Kazakov
2012-05-10 13:37                       ` Yannick Duchêne (Hibou57)
2012-05-10 15:02                         ` Dmitry A. Kazakov
2012-05-10 15:32                           ` Yannick Duchêne (Hibou57)
2012-05-10 15:58                             ` Dmitry A. Kazakov
2012-05-11  2:23                           ` Oliver Kleinke
2012-05-10  1:32           ` Randy Brukardt
2012-05-10  1:54           ` Randy Brukardt
2012-05-11  2:36             ` Oliver Kleinke
2012-05-12  1:08               ` Randy Brukardt
2012-05-10 10:11           ` Stephen Leake
2012-05-11  2:07             ` Oliver Kleinke
2012-05-11  2:44               ` Yannick Duchêne (Hibou57)
2012-05-11  2:50                 ` Oliver Kleinke
2012-05-11  7:51                 ` Suggestion for RM HTML formatter extension (Was: Ada Reference Manual 2012 in info format) Jacob Sparre Andersen
2012-05-11 10:03                   ` Martin
2012-05-11 15:32                   ` Suggestion for RM HTML formatter extension Simon Wright
2012-05-11 15:53                     ` Simon Wright
2012-05-11 21:01                       ` Jacob Sparre Andersen
2012-05-11 21:04                       ` Ludovic Brenta
2012-05-11 21:59                     ` Simon Wright
2012-05-12 10:48                       ` Stephen Leake
2012-05-12 12:34                         ` Simon Wright
2012-05-14 11:36                     ` Manuel Collado
2012-05-14 16:20                       ` Simon Wright
2012-05-15  7:02                       ` Randy Brukardt
2012-05-15  8:54                         ` Georg Bauhaus
2012-05-12 10:37                 ` Ada Reference Manual 2012 in info format Stephen Leake
2012-05-12  1:43               ` Randy Brukardt
2012-05-12 10:33               ` Stephen Leake
2012-05-19  3:58               ` Yannick Duchêne (Hibou57)
2012-05-11 11:59             ` Stephen Leake
2012-05-01 11:51   ` Stephen Leake
2012-05-03 15:03     ` Jerrid Kimball
2012-05-03 21:52       ` Manuel Collado
2012-05-03 22:43         ` Randy Brukardt
2012-05-04  7:58       ` Stephen Leake
2012-05-05 14:23         ` Yannick Duchêne (Hibou57)
2012-05-06 16:13           ` Stephen Leake
2012-05-06 16:27             ` Yannick Duchêne (Hibou57)
2012-05-08  0:54             ` Randy Brukardt
2012-05-03 15:56 ` Yannick Duchêne (Hibou57)
2012-05-03 22:40   ` Randy Brukardt
2013-02-23 20:46 ` Oliver Kellogg
2013-02-24 19:06   ` Stephen Leake
2013-02-25 23:27     ` Randy Brukardt
2013-02-26  4:05       ` Nasser M. Abbasi
2013-02-26 13:23         ` Robert A Duff
2013-02-26 19:49           ` Nasser M. Abbasi
2013-02-26 22:04           ` Randy Brukardt
2013-04-02 17:50       ` M. Strobel
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox