Bug 152410 - Missing space in text of inserted SVG image with tabs between words
Summary: Missing space in text of inserted SVG image with tabs between words
Status: RESOLVED DUPLICATE of bug 151118
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-07 12:10 UTC by opensuse.lietuviu.kalba
Modified: 2023-07-12 16:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
SVG image for testing (198.04 KB, image/svg+xml)
2022-12-07 12:10 UTC, opensuse.lietuviu.kalba
Details
How some SVG looks in Inkscape and LO (113.53 KB, image/png)
2022-12-07 12:16 UTC, opensuse.lietuviu.kalba
Details
attachment 184030 opened in master against 7.5.0, spacing between words visible (72.54 KB, image/png)
2022-12-07 18:31 UTC, V Stuart Foote
Details

Note You need to log in before you can comment on or make changes to this bug.
Description opensuse.lietuviu.kalba 2022-12-07 12:10:00 UTC
Created attachment 184030 [details]
SVG image for testing

If SVG use tab (numeric symbol code is 9) to separate words in sentence, all words collapse into one in LibreOffice. This does not happen in other programs (Inkscape, Firefox) – here I see spaces between words. 
I believe this bug present in newer LO versions too, though not tested.

Tested in 
Version: 7.3.6.2 / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 4; OS: Linux 5.14; UI render: default; VCL: kf5 (cairo+xcb)
Locale: lt-LT (lt_LT.UTF-8); UI: lt-LT
Calc: threaded
But I can reproduce in much older versions too (no longer remember exactly).
Comment 1 opensuse.lietuviu.kalba 2022-12-07 12:16:04 UTC
Created attachment 184031 [details]
How some SVG looks in Inkscape and LO
Comment 2 V Stuart Foote 2022-12-07 18:15:37 UTC
Confirmed, but better evaluation can be done by filter import to Draw canvas--i.e. open it is Draw.

General layout fidelity to original SVG is high, just the multi-word text runs are not being spaced--as if the import filter just lays them down character-by-character sequence, with no sense of word bound.

Performing 'break' of the image all sends the SVG elements all over and is badly broken.

@Xisco, one for you?

=-testing-=

Version: 7.4.2.3 (x64) / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 3 V Stuart Foote 2022-12-07 18:26:37 UTC
Actually the spacing by word looks to be corrected in current masters against 7.5

Break of the image is still bad.

Characters of the text runs suffer from clipping depending on zoom level of the LO canvas.  Same as see also bug 114941.

=-testing-=

Version: 7.5.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: c50cf1883af26daebdfc9d796ced3c20c222f43b
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 4 V Stuart Foote 2022-12-07 18:31:17 UTC
Created attachment 184042 [details]
attachment 184030 [details] opened in master against 7.5.0, spacing between words visible

between words spacing for imported SVG now visible in master against 7.5.0
Comment 5 Stéphane Guillou (stragu) 2023-07-12 16:50:26 UTC
The spacing was already part at the beginning of SVG support in 4.0.0.3 (checked with linux-64-releases bibisect repo).

As Stuart said, fixed in 7.5 branch.

Fix bibisected with linux-64-7.5 repo to Xisco's core commit:

commit ddf695db44bcb23dc2f1459fd439f93c0b6d5f2a
author	Xisco Fauli <xiscofauli@libreoffice.org>	Thu Sep 22 10:59:29 2022 +0200
committer	Xisco Fauli <xiscofauli@libreoffice.org>	Thu Sep 22 13:43:59 2022 +0200
tdf#151118: svg: fix handling of xml:space="preserve"
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140404

Marking as duplicate.
Thanks everyone!

*** This bug has been marked as a duplicate of bug 151118 ***