#25117 - 08/17/07 03:43 PM
Re: Extended characters
|
Anonymous
Unregistered
|
The Superscript functionality is not implemented in PlanetPress designer tool but you can easily get the result using a dedicated text box (just for the
|
Top
|
|
|
|
#25118 - 08/20/07 06:45 PM
Re: Extended characters
|
Anonymous
Unregistered
|
Hello,
If you are looking for characters that cannot be typed normally on a keyboard, have a look at the encoding tables of your styles.
If you look up encoding tables in the help file, there is some good information there that explains how to accomplsih this.
|
Top
|
|
|
|
#25119 - 01/21/09 02:49 PM
Re: Extended characters
|
OL Newbie
Registered: 01/21/09
Posts: 23
Loc: Toronto
|
is there a way to do a Superscript within the Paragraph function like the following?
(example.) define(&variable, string, @(72,1,20))
setstyle(&default) beginparagraph(0,6,0,'left',0.1598) show('Copyright ') setstyle(&small_font) rmoveto(0,-0.06) show(char(169)) setstyle(&default_font) endparagraph
|
Top
|
|
|
|
#25120 - 01/21/09 02:56 PM
Re: Extended characters
|
OL Expert
Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
|
jonray, You cannot place anything other than "show" and "setstyle" within a beginparagraph. Here's a modified version of the code that will work: setstyle(&Default)
beginparagraph(0,6,0,'left',0.1598)
show('Copyright ')
endparagraph
setstyle(&Small)
rmoveto(0,-0.06)
show(char(169)) This will display "Copyright", along with the
|
Top
|
|
|
|
#25121 - 01/21/09 03:01 PM
Re: Extended characters
|
OL Newbie
Registered: 01/21/09
Posts: 23
Loc: Toronto
|
i know rmoveto can't be done in Paragraph for PP6. In PP3 it was okay.
The new code you showed looks valid for one line text, but we have projects that involve paragraph wrappings with variables inside paragraph and also must include superscripts.
how do we do that?
|
Top
|
|
|
|
#25122 - 01/21/09 03:06 PM
Re: Extended characters
|
OL Newbie
Registered: 01/21/09
Posts: 23
Loc: Toronto
|
if I had the line for instance
define(&variable, string, @(72,1,20))
setstyle(&default) beginparagraph(0,6,0,'left',0.1598) show('This line must be wrapped and must include the variable amount of '+ &variable +', how do we do this?') setstyle(&small_font) rmoveto(1.30,-0.06) show('*') setstyle(&default_font) endparagraph
I know the code above is not valid since rmoveto doesn't work within Paragraph function, so how do I for instance from the example above superscript the "*" just right after the word amount?
|
Top
|
|
|
|
#25123 - 01/21/09 03:44 PM
Re: Extended characters
|
OL Expert
Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
|
jonray,
There wouldn't be any easy ways to add the '*' before the amount word dynamically, since it's not really possible to get the position it's at.
If "amount" is going to be static, it may be best to just put the '*' into a second data selection, and manually place it next to "amount". Another possibility would be to use a superscripted font, if you have one. If you had one, you could use a combination of show and setstyle to do the superscripting.
Otherwise, there's no real way to do it. "True" superscripting is not supported in our software, so while in some cases it's possible to simulate it in PressTalk or by placing data selections/text objects containing the characters, in a paragraph-based text it's not really possible, unless you have a superscripted font.
Regards, Rapha
|
Top
|
|
|
|
#25124 - 01/21/09 03:49 PM
Re: Extended characters
|
OL Newbie
Registered: 01/21/09
Posts: 23
Loc: Toronto
|
i understand, but the rmoveto was possible in Planet Press 3 within the paragraph function? how come it was removed in version 6?
Now we have to spend on Superscripted fonts just to get this working? This would have been easy if there was a standard function in PP6 to kinda do a superscript on a particular character wouldn't it?
|
Top
|
|
|
|
#25125 - 01/21/09 04:18 PM
Re: Extended characters
|
OL Expert
Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
|
PressTalk interpreter has changed in version 6, and many things that were allowed(often wrongly) are no longer possible. I did came up with something for your code. It's a bit more advanced, but should work. First, create a global function, and use this code: function @Superscript(&super:string, &x:measure, &y:measure)
SetStyle(&Small)
moveto(&x, &y - 0.06)
show(&super)
moveto(&x, &y)
endfunction() This displays whatever character you want slightly above the current y position. Then, in your presstalk, you can use this code: define(&variable, string, @(72,1,20))
setstyle(&Default)
beginparagraph(0,6,0,'left',0.1598)
show('This line must be wrapped and must include the variable amount')
endparagraph
@SuperScript('*', ¤t.x, ¤t.y)
setstyle(&Default)
rmoveto(0, -0.1598)
beginparagraph(0,6,¤t.x,'left',0.1598)
show(' of '+ &variable +', how do we do this?')
endparagraph The idea is to split the paragraph in two blocks of code, and call the superscript function in between, and use & current.x as the first indentation of the second paragraph. I tested this code with both Helvetica and Courier(a proportional and non-proportional font), and both worked, also tried putting more text and that worked too, so this code seems good. Regards, Rapha
|
Top
|
|
|
|
|
|