Word Wrapping

Started by Darius1968, June 10, 2022, 02:10:22 PM

Previous topic - Next topic

Darius1968

I'm using this expression to output the filename in a tabular layout: 
<Run FontSize="9pt">{File.MetadataModified|is:Yes,* ;is:No, ;}{File.Name}</Run>{File.Ext|to_upper;prefix:<Run FontSize="9pt" Foreground="#FF0000">.;postfix:</Run>}

It works great when the filename has spaces separating the words - If I shorten the width of the column, and the contents would not fit as a result, they are simply wrapped into however many lines need be, to fit. 

However, if the words are separated by, for instance, a hyphen (-), then word-wrapping is not triggered.  How can I have word-wrapping in effect when other characters besides the space are used to separate words? 

Mario

Replace - with -<blank>.

See the first and third example for replace:This==That
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968


Darius1968

Okay.  That definitely works in getting the filename to wrap into multiple lines if need be.  However, the actual characters (e.g., -, _, .) are physically replaced in the enumeration as well. 
Any way to still maintain the original filename (in the display) when doing this?  If not, no big deal. 

Mario

If you replace e.g. - with -<space> the file name will be the same as before. The spaces just allow the word-wrap to work.
If you replace - with a space only, the - will be missing in the result of course.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

But, again, having -<space>, in the That clause of the replace: statement keeps the -, but also displays the space, which I'm trying to suppress in the output, even though IMatch considers it to allow word-wrapping.  Any way to to this?  Again, no big deal, if it's not possible. 

Mario

No space, no wrapping.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook