[softwarelist] Re: centre listing

  • From: Jhr JMAH van Vredenburch <janvredenburch@xxxxxxxx>
  • To: davidpilling@xxxxxxxxxxxxx
  • Date: Wed, 07 May 2008 23:13:59 +0200

In message <Marcel-1.53-0507202821-0b0ZSTv@xxxxxxxxxx>
          Anthony Hilton <ajh@xxxxxxxxxxxxxxxxx> wrote:

> In <URL:news:local.opro> on Wed 07 May, P C Newble wrote:
>> In article <4820DA8F.9080007@xxxxxxxxxxxxxxxx>,
>>    Peter Prewett <pprewett@xxxxxxxxxxxxxxxx> wrote:
>> 
>>> How can I get Ovation to centre on the  =  in the following:-
>>> 1 ton = 1.02 tonne
>>> 1 foot = 0.305 metre
>>> 1 yd = 0.91 metre
>>> 1 mile    = 1.61 km
>>> 1 chain = 20.1 metre
>> 
>> Create a decimal tab with = in the box next to that option
>> (instead of the usual decimal point).

> I like that idea, so tried it. It doesn't quite work here in OPro 2.77 (17
> Feb 2008) on RISC OS. I find the alignment to be the first non-numeric
> character, or perhaps it is the space. Removing the leading 1 from each line
> and the following list does align the =

You probably have kerning turned on. The vertical positioning can only 
be precise if you use tabs. So in your case you need 3 tabs: right, 
centre and left:

...........R.......C.......L..................
  <tab> text <tab> = <tab> more-text  (ignore the spaces and full 
stops, added for clarity)
   Then both following examples centre on the = sign, depending of 
course on how you set up the tab stops.

>    ton = 1.02 tonne
>   foot = 0.305 metre
>     yd = 0.91 metre
>   mile = 1.61 km
>  chain = 20.1 metre

> With the same tab stop set as above and various leading numerals the
> alignment is:

>    123 ton = 1.02 tonne
> 112345 foot = 0.305 metre
>      1 yd = 0.91 metre
>   mile = 1.61 km
>  chain = 20.1 metre


> Anthony



-- 
Greetings,
JohnvV
To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling

Other related posts: