Last fixes for 1.0 beta

git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@9 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
henrikjust 2009-03-25 18:58:29 +00:00
parent fe1b3e2fc5
commit be54e842f4
6 changed files with 83 additions and 73 deletions

View file

@ -2,6 +2,10 @@ Changelog for Writer2LaTeX version 0.5 -> 1.0
---------- version 1.0 beta ---------- ---------- version 1.0 beta ----------
[w2x] Added german translation from Raphael Fetzer
[w2x] Do not export character formatting in toc
[w2l] Bugfix: Added missing hyperlink targets for frames and graphics [w2l] Bugfix: Added missing hyperlink targets for frames and graphics
[w2x] Bugfix: Fixed null pointer exception for text frames without height attribute [w2x] Bugfix: Fixed null pointer exception for text frames without height attribute

Binary file not shown.

View file

@ -1,19 +1,20 @@
@echo off @echo off
rem *Very* simple batch file to run Writer2LaTeX rem *Very* simple batch file to run Writer2LaTeX
rem Created by Henrik Just, october 2003 rem Created by Henrik Just, october 2003
rem Modfied december 2003 as suggested by Juan Julian Merelo Guervos rem Modfied december 2003 as suggested by Juan Julian Merelo Guervos
rem Last modified july 2007 rem Last modified july 2007
rem Please edit the following line to contain the full path to Writer2LaTeX: rem Please edit the following line to contain the full path to Writer2LaTeX:
set W2LPATH="c:\writer2latex09" set W2LPATH="c:\writer2latex10"
rem If the Java executable is not in your path, please edit the following rem If the Java executable is not in your path, please edit the following
rem line to contain the full path and file name rem line to contain the full path and file name
set JAVAEXE="java" set JAVAEXE="java"
%JAVAEXE% -jar %W2LPATH%\writer2latex.jar %1 %2 %3 %4 %5 %6 %7 %8 %9 %JAVAEXE% -jar %W2LPATH%\writer2latex.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
set W2LPATH= set W2LPATH=
set JAVAEXE= set JAVAEXE=

View file

@ -20,7 +20,7 @@
* *
* All Rights Reserved. * All Rights Reserved.
* *
* Version 1.0 (2009-03-08) * Version 1.0 (2009-03-25)
* *
*/ */
@ -33,7 +33,7 @@ public class ConverterFactory {
// Version information // Version information
private static final String VERSION = "1.0 beta"; private static final String VERSION = "1.0 beta";
private static final String DATE = "2008-03-08"; private static final String DATE = "2008-03-25";
/** Return version information /** Return version information
* @return the Writer2LaTeX version in the form * @return the Writer2LaTeX version in the form

View file

@ -16,11 +16,11 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA * MA 02111-1307 USA
* *
* Copyright: 2002-2008 by Henrik Just * Copyright: 2002-2009 by Henrik Just
* *
* All Rights Reserved. * All Rights Reserved.
* *
* Version 1.0 (2008-11-22) * Version 1.0 (2009-03-10)
* *
*/ */
@ -1470,9 +1470,14 @@ public class TextConverter extends ConverterHelper {
} }
private void handleSpan(Node onode, Node hnode) { private void handleSpan(Node onode, Node hnode) {
String sStyleName = Misc.getAttribute(onode,XMLString.TEXT_STYLE_NAME); if (!bInToc) {
Element span = createInline((Element) hnode,sStyleName); String sStyleName = Misc.getAttribute(onode,XMLString.TEXT_STYLE_NAME);
traverseInlineText (onode,span); Element span = createInline((Element) hnode,sStyleName);
traverseInlineText(onode,span);
}
else {
traverseInlineText(onode,hnode);
}
} }
private void traversePCDATA(Node onode, Node hnode) { private void traversePCDATA(Node onode, Node hnode) {

View file

@ -1,45 +1,45 @@
# Strings for Dialog Library W2XDialogs (untranslated) # Strings for Dialog Library W2XDialogs
0.XhtmlOptions.HelpText= 0.XhtmlOptions.HelpText=
1.XhtmlOptions.Title=XHTML Options (Writer2xhtml) 1.XhtmlOptions.Title=XHTML Optionen (Writer2xhtml)
2.XhtmlOptions.StyleLabel.HelpText= 2.XhtmlOptions.StyleLabel.HelpText=
3.XhtmlOptions.StyleLabel.Label=Style 3.XhtmlOptions.StyleLabel.Label=Stil
4.XhtmlOptions.ConfigLabel.HelpText= 4.XhtmlOptions.ConfigLabel.HelpText=
5.XhtmlOptions.ConfigLabel.Label=Use style 5.XhtmlOptions.ConfigLabel.Label=Folgenden Stil verwenden
6.XhtmlOptions.Config.HelpText= 6.XhtmlOptions.Config.HelpText=
17.XhtmlOptions.ScalingLabel.HelpText= 17.XhtmlOptions.ScalingLabel.HelpText=
18.XhtmlOptions.ScalingLabel.Label=Scaling 18.XhtmlOptions.ScalingLabel.Label=Skalierung
19.XhtmlOptions.Scaling.HelpText= 19.XhtmlOptions.Scaling.HelpText=
20.XhtmlOptions.ScalingPercentLabel.HelpText= 20.XhtmlOptions.ScalingPercentLabel.HelpText=
21.XhtmlOptions.ScalingPercentLabel.Label=% 21.XhtmlOptions.ScalingPercentLabel.Label=%
22.XhtmlOptions.ColumnScalingLabel.HelpText= 22.XhtmlOptions.ColumnScalingLabel.HelpText=
23.XhtmlOptions.ColumnScalingLabel.Label=Column scaling 23.XhtmlOptions.ColumnScalingLabel.Label=Spaltenskalierung
24.XhtmlOptions.ColumnScaling.HelpText= 24.XhtmlOptions.ColumnScaling.HelpText=
25.XhtmlOptions.ColumnScalingPercentLabel.HelpText= 25.XhtmlOptions.ColumnScalingPercentLabel.HelpText=
26.XhtmlOptions.ColumnScalingPercentLabel.Label=% 26.XhtmlOptions.ColumnScalingPercentLabel.Label=%
27.XhtmlOptions.ConvertToPx.HelpText= 27.XhtmlOptions.ConvertToPx.HelpText=
28.XhtmlOptions.ConvertToPx.Label=Convert units to px (pixels) 28.XhtmlOptions.ConvertToPx.Label=Einheiten in px (Pixel) umwandeln
29.XhtmlOptions.OriginalImageSize.HelpText= 29.XhtmlOptions.OriginalImageSize.HelpText=
30.XhtmlOptions.OriginalImageSize.Label=Use original image size 30.XhtmlOptions.OriginalImageSize.Label=Original Bildgr\u00f6\u00dfe verwenden
31.XhtmlOptions.SpecialContentLabel.HelpText= 31.XhtmlOptions.SpecialContentLabel.HelpText=
32.XhtmlOptions.SpecialContentLabel.Label=Special content 32.XhtmlOptions.SpecialContentLabel.Label=Besonderer Inhalt
33.XhtmlOptions.Notes.HelpText= 33.XhtmlOptions.Notes.HelpText=
34.XhtmlOptions.Notes.Label=Export notes 34.XhtmlOptions.Notes.Label=Notizen exportieren
35.XhtmlOptions.UseDublinCore.HelpText= 35.XhtmlOptions.UseDublinCore.HelpText=
36.XhtmlOptions.UseDublinCore.Label=Export document properties (Dublin Core Metadata) 36.XhtmlOptions.UseDublinCore.Label=Dokumenteneigenschaften exportieren (Dublin Core Metadata)
37.XhtmlOptions.AutoCorrectLabel.HelpText= 37.XhtmlOptions.AutoCorrectLabel.HelpText=
38.XhtmlOptions.AutoCorrectLabel.Label=AutoCorrect 38.XhtmlOptions.AutoCorrectLabel.Label=Autokorrektur
39.XhtmlOptions.IgnoreHardLineBreaks.HelpText= 39.XhtmlOptions.IgnoreHardLineBreaks.HelpText=
40.XhtmlOptions.IgnoreHardLineBreaks.Label=Ignore hard line breaks 40.XhtmlOptions.IgnoreHardLineBreaks.Label=Harte Zeilenumbr\u00fcche ignorieren
41.XhtmlOptions.IgnoreEmptyParagraphs.HelpText= 41.XhtmlOptions.IgnoreEmptyParagraphs.HelpText=
42.XhtmlOptions.IgnoreEmptyParagraphs.Label=Ignore empty paragraphs 42.XhtmlOptions.IgnoreEmptyParagraphs.Label=Leere Abs\u00e4tze ignorieren
43.XhtmlOptions.IgnoreDoubleSpaces.HelpText= 43.XhtmlOptions.IgnoreDoubleSpaces.HelpText=
44.XhtmlOptions.IgnoreDoubleSpaces.Label=Ignore double spaces 44.XhtmlOptions.IgnoreDoubleSpaces.Label=Doppelte Leerzeichen ignorieren
45.XhtmlOptions.FilesLabel.HelpText= 45.XhtmlOptions.FilesLabel.HelpText=
46.XhtmlOptions.FilesLabel.Label=Files 46.XhtmlOptions.FilesLabel.Label=Dateien
47.XhtmlOptions.Split.HelpText= 47.XhtmlOptions.Split.HelpText=
48.XhtmlOptions.Split.Label=Split document at headings 48.XhtmlOptions.Split.Label=Dokumente bei \u00dcberschriften trennen
49.XhtmlOptions.SplitLevelLabel.HelpText= 49.XhtmlOptions.SplitLevelLabel.HelpText=
50.XhtmlOptions.SplitLevelLabel.Label=Heading level 50.XhtmlOptions.SplitLevelLabel.Label=\u00dcberschriftenlevel
51.XhtmlOptions.SplitLevel.HelpText= 51.XhtmlOptions.SplitLevel.HelpText=
52.SplitLevel.StringItemList=1 52.SplitLevel.StringItemList=1
53.SplitLevel.StringItemList=2 53.SplitLevel.StringItemList=2
@ -48,7 +48,7 @@
56.SplitLevel.StringItemList=5 56.SplitLevel.StringItemList=5
57.SplitLevel.StringItemList=6 57.SplitLevel.StringItemList=6
58.XhtmlOptions.RepeatLevelsLabel.HelpText= 58.XhtmlOptions.RepeatLevelsLabel.HelpText=
59.XhtmlOptions.RepeatLevelsLabel.Label=Repeat heading levels 59.XhtmlOptions.RepeatLevelsLabel.Label=\u00dcberschriftenlevel wiederholen
60.XhtmlOptions.RepeatLevels.HelpText= 60.XhtmlOptions.RepeatLevels.HelpText=
61.RepeatLevels.StringItemList=0 61.RepeatLevels.StringItemList=0
62.RepeatLevels.StringItemList=1 62.RepeatLevels.StringItemList=1
@ -57,67 +57,67 @@
65.RepeatLevels.StringItemList=4 65.RepeatLevels.StringItemList=4
66.RepeatLevels.StringItemList=5 66.RepeatLevels.StringItemList=5
67.XhtmlOptions.SaveImagesInSubdir.HelpText= 67.XhtmlOptions.SaveImagesInSubdir.HelpText=
68.XhtmlOptions.SaveImagesInSubdir.Label=Save images in subdirectory 68.XhtmlOptions.SaveImagesInSubdir.Label=Bilder in Unterverzeichnis speichern
69.XhtmlOptions.XsltPathLabel.HelpText= 69.XhtmlOptions.XsltPathLabel.HelpText=
70.XhtmlOptions.XsltPathLabel.Label=XSLT path 70.XhtmlOptions.XsltPathLabel.Label=XSLT path
71.XhtmlOptions.XsltPath.HelpText= 71.XhtmlOptions.XsltPath.HelpText=
72.XhtmlOptions.XsltPath.Text= 72.XhtmlOptions.XsltPath.Text=
73.XhtmlOptions.ExportButton.HelpText= 73.XhtmlOptions.ExportButton.HelpText=
74.XhtmlOptions.ExportButton.Label=Export 74.XhtmlOptions.ExportButton.Label=Exportieren
75.XhtmlOptions.CancelButton.HelpText= 75.XhtmlOptions.CancelButton.HelpText=
76.XhtmlOptions.CancelButton.Label=Cancel 76.XhtmlOptions.CancelButton.Label=Abbrechen
77.XhtmlOptionsCalc.HelpText= 77.XhtmlOptionsCalc.HelpText=
78.XhtmlOptionsCalc.Title=XHTML Options (Calc2xhtml) 78.XhtmlOptionsCalc.Title=XHTML Optionen (Calc2xhtml)
79.XhtmlOptionsCalc.StyleLabel.HelpText= 79.XhtmlOptionsCalc.StyleLabel.HelpText=
80.XhtmlOptionsCalc.StyleLabel.Label=Style 80.XhtmlOptionsCalc.StyleLabel.Label=Stil
81.XhtmlOptionsCalc.ConfigLabel.HelpText= 81.XhtmlOptionsCalc.ConfigLabel.HelpText=
82.XhtmlOptionsCalc.ConfigLabel.Label=Use style 82.XhtmlOptionsCalc.ConfigLabel.Label=Folgenden Stil verwenden
83.XhtmlOptionsCalc.Config.HelpText= 83.XhtmlOptionsCalc.Config.HelpText=
86.XhtmlOptionsCalc.ScalingLabel.HelpText= 86.XhtmlOptionsCalc.ScalingLabel.HelpText=
87.XhtmlOptionsCalc.ScalingLabel.Label=Scaling 87.XhtmlOptionsCalc.ScalingLabel.Label=Skalierung
88.XhtmlOptionsCalc.Scaling.HelpText= 88.XhtmlOptionsCalc.Scaling.HelpText=
89.XhtmlOptionsCalc.ScalingPercentLabel.HelpText= 89.XhtmlOptionsCalc.ScalingPercentLabel.HelpText=
90.XhtmlOptionsCalc.ScalingPercentLabel.Label=% 90.XhtmlOptionsCalc.ScalingPercentLabel.Label=%
91.XhtmlOptionsCalc.ColumnScalingLabel.HelpText= 91.XhtmlOptionsCalc.ColumnScalingLabel.HelpText=
92.XhtmlOptionsCalc.ColumnScalingLabel.Label=Column scaling 92.XhtmlOptionsCalc.ColumnScalingLabel.Label=Spaltenskalierung
93.XhtmlOptionsCalc.ColumnScaling.HelpText= 93.XhtmlOptionsCalc.ColumnScaling.HelpText=
94.XhtmlOptionsCalc.ColumnScalingPercentLabel.HelpText= 94.XhtmlOptionsCalc.ColumnScalingPercentLabel.HelpText=
95.XhtmlOptionsCalc.ColumnScalingPercentLabel.Label=% 95.XhtmlOptionsCalc.ColumnScalingPercentLabel.Label=%
96.XhtmlOptionsCalc.ConvertToPx.HelpText= 96.XhtmlOptionsCalc.ConvertToPx.HelpText=
97.XhtmlOptionsCalc.ConvertToPx.Label=Convert units to px (pixels) 97.XhtmlOptionsCalc.ConvertToPx.Label=Einheiten in px (Pixel) umwandeln
98.XhtmlOptionsCalc.OriginalImageSize.HelpText= 98.XhtmlOptionsCalc.OriginalImageSize.HelpText=
99.XhtmlOptionsCalc.OriginalImageSize.Label=Use original image size 99.XhtmlOptionsCalc.OriginalImageSize.Label=Original Bildgr\u00f6\u00dfe verwenden
100.XhtmlOptionsCalc.SpecialContentLabel.HelpText= 100.XhtmlOptionsCalc.SpecialContentLabel.HelpText=
101.XhtmlOptionsCalc.SpecialContentLabel.Label=Special content 101.XhtmlOptionsCalc.SpecialContentLabel.Label=Besonderer Inhalt
102.XhtmlOptionsCalc.Notes.HelpText= 102.XhtmlOptionsCalc.Notes.HelpText=
103.XhtmlOptionsCalc.Notes.Label=Export notes 103.XhtmlOptionsCalc.Notes.Label=Notizen exportieren
104.XhtmlOptionsCalc.UseDublinCore.HelpText= 104.XhtmlOptionsCalc.UseDublinCore.HelpText=
105.XhtmlOptionsCalc.UseDublinCore.Label=Export document properties (Dublin Core Metadata) 105.XhtmlOptionsCalc.UseDublinCore.Label=Dokumenteneigenschaften exportieren (Dublin Core Metadata)
106.XhtmlOptionsCalc.SheetsLabel.HelpText= 106.XhtmlOptionsCalc.SheetsLabel.HelpText=
107.XhtmlOptionsCalc.SheetsLabel.Label=Sheets 107.XhtmlOptionsCalc.SheetsLabel.Label=Tabellen
108.XhtmlOptionsCalc.DisplayHiddenSheets.HelpText= 108.XhtmlOptionsCalc.DisplayHiddenSheets.HelpText=
109.XhtmlOptionsCalc.DisplayHiddenSheets.Label=Display hidden sheets 109.XhtmlOptionsCalc.DisplayHiddenSheets.Label=Versteckte Tabellen anzeigen
110.XhtmlOptionsCalc.DisplayHiddenRowsCols.HelpText= 110.XhtmlOptionsCalc.DisplayHiddenRowsCols.HelpText=
111.XhtmlOptionsCalc.DisplayHiddenRowsCols.Label=Display hidden rows and columns 111.XhtmlOptionsCalc.DisplayHiddenRowsCols.Label=Versteckte Zeilen und Spalten anzeigen
112.XhtmlOptionsCalc.DisplayFilteredRowsCols.HelpText= 112.XhtmlOptionsCalc.DisplayFilteredRowsCols.HelpText=
113.XhtmlOptionsCalc.DisplayFilteredRowsCols.Label=Display filtered rows and columns 113.XhtmlOptionsCalc.DisplayFilteredRowsCols.Label=Gefilterte Zeilen und Spalten anzeigen
114.XhtmlOptionsCalc.ApplyPrintRanges.HelpText= 114.XhtmlOptionsCalc.ApplyPrintRanges.HelpText=
115.XhtmlOptionsCalc.ApplyPrintRanges.Label=Apply print ranges 115.XhtmlOptionsCalc.ApplyPrintRanges.Label=Druckr\u00e4nder anwenden
116.XhtmlOptionsCalc.UseTitleAsHeading.HelpText= 116.XhtmlOptionsCalc.UseTitleAsHeading.HelpText=
117.XhtmlOptionsCalc.UseTitleAsHeading.Label=Use title as heading 117.XhtmlOptionsCalc.UseTitleAsHeading.Label=Titel als \u00dcberschrift verwenden
118.XhtmlOptionsCalc.UseSheetNamesAsHeadings.HelpText= 118.XhtmlOptionsCalc.UseSheetNamesAsHeadings.HelpText=
119.XhtmlOptionsCalc.UseSheetNamesAsHeadings.Label=Use sheet names as headings 119.XhtmlOptionsCalc.UseSheetNamesAsHeadings.Label=Tabellennamen als \u00dcberschrift verwenden
120.XhtmlOptionsCalc.FilesLabel.HelpText= 120.XhtmlOptionsCalc.FilesLabel.HelpText=
121.XhtmlOptionsCalc.FilesLabel.Label=Files 121.XhtmlOptionsCalc.FilesLabel.Label=Dateien
122.XhtmlOptionsCalc.CalcSplit.HelpText= 122.XhtmlOptionsCalc.CalcSplit.HelpText=
123.XhtmlOptionsCalc.CalcSplit.Label=Save sheets in separate files 123.XhtmlOptionsCalc.CalcSplit.Label=Tabellen in seperate Dateien speichern
124.XhtmlOptionsCalc.SaveImagesInSubdir.HelpText= 124.XhtmlOptionsCalc.SaveImagesInSubdir.HelpText=
125.XhtmlOptionsCalc.SaveImagesInSubdir.Label=Save images in subdirectory 125.XhtmlOptionsCalc.SaveImagesInSubdir.Label=Bilder in Unterverzeichnis speichern
126.XhtmlOptionsCalc.ExportButton.HelpText= 126.XhtmlOptionsCalc.ExportButton.HelpText=
127.XhtmlOptionsCalc.ExportButton.Label=Export 127.XhtmlOptionsCalc.ExportButton.Label=Exportieren
128.XhtmlOptionsCalc.CancelButton.HelpText= 128.XhtmlOptionsCalc.CancelButton.HelpText=
129.XhtmlOptionsCalc.CancelButton.Label=Cancel 129.XhtmlOptionsCalc.CancelButton.Label=Abbrechen
130.Config.StringItemList=Original formatting 130.Config.StringItemList=Original Formatierungen
131.Config.StringItemList=Chocolate 131.Config.StringItemList=Chocolate
132.Config.StringItemList=Midnight 132.Config.StringItemList=Midnight
133.Config.StringItemList=Modernist 133.Config.StringItemList=Modernist
@ -126,6 +126,6 @@
136.Config.StringItemList=Swiss 136.Config.StringItemList=Swiss
137.Config.StringItemList=Traditional 137.Config.StringItemList=Traditional
138.Config.StringItemList=Ultramarine 138.Config.StringItemList=Ultramarine
139.Config.StringItemList=Custom 139.Config.StringItemList=Benutzerdefiniert
140.Config.StringItemList=Original formatting 140.Config.StringItemList=Original formatting
141.Config.StringItemList=Custom 141.Config.StringItemList=Benutzerdefiniert