export of multiline text to wmf, emf or sk1

Bug #655048 reported by wilfriedh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Medium
Unassigned

Bug Description

when exporting the attached file to wmf or emf, the axes labelling is NOT exported correctly by
- inkscape to wmf or emf without converting text to pathes
- inkscape to sk1 then using uniconvertor to wmf, emf, or ai
- inkscape to sk1 then using uniconvertor to svg then opening the converted svg in inkscape
Export IS correct by
- inkscape to emf with converting text to pathes

installed versions:
inkscape 0.48
uniconvertor 1.1.5
under Windows XP Pro SP3

The inkscape file was created by importing the 39th page (page no. 27) from
http://www.ewi.uni-koeln.de/fileadmin/user/Gutachten/2004_AuswirkungenEEG.pdf
The problem persists regardless whether I keep the text font as imported or after changing all text fonts to Arial (as is in the attached file).

Revision history for this message
wilfriedh (w-hennings) wrote :
Revision history for this message
su_v (suv-lp) wrote :

Does it make a difference if you remove the manual kerning from the text? When importing a PDF file with text, each letter is individually positioned inside the string. The command is available as menu 'Text > Remove Manual Kerns' - can you test with the bigger labels (the numbers along the axes get misplaced after removing the kerns)?

tags: added: emf exporting text wmf
Revision history for this message
su_v (suv-lp) wrote :

A possibly similar issue had been described recently in <http://thread.gmane.org/gmane.comp.graphics.inkscape.user/13517>, including a workaround to produce a differently coded PDF file where the labels along the axes are no longer inside one big text object each instead of an object per number.

<off-topic>: I haven't not tested the workaround myself, nor can I reproduce the error - no EMF export format on my platform, nor a version of UniConvertor available that handles text correctly </off-topic>.

Revision history for this message
wilfriedh (w-hennings) wrote :

> Does it make a difference if you remove the manual kerning from the text?

Yes, but only partially. Major problems remain:

In the exported wmf, right aligned text appears as if it had been left aligned, and all lines but the first are further shifted right. Furthermore, line spacing other than 100% is set to 100%.
If I make the text left aligned, wmf export is close to correct, the only remaining problem is incorrect line spacing.

In the exported sk1 -> svg, newlines (cr or lf) are left out so that the text which originally was multiline now appears in one long line.
In the original svg, each line is enclosed in <tspan ... ></tspan>; in the exported files, lines are separated only by newlines, which are or are not honored by the importers.

> A possibly similar issue had been described recently in
> <http://thread.gmane.org/gmane.comp.graphics.inkscape.user/13517>,
> including a workaround to produce a differently coded PDF file
> where the labels along the axes are no longer inside
> one big text object each instead of an object per number.

If I (manually) remove all but one line from the text
AND the text is left-aligned, wmf and sk1 exports are correct.
Exports are still misaligned if the texts are other than left aligned in inkscape.

In emf export, text position is nearly correct BUT even for single line text objects, rotation of text characters is lost. All characters are in portrait orientation, even for text which originally was in landscape orientation.

Revision history for this message
su_v (suv-lp) wrote :

Can you test with this file? It was created using the workaround described in the thread on inkscape-user (import single PDF page into OOo Draw, export as PDF again, open PDF in Inkscape).

Revision history for this message
wilfriedh (w-hennings) wrote :

Exporting from file "655048-page27-OOo-cleaned.svg" results in correctly placed and correctly aligned text, but text font is reverted to Times and text size is much smaller than in the original.

I experience more (probably unrelated) problems:

On WinXP:
When exporting to wmf I get the error message "uniconvertor failed" and a zero size file, depending on the output filename chosen. E.g. uniconvertor fails with "655048-page27-OOo-cleaned.wmf" and "655048-page27-OOo.wmf" but succeds with "655048-page27-OO.wmf"
The emf export works regardless of the filename.
Exporting "655048-page27-OOo-cleaned.sk1" works, and externally calling Uniconvertor on this file works, too.

On Vista: the export always fails and Vista issues the message "python has stopped working".

Should I issue separate bug reports for these problems, and also for the incorrectly unrotated characters in emf?

Revision history for this message
wilfriedh (w-hennings) wrote :

Hello,
I did a simple test:
I created an Inkscape drawing "texttest.svg" from scratch with default settings,
containing a single line text in normal orientation as well as rotated 90°ccw,
and a multi line text in normal orientation and rotated 90°ccw.

Then save a copy to wmf, to emf with text and to emf with text converted to pathes.
These three results inserted in MS Word and printed to "texttest.pdf" -- showing the already mentioned problems and (hopefully) viewable also on non-MSWin systems.

Furthermore,
save a copy to "texttest.eps" -- result is OK -- and
save a copy to "texttest.sk1" and using standalone Uniconvertor to convert testtext.sk1 file to "testtext.sk1.svg" showing the same problems.

All files noted above enclosed in "double quotes" are contained in the attached zip file.

Wilfried

Revision history for this message
wilfriedh (w-hennings) wrote :
Revision history for this message
Alvin Penner (apenner) wrote :

for emf export, without converting text to paths, I believe this has been fixed in bzr rev 10001, could you re-test and confirm? this is a patch for Bug 281262

Revision history for this message
su_v (suv-lp) wrote :

Alvin Penner wrote
> fixed in bzr rev 10001, (…) this is a patch for Bug 281262

See bug #681262 “EMF export on Windows ignores text rotation”
<https://bugs.launchpad.net/inkscape/+bug/681262>

> could you re-test and confirm?

Note that it might take a week or so until newer development builds for win32 are available for testing on
<http://inkscape.modevia.com/win32/?C=M;O=D> or
<http://www.oss-marketplace.com/index.php/downloads-mainmenu-63/Inkscape/Entwicklerversionen/>

tags: added: uniconvertor
removed: emf
Revision history for this message
su_v (suv-lp) wrote :

wilfriedh wrote:
> Should I issue separate bug reports for these problems, and
> also for the incorrectly unrotated characters in emf?

It might be useful to file separate report(s) for any remaining issues with EMF export (ignored transforms of text object has already been filed, see bug #681262) and keep this one focused on issues with text exported to UniConvertor-based formats (WMF, SK1). Most likely these would have to be reported in UniConvertor's own bug tracker [1], if determined that Inkscape's SVG code for kerned or multi-line text is correct and conforming to the SVG specification.

[1] <http://sk1project.org/modules.php?name=Products&product=uniconvertor&op=devres>

Revision history for this message
su_v (suv-lp) wrote :

> for emf export, (…) fixed in bzr rev 10001, could you re-test and confirm?

r10001 has been uploaded to modevia:
<http://inkscape.modevia.com/win32/?C=M;O=D>

Revision history for this message
wilfriedh (w-hennings) wrote :

OK, tested:
opened test1.svg (same file as in texttest.zip) with Inkscape r10001

export to emf: fully OK

export to wmf: text rotation is OK but multiline text is merged into a single line

export to sk1: text rotation is OK but multiline text is merged into a single line

I examined the sk1 file. The multiline text is indeed output to sk1 as one single line.

Revision history for this message
wilfriedh (w-hennings) wrote :

re. my comment of 2010-10-06:
With rev. 10001,
- also long wmf file name works
- everything works on Vista, too, except the already mentioned problem that
in export to sk1 and wmf, multiline text is merged into a single line.

Revision history for this message
Beluga (buovjaga) wrote :

Exported to wmf.
Inserted wmf to LibreOffice.
It shows multilines ok.

Please re-test.

Arch Linux 64-bit, KDE Plasma 5
Inkscape 0.92pre1 15054 (GTK3)

jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.