source: tol/tolsh/tolsh.vfs/lib/tcllib1.10/doctools/mpformats/toc.tmml @ 8597867d

1941-docker-image-to-testdevel
Last change on this file since 8597867d was 8597867d, checked in by Jorge Pérez <josp.jorge@…>, 16 years ago

closes #976, se incluye tcllib1.10, base64 debe eliminarse del raiz de lib ya que esta incluido en tcllib

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2556 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 1.2 KB
Line 
1# -*- tcl -*-
2#
3# $Id: toc.tmml,v 1.6 2005/09/28 04:51:19 andreas_kupries Exp $
4#
5# Engine to convert a doctoc document into TMML.
6#
7# Copyright (c) 2003 Andreas Kupries <andreas_kupries@sourceforge.net>
8# Freely redistributable.
9#
10# See also <URL: http://tmml.sourceforge.net>
11#
12######################################################################
13
14dt_source _toc_common.tcl
15dt_source _xml.tcl
16
17######################################################################
18# Conversion specification.
19#
20# One-pass processing.
21
22rename toc_postprocess {}
23rename fmt_postprocess toc_postprocess
24
25proc fmt_plain_text {text} {if {$text != {}} {return \n} else {return {}}}
26
27################################################################
28## Backend for TMML markup
29
30proc fmt_toc_begin      {label title}     {sequence [start manual package $label] [wrap $title title]}
31proc fmt_toc_end        {}                {end manual}
32proc fmt_division_start {title symfile}   {sequence [start division] [wrap $text title]}
33proc fmt_division_end   {}                {end   division}
34proc fmt_item           {file label desc} {emptyElement subdoc href [dt_fmap $file]}
35proc fmt_comment        {text}            {xmlComment $text}
36
37################################################################
Note: See TracBrowser for help on using the repository browser.