Bug 500067 - IDEOGRAPHIC SPACE (U+3000) in subtitles is converted to regular SPACE (U+0020) on loading
Summary: IDEOGRAPHIC SPACE (U+3000) in subtitles is converted to regular SPACE (U+0020...
Status: CONFIRMED
Alias: None
Product: kdenlive
Classification: Applications
Component: Title Clips & Subtitles (other bugs)
Version First Reported In: 24.12.2
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Ron
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-14 14:00 UTC by Huanyu Liu
Modified: 2025-08-19 14:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Huanyu Liu 2025-02-14 14:00:10 UTC
SUMMARY
IDEOGRAPHIC SPACE (U+3000) in subtitles is converted to regular SPACE (U+0020) on loading.

STEPS TO REPRODUCE
1. Start Kdenlive, create a new project and save it to somewhere (e.g. /tmp/tmp.kdenlive)
2. Use "Project → Subtitles → Add Subtitle" (or Shift+S) to add a clip of subtitle with IDEOGRAPHIC SPACE (U+3000) (e.g. "文 本")
3. Save the project and close Kdenlive
4. Restart Kdenlive and load the saved project

OBSERVED RESULT
The IDEOGRAPHIC SPACE (U+3000) is converted to a regular SPACE (U+0020) in the subtitle editor ("文 本").
On the other hand, if you open the generated subtitle file (/tmp/tmp.kdenlive.ass) with a text editor, you can find the IDEOGRAPHIC SPACE is correctly saved. Therefore, this is a bug related to loading, not saving.

EXPECTED RESULT
The IDEOGRAPHIC SPACE should be retained.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.10.0
Qt Version: 6.8.2
Kernel Version: 6.13.2-arch1-1 (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION
IDEOGRAPHIC SPACE is usually used in CJK subtitles for text alignment.
Other fullwidth characters (e.g. "1", "!") are not affected.
Comment 1 Ron 2025-05-21 06:37:45 UTC
Confirming I can reproduce this with the 25.04.01 appimage, but not with the code in my
subtitle handling dev branch, which does already contain fixes for better preserving and
round-tripping whitespace in subtitle files.

So this should be fixed when those changes land in a release.
Comment 2 Huanyu Liu 2025-08-19 14:00:11 UTC
Just updated my Kdenlive to 25.08.0, and the bug is still not fixed.