The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Meta::Baseline::Lang::Sgml - doing Sgml specific stuff in the baseline.

COPYRIGHT

Copyright (C) 2001 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: Sgml.pm PROJECT: meta

SYNOPSIS

package foo; use Meta::Baseline::Lang::Sgml qw(); my($resu)=Meta::Baseline::Lang::Sgml::env();

DESCRIPTION

This package contains stuff specific to Sgml in the baseline: 0. verifies docbook source files using nsgmls/onsgmls/DOM. 1. converts docbook sources to various formats (postscript,Rtf,Pdf,Dvi,HTML, multi HTML,plain text,Tex etc...) using various tools (jade,openjade, sgmltools,sgml2). 2. authorizes entry for docbook sources into the baseline.

It is better to do convertions directly through openjade and not through tools for which the API is not yet stable like sgmltools or others.

EXPORTS

c2chec($) c2deps($) c2texx($) c2dvix($) c2psxx($) c2txtx($) c2html($) c2rtfx($) c2manx($) c2mifx($) c2info($) c2pdfx($) c2chun($) c2xmlx($) c2late($) c2lyxx($) c2gzxx($) my_file($$)

FUNCTION DOCUMENTATION

c2chec($)

This routine verifies docbook sources using the following methods: 0. runs nsgmls on it and checks the result.

c2deps($)

This routine will print out dependencies in cook fashion for docbook sources. It will use other perl module to do that (scan the external entities used and print paths to them). Currently it does nothing.

c2texx($)

This routine will convert DocBook files to Tex.

c2dvix($)

This routine will convert sgml DocBook files to Dvi.

c2psxx($)

This routine will convert sgml DocBook files to Postscript.

c2txtx($)

This routine will convert sgml DocBook files to text.

c2html($)

This routine will convert sgml DocBook files to Html.

c2rtfx($)

This routine will convert sgml DocBook files to Rtf.

c2manx($)

This routine will convert sgml DocBook files to manual page format.

c2mifx($)

This routine will convert sgml DocBook files to Mif.

c2info($)

This routine will convert sgml DocBook files to GNU info.

c2pdfx($)

This routine will convert sgml DocBook files to Pdf (Portable Documentation Format from Adobe).

c2chun($)

This routine will convert sgml DocBook files to files without DocBook headers in them (DOCTYPE) etc... so they chould be included as chunks for other documents.

c2xmlx($)

This routine will convert DocBook files to XML.

c2late($)

This will convert DocBook files to Latex.

c2lyxx($)

This will convert DocBook files to LyX.

c2gzxx($)

This will convert DocBook files to compressed docbook files.

my_file($$)

This method will return true if the file received should be handled by this module.

BUGS

None.

AUTHOR

Mark Veltzer <mark2776@yahoo.com>

HISTORY

start of revision info 1 Sun Jan 14 02:26:10 2001 MV introduce docbook into the baseline 2 Thu Jan 18 01:55:38 2001 MV spelling change 3 Sun Jan 21 21:38:59 2001 MV remove sandbox 4 Sat Jan 27 19:56:28 2001 MV perl quality change 5 Sun Jan 28 02:34:56 2001 MV perl code quality 6 Sun Jan 28 13:51:26 2001 MV more perl quality 7 Mon Jan 29 20:54:18 2001 MV chess and code quality 7 Tue Jan 30 03:03:17 2001 MV more perl quality 8 Wed Jan 31 15:28:22 2001 MV get basic Simul up and running 9 Wed Jan 31 19:51:08 2001 MV get papers in good condition 10 Sat Feb 3 03:39:36 2001 MV make all papers papers 11 Sat Feb 3 23:41:08 2001 MV perl documentation 12 Sun Feb 4 10:05:44 2001 MV get graph stuff going 13 Mon Feb 5 03:21:02 2001 MV more perl quality 14 Tue Feb 6 01:04:52 2001 MV perl qulity code 15 Tue Feb 6 07:02:13 2001 MV more perl code quality 16 Tue Feb 6 22:19:51 2001 MV revision change 17 Thu Feb 8 22:43:16 2001 MV pictures in docbooks 18 Fri Feb 9 09:22:45 2001 MV revision for perl files and better sanity checks 19 Sun Feb 11 04:08:15 2001 MV languages.pl test online end of revision info

SEE ALSO

Nothing.

TODO

-add the following sanity check to c2chec: that I never use sect1, sect2 etc but rather use <section> (the better way). Are there any other things I may want to check ? the KDE team said they have a restricted version of docbook that they use - check it out. Should I do it in Lang::Sgml or what ?!?