mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Supplemental rules to convert a .tex file to a .xml file. Both XML and
SGML will be supported soon, probably using an ESIS representation saved in a temp file.
This commit is contained in:
parent
6942e57f87
commit
d8faf85d40
1 changed files with 29 additions and 0 deletions
29
Doc/tools/sgmlconv/make.rules
Normal file
29
Doc/tools/sgmlconv/make.rules
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# -*- makefile -*-
|
||||
#
|
||||
# Extra magic needed by the LaTeX->SGML conversion process. This requires
|
||||
# $(TOOLSDIR) to be properly defined.
|
||||
#
|
||||
# Note that docfixer.py outputs XML directly; this will be fixed before too
|
||||
# much longer.
|
||||
|
||||
DOCFIXER= $(TOOLSDIR)/sgmlconv/docfixer.py
|
||||
ESIS2SGML= $(TOOLSDIR)/sgmlconv/esis2sgml.py
|
||||
ESIS2XML= $(TOOLSDIR)/sgmlconv/esis2sgml.py --xml
|
||||
FIXGES= $(TOOLSDIR)/sgmlconv/fixgenents.sh
|
||||
LATEX2ESIS= $(TOOLSDIR)/sgmlconv/latex2esis.py
|
||||
|
||||
CUTCRUFT= grep -v '^<?xml version="1.0"?>$$'
|
||||
|
||||
|
||||
XMLTARGETS= $(patsubst %.tex,%.xml,$(wildcard *.tex))
|
||||
|
||||
.SUFFIXES: .tex .xml
|
||||
|
||||
.tex.xml:
|
||||
$(LATEX2ESIS) $< | $(DOCFIXER) | $(CUTCRUFT) | $(FIXGES) > $@
|
||||
|
||||
|
||||
all: $(XMLTARGETS)
|
||||
|
||||
|
||||
$(XMLTARGETS): $(DOCFIXER) $(LATEX2ESIS) $(FIXGES)
|
||||
Loading…
Add table
Add a link
Reference in a new issue