Bug 7374 - _DBL strings for large font no longer supported
: _DBL strings for large font no longer supported
Status: RESOLVED INVALID
Product: Logitech Media Server
Classification: Unclassified
Component: Localization
: 7.0
: Macintosh All
: P3 minor (vote)
: 7.x
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-02 03:22 UTC by Michael Herger
Modified: 2009-09-08 09:22 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Herger 2008-03-02 03:22:02 UTC
At some point the support for *_DBL strings, used in large/huge/double size font, has been removed. Don't know whether this was deliberate, but we'll either have to put it back in (if this is still a supported feature) or can remove the remaining *_DBL strings.

I'd guess that feature is gone. There are only about 15 strings using it at all. Probably not worth adding the overhead for those few cases to the display code.
Comment 1 Adrian Smith 2008-03-02 03:30:13 UTC
Doesn't $client->doubleString use the double strings correctly?

Can you give me an example of one which is not working - this should not have been removed!
Comment 2 Michael Herger 2008-03-02 03:40:44 UTC
*** Bug 7375 has been marked as a duplicate of this bug. ***
Comment 3 Michael Herger 2008-03-02 03:45:33 UTC
> Doesn't $client->doubleString use the double strings correctly?

Ah, that code moved to a new place? I only looked at Strings.pm, sorry.

But it seems to have chaned behaviour.

> Can you give me an example of one which is not working - this should not have
> been removed!

I've tested using the following custom-strings.txt file:
SHUFFLE_ON_SONGS_DBL
	DE	Titelreihenfolge

SHUFFLE_ON_ALBUMS_DBL
	DE	Albumreihenfolge

SHUFFLE_OFF_DBL
	DE	Zufall aus

...to have shorter versions of those strings when pressing the shuffle button. Maybe showBriefly() has changed?
Comment 4 Adrian Smith 2008-03-02 03:58:53 UTC
Did that ever work???

At present the display code doesn't do anything to select the normal or double strings, its the caller's responsibility to call $client->doubleString to do this.  

If you grep for doubleString, you will see that in other places the caller tests for linesPerScreen first and then calls doubleString if it wants the shorter string.
Comment 5 Michael Herger 2008-03-02 06:55:59 UTC
> Did that ever work???

Yes - otherwise I would not have noticed. But I didn't find a change breaking it neither.

> At present the display code doesn't do anything to select the normal or double
> strings, its the caller's responsibility to call $client->doubleString to do
> this.  

Display::showBriefly() (which I assume is used) does simply shift down the first line to the second (as the latter is actually displayed).
Comment 6 Blackketter Dean 2008-03-02 19:58:39 UTC
So, is this actually broken?
Comment 7 Adrian Smith 2008-03-03 11:31:36 UTC
Recording some details that I responded by email about:

Its too late to do anything in the Display codeas the string token has 
already been converted to a string.  This needs to be done at the time that 
$client->string is called, i.e. before sending anything to the display code.

So in my view if something wants to use the DBL strings then it needs to changed to use $client->doubleString when it converts a string token to a real string - this is before handing off to the display code.

So we just need to update the places where these string tokes are referenced to check for linesPerScreen and use doubleString if appropriate.
Comment 8 Michael Herger 2008-03-03 15:23:35 UTC
I'm not sure this issue is worth investigating. I reported it because some guy in the German forums was using a custom-strings.txt file to get shorter versions in his preferred full size font. As we're barely using _DBL strings ourselves (less than 20 strings, some of them not even available in EN) I'd rather vote for officially bury that feature to free some bytes.
Comment 9 Adrian Smith 2008-03-04 11:08:48 UTC
Agreed - Its probably most noticable for large text on a text screen anyway, so probably not worth doing too much more work on.
Comment 10 James Richardson 2008-03-25 10:21:37 UTC
(In reply to comment #8)
> I'm not sure this issue is worth investigating. I reported it because some guy
> in the German forums was using a custom-strings.txt file to get shorter
> versions in his preferred full size font. As we're barely using _DBL strings
> ourselves (less than 20 strings, some of them not even available in EN) I'd
> rather vote for officially bury that feature to free some bytes.
> 

Marking bug as invalid for now, if this issue comes up later please reopen the bug.
Comment 11 Chris Owens 2009-07-31 10:17:45 UTC
Reduce number of active targets for SC