unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* ifinfo vs ifnottex
@ 2006-05-18  2:53 Luc Teirlinck
  2006-05-18  3:39 ` Eli Zaretskii
  2006-05-19  2:04 ` Richard Stallman
  0 siblings, 2 replies; 28+ messages in thread
From: Luc Teirlinck @ 2006-05-18  2:53 UTC (permalink / raw)


The Emacs manual contains several pieces of one type of text inside
@ifinfo and another inside @iftex.  As a result, text is missing in
all other types of output, except plaintext, which is covered by
@ifinfo.  This concerns, for instance html output.  Is there any
objection against changing these @ifinfo's to @ifnottex.  I will be
careful not to change legitimate @ifinfo's, like references to
info.texi or text saying that you are using the Info documentation
system or such.

The Elisp manual seems free of this except for gpl.texi.  Since this
has legal implications, I explicitly provide the proposed changes.  Is
there any reason for these titles not to occur in html and other
non-tex, non-info, non-plaintext formats?  The exactly same titles
also occur inside @ifinfo in man/emacs.texi.

===File ~/gpl.texi-diff=====================================
*** gpl.texi	04 Jul 2005 19:56:08 -0500	1.6
--- gpl.texi	07 May 2006 16:34:27 -0500	
***************
*** 67,75 ****
  @iftex
  @unnumberedsec Terms and Conditions for Copying, Distribution and Modification
  @end iftex
! @ifinfo
  @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
! @end ifinfo
  
  @enumerate 0
  @item
--- 67,75 ----
  @iftex
  @unnumberedsec Terms and Conditions for Copying, Distribution and Modification
  @end iftex
! @ifnottex
  @center TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
! @end ifnottex
  
  @enumerate 0
  @item
***************
*** 292,300 ****
  @iftex
  @heading NO WARRANTY
  @end iftex
! @ifinfo
  @center NO WARRANTY
! @end ifinfo
  
  @item
  BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
--- 292,300 ----
  @iftex
  @heading NO WARRANTY
  @end iftex
! @ifnottex
  @center NO WARRANTY
! @end ifnottex
  
  @item
  BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
***************
*** 322,330 ****
  @iftex
  @heading END OF TERMS AND CONDITIONS
  @end iftex
! @ifinfo
  @center END OF TERMS AND CONDITIONS
! @end ifinfo
  
  @page
  @unnumberedsec How to Apply These Terms to Your New Programs
--- 322,330 ----
  @iftex
  @heading END OF TERMS AND CONDITIONS
  @end iftex
! @ifnottex
  @center END OF TERMS AND CONDITIONS
! @end ifnottex
  
  @page
  @unnumberedsec How to Apply These Terms to Your New Programs
============================================================

^ permalink raw reply	[flat|nested] 28+ messages in thread
* Re: ifinfo vs ifnottex
@ 2006-05-19 11:39 Robert J. Chassell
  0 siblings, 0 replies; 28+ messages in thread
From: Robert J. Chassell @ 2006-05-19 11:39 UTC (permalink / raw)


Luc Teirlinck <teirllm@dms.auburn.edu> is right and I am glad of his
offer.  With more output formats, seven direct, last I counted, the
Texinfo source files must change.

Texinfo source files should use `@ifxml ... @end ifxml' for conversion
to XML with a Texinfo DTD and `@ifdocbook ... @end ifdocbook' for
conversion to DocBook.

The two are different since XML with a Texinfo DTD can be converted to
either an on-line viewing format, Info or an off-line viewing format
such as DVI.  The XML with a Texinfo DTD output should enjoy `maximum'
information.  (It is really better to conceive of the XML formats as
being an `intermediate' rather than a `final output' format.)

As far as I know, you can only view DocBook pages on-line; it is not
as if they are designed for on-line viewing.

As it happens, both those output formats, XML with a Texinfo DTD and
DocBook, have the same file extension although they are different
internally.


In more detail:

Luc has offered to insert four more `@if...' commands into the deep
representations, the Texinfo source files.  At the moment, the
documentation is broken.  It includes only `@ifinfo...' and 
`@iftex...'.

`@ifinfo' handles both Info and Plain Text.  In addition there is an
`@ifplaintext' command.  There is no `@ifpdf' command.  (This lack is
explained in  (texinfo)PDF Output .  Also, there are corresponding
`@ifnot...' commands.)

    `@ifinfo ... @end ifinfo'
         Text to appear only in the Info and Plain Text output.

    `@ifplaintext ... @end ifplaintext'
         Text to appear only in the plain text output.

    `@ifhtml ... @end ifhtml'
         Text to appear only in the HTML output.

    `@iftex ... @end iftex'
         Text to appear only in the printed manual.

    `@ifdocbook ... @end ifdocbook'
         Text to appear only in the Docbook output.

    `@ifxml ... @end ifxml'
         Text to appear only in the XML output.

The output formats for both DocBook and XML with a Texinfo DTD have
the same extension: .xml   `makeinfo' chooses which to output
depending on its flag:

    makeinfo --docbook ...
    makeinfo --xml     ...



Incidently, the seven direct output formats for a single Texinfo
source file are:  Info, HTML, plain text, DVI, PDF, DocBook, and
Texinfo XML.  For example:

    ## Info
    makeinfo --no-split --fill-column=70 --paragraph-indent=0 --verbose \
    foo.texi

    ## Plain text
    makeinfo --no-split --fill-column=70 --paragraph-indent=0 --verbose \
    --no-headers --output=foo.txt foo.texi

    ## HTML
    makeinfo --no-split --html foo.texi

    ## DVI
    texi2dvi foo.texi

    ## PDF
    texi2dvi --pdf foo.texi

    ## DocBook
    makeinfo --docbook --no-split --paragraph-indent=0 --verbose foo.texi

    ## XML
    makeinfo --xml --no-split --paragraph-indent=0 --verbose foo.texi

Also, you can create PostScript and RTF in two steps and LaTeX in
three steps:

    ## PostScript (needs DVI)
    dvi2ps foo.dvi > foo.ps

    ## RTF (needs HTML)
    /usr/local/src/html2rtf.pl foo.html

    ## LaTex (needs RTF)
    /usr/bin/rtf2latex foo.rtf


Even though the files extensions are similar, the headers for DocBook
and XML with a Texinfo DTD are different:

    DocBook

        <?xml version="1.0"?>
        <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
          <!ENTITY tex "TeX">
          <!ENTITY latex "LaTeX">
        ]>
        <book lang="en">


    XML with a Texinfo DTD

        <?xml version="1.0"?>
        <!DOCTYPE texinfo PUBLIC "-//GNU//DTD TexinfoML V4.8//EN" "http://www.gnu.org/software/texinfo/dtd/4.8/texinfo.dtd">
        <texinfo xml:lang="en">

--
    Robert J. Chassell
    bob@rattlesnake.com                         GnuPG Key ID: 004B4AC8
    http://www.rattlesnake.com                  http://www.teak.cc

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2006-05-22 22:10 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-18  2:53 ifinfo vs ifnottex Luc Teirlinck
2006-05-18  3:39 ` Eli Zaretskii
2006-05-18  4:15   ` Luc Teirlinck
2006-05-18 18:56     ` Eli Zaretskii
2006-05-18 20:29       ` Karl Berry
2006-05-19  3:32         ` Luc Teirlinck
2006-05-19 11:04           ` Eli Zaretskii
2006-05-20  1:46             ` Luc Teirlinck
2006-05-20  2:40             ` Luc Teirlinck
2006-05-20  8:46               ` Eli Zaretskii
2006-05-20 17:55                 ` Karl Berry
2006-05-20 18:44                   ` Eli Zaretskii
2006-05-21 17:08                     ` Richard Stallman
2006-05-21 18:44                       ` Eli Zaretskii
2006-05-21 21:07                         ` Karl Berry
2006-05-22  3:21                           ` Eli Zaretskii
2006-05-22 22:10                             ` Karl Berry
2006-05-19 18:05           ` Karl Berry
2006-05-19  9:40         ` Eli Zaretskii
2006-05-19 17:43           ` Karl Berry
2006-05-19 18:10             ` Eli Zaretskii
2006-05-20  5:04           ` Richard Stallman
2006-05-21  0:32             ` Luc Teirlinck
2006-05-18  4:47   ` Luc Teirlinck
2006-05-18  4:51   ` Luc Teirlinck
2006-05-19  2:04 ` Richard Stallman
2006-05-19  2:38   ` Luc Teirlinck
  -- strict thread matches above, loose matches on Subject: below --
2006-05-19 11:39 Robert J. Chassell

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).