Typesetting functions

2005-12-24 Thread Dave Calkins 1


Sorry for the late post, I'm trying to catch up. I noticed that no-one 
posted an actual solution so here is mine.


Don't hold your breath on getting these functions added to RR. I have 
been asking for this type of improvement to add simple text handling 
routines since RR 1.1 which would allow the generation of more text 
processing / reports applications.


This is a routine that I use to generate a tabstop that will center a 
short line or title for each line that contains a char of my choosing 
in a card field called Other Data.


Sorry I haven't completely commented it.

Merry Christmas

on doTabCenter --Align Center Command (Centers a short line or title on 
the field)

  put the lockscreen into tLockScreen
  lock screen
  put empty into fld Other Data
  put the tabstops of cd fld Other Data into tTabStops

  repeat while cd fld Other Data contains » -- This is the char I 
chose to indicate which lines to center
put the cTabCenterLine of cd fld Other Data into tTabCenterLine 
--Tab location to center line / self generates
put the cTabCenterLineText of cd fld Other Data  into 
tTabCenterLineText --Tab location to center line / self generates


put the item 1 of the loc of cd fld Other Data into tCenterTab
put lineoffset (»,cd fld Other Data) into tLn
put line tLn of cd fld Other Data into tLine

put the HTMLtext of line tLn of cd fld Other Data into tmpLine

put tmpLine into line tLn of tTabCenterLineText

replace #9; with empty in tmpLine
replace  nbsp; with empty in tmpLine
set the htmltext of line tLn of cd fld Other Data to tmpLine

delete char offset (»,line tLn of cd fld Other Data) of line 
tLn of cd fld Other Data

put line tLn of cd fld Other Datainto tText

put the formattedWidth of line tLn of cd fld Other Data into 
tWidthOfTitle


select word 1 of line tLn of cd fld Other Data
put item 2 of the selectedLoc into tLocWordA

put space  » after line tLn of cd fld Other Data

repeat
  put offset (tText, line tLn of cd fld Other Data) into tLocChar2
  put   before char tLocChar2 of line tLn of cd fld Other Data
  put offset (», line tLn of cd fld Other Data) into tLocChar3
  select char (tLocChar3) of line tLn of cd fld Other Data
  put item 2 of the selectedLoc into tLocWordB

  if tLocWordA  tLocWordB then exit repeat

end repeat

delete char (tLocChar3) of line tLn of cd fld Other Data
subtract 1 from tLocChar3
put the formattedWidth of char 1 to (tLocChar3) of line tLn of cd 
fld Other Data into tWidthOfLine


put number of chars of line tLn of cd fld Other Data into 
tLocChar3


delete char (tLocChar3) of line tLn of cd fld Other Data

delete char 1 to ( offset (tText,line tLn of cd fld Other Data )  
- 1) of line tLn of cd fld Other Data


put round (tWidthOfLine / 2) into tCenterTab1
put  round (tWidthOfTitle / 2) into tTabWidth1

subtract tTabWidth1 from tCenterTab1

put tCenterTab1 into line tLn of tTabCenterLine

  end repeat

  repeat for each line tCenterLine in tTabCenterLine
if tCenterLine is empty then next repeat
put true into tAddStop

repeat with i = 1 to number of items of tTabStops -- i for each 
item tItem in tTabStops

  if item i of tTabStops = tCenterTab1 then
put false into tAddStop
exit repeat
  end if
end repeat

if tAddStop then
  if tTabStops is empty then put tCenterTab1 after tTabStops
   else put ,  tCenterTab1 after tTabStops
end if
sort items of tTabStops ascending numeric

  end repeat

  set the cTabCenterLine of cd fld Other Data to tTabCenterLine --Tab 
location to center line
  set the cTabCenterLineText of cd fld Other Data to 
tTabCenterLineText

  set the tabstops of cd fld Other Data to tTabStops


  repeat for each line tCenterTabLoc in tTabCenterLine
put lineoffset (raquo;,tTabCenterLineText) into tLn
if tLn = 0 then exit repeat
put line tLn of tTabCenterLine into tCenterTabLoc
put empty into line tLn of tTabCenterLineText

if tCenterTabLoc is empty then next repeat
repeat with i = 1 to number of items of tTabStops
  put tab before line tLn of cd fld Other Data
  --put the formattedWidth char 1 to ( offset (tText,line tLn of cd 
fld Other Data ) - 1) of line tLn of cd fld Other Data into 
tTextCenterAlign

  if item i of tTabStops = tCenterTabLoc then exit repeat
end repeat
  end repeat

  set the lockscreen to tLockScreen

end doTabCenter

I also have a routine that will indent  a wrapped line into an indented 
paragraph similar to the increase indent that I could post if you are 
interested.


Dave Calkins





On Dec 16, 2005, at 2:26 AM, [EMAIL PROTECTED] 
wrote:



From: Sivakatirswami [EMAIL PROTECTED]
Subject: Typesetting functions
To: use-revolution@lists.runrev.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

As one who is spoiled by options for very

Re: Typesetting functions

2005-12-17 Thread yoy

- Original Message -  I'll check on Scott rolling credits...

 Sivakatirswami

I can pretty much guarantee that until computer monitors have 2000+ pixels
to the inch, it'll never happen. Dammit!!!

Andy

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Typesetting functions

2005-12-17 Thread MisterX
Andy,

Sorry, but this is possible in FreeHand 1.0 or illustrator 1.0 eons ago ;)

But there's another good reason to have 3D in rev to zoom in further ;)

cheers
Xavier



 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of yoy
 Sent: Saturday, 17 December, 2005 11:12
 To: How to use Revolution
 Subject: Re: Typesetting functions
 
 
 - Original Message -  I'll check on Scott rolling credits...
 
  Sivakatirswami
 
 I can pretty much guarantee that until computer monitors have 
 2000+ pixels to the inch, it'll never happen. Dammit!!!
 
 Andy
 
 ___
 use-revolution mailing list
 use-revolution@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage 
 your subscription preferences:
 http://lists.runrev.com/mailman/listinfo/use-revolution

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-17 Thread yoy

- Original Message - 
From: MisterX [EMAIL PROTECTED]
To: 'How to use Revolution' use-revolution@lists.runrev.com
Sent: Saturday, December 17, 2005 5:29 AM
Subject: RE: Typesetting functions


 Andy,

 Sorry, but this is possible in FreeHand 1.0 or illustrator 1.0 eons ago ;)

 But there's another good reason to have 3D in rev to zoom in further ;)

 cheers
 Xavier

Xavier,

You're speaking of point sizes of type. I was speaking of screen resolution.
The monitors today are 72 to 100 dpi or maybe larger, but not thousands of
pixels per inch.

Andy

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-17 Thread Sivakatirswami
OK, I threw in the towel completely, replaced tabs with a single  
space simple centered everything in the field:




Correspondents

Rajiv Malik, Delhi
Choodamani Sivaram, Bangalore
Prabha Prabhakar Bhardwaj, Delhi
Madhu Kishwar, Delhi
Mangala Prasad Mohanty, Orissa
V. S. Gopalakrishnan, Kerala
Archana Dongre, Los Angeles
Lavina Melwani, New York
Dr. Hari Bansh Jha, Nepal
Paras Ramoutar, Trinidad
V. G. Julie Rajan, Philadelphia
Rajesh Jantilal, South Africa
Iraja Sivadas, California
Tara Katir, Hawaii

etc.

it works...





On Dec 17, 2005, at 12:11 AM, yoy wrote:

I can pretty much guarantee that until computer monitors have 2000+  
pixels

to the inch, it'll never happen. Dammit!!!

Andy


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Typesetting functions

2005-12-16 Thread Sivakatirswami
As one who is spoiled by options for very precise control over type  
all these years (Quark and now InDesign) the challenges of making  
text look good in a Revolution field seem daunting.


I was wondering if any one had rolled their own typesetting  
functions. I would rather not have to create multiple flds and then  
group these with some being centered and others align left... so I  
was thinking that one could, for example, center type but getting  
some measurement of the  len(the selection) and then inserting  
something like


(an algorithm that needs real code:)

the total length of the line -(the length of type to be centered)/2 =  
(some  number of spaces to insert in front of the text)


I may be dreaming about cheddar on Mars, because I don't see from the  
docs any syntax that can provide areal correlation between len 
(fooString) and pixelwidth(fooString)  that can be translated back  
into a tab width or number of spaces...as the pixel width of  
fooString will vary by the charWidths of the chars in the string and  
again, this has no correlation to the width of a space... and tabs  
are out anyway, since you cannot set tabs on a per line basis. (I  
hope this is on the feature list as a bare minimum upgrade to text  
handling in the next version of rev) etc. etc. round in circles.


a typical thing one would like to be able to do, besides centering  
type on a line in a field... would be formatting like this:


someTextLeftAligned [tab or string of spaces] SomeTextRightAligned

I'm hoping some of you may have already been there done that and yes  
it can  be done... here's how


My actual context is rolling credits in a single field with centered  
headers for each section followed by


Correspondents

staff  country

Photographers:

photographer country

etc.

now I can center all this and it looks fairly decent if you give up  
aspirations for any more control and think well the do it like that  
in the movies and if you don't care about things lining up its just   
fine...  But this may not  fly when it goes up for review... or I  
will have to say sorry, this is all we get in Rev. we have to live  
with it like this for now...


TIA

Sivakatirswami






___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread yoy
- Original Message - 
From: Sivakatirswami [EMAIL PROTECTED]
To: use-revolution@lists.runrev.com
Sent: Friday, December 16, 2005 6:01 AM
Subject: Typesetting functions


 As one who is spoiled by options for very precise control over type
 all these years (Quark and now InDesign) the challenges of making
 text look good in a Revolution field seem daunting.

You think Quark and InDesign gave you precise control over high quality
typography? You're way off the mark.

I typeset on CCI back in 1982 which was the best in it's day. Granted it was
balck type on white paper. When Adobe introduced PostScript, I took their
clases and wrote a typesetting system that fell short in kerning and
tracking, but excelled in features that have yet seen the light of day.

So in my experience of over 23 years in the field and asking the Magic-8
Ball, The chances are unlikely.

But anyway, have a look at my old typegauge, written entirely in postscript,
then PDFd.

http://mywebpages.comcast.net/foxcat/GAUGE_88.pdf


Enjoy

Andy Burns
Media, PA


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Thomas McGrath III
These are all things on my wish list as well. Some are 'trickable'  
and doable but with some effort.


Tom

On Dec 16, 2005, at 6:01 AM, Sivakatirswami wrote:

As one who is spoiled by options for very precise control over type  
all these years (Quark and now InDesign) the challenges of making  
text look good in a Revolution field seem daunting.


I was wondering if any one had rolled their own typesetting  
functions. I would rather not have to create multiple flds and then  
group these with some being centered and others align left... so I  
was thinking that one could, for example, center type but getting  
some measurement of the  len(the selection) and then inserting  
something like


(an algorithm that needs real code:)

the total length of the line -(the length of type to be centered)/2  
= (some  number of spaces to insert in front of the text)


I may be dreaming about cheddar on Mars, because I don't see from  
the docs any syntax that can provide areal correlation between len 
(fooString) and pixelwidth(fooString)  that can be translated back  
into a tab width or number of spaces...as the pixel width of  
fooString will vary by the charWidths of the chars in the string  
and again, this has no correlation to the width of a space... and  
tabs are out anyway, since you cannot set tabs on a per line basis.  
(I hope this is on the feature list as a bare minimum upgrade to  
text handling in the next version of rev) etc. etc. round in circles.


a typical thing one would like to be able to do, besides centering  
type on a line in a field... would be formatting like this:


someTextLeftAligned [tab or string of spaces] SomeTextRightAligned

I'm hoping some of you may have already been there done that and  
yes it can  be done... here's how


My actual context is rolling credits in a single field with  
centered headers for each section followed by


Correspondents

staff  country

Photographers:

photographer country

etc.

now I can center all this and it looks fairly decent if you give up  
aspirations for any more control and think well the do it like  
that in the movies and if you don't care about things lining up its  
just  fine...  But this may not  fly when it goes up for review...  
or I will have to say sorry, this is all we get in Rev. we have to  
live with it like this for now...


TIA

Sivakatirswami






___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


Thomas J McGrath III
[EMAIL PROTECTED]

Semantic Compaction Systems
SCIconics, LLC

Lazy River Metal Arts
Lazy River Software™

Meeting Wear™ - Unique Apparel Design






___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Scott Rossi
Recently, Sivakatirswami wrote:

 I was wondering if any one had rolled their own typesetting
 functions.

Sorry, no (and obviously, you know it's difficult if not impossible do fine
typographic settings in Rev, though if you're doing this for on screen use,
I'm not sure how well fine typographic settings would come across).


 My actual context is rolling credits in a single field with centered
 headers for each section

Did you say rolling credits?

  go url http://www.tactilemedia.com/download/film_reel.rev;

(This will most likely not perform well on the 400 mHz Powerbooks mentioned
previously on the list.)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Bill Marriott
Sivakatirswami,

Have you looked into whether formattedWidth, formattedHeight and other 
formatted* commands will help you achieve this? I don't think you'll be able 
to get kerning control or Quark-like results when printing, but these 
functions may be of use when trying to get screen elements to look right.

Bill

Sivakatirswami [EMAIL PROTECTED] wrote in 
message news:[EMAIL PROTECTED]
 I was wondering if any one had rolled their own typesetting  functions. 
 I would rather not have to create multiple flds and then  group these with 
 some being centered and others align left... so I  was thinking that one 
 could, for example, center type but getting  some measurement of the 
 len(the selection) and then inserting  something like

 (an algorithm that needs real code:)

 the total length of the line -(the length of type to be centered)/2 = 
 (some  number of spaces to insert in front of the text)



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Bill Marriott
Scott,

I found that if you set the reel delay to 0 on this stack, it will become 
quite difficult to change the delay again, or to quit or do anything else 
with Revolution until you kill the process with task manager :)

Bill

Scott Rossi [EMAIL PROTECTED] wrote in 
message news:[EMAIL PROTECTED]
 Did you say rolling credits?

  go url http://www.tactilemedia.com/download/film_reel.rev;



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Scott Rossi
Recently, Bill Marriott wrote:

 I found that if you set the reel delay to 0 on this stack, it will become
 quite difficult to change the delay again, or to quit or do anything else
 with Revolution until you kill the process with task manager

Then don't don't set the reel delay to 0. :-)

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Klaus Major

Hi Scott,


Recently, Bill Marriott wrote:

I found that if you set the reel delay to 0 on this stack, it  
will become
quite difficult to change the delay again, or to quit or do  
anything else

with Revolution until you kill the process with task manager


Then don't don't set the reel delay to 0. :-)


you are so wise, guy :-D


Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia  Design
-
E: [EMAIL PROTECTED]
W: http://www.tactilemedia.com


Regards

Klaus Major
[EMAIL PROTECTED]
http://www.major-k.de

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Sivakatirswami
OK, what are your tricks? Once scripted, they shoudl be easily  
repeatable, n'est ce pas?

On Dec 16, 2005, at 4:05 AM, Thomas McGrath III wrote:


Some are 'trickable' and doable but with some effort.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Sivakatirswami
I tried getting the formattedWidth of a chunk expression for char 1  
to char -1 of someFooLine.. but this gets you a pixel integer,  how  
do you translate that into len(someSpacesStringToInsert) /2


example all in one field.

Center This Title

paragraph aligned left; paragraph aligned left; paragraph aligned  
left; paragraph aligned left;
paragraph aligned left; paragraph aligned left; paragraph aligned  
left; paragraph aligned left;
paragraph aligned left; paragraph aligned left; paragraph aligned  
left; paragraph aligned left;


Maybe the formula is there, but I couldn't get my head around it, if  
it is..??


Sivakatirswami

On Dec 16, 2005, at 7:10 AM, Bill Marriott wrote:


Sivakatirswami,

Have you looked into whether formattedWidth, formattedHeight and other
formatted* commands will help you achieve this? I don't think  
you'll be able

to get kerning control or Quark-like results when printing, but these
functions may be of use when trying to get screen elements to look  
right.


Bill

Sivakatirswami [EMAIL PROTECTED] wrote in
message news:[EMAIL PROTECTED]

I was wondering if any one had rolled their own typesetting   
functions.
I would rather not have to create multiple flds and then  group  
these with
some being centered and others align left... so I  was thinking  
that one

could, for example, center type but getting  some measurement of the
len(the selection) and then inserting  something like

(an algorithm that needs real code:)

the total length of the line -(the length of type to be centered)/2 =
(some  number of spaces to insert in front of the text)





___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Sivakatirswami
Well, Andy I set type back in 1974, by hand (well, almost... smile),  
burned the plates and ran the KORD myself, folded the parents sheets,  
collated signatures, perfect bound and trimmed... Those were the  
days, ... (you can have them! I much rather outsource as we do  
today... ) I remember the first AFGA we got, yes, true we had more  
precise control then than we do now, though Abobe's optical is pretty  
amazing...


True, the new layout programs still don't cut it (we set the kerning  
pairs by hand for every font we used in Quark...) by old world  
standards. But we are talking apples and oranges. You are in another  
zone...  I looking for some simple functions for Rev fields, nothing  
more than  simple alignment controls per para in a single field,  
basic justification  tab controls per paragraph, We can leave the   
fine H  J's out of this equation...


I'll check on Scott rolling credits...

Sivakatirswami

On Dec 16, 2005, at 3:26 AM, yoy wrote:


- Original Message -
From: Sivakatirswami [EMAIL PROTECTED]
To: use-revolution@lists.runrev.com
Sent: Friday, December 16, 2005 6:01 AM
Subject: Typesetting functions




As one who is spoiled by options for very precise control over type
all these years (Quark and now InDesign) the challenges of making
text look good in a Revolution field seem daunting.



You think Quark and InDesign gave you precise control over high  
quality

typography? You're way off the mark.

I typeset on CCI back in 1982 which was the best in it's day.  
Granted it was
balck type on white paper. When Adobe introduced PostScript, I took  
their

clases and wrote a typesetting system that fell short in kerning and
tracking, but excelled in features that have yet seen the light of  
day.


So in my experience of over 23 years in the field and asking the  
Magic-8

Ball, The chances are unlikely.

But anyway, have a look at my old typegauge, written entirely in  
postscript,

then PDFd.

http://mywebpages.comcast.net/foxcat/GAUGE_88.pdf


Enjoy

Andy Burns
Media, PA


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Typesetting functions

2005-12-16 Thread Sivakatirswami
Oh my...  LOL... what fun. Not sure that's where I want to go, but it  
sure brightened my evening.



On Dec 16, 2005, at 7:14 AM, Bill Marriott wrote:


 go url http://www.tactilemedia.com/download/film_reel.rev;




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution