Code formatting: Display points and code on 2 lines

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

I think the difference between the contenders and the GPs is the contenders is trying to not go off the page so wrapping within the table cell. Reduce the window size of the GP window and they will auto-wrap at the space.

Otherwise your best solution would be with some CSS to set the column width:

table tr td { width: 5em; }
table tr td:first-child { width: 8em; }

table tr td:nth-child(2) { width: 18em; }

table tr td:nth-child(3) { width: 18em; }
table tr td:nth-child(4) { width: 18em; }

Beware - nth-child(n) is not supported by IE8 or older.
first-child is only supported in IE8 or older if you set the doc type correctly.

Unless I've missed anyting which said you can now attach a class to a column in the template in which case that would be the standards compliant CSS2 method.

 
···

On 2013-05-04 13:49, ebspars wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

Is it really necessary to display points as well as code? I always set SW to only display code. (Setup / Global Options / Code / discard options)
Not many sailors are really interested in exactly how many points a DNC or DNF is. Those who are should be able to work it out themselves.

And this would obviate ebspars problem.

regards,
Malcolm Osborne
Sedgefield South Africa

···

On 2013/05/04 14:49, ebspars wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

Reply via web post <http://groups.yahoo.com/group/sailwave/post;_ylc=X3oDMTJxc2tlMWc1BF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBG1zZ0lkAzEzNTU2BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTM2NzY3Mjk0NQ--?act=reply&messageNum=13556> Reply to sender <mailto:csi@ebspars.com?subject=Re%3A%20Code%20formatting%3A%20Display%20points%20and%20code%20on%202%20lines> Reply to group <mailto:sailwave@yahoogroups.com?subject=Re%3A%20Code%20formatting%3A%20Display%20points%20and%20code%20on%202%20lines> Start a New Topic <http://groups.yahoo.com/group/sailwave/post;_ylc=X3oDMTJlZmdsM2wwBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTM2NzY3Mjk0NQ--> Messages in this topic <http://groups.yahoo.com/group/sailwave/message/13556;_ylc=X3oDMTM2b21hZXY3BF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBG1zZ0lkAzEzNTU2BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTM2NzY3Mjk0NQR0cGNJZAMxMzU1Ng--> (1)

Recent Activity:

  * New Members
    <http://groups.yahoo.com/group/sailwave/members;_ylc=X3oDMTJmbGo0bWZyBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzEzNjc2NzI5NDU-?o=6>
    6
  * New Files
    <http://groups.yahoo.com/group/sailwave/files;_ylc=X3oDMTJnOXFwMG5vBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwN2dGwEc2xrA3ZmaWxlcwRzdGltZQMxMzY3NjcyOTQ1>
    1

Visit Your Group <http://groups.yahoo.com/group/sailwave;_ylc=X3oDMTJlZWhwMWNrBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM2NzY3Mjk0NQ-->

-!

Personally, I think your "ugly" example looks far better than your
"pretty" example. Different strokes for different folks!

I don't think there is an easy way to get what you want. It should be
dead simple to format your codes as follows: "p<br>c" under Global
Options. That would put a line break before every scoring code and force
it to a second line. However, the letter "r" is a reserved letter and is
converted into the boat's rank so for the twelfth place boat the code
"<br>" becomes "<b12>," which isn't a recognized HTML tag and doesn't
make a line break.

DESIGN NOTE - It would be nice if throughout Sailwave reserved letters
could be used with an "escape" character. Many programming languages use
such a mechanism. If "r" is reserved then "\r" prints the letter "r".
Then, using "p<b\r>c " would get one the desired line break.

One work-around would be to define a style for your race columns and
then set a width. Lines with a scoring code will be too wide for the
column's defined width and should go to a second line. That would
require setting up defined styles for race columns (investigate TD tags
here: http://www.sailwave.com/help-faq-publishing).

Art

PS - At my club we use a smaller font for scoring codes so they don't
overwhelm the results and race columns can be narrower. But, that isn't
native to Sailwave.

···

On 5/4/2013 5:49 AM, ebspars wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

------------------------------------

-!- http://www.yachtsandyachting.com/ -!- http://www.sailing.org/ -!- http://www.sailwave.com/ -!- On-Line Sailwave help...http://sailwave.com/help/HTML ~ Mark Townsend's Sailwave User Guide is available from http://www.abyc.org/upload/Sailwave_ABYC_User_Guide.pdf ~ Convert to daily digest of emails send blank email to sailwave-digest@yahoogroups.com ~ To unsubscribe from the SUG please send blank email to sailwave-unsubscribe@yahoogroups.com Yahoo! Groups Links

You can put HTML in code format string including

···

Cheers,

Colin J

http://amazon.co.uk?tag=sailwave-21

On Sat, May 4, 2013 at 1:49 PM, ebspars csi@ebspars.com wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

Not many sailors are really interested in exactly how many points a DNC or DNF is, but some are, and for those that are, even if they can work it out, it is better to have confirmation on the results of what they might be able to work out themselves.

···

From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com] On Behalf Of Malcolm Osborne
Sent: 04 May 2013 18:22
To: sailwave@yahoogroups.com
Subject: Re: [sailwave] Code formatting: Display points and code on 2 lines

Is it really necessary to display points as well as code? I always set SW to only display code. (Setup / Global Options / Code / discard options)
Not many sailors are really interested in exactly how many points a DNC or DNF is. Those who are should be able to work it out themselves.

And this would obviate ebspars problem.

regards,

Malcolm Osborne

Sedgefield South Africa

On 2013/05/04 14:49, ebspars wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

Reply via web post

Reply to sender

Reply to group

Start a New Topic

Messages in this topic (1)

Recent Activity:

· New Members 6

· New Files 1

Visit Your Group

-!

Colin have you tested that? there was a suggestion that the b or r were a protected character…?

···

Cheers,

Colin J

http://amazon.co.uk?tag=sailwave-21

On Sat, May 4, 2013 at 1:49 PM, ebspars csi@ebspars.com wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

Yeah its not pretty but you can avoid r (the rank variable) by using upper case. for example this works:-

c
p

As Art says it would be far better (and easy to implement) if the variables could be escaped with . Ditto other places.

···

Cheers,

Colin J

http://amazon.co.uk?tag=sailwave-21

On Tue, May 7, 2013 at 9:20 PM, yahoo@wittongilbert.free-online.co.uk wrote:

Colin have you tested that? there was a suggestion that the b or r were a protected character…?

On 2013-05-07 11:47, Colin Jenkins wrote:

You can put HTML in code format string including

Cheers,

Colin J

http://amazon.co.uk?tag=sailwave-21

On Sat, May 4, 2013 at 1:49 PM, ebspars csi@ebspars.com wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

Sailors need both code - to check if they have been scored correctly - and also points.

Gordon

···

On 07/05/2013 21:04, Terry wrote:

Not many sailors are really interested in exactly how many points a DNC or DNF is, but some are, and for those that are, even if they can work it out, it is better to have confirmation on the results of what they might be able to work out themselves.

*From:*sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com] *On Behalf Of *Malcolm Osborne
*Sent:* 04 May 2013 18:22
*To:* sailwave@yahoogroups.com
*Subject:* Re: [sailwave] Code formatting: Display points and code on 2 lines

Is it really necessary to display points as well as code? I always set SW to only display code. (Setup / Global Options / Code / discard options)
Not many sailors are really interested in exactly how many points a DNC or DNF is. Those who are should be able to work it out themselves.

And this would obviate ebspars problem.

regards,
Malcolm Osborne
Sedgefield South Africa
  
On 2013/05/04 14:49, ebspars wrote:

    I need help finding a way to force Sailwave to display points and
    code on 2 lines.
    example: http://sailwave.com/results/Contenders%202013.htm

    Presently it displays on 1 line and makes the column very wide.
    example:
    http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

    *Reply via web post
    <http://groups.yahoo.com/group/sailwave/post;_ylc=X3oDMTJxc2tlMWc1BF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBG1zZ0lkAzEzNTU2BHNlYwNmdHIEc2xrA3JwbHkEc3RpbWUDMTM2NzY3Mjk0NQ--?act=reply&messageNum=13556>
    *

    Reply to sender
    <mailto:csi@ebspars.com?subject=Re%3A%20Code%20formatting%3A%20Display%20points%20and%20code%20on%202%20lines>

    Reply to group
    <mailto:sailwave@yahoogroups.com?subject=Re%3A%20Code%20formatting%3A%20Display%20points%20and%20code%20on%202%20lines>

    Start a New Topic
    <http://groups.yahoo.com/group/sailwave/post;_ylc=X3oDMTJlZmdsM2wwBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTM2NzY3Mjk0NQ-->

    Messages in this topic
    <http://groups.yahoo.com/group/sailwave/message/13556;_ylc=X3oDMTM2b21hZXY3BF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBG1zZ0lkAzEzNTU2BHNlYwNmdHIEc2xrA3Z0cGMEc3RpbWUDMTM2NzY3Mjk0NQR0cGNJZAMxMzU1Ng-->
    (1)

    *Recent Activity:*

    �*New Members
    <http://groups.yahoo.com/group/sailwave/members;_ylc=X3oDMTJmbGo0bWZyBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwN2dGwEc2xrA3ZtYnJzBHN0aW1lAzEzNjc2NzI5NDU-?o=6>****6***

    �*New Files
    <http://groups.yahoo.com/group/sailwave/files;_ylc=X3oDMTJnOXFwMG5vBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwN2dGwEc2xrA3ZmaWxlcwRzdGltZQMxMzY3NjcyOTQ1>****1***

    Visit Your Group
    <http://groups.yahoo.com/group/sailwave;_ylc=X3oDMTJlZWhwMWNrBF9TAzk3MzU5NzE0BGdycElkAzMwODY1MzAEZ3Jwc3BJZAMxNzA1MDY1NzkyBHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM2NzY3Mjk0NQ-->

    -!

Would it work if variables were not recognised as variables I.e. ignored if they are inside angled brackets “<” and “>”?

That would make it more readable than have to put a “” in front of every variable

Jon

···

Jon Eskdale
Sailwave

03333 443377

07976 709777

On 7 May 2013 22:03, Colin Jenkins colin@sailwave.com wrote:

Yeah its not pretty but you can avoid r (the rank variable) by using upper case. for example this works:-

c
p

As Art says it would be far better (and easy to implement) if the variables could be escaped with . Ditto other places.

Cheers,

Colin J

http://amazon.co.uk?tag=sailwave-21

On Tue, May 7, 2013 at 9:20 PM, yahoo@wittongilbert.free-online.co.uk wrote:

Colin have you tested that? there was a suggestion that the b or r were a protected character…?

On 2013-05-07 11:47, Colin Jenkins wrote:

You can put HTML in code format string including

Cheers,

Colin J

http://amazon.co.uk?tag=sailwave-21

On Sat, May 4, 2013 at 1:49 PM, ebspars csi@ebspars.com wrote:

I need help finding a way to force Sailwave to display points and code on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example: http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

Would it work if variables were not recognised as variables I.e. ignored if
they are inside angled brackets "<" and ">"?

That would make it more readable than have to put a "\" in front of every
variable

I don't think it makes much difference. For the line break the real
downside is that all the extra code stuff displays in the race columns
in the view window. So, instead of "21 DNF" you would see "21 <BR>DNF."

The one thing I'd like to see is the ability to use the number (or pound
or hash) symbol [#] in the title when publishing. We would like to say
"Race #1, Race #2, etc." in our titles but that gets turned into the
date or time (cannot remember which offhand) when publishing.

DESIGN THOUGHT
We process all Sailwave-published HTML files before printing or posting
to the internet. For the scoring codes, we put the scoring code letters
into a <span> tag and then define that <span> text to be a smaller size
(so you get a regular sized numbers for the points but a smaller size
font for the codes). That takes up less space in the race columns. I
imagine others might find that useful - you could put codes in a
different font, or size, or color, or even hide them using css-type styles.

For those who don't know about <span> tags, in the example in the first
paragraph the code we would use is "21 <span class="codes">DNF</span>"
so that when we define the class "codes" all text inside the span tags
can be custom stylized. This is probably too sophisticated for most
Sailwave users but it does allow for a lot of flexibility in how stuff
is displayed.

Art

···

On 5/7/2013 2:17 PM, Jon Eskdale wrote:

Would it work if variables were not recognised as variables I.e. ignored if
they are inside angled brackets "<" and ">"?

That would make it more readable than have to put a "\" in front of every
variable

Jon

Jon Eskdale
Sailwave
03333 443377
07976 709777

On 7 May 2013 22:03, Colin Jenkins <colin@sailwave.com> wrote:

**

Yeah its not pretty but you can avoid r (the rank variable) by using upper
case. for example this works:-

c<BR>p

As Art says it would be far better (and easy to implement) if the
variables could be escaped with \. Ditto other places.

Cheers,
Colin J

http://amazon.co.uk?tag=sailwave-21 <http://amazon.co.uk/?tag=sailwave-21>

On Tue, May 7, 2013 at 9:20 PM, <yahoo@wittongilbert.free-online.co.uk>wrote:

**

Colin have you tested that? there was a suggestion that the b or r were
a protected character...?

On 2013-05-07 11:47, Colin Jenkins wrote:

You can put HTML in code format string including <br>

Cheers,
Colin J

http://amazon.co.uk?tag=sailwave-21<http://amazon.co.uk/?tag=sailwave-21>

On Sat, May 4, 2013 at 1:49 PM, ebspars <csi@ebspars.com> wrote:

I need help finding a way to force Sailwave to display points and code
on 2 lines.
example: http://sailwave.com/results/Contenders%202013.htm

Presently it displays on 1 line and makes the column very wide.
example:
http://www.chasesc.org.uk/Sailwave%20results%20for%20GP14%20Open%202013%20at%20The%20Chase%20Sailing%20Club%202013.htm

The one thing I’d like to see is the ability to use the number (or pound
or hash) symbol [#] in the title when publishing. We would like to say
“Race #1, Race #2, etc.” in our titles but that gets turned into the
date or time (cannot remember which offhand) when publishing.

What happens if you use Race #1 Race #2 etc?

“What happens if you use Race #1 Race #2 etc?”

I’m afraid it still replaces the # with the date as I wondered the same

Jon

···

Jon Eskdale
Sailwave

03333 443377

07976 709777

On 8 May 2013 00:16, yahoo@wittongilbert.free-online.co.uk wrote:

The one thing I’d like to see is the ability to use the number (or pound
or hash) symbol [#] in the title when publishing. We would like to say
“Race #1, Race #2, etc.” in our titles but that gets turned into the
date or time (cannot remember which offhand) when publishing.

What happens if you use Race #1 Race #2 etc?

Would ‘Race 1, Race 2, etc’ not suffice?

William Carruthers

/)/)/)___/)

(_(___(__

···

Sent from my iPhone

On 8 May 2013, at 00:16, yahoo@wittongilbert.free-online.co.uk wrote:

The one thing I’d like to see is the ability to use the number (or pound
or hash) symbol [#] in the title when publishing. We would like to say
“Race #1, Race #2, etc.” in our titles but that gets turned into the
date or time (cannot remember which offhand) when publishing.

What happens if you use Race #1 Race #2 etc?

<blocked.gif>

It all needs doing properly - it was all a quick hack to get it done (probably for my own personal requirement) - never thought of this many users.

All variables need to be identified in expressions and template snippets like the code format string, I suggest using $x etc and $$ to represent $ - then its all non-ambiguous and non ad-hoc - ppl may need to be < and > for example in code formatting.

It then just needs a bit of update code in the version update function to tweak any existing strings when reading a .blw file (its version based so will work). And the help then needs updating.

I don’t mind doing it but after the MYC anniversary weekends - i.e. mid June.

···

Cheers,

Colin J

http://amazon.co.uk?tag=sailwave-21

On Wed, May 8, 2013 at 12:14 AM, Jon Eskdale jon@sailwave.com wrote:

“What happens if you use Race #1 Race #2 etc?”

I’m afraid it still replaces the # with the date as I wondered the same

Jon

Jon Eskdale
Sailwave

03333 443377

07976 709777

On 8 May 2013 00:16, yahoo@wittongilbert.free-online.co.uk wrote:

The one thing I’d like to see is the ability to use the number (or pound
or hash) symbol [#] in the title when publishing. We would like to say
“Race #1, Race #2, etc.” in our titles but that gets turned into the

date or time (cannot remember which offhand) when publishing.

What happens if you use Race #1 Race #2 etc?