[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/metacode latex2e.py
From: |
Asko Soukka |
Subject: |
[Gzz-commits] gzz/metacode latex2e.py |
Date: |
Tue, 11 Feb 2003 09:00:51 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 03/02/11 09:00:51
Modified files:
metacode : latex2e.py
Log message:
hurrurr
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/metacode/latex2e.py.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
Patches:
Index: gzz/metacode/latex2e.py
diff -u gzz/metacode/latex2e.py:1.12 gzz/metacode/latex2e.py:1.13
--- gzz/metacode/latex2e.py:1.12 Tue Feb 11 08:29:51 2003
+++ gzz/metacode/latex2e.py Tue Feb 11 09:00:51 2003
@@ -3,8 +3,8 @@
"""
:Author: Engelbert Gruber (hacked by the Gzz project)
:Contact: address@hidden
-:Revision: $Revision: 1.12 $
-:Date: $Date: 2003/02/11 13:29:51 $
+:Revision: $Revision: 1.13 $
+:Date: $Date: 2003/02/11 14:00:51 $
:Copyright: This module has been placed in the public domain.
LaTeX2e document tree Writer.
@@ -21,50 +21,51 @@
from types import ListType
from docutils import writers, nodes, languages
-# country code by a.schlock.
-# partly manually converted from iso and babel stuff, dialects and some
-# languages remain missing (austrian, UKEnglish, brazillian etc.)
-_ISO639_TO_BABEL = {
- 'no': 'norsk', #XXX added by hand ( forget about nynorsk?)
- 'gd': 'scottish', #XXX added by hand
- 'hu': 'magyar', #XXX added by hand
- 'pt': 'portuguese',#XXX added by hand
- 'sl': 'slovenian',
- 'af': 'afrikaans',
- 'bg': 'bulgarian',
- 'br': 'breton',
- 'ca': 'catalan',
- 'cs': 'czech',
- 'cy': 'welsh',
- 'da': 'danish',
-
- 'de': 'ngerman', #XXX rather than german
- 'el': 'greek',
- 'en': 'english',
- 'eo': 'esperanto',
- 'es': 'spanish',
- 'et': 'estonian',
- 'eu': 'basque',
- 'fi': 'finnish',
- 'ga': 'irish',
- 'gl': 'galician',
- 'he': 'hebrew',
- 'hr': 'croatian',
- 'hu': 'hungarian',
- 'is': 'icelandic',
- 'it': 'italian',
- 'la': 'latin',
- 'nl': 'dutch',
- 'pl': 'polish',
- 'pt': 'portuguese',
- 'ro': 'romanian',
- 'ru': 'russian',
- 'sk': 'slovak',
- 'sr': 'serbian',
- 'sv': 'swedish',
- 'tr': 'turkish',
- 'uk': 'ukrainian'
- }
+#### We diss babel, because /cite didn't work :)
+## country code by a.schlock.
+## partly manually converted from iso and babel stuff, dialects and some
+## languages remain missing (austrian, UKEnglish, brazillian etc.)
+#_ISO639_TO_BABEL = {
+# 'no': 'norsk', #XXX added by hand ( forget about nynorsk?)
+# 'gd': 'scottish', #XXX added by hand
+# 'hu': 'magyar', #XXX added by hand
+# 'pt': 'portuguese',#XXX added by hand
+# 'sl': 'slovenian',
+# 'af': 'afrikaans',
+# 'bg': 'bulgarian',
+# 'br': 'breton',
+# 'ca': 'catalan',
+# 'cs': 'czech',
+# 'cy': 'welsh',
+# 'da': 'danish',
+
+# 'de': 'ngerman', #XXX rather than german
+# 'el': 'greek',
+# 'en': 'english',
+# 'eo': 'esperanto',
+# 'es': 'spanish',
+# 'et': 'estonian',
+# 'eu': 'basque',
+# 'fi': 'finnish',
+# 'ga': 'irish',
+# 'gl': 'galician',
+# 'he': 'hebrew',
+# 'hr': 'croatian',
+# 'hu': 'hungarian',
+# 'is': 'icelandic',
+# 'it': 'italian',
+# 'la': 'latin',
+# 'nl': 'dutch',
+# 'pl': 'polish',
+# 'pt': 'portuguese',
+# 'ro': 'romanian',
+# 'ru': 'russian',
+# 'sk': 'slovak',
+# 'sr': 'serbian',
+# 'sv': 'swedish',
+# 'tr': 'turkish',
+# 'uk': 'ukrainian'
+# }
class Writer(writers.Writer):
@@ -196,9 +197,9 @@
# for pdflatex some other package. pslatex
latex_head = '\\documentclass[%s]{%s}\n'
- encoding = '\\usepackage[latin1]{inputenc}\n'
+# encoding = '\\usepackage[latin1]{inputenc}\n'
linking = '\\usepackage{hyperref}\n'
- geometry = '\\usepackage[%s,margin=%s,nohead]{geometry}\n'
+# geometry = '\\usepackage[%s,margin=%s,nohead]{geometry}\n'
stylesheet = '\\input{%s}\n'
# add a generated on day , machine by user using docutils version.
generator = '%% generator Docutils: http://docutils.sourceforge.net/\n'
@@ -225,15 +226,15 @@
self.language = languages.get_language(settings.language_code)
self.babel = Babel(settings.language_code)
self.author_separator = self.language.author_separators[0]
- if _ISO639_TO_BABEL.has_key(settings.language_code):
- self.d_options += ',%s' % \
- _ISO639_TO_BABEL[settings.language_code]
+# if _ISO639_TO_BABEL.has_key(settings.language_code):
+# self.d_options += ',%s' % \
+# _ISO639_TO_BABEL[settings.language_code]
self.head_prefix = [
self.latex_head % (self.d_options,self.d_class),
#/cite didn't work with babel (jvk)
# '\\usepackage{babel}\n', # language is in documents
settings.
'\\usepackage{shortvrb}\n', # allows verb in footnotes.
- self.encoding,
+# self.encoding,
# * tabularx: for docinfo, automatic width of columns, always on
one page.
'\\usepackage{tabularx}\n',
'\\usepackage{longtable}\n',
@@ -249,22 +250,22 @@
'\\usepackage{multirow}\n',
self.linking,
# geometry and fonts might go into style.tex.
- self.geometry % (self.d_paper, self.d_margins),
+# self.geometry % (self.d_paper, self.d_margins),
#
self.generator,
# admonition width and docinfo tablewidth
'\\newlength{\\admwidth}\n\\addtolength{\\admwidth}{0.9\\textwidth}\n',
- # optionlist environment
+# # optionlist environment
'\\newcommand{\\optionlistlabel}[1]{\\bf #1 \\hfill}\n'
- '\\newenvironment{optionlist}[1]\n'
- '{\\begin{list}{}\n'
- ' {\\setlength{\\labelwidth}{#1}\n'
- ' \\setlength{\\rightmargin}{1cm}\n'
- ' \\setlength{\\leftmargin}{\\rightmargin}\n'
- ' \\addtolength{\\leftmargin}{\\labelwidth}\n'
- ' \\addtolength{\\leftmargin}{\\labelsep}\n'
- ' \\renewcommand{\\makelabel}{\\optionlistlabel}}\n'
- '}{\\end{list}}\n',
+ '\\newenvironment{optionlist}[1]\n',
+# '{\\begin{list}{}\n'
+# ' {\\setlength{\\labelwidth}{#1}\n'
+# ' \\setlength{\\rightmargin}{1cm}\n'
+# ' \\setlength{\\leftmargin}{\\rightmargin}\n'
+# ' \\addtolength{\\leftmargin}{\\labelwidth}\n'
+# ' \\addtolength{\\leftmargin}{\\labelsep}\n'
+# ' \\renewcommand{\\makelabel}{\\optionlistlabel}}\n'
+# '}{\\end{list}}\n',
## stylesheet is last: so it might be possible to overwrite
defaults.
self.stylesheet % (self.d_stylesheet_path),
]
- [Gzz-commits] gzz/metacode latex2e.py, Vesa Kaihlavirta, 2003/02/05
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/08
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/09
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/11
- [Gzz-commits] gzz/metacode latex2e.py,
Asko Soukka <=
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/11
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/11
- [Gzz-commits] gzz/metacode latex2e.py, Janne V. Kujala, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Benja Fallenstein, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12
- [Gzz-commits] gzz/metacode latex2e.py, Asko Soukka, 2003/02/12