INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Std View : How to get 2nd Line of Text under Album Art?  (Read 2317 times)

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14401
  • I won! I won!
Std View : How to get 2nd Line of Text under Album Art?
« on: July 18, 2013, 02:25:40 am »

Newbie Q - how do you get a second row of text under the Std View Album Art instead of it being truncated (see pic)?
Thanks
Nathan
Logged
JRiver CEO Elect

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9119
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #1 on: July 18, 2013, 02:45:11 am »

I don't think you can.

Well, you can, but I think that what you want is for the text to wrap onto a second line, and we can't force that.

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14401
  • I won! I won!
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #2 on: July 18, 2013, 02:52:07 am »

Yup - I just want to be able to read the full title.  Eg line wrap over truncate.  I must be old as I remember the coverart would shrink to accommodate the extra line, then we went to fixed sized coverart but I thought we could specify a two line text.....
Logged
JRiver CEO Elect

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14401
  • I won! I won!
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #3 on: July 18, 2013, 06:12:54 am »

FYI - Theater View gives us two lines....
Logged
JRiver CEO Elect

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #4 on: July 18, 2013, 10:58:22 am »

You can do multi-line, not wrapping of a single line.  See attached.

See the view's Thumbnail Text.  Use newlines to break a line.
Logged
The opinions I express represent my own folly.

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14401
  • I won! I won!
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #5 on: July 18, 2013, 04:21:56 pm »

Thanks anyway, but I'm after a line wrap for up to two lines (like in the Theater View example)
Logged
JRiver CEO Elect

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #6 on: July 18, 2013, 04:47:32 pm »

Use the Simulatron 5000.

mid([Name] [Album], 0, 13)
mid([Name] [Album], 13, 20)
Logged
The opinions I express represent my own folly.

JustinChase

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3276
  • Getting older every day
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #7 on: July 18, 2013, 05:24:56 pm »

Okay, to add to the challenge, can you rewrite that so that it breaks at a space, so words aren't broken up?  i suppose you'll have to pick a space that's about 10 to 15 characters from the beginning to look 'right'.

No big deal if you don't want to bother to do it, I'm mostly just throwing down the challenge because I'm normally so impressed with your abilities to create this stuff.
Logged
pretend this is something funny

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14401
  • I won! I won!
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #8 on: July 18, 2013, 05:32:52 pm »

:) that's the great thing about MC - where there is a will there is a way, and in this case it is MrC

mid([Name], 0, 17)
mid([Name], 17, 34)

works OK for me....
Logged
JRiver CEO Elect

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #9 on: July 18, 2013, 06:03:04 pm »

Okay, to add to the challenge, can you rewrite that so that it breaks at a space, so words aren't broken up?  i suppose you'll have to pick a space that's about 10 to 15 characters from the beginning to look 'right'.

No big deal if you don't want to bother to do it, I'm mostly just throwing down the challenge because I'm normally so impressed with your abilities to create this stuff.

Not practically, as there's no way to handle it generically; handling it for just a few cases creates a nasty nesting of if() statements.  Because there might be short words in the captions, such as:

    "It Is A or B I Do So Wonder"

You have to check something like this:
  
    if word1 < linelen
        if word1 word2 < linelen
            if word1 word2 word3 < linelen
                if word1 word2 word3 word4 < linelen
                    ...

and handle all the Else parts.

You can't introduce newlines into the caption / thumbnail via the expression language.  Rather, the additional lines in the caption/thumbnail text editor is what forces additional lines in the output.  So you can't programmatically add additional lines as required by the output text.  So this forces you to predetermine that you'll always want N lines of output, and check each of the cases above if the nasty If() sequence.

And then there is splitting after punctuation to deal with...
Logged
The opinions I express represent my own folly.

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14401
  • I won! I won!
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #10 on: July 18, 2013, 06:07:20 pm »

The handling of this in TheaterView works well, perhaps a low priority request to add this as an option in StdView.
Logged
JRiver CEO Elect

JustinChase

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3276
  • Getting older every day
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #11 on: July 18, 2013, 06:12:11 pm »

Like I said, not a big deal, but I figured you do some sort of 'find first space more than 10 characters deep, then remove space, then move remaining text to next line' type of thing.

I wonder how Matt manages in Theater View?

Again, no need for you to spend any more time on this, and thanks for the time you have already spent.  I was really more curious than anything else.
Logged
pretend this is something funny

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Std View : How to get 2nd Line of Text under Album Art?
« Reply #12 on: July 18, 2013, 06:16:11 pm »

With loops and recursion, its much easier.  We don't have those though.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up