Page 1 of 2
Using multiple spaces in IPTC/XMP metadata
Posted: Tue Jan 07, 2020 1:54 pm
by cicciobello
Is it possible to insert multiple spaces in IPTC/XMP metadata fields?
Caption sample (please view with monospaced font):
--------------------------------------------------------
String string string: Data data data yes babe!
String string : Data
String : Data
--------------------------------------------------------
In Info pane IPTC and XMP I can see multiple spaces, but in ExifTool these spaces are trimmed.
In full-screen info these multiple spaces are trimmed, and the result is:
--------------------------------------------------------
String string string: Data data data yes babe!
String string : Data
String : Data
--------------------------------------------------------
MS Win 7 SP1
XnView MP 0.94.2 x64
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Tue Jan 07, 2020 2:32 pm
by cicciobello
Huh? Also my browser strip multiple spaces?

In my previous post, I mean:
--------------------------------------------------------
String string string: Data data data.........yes babe!
String string.......: Data
String..............: Data
--------------------------------------------------------
Please think that character "." as space. :-/
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Fri Jan 10, 2020 10:20 am
by xnview
yes you can add spaces
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Sun Jan 19, 2020 3:35 pm
by cicciobello
Yes, I can add spaces.
The problem is that I don't see this multiple spaces in full-screen info (multiple spaces are trimmed: only one remains!).
Tested on 3 PC x64 (Win 7 and 10). Spaces are trimmed even in [ExifTool] in [Info] tab.
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Fri Jan 24, 2020 11:59 am
by xnview

Thanks to your detailed description I can reproduce
the problem.
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Sat Mar 21, 2020 9:20 am
by xnview
This problem is supposed to be fixed in
XnView MP 0.96. Please check and confirm the bug fix here.
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Fri May 08, 2020 8:24 am
by cicciobello
This bug is still alive in 0.96.2.
Bug was resolved in 0.96 and 0.96.1 (YEAH!), but CSS styles not working.
Now (0.96.2) CSS styles is OK, but... "multiple spaces bug" is resurrected!
123456789 (numbers from 1 to 9)
1 9 (the same, but numbers 2 through 8 are replaced by spaces: in fullscreen info, spaces is gone)
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Fri May 08, 2020 11:55 am
by xnview
cicciobello wrote: Fri May 08, 2020 8:24 am
This bug is still alive in 0.96.2.
Bug was resolved in 0.96 and 0.96.1 (YEAH!), but CSS styles not working.
Now (0.96.2) CSS styles is OK, but... "multiple spaces bug" is resurrected!
123456789 (numbers from 1 to 9)
1 9 (the same, but numbers 2 through 8 are replaced by spaces: in fullscreen info, spaces is gone)
There is a problem with CSS styles and spaces, so here you need to use
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Fri May 08, 2020 12:38 pm
by cicciobello
Yes, using " " insert space, but... I need to use multiple spaces in IPTC-XMP caption, to be displayed in full screen info.
I need multiple spaces in XMP caption to vertically aligned texts using monospaced characters. How can I do this? Thank you.
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Sat May 09, 2020 7:31 am
by xnview
cicciobello wrote: Fri May 08, 2020 12:38 pm
Yes, using " " insert space, but... I need to use multiple spaces in IPTC-XMP caption, to be displayed in full screen info.
I need multiple spaces in XMP caption to vertically aligned texts using monospaced characters. How can I do this? Thank you.
In this case disable 'HTML tags supported'
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Sat May 09, 2020 8:37 am
by cicciobello
xnview wrote: Sat May 09, 2020 7:31 am
In this case disable 'HTML tags supported'
Uhm... Full screen info in HTML is very important for me because they are _more_ readable (colors, etc).
However, aligned XMP captions is also important, then I search for a workaround.
Probably, I will remove all multiple spaces in XMP captions and recreate all captions, but I have near 2 TB files. If that's the only solution, I'll do it. :-/
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Sat May 09, 2020 11:46 am
by xnview
cicciobello wrote: Sat May 09, 2020 8:37 am
Uhm... Full screen info in HTML is very important for me because they are _more_ readable (colors, etc).
However, aligned XMP captions is also important, then I search for a workaround.
Probably, I will remove all multiple spaces in XMP captions and recreate all captions, but I have near 2 TB files. If that's the only solution, I'll do it. :-/
what do you use as 'Info'?
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Sat May 09, 2020 3:19 pm
by cicciobello
xnview wrote: Sat May 09, 2020 11:46 am
what do you use as 'Info'?
I embed XMP metadata through "Edit IPTC-IIM/XMP" (^I). I fill out "Caption" field with various texts, and I fill sometimes others field.
In "Caption" field I need to use monospaced font to align texts: this alignment is done using multiple spaces.
Moreover, I need HTML format to use colors and other format to distinguish filename and others data.
In release 0.96.1, I can use HTML *or* multiple spaces. Using both is not available.
This is a sample of fullscreen info (HTML ON, NOT multiple spaces, then text is NOT aligned):
First 6 lines (white text) have ":" aligned (this is XMP "Caption" infos)
Three Light Blue lines have also ":" aligned.
This is a sample of fullscreen info (HTML OFF, YES multiple spaces with text aligned):
Is there a system (or a workaround) to obtain both aligned texts and HTML text?
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Sat May 09, 2020 7:06 pm
by xnview
which info text do you use?
Re: Using multiple spaces in IPTC/XMP metadata
Posted: Fri May 15, 2020 1:48 pm
by cicciobello
xnview wrote: Sat May 09, 2020 7:06 pm
which info text do you use?
This is a sample:
Code: Select all
(({IPTC:Caption}))
<font color="Red" size="2"> ((Source: {IPTC:Source}))(( by {IPTC:Caption Writer})) </font>
<font color="Grey"> ((Taken </font> <font color="Yellow"> {EXIF:Date Taken [Y-m-d]} h {EXIF:Date Taken [H:M]})) </font> <font color="Grey"> (( ({EXIF:Exposure Time} s - f/{EXIF:F-Number} - {EXIF:Focal Length} mm ({EXIF:Focal Length 35mm} mm) - {EXIF:ISO Value} ISO) ))
((GPS: {EXIF:Latitude} {EXIF:Latitude Ref}; {EXIF:Longitude} {EXIF:Longitude Ref}))((; m {EXIF:Altitude} {EXIF:Altitude Ref}))</font>
<font color="LightBlue"> <b> [{File Index}] </b> </font> <font color="Yellow"> {Filename With Ext} </font> <font color="LightGreen"> ({Zoom}%) </font> <font color="Grey"> {Directory} </font>
{Width} x {Height} @ {DPI} spi - {Format} @ {Bpp} bpp - {Size KB} kb ((- {EXIF:Colour space}))
<font color="LightGreen"> (({EXIF:Make}: {EXIF:Model})) </font> <font color="Grey"> {EXIF:Software} </font>
Summary (please refer to previous posted images):
HTML ON = colors are OK, but multiple spaces is trimmed.
HTML OFF = colors is gone, but multiple spaces is OK (aligned, with monospaced font, of course)
Goal: HTML ON _AND_ multiple spaces NOT trimmed.