Using multiple spaces in IPTC/XMP metadata

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderator: Dreamer

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » Tue Jan 07, 2020 1:54 pm

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

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Re: Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » Tue Jan 07, 2020 2:32 pm

Huh? Also my browser strip multiple spaces? :-D
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. :-/

User avatar
xnview
Author of XnView
Posts: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using multiple spaces in IPTC/XMP metadata

Post by xnview » Fri Jan 10, 2020 10:20 am

yes you can add spaces
Pierre.

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Re: Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » Sun Jan 19, 2020 3:35 pm

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.

User avatar
xnview
Author of XnView
Posts: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using multiple spaces in IPTC/XMP metadata

Post by xnview » Fri Jan 24, 2020 11:59 am

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.

User avatar
xnview
Author of XnView
Posts: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using multiple spaces in IPTC/XMP metadata

Post by xnview » Sat Mar 21, 2020 9:20 am

This problem is supposed to be fixed in XnView MP 0.96. Please check and confirm the bug fix here.
Pierre.

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Re: Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » 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)

User avatar
xnview
Author of XnView
Posts: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using multiple spaces in IPTC/XMP metadata

Post by xnview » Fri May 08, 2020 11:55 am

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

Code: Select all

 
Pierre.

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Re: Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » 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.

User avatar
xnview
Author of XnView
Posts: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using multiple spaces in IPTC/XMP metadata

Post by xnview » Sat May 09, 2020 7:31 am

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'
Pierre.

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Re: Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » Sat May 09, 2020 8:37 am

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. :-/

User avatar
xnview
Author of XnView
Posts: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using multiple spaces in IPTC/XMP metadata

Post by xnview » Sat May 09, 2020 11:46 am

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'?
Pierre.

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Re: Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » Sat May 09, 2020 3:19 pm

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):
2020-05-09__16-43-40.png
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):
2020-05-09__17-12-30.png
Is there a system (or a workaround) to obtain both aligned texts and HTML text?

User avatar
xnview
Author of XnView
Posts: 33336
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Using multiple spaces in IPTC/XMP metadata

Post by xnview » Sat May 09, 2020 7:06 pm

which info text do you use?
Pierre.

cicciobello
Posts: 70
Joined: Wed Dec 25, 2013 7:08 pm

Re: Using multiple spaces in IPTC/XMP metadata

Post by cicciobello » Fri May 15, 2020 1:48 pm

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.

Post Reply