Using multiple spaces in IPTC/XMP metadata
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Using multiple spaces in IPTC/XMP metadata
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
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
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Using multiple spaces in IPTC/XMP metadata
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. :-/
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. :-/
-
- Author of XnView
- Posts: 44473
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Using multiple spaces in IPTC/XMP metadata
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.
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.
-
- Author of XnView
- Posts: 44473
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Using multiple spaces in IPTC/XMP metadata
Thanks to your detailed description I can reproduce the problem.
Pierre.
-
- Author of XnView
- Posts: 44473
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Using multiple spaces in IPTC/XMP metadata
This problem is supposed to be fixed in XnView MP 0.96. Please check and confirm the bug fix here.
Pierre.
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Using multiple spaces in IPTC/XMP metadata
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)
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)
-
- Author of XnView
- Posts: 44473
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Using multiple spaces in IPTC/XMP metadata
There is a problem with CSS styles and spaces, so here you need to usecicciobello 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)
Code: Select all
Pierre.
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Using multiple spaces in IPTC/XMP metadata
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.
I need multiple spaces in XMP caption to vertically aligned texts using monospaced characters. How can I do this? Thank you.
-
- Author of XnView
- Posts: 44473
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Using multiple spaces in IPTC/XMP metadata
In this case disable 'HTML tags supported'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.
Pierre.
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Using multiple spaces in IPTC/XMP metadata
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. :-/
-
- Author of XnView
- Posts: 44473
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Using multiple spaces in IPTC/XMP metadata
what do you use as 'Info'?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. :-/
Pierre.
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Using multiple spaces in IPTC/XMP metadata
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?
You do not have the required permissions to view the files attached to this post.
-
- Author of XnView
- Posts: 44473
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 226
- Joined: Wed Dec 25, 2013 7:08 pm
Re: Using multiple spaces in IPTC/XMP metadata
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>
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.