[Pkg-lyx-devel] svn commit: r671 - in /elyxer/branches/upstream/current: ./ docs/ src/ src/conf/ src/gen/ src/io/ src/math/ test/ test/docs/ test/subdir/
hoexter at users.alioth.debian.org
hoexter at users.alioth.debian.org
Wed Oct 28 14:49:49 UTC 2009
Author: hoexter
Date: Wed Oct 28 14:49:48 2009
New Revision: 671
URL: http://svn.debian.org/wsvn/pkg-lyx/?sc=1&rev=671
Log:
[svn-upgrade] Integrating new upstream version, elyxer (0.34)
Added:
elyxer/branches/upstream/current/test/docs/
elyxer/branches/upstream/current/test/docs/elyxer.jpg (with props)
elyxer/branches/upstream/current/test/docs/elyxer.png (with props)
Removed:
elyxer/branches/upstream/current/docs/elyxer.jpg
elyxer/branches/upstream/current/indelyxer.py
Modified:
elyxer/branches/upstream/current/docs/changelog.html
elyxer/branches/upstream/current/docs/changelog.lyx
elyxer/branches/upstream/current/docs/devguide.html
elyxer/branches/upstream/current/docs/index.html
elyxer/branches/upstream/current/docs/math-unicode.html
elyxer/branches/upstream/current/docs/math.html
elyxer/branches/upstream/current/docs/userguide-toc.html
elyxer/branches/upstream/current/docs/userguide.html
elyxer/branches/upstream/current/elyxer.py
elyxer/branches/upstream/current/src/conf/base.cfg
elyxer/branches/upstream/current/src/conf/config.py
elyxer/branches/upstream/current/src/gen/image.py
elyxer/branches/upstream/current/src/gen/inset.py
elyxer/branches/upstream/current/src/gen/toc.py
elyxer/branches/upstream/current/src/io/convert.py
elyxer/branches/upstream/current/src/io/path.py
elyxer/branches/upstream/current/src/math/bits.py
elyxer/branches/upstream/current/src/math/command.py
elyxer/branches/upstream/current/src/principal.py
elyxer/branches/upstream/current/test/appendix-1-6-2-test.html
elyxer/branches/upstream/current/test/appendix-1-6-2-toc-test.html
elyxer/branches/upstream/current/test/bibtex-test.html
elyxer/branches/upstream/current/test/branches-test.html
elyxer/branches/upstream/current/test/decorations-1-6-2-test.html
elyxer/branches/upstream/current/test/descriptions-test.html
elyxer/branches/upstream/current/test/file-1-6-2-good.html
elyxer/branches/upstream/current/test/file-1-6-2-test.html
elyxer/branches/upstream/current/test/file-1-6-2.lyx
elyxer/branches/upstream/current/test/footnotes-1-6-2-test.html
elyxer/branches/upstream/current/test/helloworld-test.html
elyxer/branches/upstream/current/test/index-1-6-2-test.html
elyxer/branches/upstream/current/test/lists-1-6-2-test.html
elyxer/branches/upstream/current/test/math-1-6-2-good.html
elyxer/branches/upstream/current/test/math-1-6-2-test.html
elyxer/branches/upstream/current/test/math-1-6-2.lyx
elyxer/branches/upstream/current/test/subdir/appendix-1-6-2-test.html
elyxer/branches/upstream/current/test/table-1-6-2-test.html
elyxer/branches/upstream/current/test/with images-good.html
elyxer/branches/upstream/current/test/with images-html-good.html
elyxer/branches/upstream/current/test/with images-html-test.html
elyxer/branches/upstream/current/test/with images-jpg-good.html
elyxer/branches/upstream/current/test/with images-jpg-test.html
elyxer/branches/upstream/current/test/with images-test.html
Modified: elyxer/branches/upstream/current/docs/changelog.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/changelog.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/changelog.html (original)
+++ elyxer/branches/upstream/current/docs/changelog.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="lyx.css" type="text/css" media="screen"/>
<title>eLyXer changelog</title>
</head>
@@ -19,7 +19,31 @@
</div>
<ul>
<li>
-0.33 (unreleased):<ul>
+0.34 (unreleased):<ul>
+<li>
+Support for child document inclusion (Insert â· File â· Child Documentâ¦).
+</li>
+<li>
+Avoid generating images on different directories (relative paths starting with <tt>../</tt>).
+</li>
+<li>
+Added <tt>\maltese</tt> <span class="formula">â </span> and financial symbols $, â¬, Â¥.
+</li>
+<li>
+Removed annoying message âUnexpected end of bracketâ when parsing empty brackets.
+</li>
+<li>
+Support for <tt>\raisebox</tt>.
+</li>
+<li>
+Created new structure of <tt>Writer</tt>s, preparing for document segmentation and TOC generation.
+</li>
+
+</ul>
+
+</li>
+<li>
+0.33 (2009-10-19):<ul>
<li>
New TOC generation process based on an already-generated HTML document, not ready for prime time yet.
</li>
Modified: elyxer/branches/upstream/current/docs/changelog.lyx
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/changelog.lyx?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/changelog.lyx (original)
+++ elyxer/branches/upstream/current/docs/changelog.lyx Wed Oct 28 14:49:48 2009
@@ -64,7 +64,73 @@
\end_layout
\begin_layout Itemize
-0.33 (unreleased):
+0.34 (unreleased):
+\end_layout
+
+\begin_deeper
+\begin_layout Itemize
+Support for child document inclusion (Insert\SpecialChar \menuseparator
+File\SpecialChar \menuseparator
+Child Document\SpecialChar \ldots{}
+).
+\end_layout
+
+\begin_layout Itemize
+Avoid generating images on different directories (relative paths starting
+ with
+\family typewriter
+../
+\family default
+).
+\end_layout
+
+\begin_layout Itemize
+Added
+\family typewriter
+
+\backslash
+maltese
+\family default
+
+\begin_inset Formula $\maltese$
+\end_inset
+
+ and financial symbols $, â¬, Â¥.
+\end_layout
+
+\begin_layout Itemize
+Removed annoying message
+\begin_inset Quotes eld
+\end_inset
+
+Unexpected end of bracket
+\begin_inset Quotes erd
+\end_inset
+
+ when parsing empty brackets.
+\end_layout
+
+\begin_layout Itemize
+Support for
+\family typewriter
+
+\backslash
+raisebox
+\family default
+.
+\end_layout
+
+\begin_layout Itemize
+Created new structure of
+\family typewriter
+Writer
+\family default
+s, preparing for document segmentation and TOC generation.
+\end_layout
+
+\end_deeper
+\begin_layout Itemize
+0.33 (2009-10-19):
\end_layout
\begin_deeper
Modified: elyxer/branches/upstream/current/docs/devguide.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/devguide.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/devguide.html (original)
+++ elyxer/branches/upstream/current/docs/devguide.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="lyx.css" type="text/css" media="screen"/>
<title>eLyxer Developer Guide</title>
</head>
Modified: elyxer/branches/upstream/current/docs/index.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/index.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/index.html (original)
+++ elyxer/branches/upstream/current/docs/index.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="lyx.css" type="text/css" media="screen"/>
<title>eLyXer</title>
</head>
@@ -69,7 +69,7 @@
Downloads
</h3>
<div class="Standard">
-You can download the latest version 0.33, created on 2009-10-19, from the projectâs <a class="URL" href="https://savannah.nongnu.org/files/?group=elyxer">download area</a>. See the <a class="URL" href="changelog.html">change log</a> for information about past versions. <span class="greyedout">
+You can download the latest version 0.34, created on 2009-10-28, from the projectâs <a class="URL" href="https://savannah.nongnu.org/files/?group=elyxer">download area</a>. See the <a class="URL" href="changelog.html">change log</a> for information about past versions. <span class="greyedout">
<div class="Standard">
Note: if this latest version hasnât yet hit the mirrors and you are impatient to try it out, please visit <a class="URL" href="http://download.savannah.gnu.org/releases-noredirect/elyxer/">the Savannah direct download page</a>.
</div>
Modified: elyxer/branches/upstream/current/docs/math-unicode.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/math-unicode.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/math-unicode.html (original)
+++ elyxer/branches/upstream/current/docs/math-unicode.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="lyx.css" type="text/css" media="screen"/>
<title>eLyxer Math Showcase (Unicode edition)</title>
</head>
Modified: elyxer/branches/upstream/current/docs/math.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/math.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/math.html (original)
+++ elyxer/branches/upstream/current/docs/math.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="lyx.css" type="text/css" media="screen"/>
<title>eLyxer Math Showcase (non-Unicode edition)</title>
</head>
Modified: elyxer/branches/upstream/current/docs/userguide-toc.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/userguide-toc.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/userguide-toc.html (original)
+++ elyxer/branches/upstream/current/docs/userguide-toc.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="toc.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Modified: elyxer/branches/upstream/current/docs/userguide.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/docs/userguide.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/docs/userguide.html (original)
+++ elyxer/branches/upstream/current/docs/userguide.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="lyx.css" type="text/css" media="screen"/>
<title>eLyXer User Guide</title>
</head>
Modified: elyxer/branches/upstream/current/elyxer.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/elyxer.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/elyxer.py (original)
+++ elyxer/branches/upstream/current/elyxer.py Wed Oct 28 14:49:48 2009
@@ -30,6 +30,7 @@
+import os.path
@@ -253,6 +254,7 @@
u'\\begin_inset CommandInset bibtex':u'BibTeX',
u'\\begin_inset CommandInset citation':u'BiblioCite',
u'\\begin_inset CommandInset href':u'URL',
+ u'\\begin_inset CommandInset include':u'IncludeInset',
u'\\begin_inset CommandInset index_print':u'PrintIndex',
u'\\begin_inset CommandInset label':u'Label',
u'\\begin_inset CommandInset nomencl_print':u'NomenclaturePrint',
@@ -497,8 +499,8 @@
}
commands = {
- u'\\!':u'', u'\\%':u'%', u'\\,':u' ', u'\\:':u'â', u'\\Box':u'â¡',
- u'\\CIRCLE':u'â', u'\\CheckedBox':u'â', u'\\Circle':u'â',
+ u'\\!':u'', u'\\$':u'$', u'\\%':u'%', u'\\,':u' ', u'\\:':u'â',
+ u'\\Box':u'â¡', u'\\CIRCLE':u'â', u'\\CheckedBox':u'â', u'\\Circle':u'â',
u'\\Diamond':u'â', u'\\Downarrow':u'â', u'\\Im':u'â', u'\\Join':u'â¨',
u'\\LEFTCIRCLE':u'â', u'\\LEFTcircle':u'â', u'\\Leftarrow':u'â',
u'\\Leftrightarrow':u'âââ', u'\\Longleftarrow':u'â¸',
@@ -527,11 +529,11 @@
u'\\diamond':u'â', u'\\diamondsuit':u'â¦', u'\\dim':u'dim',
u'\\displaystyle':u'', u'\\div':u'÷', u'\\doteq':u'â', u'\\dots':u'â¦',
u'\\downarrow':u'â', u'\\earth':u'â', u'\\ell':u'â', u'\\emptyset':u'â
',
- u'\\equiv':u'ââ¡â', u'\\exists':u'â', u'\\exp':u'exp', u'\\female':u'â',
- u'\\flat':u'â', u'\\forall':u'â', u'\\frown':u'â¢', u'\\frownie':u'â¹',
- u'\\gcd':u'gcd', u'\\ge':u'ââ¥â', u'\\gemini':u'â', u'\\geq':u'ââ¥â',
- u'\\geq)':u'â¥', u'\\gets':u'â', u'\\gg':u'â«', u'\\gimel':u'â·',
- u'\\hbar':u'â', u'\\heartsuit':u'â¥', u'\\hom':u'hom',
+ u'\\equiv':u'ââ¡â', u'\\euro':u'â¬', u'\\exists':u'â', u'\\exp':u'exp',
+ u'\\female':u'â', u'\\flat':u'â', u'\\forall':u'â', u'\\frown':u'â¢',
+ u'\\frownie':u'â¹', u'\\gcd':u'gcd', u'\\ge':u'ââ¥â', u'\\gemini':u'â',
+ u'\\geq':u'ââ¥â', u'\\geq)':u'â¥', u'\\gets':u'â', u'\\gg':u'â«',
+ u'\\gimel':u'â·', u'\\hbar':u'â', u'\\heartsuit':u'â¥', u'\\hom':u'hom',
u'\\hookleftarrow':u'â©', u'\\hookrightarrow':u'âª', u'\\imath':u'ı',
u'\\implies':u'âââââ', u'\\in':u'âââ', u'\\inf':u'inf', u'\\infty':u'â',
u'\\int':u'<span class="bigsymbol">â«</span>',
@@ -547,19 +549,19 @@
u'\\ln':u'ln', u'\\lnot':u'¬', u'\\log':u'log', u'\\longleftarrow':u'âµ',
u'\\longleftrightarrow':u'â·', u'\\longmapsto':u'â¼',
u'\\longrightarrow':u'â¶', u'\\lor':u'â¨', u'\\lozenge':u'â',
- u'\\lyxlock':u'', u'\\male':u'â', u'\\mapsto':u'â¦', u'\\max':u'max',
- u'\\mercury':u'â¿', u'\\mho':u'â§', u'\\mid':u'â£', u'\\min':u'min',
- u'\\models':u'â¨', u'\\mp':u'â', u'\\nabla':u'â', u'\\natural':u'â®',
- u'\\ne':u'ââ â', u'\\nearrow':u'â', u'\\neg':u'¬', u'\\neg)':u'¬',
- u'\\neptune':u'â', u'\\neq':u'ââ â', u'\\ni':u'â', u'\\ni)':u'â',
- u'\\nonumber':u'', u'\\not':u'¬', u'\\not<':u'â®', u'\\not=':u'â ',
- u'\\not>':u'â¯', u'\\not\\in':u'âââ', u'\\nwarrow':u'â', u'\\odot':u'â',
- u'\\oint':u'â®', u'\\ominus':u'â', u'\\oplus':u'â', u'\\oslash':u'â',
- u'\\otimes':u'â', u'\\owns':u'â', u'\\parallel':u'â¥', u'\\partial':u'â',
- u'\\perp':u'â¥', u'\\pisces':u'â', u'\\pluto':u'â', u'\\pm':u'±',
- u'\\pounds':u'£', u'\\prec':u'âº', u'\\preceq':u'â¼', u'\\prime':u'â²',
- u'\\prod':u'<span class="bigsymbol">â</span>', u'\\prompto':u'â',
- u'\\propto':u'âââ', u'\\qquad':u' ', u'\\quad':u' ',
+ u'\\lyxlock':u'', u'\\male':u'â', u'\\maltese':u'â ', u'\\mapsto':u'â¦',
+ u'\\max':u'max', u'\\mercury':u'â¿', u'\\mho':u'â§', u'\\mid':u'â£',
+ u'\\min':u'min', u'\\models':u'â¨', u'\\mp':u'â', u'\\nabla':u'â',
+ u'\\natural':u'â®', u'\\ne':u'ââ â', u'\\nearrow':u'â', u'\\neg':u'¬',
+ u'\\neg)':u'¬', u'\\neptune':u'â', u'\\neq':u'ââ â', u'\\ni':u'â',
+ u'\\ni)':u'â', u'\\nonumber':u'', u'\\not':u'¬', u'\\not<':u'â®',
+ u'\\not=':u'â ', u'\\not>':u'â¯', u'\\not\\in':u'âââ', u'\\nwarrow':u'â',
+ u'\\odot':u'â', u'\\oint':u'â®', u'\\ominus':u'â', u'\\oplus':u'â',
+ u'\\oslash':u'â', u'\\otimes':u'â', u'\\owns':u'â', u'\\parallel':u'â¥',
+ u'\\partial':u'â', u'\\perp':u'â¥', u'\\pisces':u'â', u'\\pluto':u'â',
+ u'\\pm':u'±', u'\\pounds':u'£', u'\\prec':u'âº', u'\\preceq':u'â¼',
+ u'\\prime':u'â²', u'\\prod':u'<span class="bigsymbol">â</span>',
+ u'\\prompto':u'â', u'\\propto':u'âââ', u'\\qquad':u' ', u'\\quad':u' ',
u'\\quarternote':u'â©', u'\\rangle':u'â©', u'\\rbrace':u'}',
u'\\rbrace)':u'}', u'\\rbrack':u']', u'\\rceil':u'â', u'\\rfloor':u'â',
u'\\rhd':u'â³', u'\\rightarrow':u'âââ', u'\\rightarrow)':u'â',
@@ -586,8 +588,8 @@
u'\\varclubsuit':u'â§', u'\\vardiamondsuit':u'â¦', u'\\varheartsuit':u'â¥',
u'\\varspadesuit':u'â¤', u'\\vdash':u'â¢', u'\\vdots':u'â®', u'\\vee':u'â¨',
u'\\vee)':u'â¨', u'\\vert':u'â£', u'\\virgo':u'â', u'\\wedge':u'â§',
- u'\\wedge)':u'â§', u'\\wp':u'â', u'\\wr':u'â', u'\\{':u'{', u'\\|':u'â¥',
- u'\\}':u'}',
+ u'\\wedge)':u'â§', u'\\wp':u'â', u'\\wr':u'â', u'\\yen':u'Â¥', u'\\{':u'{',
+ u'\\|':u'â¥', u'\\}':u'}',
}
decoratingfunctions = {
@@ -643,6 +645,10 @@
u'\\underline':u'u', u'\\vphantom':u'span class="phantom"',
}
+ spacingfunctions = {
+ u'\\raisebox':u'span class="raisebox"',
+ }
+
starts = {
u'beginafter':u'}', u'beginbefore':u'\\begin{', u'bracket':u'{',
u'command':u'\\', u'complex':u'\\[', u'simple':u'$',
@@ -670,7 +676,7 @@
"Configuration class from config file"
version = {
- u'date':u'2009-10-19', u'lyxformat':u'345', u'number':u'0.33',
+ u'date':u'2009-10-28', u'lyxformat':u'345', u'number':u'0.34',
}
class NumberingConfig(object):
@@ -2332,6 +2338,22 @@
return
self.output.settag(TagConfig.boxes[self.type], True)
+class IncludeInset(Container):
+ "A child document included within another."
+
+ # the converter factory will be set in converter.py
+ converterfactory = None
+
+ def __init__(self):
+ self.parser = InsetParser()
+ self.output = ContentsOutput()
+
+ def process(self):
+ "Include the provided child document"
+ self.filename = self.parser.parameters['filename']
+ Trace.debug('Child document: ' + self.filename)
+ converter = IncludeInset.converterfactory.create(self.filename)
+ converter.convert()
@@ -3092,7 +3114,6 @@
self.add(self.inner)
return
if pos.finished():
- Trace.error('Unexpected end of bracket')
return
if pos.current() != self.ending:
Trace.error('No formula in bracket at ' + pos.remaining())
@@ -3345,8 +3366,7 @@
commandmap = FormulaConfig.fractionfunctions
def parsebit(self, pos):
- "Parse a fraction function with two parameters"
- tags = self.translated
+ "Parse a fraction function with two parameters (optional alignment)"
self.output = TaggedOutput().settag(self.translated[0])
align = self.parsesquare(pos)
parameter1 = self.parseparameter(pos)
@@ -3370,11 +3390,29 @@
parameter1.type = 'font'
parameter2.type = 'font'
+class SpacingFunction(CommandBit):
+ "A spacing function with two parameters"
+
+ commandmap = FormulaConfig.spacingfunctions
+
+ def parsebit(self, pos):
+ "Parse a spacing function with two parameters"
+ parameter1 = Bracket().parseliteral(pos)
+ if not parameter1:
+ Trace.error('Missing first {} in function ' + self.translated[0])
+ return
+ parameter2 = self.parseparameter(pos)
+ if not parameter2:
+ Trace.error('Missing second {} in function ' + self.translated[0])
+ return
+ self.output = TaggedOutput().settag(self.translated +
+ ' style="vertical-align:' + parameter1.literal + '"')
+
FormulaFactory.bits += [FormulaCommand(), SymbolFunction()]
FormulaCommand.commandbits = [
EmptyCommand(), AlphaCommand(), OneParamFunction(), DecoratingFunction(),
FractionFunction(), FontFunction(), LabelFunction(), TextFunction(),
- HybridFunction(),
+ HybridFunction(), SpacingFunction(),
]
@@ -3581,6 +3619,17 @@
if len(dir) > 0 and not os.path.exists(dir):
os.makedirs(dir)
+ def removebackdirs(self):
+ "Remove any occurrences of ../ (or ..\ on Windows)"
+ self.path = os.path.normpath(self.path)
+ backdir = '..' + os.path.sep
+ while self.path.startswith(backdir):
+ Trace.debug('Backdir in: ' + self.path)
+ self.path = self.path[len(backdir):]
+ while self.url.startswith('../'):
+ Trace.debug('Backdir in: ' + self.url)
+ self.url = self.url[len('../'):]
+
class Image(Container):
@@ -3598,13 +3647,15 @@
if not self.origin.exists():
Trace.error('Image ' + unicode(self.origin) + ' not found')
return
- self.destination = self.checkext(OutputPath(self.origin))
+ self.destination = self.getdestination(self.origin)
self.convert(self.getparams())
imagefile = ImageFile(self.destination)
self.width, self.height = imagefile.getdimensions()
- def checkext(self, destination):
- "Convert extension of destination to output image format"
+ def getdestination(self, origin):
+ "Convert origin path to destination path."
+ "Changes extension of destination to output image format."
+ destination = OutputPath(origin)
forceformat = '.jpg'
forcedest = '.png'
if Options.forceformat:
@@ -3612,6 +3663,7 @@
forcedest = Options.forceformat
if not destination.hasext(forceformat):
destination.changeext(forcedest)
+ destination.removebackdirs()
return destination
def convert(self, params):
@@ -4551,7 +4603,13 @@
self.depth = 0
Options.nocopy = True
- def writetoc(self, container):
+ def clone(self, filterheader):
+ "Return a cloned copy."
+ clone = TOCWriter()
+ clone.writer = self.writer
+ return clone
+
+ def write(self, container):
"Write the table of contents for a container."
if container.__class__ in [LyxHeader, LyxFooter]:
self.writeheaderfooter(container)
@@ -4936,34 +4994,62 @@
class eLyXerConverter(object):
"Converter for a document in a lyx file"
- def __init__(self, ioparser):
- "Create the converter"
+ latestwriter = None
+
+ def setio(self, ioparser):
+ "Set the InOutParser"
self.reader = LineReader(ioparser.filein)
- self.writer = LineWriter(ioparser.fileout)
+ linewriter = LineWriter(ioparser.fileout)
+ if Options.toc:
+ self.writer = TOCWriter(linewriter)
+ else:
+ self.writer = ContainerWriter(linewriter)
+ eLyXerConverter.latestwriter = self.writer
+ return self
+
+ def embed(self, filein):
+ "Embed the results for a new input file into the latest output file."
+ "Header and footer are ignored. Useful for embedding one document inside another."
+ self.reader = LineReader(filein)
+ self.writer = eLyXerConverter.latestwriter.clone(filterheader = True)
+ return self
def convert(self):
"Perform the conversion for the document"
try:
- if Options.toc:
- # generate TOC
- writer = TOCWriter(self.writer)
- self.processcontents(lambda container: writer.writetoc(container))
- else:
- # generate converted document
- self.processcontents(lambda container: self.writer.write(container.gethtml()))
+ self.processcontents()
except (Exception):
Trace.error('Conversion failed at ' + self.reader.currentline())
raise
- def processcontents(self, write):
+ def processcontents(self):
"Parse the contents and write it by containers"
factory = ContainerFactory()
- postproc = Postprocessor()
+ self.postproc = Postprocessor()
while not self.reader.finished():
containers = factory.createsome(self.reader)
for container in containers:
- container = postproc.postprocess(container)
- write(container)
+ container = self.postproc.postprocess(container)
+ self.writer.write(container)
+
+class ContainerWriter(object):
+ "A writer of containers. Just writes them out to a line writer."
+
+ def __init__(self, linewriter):
+ self.linewriter = linewriter
+ self.filterheader = False
+
+ def clone(self, filterheader):
+ "Clone the writer."
+ clone = ContainerWriter(self.linewriter)
+ clone.filterheader = filterheader
+ return clone
+
+ def write(self, container):
+ "Write a container to the line writer."
+ if self.filterheader and container.__class__ in [LyxHeader, LyxFooter]:
+ return
+ self.linewriter.write(container.gethtml())
class InOutParser(object):
"Parse in and out arguments"
@@ -4992,6 +5078,16 @@
raise Exception('Unused arguments: ' + unicode(args))
return self
+class ConverterFactory(object):
+ "Create a converter fit for converting a filename and embedding the result."
+
+ def create(self, filename):
+ "Create a converter for a given filename."
+ fullname = os.path.join(Options.directory, filename)
+ return eLyXerConverter().embed(fullname)
+
+IncludeInset.converterfactory = ConverterFactory()
+
def readdir(filename, diroption):
@@ -5014,7 +5110,7 @@
readdir(ioparser.fileout, 'destdirectory')
else:
Options.destdirectory = '.'
- converter = eLyXerConverter(ioparser)
+ converter = eLyXerConverter().setio(ioparser)
converter.convert()
def main():
Modified: elyxer/branches/upstream/current/src/conf/base.cfg
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/conf/base.cfg?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/conf/base.cfg (original)
+++ elyxer/branches/upstream/current/src/conf/base.cfg Wed Oct 28 14:49:48 2009
@@ -86,6 +86,7 @@
\begin_inset LatexCommand citealt:BiblioCite
\begin_inset CommandInset href:URL
\begin_inset CommandInset index_print:PrintIndex
+\begin_inset CommandInset include:IncludeInset
\begin_inset CommandInset label:Label
\begin_inset CommandInset nomencl_print:NomenclaturePrint
\begin_inset CommandInset nomenclature:NomenclatureEntry
@@ -761,6 +762,7 @@
\lyxlock:
\male:â
\mapsto:â¦
+\maltese:â
\max:max
\mercury:â¿
\mho:â§
@@ -924,7 +926,11 @@
\dag:â
\ddag:â¡
\copyright:©
+# financial
\pounds:£
+\euro:â¬
+\yen:Â¥
+\$:$
[FormulaConfig.decoratingfunctions]
\acute:´
@@ -963,6 +969,9 @@
\nicefrac:[span class="fraction",sup class="numerator",â,sub class="denominator"]
\unitfrac:[span class="fraction",sup class="unit",â,sub class="unit"]
+[FormulaConfig.spacingfunctions]
+\raisebox:span class="raisebox"
+
[FormulaConfig.hybridfunctions]
\sqrt:span class="sqrt"
\unit:span class="unit"
@@ -1031,7 +1040,7 @@
[GeneralConfig.version]
date:2009-06-17
-number:0.33
+number:0.34
lyxformat:345
[NumberingConfig.layouts]
Modified: elyxer/branches/upstream/current/src/conf/config.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/conf/config.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/conf/config.py (original)
+++ elyxer/branches/upstream/current/src/conf/config.py Wed Oct 28 14:49:48 2009
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# eLyXer configuration
-# autogenerated from config file on 2009-10-19
+# autogenerated from config file on 2009-10-28
class BibStylesConfig(object):
"Configuration class from config file"
@@ -81,6 +81,7 @@
u'\\begin_inset CommandInset bibtex':u'BibTeX',
u'\\begin_inset CommandInset citation':u'BiblioCite',
u'\\begin_inset CommandInset href':u'URL',
+ u'\\begin_inset CommandInset include':u'IncludeInset',
u'\\begin_inset CommandInset index_print':u'PrintIndex',
u'\\begin_inset CommandInset label':u'Label',
u'\\begin_inset CommandInset nomencl_print':u'NomenclaturePrint',
@@ -325,8 +326,8 @@
}
commands = {
- u'\\!':u'', u'\\%':u'%', u'\\,':u' ', u'\\:':u'â', u'\\Box':u'â¡',
- u'\\CIRCLE':u'â', u'\\CheckedBox':u'â', u'\\Circle':u'â',
+ u'\\!':u'', u'\\$':u'$', u'\\%':u'%', u'\\,':u' ', u'\\:':u'â',
+ u'\\Box':u'â¡', u'\\CIRCLE':u'â', u'\\CheckedBox':u'â', u'\\Circle':u'â',
u'\\Diamond':u'â', u'\\Downarrow':u'â', u'\\Im':u'â', u'\\Join':u'â¨',
u'\\LEFTCIRCLE':u'â', u'\\LEFTcircle':u'â', u'\\Leftarrow':u'â',
u'\\Leftrightarrow':u'âââ', u'\\Longleftarrow':u'â¸',
@@ -355,11 +356,11 @@
u'\\diamond':u'â', u'\\diamondsuit':u'â¦', u'\\dim':u'dim',
u'\\displaystyle':u'', u'\\div':u'÷', u'\\doteq':u'â', u'\\dots':u'â¦',
u'\\downarrow':u'â', u'\\earth':u'â', u'\\ell':u'â', u'\\emptyset':u'â
',
- u'\\equiv':u'ââ¡â', u'\\exists':u'â', u'\\exp':u'exp', u'\\female':u'â',
- u'\\flat':u'â', u'\\forall':u'â', u'\\frown':u'â¢', u'\\frownie':u'â¹',
- u'\\gcd':u'gcd', u'\\ge':u'ââ¥â', u'\\gemini':u'â', u'\\geq':u'ââ¥â',
- u'\\geq)':u'â¥', u'\\gets':u'â', u'\\gg':u'â«', u'\\gimel':u'â·',
- u'\\hbar':u'â', u'\\heartsuit':u'â¥', u'\\hom':u'hom',
+ u'\\equiv':u'ââ¡â', u'\\euro':u'â¬', u'\\exists':u'â', u'\\exp':u'exp',
+ u'\\female':u'â', u'\\flat':u'â', u'\\forall':u'â', u'\\frown':u'â¢',
+ u'\\frownie':u'â¹', u'\\gcd':u'gcd', u'\\ge':u'ââ¥â', u'\\gemini':u'â',
+ u'\\geq':u'ââ¥â', u'\\geq)':u'â¥', u'\\gets':u'â', u'\\gg':u'â«',
+ u'\\gimel':u'â·', u'\\hbar':u'â', u'\\heartsuit':u'â¥', u'\\hom':u'hom',
u'\\hookleftarrow':u'â©', u'\\hookrightarrow':u'âª', u'\\imath':u'ı',
u'\\implies':u'âââââ', u'\\in':u'âââ', u'\\inf':u'inf', u'\\infty':u'â',
u'\\int':u'<span class="bigsymbol">â«</span>',
@@ -375,19 +376,19 @@
u'\\ln':u'ln', u'\\lnot':u'¬', u'\\log':u'log', u'\\longleftarrow':u'âµ',
u'\\longleftrightarrow':u'â·', u'\\longmapsto':u'â¼',
u'\\longrightarrow':u'â¶', u'\\lor':u'â¨', u'\\lozenge':u'â',
- u'\\lyxlock':u'', u'\\male':u'â', u'\\mapsto':u'â¦', u'\\max':u'max',
- u'\\mercury':u'â¿', u'\\mho':u'â§', u'\\mid':u'â£', u'\\min':u'min',
- u'\\models':u'â¨', u'\\mp':u'â', u'\\nabla':u'â', u'\\natural':u'â®',
- u'\\ne':u'ââ â', u'\\nearrow':u'â', u'\\neg':u'¬', u'\\neg)':u'¬',
- u'\\neptune':u'â', u'\\neq':u'ââ â', u'\\ni':u'â', u'\\ni)':u'â',
- u'\\nonumber':u'', u'\\not':u'¬', u'\\not<':u'â®', u'\\not=':u'â ',
- u'\\not>':u'â¯', u'\\not\\in':u'âââ', u'\\nwarrow':u'â', u'\\odot':u'â',
- u'\\oint':u'â®', u'\\ominus':u'â', u'\\oplus':u'â', u'\\oslash':u'â',
- u'\\otimes':u'â', u'\\owns':u'â', u'\\parallel':u'â¥', u'\\partial':u'â',
- u'\\perp':u'â¥', u'\\pisces':u'â', u'\\pluto':u'â', u'\\pm':u'±',
- u'\\pounds':u'£', u'\\prec':u'âº', u'\\preceq':u'â¼', u'\\prime':u'â²',
- u'\\prod':u'<span class="bigsymbol">â</span>', u'\\prompto':u'â',
- u'\\propto':u'âââ', u'\\qquad':u' ', u'\\quad':u' ',
+ u'\\lyxlock':u'', u'\\male':u'â', u'\\maltese':u'â ', u'\\mapsto':u'â¦',
+ u'\\max':u'max', u'\\mercury':u'â¿', u'\\mho':u'â§', u'\\mid':u'â£',
+ u'\\min':u'min', u'\\models':u'â¨', u'\\mp':u'â', u'\\nabla':u'â',
+ u'\\natural':u'â®', u'\\ne':u'ââ â', u'\\nearrow':u'â', u'\\neg':u'¬',
+ u'\\neg)':u'¬', u'\\neptune':u'â', u'\\neq':u'ââ â', u'\\ni':u'â',
+ u'\\ni)':u'â', u'\\nonumber':u'', u'\\not':u'¬', u'\\not<':u'â®',
+ u'\\not=':u'â ', u'\\not>':u'â¯', u'\\not\\in':u'âââ', u'\\nwarrow':u'â',
+ u'\\odot':u'â', u'\\oint':u'â®', u'\\ominus':u'â', u'\\oplus':u'â',
+ u'\\oslash':u'â', u'\\otimes':u'â', u'\\owns':u'â', u'\\parallel':u'â¥',
+ u'\\partial':u'â', u'\\perp':u'â¥', u'\\pisces':u'â', u'\\pluto':u'â',
+ u'\\pm':u'±', u'\\pounds':u'£', u'\\prec':u'âº', u'\\preceq':u'â¼',
+ u'\\prime':u'â²', u'\\prod':u'<span class="bigsymbol">â</span>',
+ u'\\prompto':u'â', u'\\propto':u'âââ', u'\\qquad':u' ', u'\\quad':u' ',
u'\\quarternote':u'â©', u'\\rangle':u'â©', u'\\rbrace':u'}',
u'\\rbrace)':u'}', u'\\rbrack':u']', u'\\rceil':u'â', u'\\rfloor':u'â',
u'\\rhd':u'â³', u'\\rightarrow':u'âââ', u'\\rightarrow)':u'â',
@@ -414,8 +415,8 @@
u'\\varclubsuit':u'â§', u'\\vardiamondsuit':u'â¦', u'\\varheartsuit':u'â¥',
u'\\varspadesuit':u'â¤', u'\\vdash':u'â¢', u'\\vdots':u'â®', u'\\vee':u'â¨',
u'\\vee)':u'â¨', u'\\vert':u'â£', u'\\virgo':u'â', u'\\wedge':u'â§',
- u'\\wedge)':u'â§', u'\\wp':u'â', u'\\wr':u'â', u'\\{':u'{', u'\\|':u'â¥',
- u'\\}':u'}',
+ u'\\wedge)':u'â§', u'\\wp':u'â', u'\\wr':u'â', u'\\yen':u'Â¥', u'\\{':u'{',
+ u'\\|':u'â¥', u'\\}':u'}',
}
decoratingfunctions = {
@@ -471,6 +472,10 @@
u'\\underline':u'u', u'\\vphantom':u'span class="phantom"',
}
+ spacingfunctions = {
+ u'\\raisebox':u'span class="raisebox"',
+ }
+
starts = {
u'beginafter':u'}', u'beginbefore':u'\\begin{', u'bracket':u'{',
u'command':u'\\', u'complex':u'\\[', u'simple':u'$',
@@ -498,7 +503,7 @@
"Configuration class from config file"
version = {
- u'date':u'2009-10-19', u'lyxformat':u'345', u'number':u'0.33',
+ u'date':u'2009-10-28', u'lyxformat':u'345', u'number':u'0.34',
}
class NumberingConfig(object):
Modified: elyxer/branches/upstream/current/src/gen/image.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/gen/image.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/gen/image.py (original)
+++ elyxer/branches/upstream/current/src/gen/image.py Wed Oct 28 14:49:48 2009
@@ -44,13 +44,15 @@
if not self.origin.exists():
Trace.error('Image ' + unicode(self.origin) + ' not found')
return
- self.destination = self.checkext(OutputPath(self.origin))
+ self.destination = self.getdestination(self.origin)
self.convert(self.getparams())
imagefile = ImageFile(self.destination)
self.width, self.height = imagefile.getdimensions()
- def checkext(self, destination):
- "Convert extension of destination to output image format"
+ def getdestination(self, origin):
+ "Convert origin path to destination path."
+ "Changes extension of destination to output image format."
+ destination = OutputPath(origin)
forceformat = '.jpg'
forcedest = '.png'
if Options.forceformat:
@@ -58,6 +60,7 @@
forcedest = Options.forceformat
if not destination.hasext(forceformat):
destination.changeext(forcedest)
+ destination.removebackdirs()
return destination
def convert(self, params):
Modified: elyxer/branches/upstream/current/src/gen/inset.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/gen/inset.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/gen/inset.py (original)
+++ elyxer/branches/upstream/current/src/gen/inset.py Wed Oct 28 14:49:48 2009
@@ -29,6 +29,7 @@
from gen.container import *
from gen.structure import *
from gen.layout import *
+from gen.factory import *
class InsetText(Container):
@@ -162,4 +163,20 @@
return
self.output.settag(TagConfig.boxes[self.type], True)
+class IncludeInset(Container):
+ "A child document included within another."
+ # the converter factory will be set in converter.py
+ converterfactory = None
+
+ def __init__(self):
+ self.parser = InsetParser()
+ self.output = ContentsOutput()
+
+ def process(self):
+ "Include the provided child document"
+ self.filename = self.parser.parameters['filename']
+ Trace.debug('Child document: ' + self.filename)
+ converter = IncludeInset.converterfactory.create(self.filename)
+ converter.convert()
+
Modified: elyxer/branches/upstream/current/src/gen/toc.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/gen/toc.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/gen/toc.py (original)
+++ elyxer/branches/upstream/current/src/gen/toc.py Wed Oct 28 14:49:48 2009
@@ -36,7 +36,13 @@
self.depth = 0
Options.nocopy = True
- def writetoc(self, container):
+ def clone(self, filterheader):
+ "Return a cloned copy."
+ clone = TOCWriter()
+ clone.writer = self.writer
+ return clone
+
+ def write(self, container):
"Write the table of contents for a container."
if container.__class__ in [LyxHeader, LyxFooter]:
self.writeheaderfooter(container)
Modified: elyxer/branches/upstream/current/src/io/convert.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/io/convert.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/io/convert.py (original)
+++ elyxer/branches/upstream/current/src/io/convert.py Wed Oct 28 14:49:48 2009
@@ -24,11 +24,12 @@
# http://www.nongnu.org/elyxer/
+import os.path
from io.fileline import *
from util.options import *
from gen.factory import *
from gen.toc import *
-from gen.structure import *
+from gen.inset import *
from post.postprocess import *
from post.postlist import *
from post.posttable import *
@@ -38,34 +39,62 @@
class eLyXerConverter(object):
"Converter for a document in a lyx file"
- def __init__(self, ioparser):
- "Create the converter"
+ latestwriter = None
+
+ def setio(self, ioparser):
+ "Set the InOutParser"
self.reader = LineReader(ioparser.filein)
- self.writer = LineWriter(ioparser.fileout)
+ linewriter = LineWriter(ioparser.fileout)
+ if Options.toc:
+ self.writer = TOCWriter(linewriter)
+ else:
+ self.writer = ContainerWriter(linewriter)
+ eLyXerConverter.latestwriter = self.writer
+ return self
+
+ def embed(self, filein):
+ "Embed the results for a new input file into the latest output file."
+ "Header and footer are ignored. Useful for embedding one document inside another."
+ self.reader = LineReader(filein)
+ self.writer = eLyXerConverter.latestwriter.clone(filterheader = True)
+ return self
def convert(self):
"Perform the conversion for the document"
try:
- if Options.toc:
- # generate TOC
- writer = TOCWriter(self.writer)
- self.processcontents(lambda container: writer.writetoc(container))
- else:
- # generate converted document
- self.processcontents(lambda container: self.writer.write(container.gethtml()))
+ self.processcontents()
except (Exception):
Trace.error('Conversion failed at ' + self.reader.currentline())
raise
- def processcontents(self, write):
+ def processcontents(self):
"Parse the contents and write it by containers"
factory = ContainerFactory()
- postproc = Postprocessor()
+ self.postproc = Postprocessor()
while not self.reader.finished():
containers = factory.createsome(self.reader)
for container in containers:
- container = postproc.postprocess(container)
- write(container)
+ container = self.postproc.postprocess(container)
+ self.writer.write(container)
+
+class ContainerWriter(object):
+ "A writer of containers. Just writes them out to a line writer."
+
+ def __init__(self, linewriter):
+ self.linewriter = linewriter
+ self.filterheader = False
+
+ def clone(self, filterheader):
+ "Clone the writer."
+ clone = ContainerWriter(self.linewriter)
+ clone.filterheader = filterheader
+ return clone
+
+ def write(self, container):
+ "Write a container to the line writer."
+ if self.filterheader and container.__class__ in [LyxHeader, LyxFooter]:
+ return
+ self.linewriter.write(container.gethtml())
class InOutParser(object):
"Parse in and out arguments"
@@ -94,3 +123,13 @@
raise Exception('Unused arguments: ' + unicode(args))
return self
+class ConverterFactory(object):
+ "Create a converter fit for converting a filename and embedding the result."
+
+ def create(self, filename):
+ "Create a converter for a given filename."
+ fullname = os.path.join(Options.directory, filename)
+ return eLyXerConverter().embed(fullname)
+
+IncludeInset.converterfactory = ConverterFactory()
+
Modified: elyxer/branches/upstream/current/src/io/path.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/io/path.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/io/path.py (original)
+++ elyxer/branches/upstream/current/src/io/path.py Wed Oct 28 14:49:48 2009
@@ -96,3 +96,14 @@
if len(dir) > 0 and not os.path.exists(dir):
os.makedirs(dir)
+ def removebackdirs(self):
+ "Remove any occurrences of ../ (or ..\ on Windows)"
+ self.path = os.path.normpath(self.path)
+ backdir = '..' + os.path.sep
+ while self.path.startswith(backdir):
+ Trace.debug('Backdir in: ' + self.path)
+ self.path = self.path[len(backdir):]
+ while self.url.startswith('../'):
+ Trace.debug('Backdir in: ' + self.url)
+ self.url = self.url[len('../'):]
+
Modified: elyxer/branches/upstream/current/src/math/bits.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/math/bits.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/math/bits.py (original)
+++ elyxer/branches/upstream/current/src/math/bits.py Wed Oct 28 14:49:48 2009
@@ -131,7 +131,6 @@
self.add(self.inner)
return
if pos.finished():
- Trace.error('Unexpected end of bracket')
return
if pos.current() != self.ending:
Trace.error('No formula in bracket at ' + pos.remaining())
Modified: elyxer/branches/upstream/current/src/math/command.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/math/command.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/math/command.py (original)
+++ elyxer/branches/upstream/current/src/math/command.py Wed Oct 28 14:49:48 2009
@@ -244,8 +244,7 @@
commandmap = FormulaConfig.fractionfunctions
def parsebit(self, pos):
- "Parse a fraction function with two parameters"
- tags = self.translated
+ "Parse a fraction function with two parameters (optional alignment)"
self.output = TaggedOutput().settag(self.translated[0])
align = self.parsesquare(pos)
parameter1 = self.parseparameter(pos)
@@ -269,10 +268,28 @@
parameter1.type = 'font'
parameter2.type = 'font'
+class SpacingFunction(CommandBit):
+ "A spacing function with two parameters"
+
+ commandmap = FormulaConfig.spacingfunctions
+
+ def parsebit(self, pos):
+ "Parse a spacing function with two parameters"
+ parameter1 = Bracket().parseliteral(pos)
+ if not parameter1:
+ Trace.error('Missing first {} in function ' + self.translated[0])
+ return
+ parameter2 = self.parseparameter(pos)
+ if not parameter2:
+ Trace.error('Missing second {} in function ' + self.translated[0])
+ return
+ self.output = TaggedOutput().settag(self.translated +
+ ' style="vertical-align:' + parameter1.literal + '"')
+
FormulaFactory.bits += [FormulaCommand(), SymbolFunction()]
FormulaCommand.commandbits = [
EmptyCommand(), AlphaCommand(), OneParamFunction(), DecoratingFunction(),
FractionFunction(), FontFunction(), LabelFunction(), TextFunction(),
- HybridFunction(),
+ HybridFunction(), SpacingFunction(),
]
Modified: elyxer/branches/upstream/current/src/principal.py
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/src/principal.py?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/src/principal.py (original)
+++ elyxer/branches/upstream/current/src/principal.py Wed Oct 28 14:49:48 2009
@@ -51,7 +51,7 @@
readdir(ioparser.fileout, 'destdirectory')
else:
Options.destdirectory = '.'
- converter = eLyXerConverter(ioparser)
+ converter = eLyXerConverter().setio(ioparser)
converter.convert()
def main():
Modified: elyxer/branches/upstream/current/test/appendix-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/appendix-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/appendix-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/appendix-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Appendix Test</title>
</head>
Modified: elyxer/branches/upstream/current/test/appendix-1-6-2-toc-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/appendix-1-6-2-toc-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/appendix-1-6-2-toc-test.html (original)
+++ elyxer/branches/upstream/current/test/appendix-1-6-2-toc-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/toc.css" type="text/css" media="screen"/>
<title>Appendix Test</title>
</head>
Modified: elyxer/branches/upstream/current/test/bibtex-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/bibtex-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/bibtex-test.html (original)
+++ elyxer/branches/upstream/current/test/bibtex-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Modified: elyxer/branches/upstream/current/test/branches-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/branches-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/branches-test.html (original)
+++ elyxer/branches/upstream/current/test/branches-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Modified: elyxer/branches/upstream/current/test/decorations-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/decorations-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/decorations-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/decorations-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Decorations Test</title>
</head>
Modified: elyxer/branches/upstream/current/test/descriptions-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/descriptions-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/descriptions-test.html (original)
+++ elyxer/branches/upstream/current/test/descriptions-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Added: elyxer/branches/upstream/current/test/docs/elyxer.jpg
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/docs/elyxer.jpg?rev=671&op=file
==============================================================================
Binary file - no diff available.
Propchange: elyxer/branches/upstream/current/test/docs/elyxer.jpg
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: elyxer/branches/upstream/current/test/docs/elyxer.png
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/docs/elyxer.png?rev=671&op=file
==============================================================================
Binary file - no diff available.
Propchange: elyxer/branches/upstream/current/test/docs/elyxer.png
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Modified: elyxer/branches/upstream/current/test/file-1-6-2-good.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/file-1-6-2-good.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/file-1-6-2-good.html (original)
+++ elyxer/branches/upstream/current/test/file-1-6-2-good.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-18"/>
+<meta name="create-date" content="2009-10-25"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
@@ -35,6 +35,15 @@
With some more text.
</div>
<div class="Standard">
+Now we include a different document.
+</div>
+<div class="Standard">
+Hello world
+</div>
+<div class="Standard">
+
+</div>
+<div class="Standard">
<h1 class="index">Index</h1>
</div>
Modified: elyxer/branches/upstream/current/test/file-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/file-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/file-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/file-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
@@ -35,6 +35,15 @@
With some more text.
</div>
<div class="Standard">
+Now we include a different document.
+</div>
+<div class="Standard">
+Hello world
+</div>
+<div class="Standard">
+
+</div>
+<div class="Standard">
<h1 class="index">Index</h1>
</div>
Modified: elyxer/branches/upstream/current/test/file-1-6-2.lyx
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/file-1-6-2.lyx?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/file-1-6-2.lyx (original)
+++ elyxer/branches/upstream/current/test/file-1-6-2.lyx Wed Oct 28 14:49:48 2009
@@ -1,4 +1,4 @@
-#LyX 1.6.2 created this file. For more info see http://www.lyx.org/
+#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
@@ -100,6 +100,20 @@
\end_layout
\begin_layout Standard
+Now we include a different document.
+\end_layout
+
+\begin_layout Standard
+\begin_inset CommandInset include
+LatexCommand include
+filename "helloworld.lyx"
+
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
\begin_inset CommandInset index_print
LatexCommand printindex
Modified: elyxer/branches/upstream/current/test/footnotes-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/footnotes-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/footnotes-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/footnotes-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Modified: elyxer/branches/upstream/current/test/helloworld-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/helloworld-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/helloworld-test.html (original)
+++ elyxer/branches/upstream/current/test/helloworld-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Modified: elyxer/branches/upstream/current/test/index-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/index-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/index-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/index-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Index Test</title>
</head>
Modified: elyxer/branches/upstream/current/test/lists-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/lists-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/lists-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/lists-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Modified: elyxer/branches/upstream/current/test/math-1-6-2-good.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/math-1-6-2-good.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/math-1-6-2-good.html (original)
+++ elyxer/branches/upstream/current/test/math-1-6-2-good.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-27"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Math Test</title>
</head>
@@ -215,7 +215,25 @@
</span>
</div>
<h1 class="Chapter">
-<a class="toc" name="toc-Chapter-7">7</a>âFonts
+<a class="toc" name="toc-Chapter-7">7</a>âSpacing
+</h1>
+<div class="Standard">
+The command <tt>\raisebox</tt> is useful to, surprisingly, raise a little box.
+</div>
+<div class="Standard">
+<span class="formula"><span class="raisebox" style="vertical-align:2mm"><i>raised</i></span><i>over</i><span class="raisebox" style="vertical-align:-2mm"><i>lowered</i></span><span class="mathrm">and back</span>.</span>
+</div>
+<div class="Standard">
+It can also be used just for spacing.
+</div>
+<div class="Standard">
+<span class="formula"><span class="raisebox" style="vertical-align:5mm"></span><i>B</i><sup><i>V</i></sup></span>.
+</div>
+<div class="Standard">
+There are other spacings commands.
+</div>
+<h1 class="Chapter">
+<a class="toc" name="toc-Chapter-8">8</a>âFonts
</h1>
<div class="Standard">
Fonts can be switched on and off.
@@ -233,7 +251,7 @@
Units can be shown with or without a magnitude. Withouth: <span class="formula"><span class="unit">km</span></span>. With: <span class="formula">57â
<span class="unit">km</span></span>. With a fraction: <span class="formula"><span class="fraction">20â
<sup class="unit">km</sup>â<sub class="unit">h</sub></span></span>.
</div>
<h1 class="Chapter">
-<a class="toc" name="toc-Chapter-8">8</a>âBye-bye
+<a class="toc" name="toc-Chapter-9">9</a>âBye-bye
</h1>
<div class="Standard">
Thatâs all folks!
Modified: elyxer/branches/upstream/current/test/math-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/math-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/math-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/math-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Math Test</title>
</head>
@@ -215,7 +215,25 @@
</span>
</div>
<h1 class="Chapter">
-<a class="toc" name="toc-Chapter-7">7</a>âFonts
+<a class="toc" name="toc-Chapter-7">7</a>âSpacing
+</h1>
+<div class="Standard">
+The command <tt>\raisebox</tt> is useful to, surprisingly, raise a little box.
+</div>
+<div class="Standard">
+<span class="formula"><span class="raisebox" style="vertical-align:2mm"><i>raised</i></span><i>over</i><span class="raisebox" style="vertical-align:-2mm"><i>lowered</i></span><span class="mathrm">and back</span>.</span>
+</div>
+<div class="Standard">
+It can also be used just for spacing.
+</div>
+<div class="Standard">
+<span class="formula"><span class="raisebox" style="vertical-align:5mm"></span><i>B</i><sup><i>V</i></sup></span>.
+</div>
+<div class="Standard">
+There are other spacings commands.
+</div>
+<h1 class="Chapter">
+<a class="toc" name="toc-Chapter-8">8</a>âFonts
</h1>
<div class="Standard">
Fonts can be switched on and off.
@@ -233,7 +251,7 @@
Units can be shown with or without a magnitude. Withouth: <span class="formula"><span class="unit">km</span></span>. With: <span class="formula">57â
<span class="unit">km</span></span>. With a fraction: <span class="formula"><span class="fraction">20â
<sup class="unit">km</sup>â<sub class="unit">h</sub></span></span>.
</div>
<h1 class="Chapter">
-<a class="toc" name="toc-Chapter-8">8</a>âBye-bye
+<a class="toc" name="toc-Chapter-9">9</a>âBye-bye
</h1>
<div class="Standard">
Thatâs all folks!
Modified: elyxer/branches/upstream/current/test/math-1-6-2.lyx
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/math-1-6-2.lyx?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/math-1-6-2.lyx (original)
+++ elyxer/branches/upstream/current/test/math-1-6-2.lyx Wed Oct 28 14:49:48 2009
@@ -403,6 +403,42 @@
\end_layout
\begin_layout Chapter
+Spacing
+\end_layout
+
+\begin_layout Standard
+The command
+\family typewriter
+
+\backslash
+raisebox
+\family default
+ is useful to, surprisingly, raise a little box.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Formula $\raisebox{2mm}{raised}over\raisebox{-2mm}{lowered}\textrm{and back}.$
+\end_inset
+
+
+\end_layout
+
+\begin_layout Standard
+It can also be used just for spacing.
+\end_layout
+
+\begin_layout Standard
+\begin_inset Formula $\raisebox{5mm}{}B^{V}$
+\end_inset
+
+.
+\end_layout
+
+\begin_layout Standard
+There are other spacings commands.
+\end_layout
+
+\begin_layout Chapter
Fonts
\end_layout
@@ -461,7 +497,7 @@
.
Regular text can be embedded into formulae:
-\begin_inset Formula $\textrm{regular text \backslash command \backslash another command \backslash \backslash no spaces allowed}$
+\begin_inset Formula $\textrm{regular text \backslash command \backslash another command \backslash\backslash no spaces allowed}$
\end_inset
.
Modified: elyxer/branches/upstream/current/test/subdir/appendix-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/subdir/appendix-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/subdir/appendix-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/subdir/appendix-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../../docs/lyx.css" type="text/css" media="screen"/>
<title>Appendix Test</title>
</head>
Modified: elyxer/branches/upstream/current/test/table-1-6-2-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/table-1-6-2-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/table-1-6-2-test.html (original)
+++ elyxer/branches/upstream/current/test/table-1-6-2-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
Modified: elyxer/branches/upstream/current/test/with images-good.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/with%20images-good.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/with images-good.html (original)
+++ elyxer/branches/upstream/current/test/with images-good.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-18"/>
+<meta name="create-date" content="2009-10-25"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
@@ -22,7 +22,7 @@
Second image: convoluted path.
</div>
<div class="Standard">
-<img class="embedded" src="../docs/elyxer.png" alt="figure ../docs/elyxer.png" width="111" height="111"/>
+<img class="embedded" src="docs/elyxer.png" alt="figure docs/elyxer.png" width="111" height="111"/>
Third image: from another directory.
</div>
<div class="Standard">
Modified: elyxer/branches/upstream/current/test/with images-html-good.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/with%20images-html-good.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/with images-html-good.html (original)
+++ elyxer/branches/upstream/current/test/with images-html-good.html Wed Oct 28 14:49:48 2009
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="http://www.nongnu.org/elyxer/">
-<meta name="create-date" content="2009-10-18">
+<meta name="create-date" content="2009-10-25">
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen">
<title>Converted document</title>
</head>
@@ -21,7 +21,7 @@
Second image: convoluted path.
</div>
<div class="Standard">
-<img class="embedded" src="../docs/elyxer.png" alt="figure ../docs/elyxer.png" width="111" height="111">
+<img class="embedded" src="docs/elyxer.png" alt="figure docs/elyxer.png" width="111" height="111">
Third image: from another directory.
</div>
<div class="Standard">
Modified: elyxer/branches/upstream/current/test/with images-html-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/with%20images-html-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/with images-html-test.html (original)
+++ elyxer/branches/upstream/current/test/with images-html-test.html Wed Oct 28 14:49:48 2009
@@ -3,7 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="http://www.nongnu.org/elyxer/">
-<meta name="create-date" content="2009-10-19">
+<meta name="create-date" content="2009-10-28">
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen">
<title>Converted document</title>
</head>
@@ -21,7 +21,7 @@
Second image: convoluted path.
</div>
<div class="Standard">
-<img class="embedded" src="../docs/elyxer.png" alt="figure ../docs/elyxer.png" width="111" height="111">
+<img class="embedded" src="docs/elyxer.png" alt="figure docs/elyxer.png" width="111" height="111">
Third image: from another directory.
</div>
<div class="Standard">
Modified: elyxer/branches/upstream/current/test/with images-jpg-good.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/with%20images-jpg-good.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/with images-jpg-good.html (original)
+++ elyxer/branches/upstream/current/test/with images-jpg-good.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-18"/>
+<meta name="create-date" content="2009-10-25"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
@@ -22,7 +22,7 @@
Second image: convoluted path.
</div>
<div class="Standard">
-<img class="embedded" src="../docs/elyxer.jpg" alt="figure ../docs/elyxer.jpg" width="111" height="111"/>
+<img class="embedded" src="docs/elyxer.jpg" alt="figure docs/elyxer.jpg" width="111" height="111"/>
Third image: from another directory.
</div>
<div class="Standard">
Modified: elyxer/branches/upstream/current/test/with images-jpg-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/with%20images-jpg-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/with images-jpg-test.html (original)
+++ elyxer/branches/upstream/current/test/with images-jpg-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
@@ -22,7 +22,7 @@
Second image: convoluted path.
</div>
<div class="Standard">
-<img class="embedded" src="../docs/elyxer.jpg" alt="figure ../docs/elyxer.jpg" width="111" height="111"/>
+<img class="embedded" src="docs/elyxer.jpg" alt="figure docs/elyxer.jpg" width="111" height="111"/>
Third image: from another directory.
</div>
<div class="Standard">
Modified: elyxer/branches/upstream/current/test/with images-test.html
URL: http://svn.debian.org/wsvn/pkg-lyx/elyxer/branches/upstream/current/test/with%20images-test.html?rev=671&op=diff
==============================================================================
--- elyxer/branches/upstream/current/test/with images-test.html (original)
+++ elyxer/branches/upstream/current/test/with images-test.html Wed Oct 28 14:49:48 2009
@@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
-<meta name="create-date" content="2009-10-19"/>
+<meta name="create-date" content="2009-10-28"/>
<link rel="stylesheet" href="../docs/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
@@ -22,7 +22,7 @@
Second image: convoluted path.
</div>
<div class="Standard">
-<img class="embedded" src="../docs/elyxer.png" alt="figure ../docs/elyxer.png" width="111" height="111"/>
+<img class="embedded" src="docs/elyxer.png" alt="figure docs/elyxer.png" width="111" height="111"/>
Third image: from another directory.
</div>
<div class="Standard">
More information about the Pkg-lyx-devel
mailing list