Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
PEP 2.0: How to combine symbols & text in a label?
This thread has 12 replies. Displaying all posts.
Post 1 made on Sunday August 24, 2008 at 01:40
VeryPSB
Long Time Member
Joined:
Posts:
June 2002
83
Hi,

Is it possible to use a symbol followed by text in a label? What I'm trying to do is to add the symbol for 'play' followed by 'play' in text, however in the editor I have to choose between symbols or text.

Best regards,

Dennis.
Post 2 made on Sunday August 24, 2008 at 02:13
gopronto
Senior Member
Joined:
Posts:
April 2008
1,437
I have had this problem too, i tried copying it out of PEP1.1 and pasting it into PEP2 but that doesn't work either... Play & (play symbol) comes out as "New ".

The only way was to place a panel over the top of the button with the symbol in it.... im sure one of the other guys managed to find a way of doing it, with out using script's..

Last edited by gopronto on August 24, 2008 02:25.
Pronto still one of the best Wi-Fi Remotes,
www.ikonavs.co.nz and [Link: prontoprojects.com] Axium Control catching up fast :)
Post 3 made on Sunday August 24, 2008 at 02:52
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,152
If you make a graphic button with the symbol you want towards the left as part of the graphic, then you can add a label with a couple of spaces and it will do what you want.

There is no way AFAIK to do what you want in a simple widget label (even with Protoscript) as the label of a widget only allows for a single font to be specified.
Post 4 made on Sunday August 24, 2008 at 12:25
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,390
IMO, this is a deficiency of PEPV2. Note I said deficiency and not bug. Remote can do both but editor only allows one or the other.

Part of this is due to the fact that the symbols are in different Unicode code point (F000) vs normal ASCII (0000). Microsoft .NET, what PEPv2 runs under, does not easily handle both. Inside the XCF file, the editor must indicate either Symbol or Text such that things can be displayed properly.

IIRC, codepoint is right name but could be wrong. Barry's the text expert!

Note that you can do whatever you like in ProntoScript via Page Script. Just set the Panel/Button Label as you see fit.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 5 made on Sunday August 24, 2008 at 15:59
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,152
Lyndel, but can you mix fonts in a button label? I did not think you could!

The xml data for a item (button/panel) label allows allows for the specification of a single font name. When I look at the Maestro font it does not show the symbols just alphabetics, although they are alphabetics with some foreign letters and diacritic markings.

There are xml items for the font, one for symbol, and one for uses symbol, but I see no way (as you stated) in the editor to do both, nor can I think of how in prontoscript you could do both.

If I get some time I might play with symbol and uses symbol to see what can be done at the xml level.
Post 6 made on Sunday August 24, 2008 at 17:09
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,390
On August 24, 2008 at 15:59, Barry Gordon said...
Lyndel, but can you mix fonts in a button label? I did
not think you could!

I never said you could mix fonts. Don't know where this came from. Help me out...
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 7 made on Sunday August 24, 2008 at 17:56
Eigeny Oulianov
Founding Member
Joined:
Posts:
October 2001
238
Embedded font RontoMaestro.ttf contains all Pronto glyphs in 0xF000..0xF0FF characters, as like as PEP1 uses. It is possible to crossbreed text and symbol in ConfigEdit.xml:
two labels "text label" and DTS symbol -

<Label>
<Font>
<FontName>ProntoMaestro</FontName>
<FontSize>32</FontSize>
<FontStyle />
</Font>
<Symbol> </Symbol>
<Text>text label</Text>
<UsesSymbol>false</UsesSymbol>
<TextColor>0 0 0</TextColor>
<TextAlignment>Middle Center</TextAlignment>
</Label>

and

<Symbol>яГ┐</Symbol>
<Text> </Text>
<UsesSymbol>true</UsesSymbol>

to

<Text>it is DTS symbol: яГ┐</Text>
<UsesSymbol>false</UsesSymbol>

where "symbol" is represented as 3 non-ascii characters in UTF-8 by mask:
1110xxxx 10xxxxxx 10xxxxxx
Sample: DTS symbol is \uF0FF, binary is 1111 0000 1111 1111 (from high bits to low), so the result is 11101111 10000011 10111111 = \xEF\x83\xBF -
It is functional only with ProntoMaestro font, all other fonts have no symbols (and these fonts are supported quite indirectly, due to ProntoMaestro.ttf is the only capable font in firmware :)

The other way - is to use \uF000...\uF0FF characters in prontoscript, but the font must be ProntoMaestro, and it is still unchangable in PS.

What are the reasons for use PEP2? PEP2 as against PEP is like MS Paint against Adobe Photoshop - the only restrinctions and incompartibilities. FAQ is too fanny yet - you can't do this, you can't do that...
I can't see all pages of activity at one time - it is enough for me to forget about this awkward creation

Last edited by Eigeny Oulianov on August 24, 2008 18:49.
Post 8 made on Sunday August 24, 2008 at 22:51
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,152
That implies that you can just put the symbols in a text string using \uFxxx. Does anyone have the symbol map that relates symbols to their code indicies in the Maestro multi language plane? That info is not published in the Pronto developers guide.

I guess since it is a true type font I can figure it out with windows. Maybe there is a font display program somewhere around.
Post 9 made on Sunday August 24, 2008 at 23:20
globetrotter
Long Time Member
Joined:
Posts:
February 2007
45
Create the symbol/text combination in PEP V1 then open in PEP 2, that way it retains it. Works for me.
globetrotter & Whisky nut
Post 10 made on Monday August 25, 2008 at 00:55
Eigeny Oulianov
Founding Member
Joined:
Posts:
October 2001
238
, characters \uF07F..\uF0FF
Post 11 made on Saturday August 30, 2008 at 12:32
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,152
Thank you Eigeny. Just what I was looking for
Post 12 made on Saturday August 30, 2008 at 23:56
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,390
For anyone else who might be interested in soft-copy of this table.

See Appendix C of the latest ProntoScript Dev Guide. There were problems in the original Dev Guide displaying these symbols if the ProntoMaestro font is not installed.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 13 made on Friday February 20, 2009 at 11:23
Bob Brandes
Lurking Member
Joined:
Posts:
February 2009
9
I used an easy work around for this problem before I read this post. I decided to describe my workaround in the hopes it would help others. I made a PDF document to describe the process in detail. It is in the files area at...

www.remotecentral.com/cgi-bin/files/rcfiles.cgi

Thanks to all that provide help on this site.

Last edited by Bob Brandes on February 23, 2009 16:34.
New Pronto TSU9600 Owner


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse