Tidier HTML

OK let me first admit I'm a bit of a nerd on tidy html, but I want our
tables to look as they should, using our css design for the site. Also
I want to put in some tweaks, e.g. greying cells containing DNC's.
The html that Sailwave produces isn't quite there, and I haven't found
an easy way to get from Sailwave to the basic results, for example in
a tab delimited text file with no HTML coding.
Is there any way to tweak the HTML Sailwave produces, or to simply
output simple text results?

thanks
Tony

Tony,

You can create your own Templates & Styles, the place to put them is in the appropriate folders under the Templates & Styles sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The reason for doing this is that they will not get overwritten during upgrades of Sailwave. You could use the Sailwave provided Templates & Styles as a starting point using a copy moved in the My Styles Templates folders.

Sailwave ‘exports’ HTML and this is hard coded in the application. Also, you can on the second window of publishing select Editor in the drop down list box of destinations and the output will be ‘opened’ in your default HTML editor.

However, I have created a CSV file! To do this on the second page of the publishing select application from the drop down list of destination and click the MS Excel button then OK. After a short pause, well on my ancient 233MHz PII, Excel appears with the information. I then did a File Save As and selected CSV from the file format options. I will have to check what happens on a portable I have which does not have Microsoft Office installed but OpenOffice and see if it opens in OpenOffice Calc!

I have never created my own templates & styles. I am sure others will be able to give you more advice.

Hope this is useful pointer.

Kind regards,

Huw

···

-----Original Message-----
From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]** On Behalf Of** tony_tucker0
Sent: 18 April 2008 10:39
To:
sailwave@yahoogroups.com
Subject: [sailwave] Tidier HTML

OK let me first admit I’m a bit of a nerd on tidy html, but I want our
tables to look as they should, using our css design for the site. Also
I want to put in some tweaks, e.g. greying cells containing DNC’s.
The html that Sailwave produces isn’t quite there, and I haven’t found
an easy way to get from Sailwave to the basic results, for example in
a tab delimited text file with no HTML coding.
Is there any way to tweak the HTML Sailwave produces, or to simply
output simple text results?

thanks
Tony

Tony,

CSS uses two sorts of customization, class and id.

class (style defined with a dot) is used by Sailwave

id (style defined by #) is not.

When you display the html page, show the page source

and save the source

Then, using Wordpad,

  • open the file
  • under , add a style #DNC { background-color: #808080 }
  • search and replace DNC by DNC
  • search and replace (DNC) by (DNC)
  • Save
  • Display the page…
    Note for the developpers…
  • The French software FReg allows to display 1st, 2nd or 3rd places with colors

    example (customiszed gold, silver and yellow)

    #1 { background-color: #FFDD00 }

    #2 { background-color: #DDDDFF }

    #3 { background-color: #66BB66 }

    and the code of the page contains something like

    1
    1.0

    displaying rank and points, no background if no style is defined for #1, otherwise the style you defined, here “gold”.

    If these sleeping styles are in the html code of the page, they can easily be activated when needed…

    More.

    When I’m using the same codes on several web sites, and a dedicated style sheet is used on each site, replace the style definitions (or add after style defs) the line (the specific stylesheet for results is named results.css), all files are displayed in the style of the Web site…

    Phil

    ···

    ----- Original Message -----

    From:
    Huw Pearce

    To: sailwave@yahoogroups.com

    Sent: Friday, April 18, 2008 12:09 PM

    Subject: RE: [sailwave] Tidier HTML

    Tony,

    You can create your own Templates & Styles, the place to put them is in the appropriate folders under the Templates & Styles sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The reason for doing this is that they will not get overwritten during upgrades of Sailwave. You could use the Sailwave provided Templates & Styles as a starting point using a copy moved in the My Styles Templates folders.

    Sailwave ‘exports’ HTML and this is hard coded in the application. Also, you can on the second window of publishing select Editor in the drop down list box of destinations and the output will be ‘opened’ in your default HTML editor.

    However, I have created a CSV file! To do this on the second page of the publishing select application from the drop down list of destination and click the MS Excel button then OK. After a short pause, well on my ancient 233MHz PII, Excel appears with the information. I then did a File Save As and selected CSV from the file format options. I will have to check what happens on a portable I have which does not have Microsoft Office installed but OpenOffice and see if it opens in OpenOffice Calc!

    I have never created my own templates & styles. I am sure others will be able to give you more advice.

    Hope this is useful pointer.

    Kind regards,

    Huw

    -----Original Message-----
    From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]** On Behalf Of** tony_tucker0
    Sent: 18 April 2008 10:39
    To:
    sailwave@yahoogroups.com
    Subject: [sailwave] Tidier HTML

    OK let me first admit I'm a bit of a nerd on tidy html, but I want our
    tables to look as they should, using our css design for the site. Also
    I want to put in some tweaks, e.g. greying cells containing DNC's.
    The html that Sailwave produces isn't quite there, and I haven't found
    an easy way to get from Sailwave to the basic results, for example in
    

    a tab delimited text file with no HTML coding.
    Is there any way to tweak the HTML Sailwave produces, or to simply
    output simple text results?

    thanks
    Tony

Philippe,

ID attributes should be unique for the document, so you can’t use ids
to mark table cells for DNC, DNF, etc., because you can have multiple
DNF, DNC, whatever. Class attributes are the right way to do this.

Milen Petrinski

Philippe De Troy wrote:

···

sailwave@yahoogroups.commailto:sailwave@yahoogroups.comOn Behalf Of
Sent:
**To:**sailwave@yahoogroups.com
Subject:

In the attached html file (customized from Sailwave examples), DNC’s are on a grey background, and first, second and third places are marked by colours.

the DNC style applies to the cell (

), the gold, silver and bronze apply to the text ( 3.00

The DNC style could be convenient for annual rankings or “winter series”, where many boats are not sailing every race.

In the example, I defined too a “discard” style id, to change the background color for cells with discarded scores.

following lines are added to the definitions:

#gold { background-color: #FFDD44 }
#silver { background-color: #DDDDFF }
#bronze { background-color: #DDDD88 }
#DNC { background-color: #BBBBBB }
#discard { background-color: #BBBBBB }

Note that the style discard is defined but NOT used in the example…

Philippe

blw474F.htm (12.1 KB)

···

----- Original Message -----

From:
Милен Петрински

To: sailwave@yahoogroups.com

Sent: Friday, April 18, 2008 3:14 PM

Subject: Re: [sailwave] Tidier HTML

Philippe,

ID attributes should be unique for the document, so you can’t use ids to mark table cells for DNC, DNF, etc., because you can have multiple DNF, DNC, whatever. Class attributes are the right way to do this.

Milen Petrinski

Philippe De Troy wrote:

Tony,

CSS uses two sorts of customization, class and id. 
class (style defined with a dot) is used by Sailwave

id (style defined by #) is not.

When you display the html page, show the page source

and save the source

Then, using Wordpad,
  • open the file
  •   under <style>, add a style #DNC { background-color: #808080 }
    
  •   search and replace <td>DNC by <td id="DNC">DNC
    
  •   search and replace <td>(DNC) by <td id="DNC">(DNC)
    
  • Save
  • Display the page…
    Note for the developpers…
The French software FReg allows to display 1st, 2nd or 3rd places with colors
example (customiszed gold, silver and yellow)
#1 { background-color: #FFDD00 }
#2 { background-color: #DDDDFF }

#3 { background-color: #66BB66 }

and the code of the page contains something like
<td><span id="1">1<br><i>1.0</i></td>
displaying rank and points, no background if no style is defined for #1, otherwise the style you defined, here "gold".
If these sleeping styles are in the html code of the page, they can easily be activated when needed...

More.

When I'm using the same codes on several web sites, and a dedicated style sheet is used on each site, replace the style definitions (or add after style defs) the line <link rel="stylesheet" type="text/css" href="results.css"> (the specific stylesheet for results is named results.css), all files are displayed in the style of the Web site...

Phil

  ----- Original Message -----

From:
Huw Pearce

To:
sailwave@yahoogroups.com

Sent:
Friday, April 18, 2008 12:09 PM

Subject:
RE: [sailwave] Tidier HTML

Tony,

  You can create your own Templates & Styles, the place to put them is in the appropriate folders under the Templates & Styles sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The reason for doing this is that they will not get overwritten during upgrades of Sailwave. You could use the Sailwave provided Templates & Styles as a starting point using a copy moved in the My Styles Templates folders.
  Sailwave 'exports' HTML and this is hard coded in the application. Also, you can on the second window of publishing select Editor in the drop down list box of destinations and the output will be 'opened' in your default HTML editor.
  However, I have created a CSV file! To do this on the second page of the publishing select application from the drop down list of destination and click the MS Excel button then OK. After a short pause, well on my ancient 233MHz PII, Excel appears with the information. I then did a File Save As and selected CSV from the file format options. I will have to check what happens on a portable I have which does not have Microsoft Office installed but OpenOffice and see if it opens in OpenOffice Calc!
  I have never created my own templates & styles. I am sure others will be able to give you more advice.

Hope this is useful pointer.

Kind regards,

Huw

-----Original Message-----
From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]** On Behalf Of** tony_tucker0
Sent: 18 April 2008 10:39
To: sailwave@yahoogroups.com
Subject:
[sailwave] Tidier HTML

    OK let me first admit I'm a bit of a nerd on tidy html, but I want our
    tables to look as they should, using our css design for the site. Also
    I want to put in some tweaks, e.g. greying cells containing DNC's.
    The html that Sailwave produces isn't quite there, and I haven't found
    an easy way to get from Sailwave to the basic results, for example in

a tab delimited text file with no HTML coding.
Is there any way to tweak the HTML Sailwave produces, or to simply
output simple text results?

thanks
Tony

Milen, Phillipe

         Currently I am doing a find and change on all cells containing DNC to add my dnc class from the css file. That works OK, but is a bit time consuming. Is there anyway I can add something to the Sailwave class files to automate that?

thanks
Tony

···

At 14:14 18/04/2008, Ìèëåí Ïåòðèíñêè wrote:

Philippe,

ID attributes should be unique for the document, so you can't use ids to mark table cells for DNC, DNF, etc., because you can have multiple DNF, DNC, whatever. Class attributes are the right way to do this.

Milen Petrinski

Philippe De Troy wrote:

Tony,

CSS uses two sorts of customization, class and id.
class (style defined with a dot) is used by Sailwave
id (style defined by #) is not.

When you display the html page, show the page source
and save the source

Then, using Wordpad,
   * open the file
   * under <style>, add a style #DNC { background-color: #808080 }
   * search and replace <td>DNC by <td id="DNC">DNC
   * search and replace <td>(DNC) by <td id="DNC">(DNC)
   * Save
   * Display the page...
Note for the developpers...
The French software FReg allows to display 1st, 2nd or 3rd places with colors
example (customiszed gold, silver and yellow)
#1 { background-color: #FFDD00 }
#2 { background-color: #DDDDFF }
#3 { background-color: #66BB66 }

and the code of the page contains something like
<td><span id="1">1<br><i>1.0</i></td>
displaying rank and points, no background if no style is defined for #1, otherwise the style you defined, here "gold".

If these sleeping styles are in the html code of the page, they can easily be activated when needed...
More.

When I'm using the same codes on several web sites, and a dedicated style sheet is used on each site, replace the style definitions (or add after style defs) the line <link rel="stylesheet" type="text/css" href="results.css"> (the specific stylesheet for results is named results.css), all files are displayed in the style of the Web site...

Phil

----- Original Message -----
From: <mailto:huw.pearce@bcs.org.uk>Huw Pearce
To: <mailto:sailwave@yahoogroups.com>sailwave@yahoogroups.com
Sent: Friday, April 18, 2008 12:09 PM
Subject: RE: [sailwave] Tidier HTML

Tony,

You can create your own Templates & Styles, the place to put them is in the appropriate folders under the Templates & Styles sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The reason for doing this is that they will not get overwritten during upgrades of Sailwave. You could use the Sailwave provided Templates & Styles as a starting point using a copy moved in the My Styles Templates folders.

Sailwave 'exports' HTML and this is hard coded in the application. Also, you can on the second window of publishing select Editor in the drop down list box of destinations and the output will be 'opened' in your default HTML editor.

However, I have created a CSV file! To do this on the second page of the publishing select application from the drop down list of destination and click the MS Excel button then OK. After a short pause, well on my ancient 233MHz PII, Excel appears with the information. I then did a File Save As and selected CSV from the file format options. I will have to check what happens on a portable I have which does not have Microsoft Office installed but OpenOffice and see if it opens in OpenOffice Calc!

I have never created my own templates & styles. I am sure others will be able to give you more advice.

Hope this is useful pointer.
Kind regards,
Huw
-----Original Message-----
From: <mailto:sailwave@yahoogroups.com>sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]On Behalf Of tony_tucker0
Sent: 18 April 2008 10:39
To: <mailto:sailwave@yahoogroups.com>sailwave@yahoogroups.com
Subject: [sailwave] Tidier HTML

OK let me first admit I'm a bit of a nerd on tidy html, but I want our
tables to look as they should, using our css design for the site. Also
I want to put in some tweaks, e.g. greying cells containing DNC's.
The html that Sailwave produces isn't quite there, and I haven't found
an easy way to get from Sailwave to the basic results, for example in
a tab delimited text file with no HTML coding.
Is there any way to tweak the HTML Sailwave produces, or to simply
output simple text results?

thanks
Tony

Milen,

You are also probably new in the Sailwave business…

Some time ago, all cell styles were defined cell by cell, making the final page code very difficult to read… and to customize.

Now styles for “odd” and “even” lines are in the code. (perhaps these styles should NOT be used in table headerlines, or define a style class headerodd and headereven…)

Some pre-defined page styles use it, some don’t.

But lines are always marked in the

tag.

For some Web pages, I’ve to use semi-transparent background images instead of plain background colors.

With the present code, it’s no longer a problem, see variant attached…

Note that I marked discards, not DNC’s as plain light grey cells in this version.

A comment for the developpers… these grey cells are not nice with text left-aligned…

Phil

blw474F2.htm (12.4 KB)

···

----- Original Message -----

From:
Милен Петрински

To: sailwave@yahoogroups.com

Sent: Friday, April 18, 2008 3:14 PM

Subject: Re: [sailwave] Tidier HTML

Philippe,

ID attributes should be unique for the document, so you can’t use ids to mark table cells for DNC, DNF, etc., because you can have multiple DNF, DNC, whatever. Class attributes are the right way to do this.

Milen Petrinski

Philippe De Troy wrote:

Tony,

CSS uses two sorts of customization, class and id. 
class (style defined with a dot) is used by Sailwave

id (style defined by #) is not.

When you display the html page, show the page source

and save the source

Then, using Wordpad,
  • open the file
  •   under <style>, add a style #DNC { background-color: #808080 }
    
  •   search and replace <td>DNC by <td id="DNC">DNC
    
  •   search and replace <td>(DNC) by <td id="DNC">(DNC)
    
  • Save
  • Display the page…
    Note for the developpers…
The French software FReg allows to display 1st, 2nd or 3rd places with colors
example (customiszed gold, silver and yellow)
#1 { background-color: #FFDD00 }
#2 { background-color: #DDDDFF }

#3 { background-color: #66BB66 }

and the code of the page contains something like
<td><span id="1">1<br><i>1.0</i></td>
displaying rank and points, no background if no style is defined for #1, otherwise the style you defined, here "gold".
If these sleeping styles are in the html code of the page, they can easily be activated when needed...

More.

When I'm using the same codes on several web sites, and a dedicated style sheet is used on each site, replace the style definitions (or add after style defs) the line <link rel="stylesheet" type="text/css" href="results.css"> (the specific stylesheet for results is named results.css), all files are displayed in the style of the Web site...

Phil

  ----- Original Message -----

From:
Huw Pearce

To:
sailwave@yahoogroups.com

Sent:
Friday, April 18, 2008 12:09 PM

Subject:
RE: [sailwave] Tidier HTML

Tony,

  You can create your own Templates & Styles, the place to put them is in the appropriate folders under the Templates & Styles sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The reason for doing this is that they will not get overwritten during upgrades of Sailwave. You could use the Sailwave provided Templates & Styles as a starting point using a copy moved in the My Styles Templates folders.
  Sailwave 'exports' HTML and this is hard coded in the application. Also, you can on the second window of publishing select Editor in the drop down list box of destinations and the output will be 'opened' in your default HTML editor.
  However, I have created a CSV file! To do this on the second page of the publishing select application from the drop down list of destination and click the MS Excel button then OK. After a short pause, well on my ancient 233MHz PII, Excel appears with the information. I then did a File Save As and selected CSV from the file format options. I will have to check what happens on a portable I have which does not have Microsoft Office installed but OpenOffice and see if it opens in OpenOffice Calc!
  I have never created my own templates & styles. I am sure others will be able to give you more advice.

Hope this is useful pointer.

Kind regards,

Huw

-----Original Message-----
From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]** On Behalf Of** tony_tucker0
Sent: 18 April 2008 10:39
To: sailwave@yahoogroups.com
Subject:
[sailwave] Tidier HTML

    OK let me first admit I'm a bit of a nerd on tidy html, but I want our
    tables to look as they should, using our css design for the site. Also
    I want to put in some tweaks, e.g. greying cells containing DNC's.
    The html that Sailwave produces isn't quite there, and I haven't found
    an easy way to get from Sailwave to the basic results, for example in

a tab delimited text file with no HTML coding.
Is there any way to tweak the HTML Sailwave produces, or to simply
output simple text results?

thanks
Tony

Wow Phil, race results as art... impressive stuff!

Simon

Milen,

You are also probably new in the Sailwave business...
Some time ago, all cell styles were defined cell by cell, making the

final page code very difficult to read... and to customize.

Now styles for "odd" and "even" lines are in the code. (perhaps

these styles should NOT be used in table headerlines, or define a
style class headerodd and headereven...)

Some pre-defined page styles use it, some don't.

But lines are always marked in the <tr> tag.

For some Web pages, I've to use semi-transparent background images

instead of plain background colors.

With the present code, it's no longer a problem, see variant

attached...

Note that I marked discards, not DNC's as plain light grey cells in

this version.

A comment for the developpers... these grey cells are not nice with

text left-aligned...

Phil

  From: Ìèëåí Ïåòðèíñêè
  To: sailwave@yahoogroups.com
  Sent: Friday, April 18, 2008 3:14 PM
  Subject: Re: [sailwave] Tidier HTML

  Philippe,

  ID attributes should be unique for the document, so you can't use

ids to mark table cells for DNC, DNF, etc., because you can have
multiple DNF, DNC, whatever. Class attributes are the right way to do
this.

  Milen Petrinski

  Philippe De Troy wrote:
    Tony,

    CSS uses two sorts of customization, class and id.
    class (style defined with a dot) is used by Sailwave
    id (style defined by #) is not.

    When you display the html page, show the page source
    and save the source

    Then, using Wordpad,
      a.. open the file
      b.. under <style>, add a style #DNC { background-color: #808080 }
      c.. search and replace <td>DNC by <td id="DNC">DNC
      d.. search and replace <td>(DNC) by <td id="DNC">(DNC)
      e.. Save
      f.. Display the page...
    Note for the developpers...
    The French software FReg allows to display 1st, 2nd or 3rd

places with colors

    example (customiszed gold, silver and yellow)
    #1 { background-color: #FFDD00 }
    #2 { background-color: #DDDDFF }
    #3 { background-color: #66BB66 }

    and the code of the page contains something like
    <td><span id="1">1<br><i>1.0</i></td>
    displaying rank and points, no background if no style is defined

for #1, otherwise the style you defined, here "gold".

    If these sleeping styles are in the html code of the page, they

can easily be activated when needed...

    More.

    When I'm using the same codes on several web sites, and a

dedicated style sheet is used on each site, replace the style
definitions (or add after style defs) the line <link rel="stylesheet"
type="text/css" href="results.css"> (the specific stylesheet for
results is named results.css), all files are displayed in the style of
the Web site...

    Phil

      From: Huw Pearce
      To: sailwave@yahoogroups.com
      Sent: Friday, April 18, 2008 12:09 PM
      Subject: RE: [sailwave] Tidier HTML

      Tony,

      You can create your own Templates & Styles, the place to put

them is in the appropriate folders under the Templates & Styles
sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The
reason for doing this is that they will not get overwritten during
upgrades of Sailwave. You could use the Sailwave provided Templates &
Styles as a starting point using a copy moved in the My Styles
Templates folders.

      Sailwave 'exports' HTML and this is hard coded in the

application. Also, you can on the second window of publishing select
Editor in the drop down list box of destinations and the output will
be 'opened' in your default HTML editor.

      However, I have created a CSV file! To do this on the second

page of the publishing select application from the drop down list of
destination and click the MS Excel button then OK. After a short
pause, well on my ancient 233MHz PII, Excel appears with the
information. I then did a File Save As and selected CSV from the file
format options. I will have to check what happens on a portable I have
which does not have Microsoft Office installed but OpenOffice and see
if it opens in OpenOffice Calc!

      I have never created my own templates & styles. I am sure

others will be able to give you more advice.

      Hope this is useful pointer.
      Kind regards,
      Huw
        From: sailwave@yahoogroups.com

[mailto:sailwave@yahoogroups.com]On Behalf Of tony_tucker0

        Sent: 18 April 2008 10:39
        To: sailwave@yahoogroups.com
        Subject: [sailwave] Tidier HTML

        OK let me first admit I'm a bit of a nerd on tidy html, but

I want our

        tables to look as they should, using our css design for the

site. Also

        I want to put in some tweaks, e.g. greying cells containing

DNC's.

        The html that Sailwave produces isn't quite there, and I

haven't found

        an easy way to get from Sailwave to the basic results, for

example in

        a tab delimited text file with no HTML coding.
        Is there any way to tweak the HTML Sailwave produces, or to

simply

···

--- In sailwave@yahoogroups.com, "Philippe De Troy" <philippe@...> wrote:

  ----- Original Message -----
      ----- Original Message -----
        -----Original Message-----
        output simple text results?

        thanks
        Tony

... and you didn't see the full stuff. Here I used a fixed-size page background 1280px wide.
The sourde Wab site www.microclass.org has backgrounds in 8 sizes for screens from under 800 pixels to over 2880, and the picture changes automatically every month...

Phil

···

----- Original Message ----- From: "Simon" <simon@smith.net>
To: <sailwave@yahoogroups.com>
Sent: Friday, April 18, 2008 5:02 PM
Subject: [sailwave] Re: Tidier HTML

Wow Phil, race results as art... impressive stuff!

Simon

--- In sailwave@yahoogroups.com, "Philippe De Troy" <philippe@...> wrote:

Milen,

You are also probably new in the Sailwave business...
Some time ago, all cell styles were defined cell by cell, making the

final page code very difficult to read... and to customize.

Now styles for "odd" and "even" lines are in the code. (perhaps

these styles should NOT be used in table headerlines, or define a
style class headerodd and headereven...)

Some pre-defined page styles use it, some don't.

But lines are always marked in the <tr> tag.

For some Web pages, I've to use semi-transparent background images

instead of plain background colors.

With the present code, it's no longer a problem, see variant

attached...

Note that I marked discards, not DNC's as plain light grey cells in

this version.

A comment for the developpers... these grey cells are not nice with

text left-aligned...

Phil

  ----- Original Message ----- From: ����� ���������
  To: sailwave@yahoogroups.com
  Sent: Friday, April 18, 2008 3:14 PM
  Subject: Re: [sailwave] Tidier HTML

  Philippe,

  ID attributes should be unique for the document, so you can't use

ids to mark table cells for DNC, DNF, etc., because you can have
multiple DNF, DNC, whatever. Class attributes are the right way to do
this.

  Milen Petrinski

  Philippe De Troy wrote:
    Tony,

    CSS uses two sorts of customization, class and id.
    class (style defined with a dot) is used by Sailwave
    id (style defined by #) is not.

    When you display the html page, show the page source
    and save the source

    Then, using Wordpad,
      a.. open the file
      b.. under <style>, add a style #DNC { background-color: #808080 }
      c.. search and replace <td>DNC by <td id="DNC">DNC
      d.. search and replace <td>(DNC) by <td id="DNC">(DNC)
      e.. Save
      f.. Display the page...
    Note for the developpers...
    The French software FReg allows to display 1st, 2nd or 3rd

places with colors

    example (customiszed gold, silver and yellow)
    #1 { background-color: #FFDD00 }
    #2 { background-color: #DDDDFF }
    #3 { background-color: #66BB66 }

    and the code of the page contains something like
    <td><span id="1">1<br><i>1.0</i></td>
    displaying rank and points, no background if no style is defined

for #1, otherwise the style you defined, here "gold".

    If these sleeping styles are in the html code of the page, they

can easily be activated when needed...

    More.

    When I'm using the same codes on several web sites, and a

dedicated style sheet is used on each site, replace the style
definitions (or add after style defs) the line <link rel="stylesheet"
type="text/css" href="results.css"> (the specific stylesheet for
results is named results.css), all files are displayed in the style of
the Web site...

    Phil

      ----- Original Message ----- From: Huw Pearce
      To: sailwave@yahoogroups.com
      Sent: Friday, April 18, 2008 12:09 PM
      Subject: RE: [sailwave] Tidier HTML

      Tony,

      You can create your own Templates & Styles, the place to put

them is in the appropriate folders under the Templates & Styles
sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The
reason for doing this is that they will not get overwritten during
upgrades of Sailwave. You could use the Sailwave provided Templates &
Styles as a starting point using a copy moved in the My Styles
Templates folders.

      Sailwave 'exports' HTML and this is hard coded in the

application. Also, you can on the second window of publishing select
Editor in the drop down list box of destinations and the output will
be 'opened' in your default HTML editor.

      However, I have created a CSV file! To do this on the second

page of the publishing select application from the drop down list of
destination and click the MS Excel button then OK. After a short
pause, well on my ancient 233MHz PII, Excel appears with the
information. I then did a File Save As and selected CSV from the file
format options. I will have to check what happens on a portable I have
which does not have Microsoft Office installed but OpenOffice and see
if it opens in OpenOffice Calc!

      I have never created my own templates & styles. I am sure

others will be able to give you more advice.

      Hope this is useful pointer.
      Kind regards,
      Huw
        -----Original Message-----
        From: sailwave@yahoogroups.com

[mailto:sailwave@yahoogroups.com]On Behalf Of tony_tucker0

        Sent: 18 April 2008 10:39
        To: sailwave@yahoogroups.com
        Subject: [sailwave] Tidier HTML

        OK let me first admit I'm a bit of a nerd on tidy html, but

I want our

        tables to look as they should, using our css design for the

site. Also

        I want to put in some tweaks, e.g. greying cells containing

DNC's.

        The html that Sailwave produces isn't quite there, and I

haven't found

        an easy way to get from Sailwave to the basic results, for

example in

        a tab delimited text file with no HTML coding.
        Is there any way to tweak the HTML Sailwave produces, or to

simply

        output simple text results?

        thanks
        Tony

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

-!- http://www.yachtsandyachting.com/ -!- http://www.sailing.org/ -!- http://www.sailwave.com/ -!-

Latest versions of sailwave can be downloaded from the 'files' section at
http://groups.yahoo.com/group/sailwave/

On-Line Sailwave help...
http://sailwave.com/help/HTML/

Convert to daily digest of emails send blank email to:
sailwave-digest@yahoogroups.comYahoo! Groups Links

Milen,

The question was for series lasting longer than a regatta, to hide all DNC’s…

If the code is in the HTML but the id is not defined in page style or css file, nothing is changed.

Phil

···

----- Original Message -----

From:
Милен Петрински

To: sailwave@yahoogroups.com

Sent: Friday, April 18, 2008 3:14 PM

Subject: Re: [sailwave] Tidier HTML

Philippe,

ID attributes should be unique for the document, so you can’t use ids to mark table cells for DNC, DNF, etc., because you can have multiple DNF, DNC, whatever. Class attributes are the right way to do this.

Milen Petrinski

Philippe De Troy wrote:

Tony,

CSS uses two sorts of customization, class and id. 
class (style defined with a dot) is used by Sailwave

id (style defined by #) is not.

When you display the html page, show the page source

and save the source

Then, using Wordpad,
  • open the file
  •   under <style>, add a style #DNC { background-color: #808080 }
    
  •   search and replace <td>DNC by <td id="DNC">DNC
    
  •   search and replace <td>(DNC) by <td id="DNC">(DNC)
    
  • Save
  • Display the page…
    Note for the developpers…
The French software FReg allows to display 1st, 2nd or 3rd places with colors
example (customiszed gold, silver and yellow)
#1 { background-color: #FFDD00 }
#2 { background-color: #DDDDFF }

#3 { background-color: #66BB66 }

and the code of the page contains something like
<td><span id="1">1<br><i>1.0</i></td>
displaying rank and points, no background if no style is defined for #1, otherwise the style you defined, here "gold".
If these sleeping styles are in the html code of the page, they can easily be activated when needed...

More.

When I'm using the same codes on several web sites, and a dedicated style sheet is used on each site, replace the style definitions (or add after style defs) the line <link rel="stylesheet" type="text/css" href="results.css"> (the specific stylesheet for results is named results.css), all files are displayed in the style of the Web site...

Phil

  ----- Original Message -----

From:
Huw Pearce

To:
sailwave@yahoogroups.com

Sent:
Friday, April 18, 2008 12:09 PM

Subject:
RE: [sailwave] Tidier HTML

Tony,

  You can create your own Templates & Styles, the place to put them is in the appropriate folders under the Templates & Styles sub-folders in the Sailwave folder, i.e. My Styles & My Templates. The reason for doing this is that they will not get overwritten during upgrades of Sailwave. You could use the Sailwave provided Templates & Styles as a starting point using a copy moved in the My Styles Templates folders.
  Sailwave 'exports' HTML and this is hard coded in the application. Also, you can on the second window of publishing select Editor in the drop down list box of destinations and the output will be 'opened' in your default HTML editor.
  However, I have created a CSV file! To do this on the second page of the publishing select application from the drop down list of destination and click the MS Excel button then OK. After a short pause, well on my ancient 233MHz PII, Excel appears with the information. I then did a File Save As and selected CSV from the file format options. I will have to check what happens on a portable I have which does not have Microsoft Office installed but OpenOffice and see if it opens in OpenOffice Calc!
  I have never created my own templates & styles. I am sure others will be able to give you more advice.

Hope this is useful pointer.

Kind regards,

Huw

-----Original Message-----
From: sailwave@yahoogroups.com [mailto:sailwave@yahoogroups.com]** On Behalf Of** tony_tucker0
Sent: 18 April 2008 10:39
To: sailwave@yahoogroups.com
Subject:
[sailwave] Tidier HTML

    OK let me first admit I'm a bit of a nerd on tidy html, but I want our
    tables to look as they should, using our css design for the site. Also
    I want to put in some tweaks, e.g. greying cells containing DNC's.
    The html that Sailwave produces isn't quite there, and I haven't found
    an easy way to get from Sailwave to the basic results, for example in

a tab delimited text file with no HTML coding.
Is there any way to tweak the HTML Sailwave produces, or to simply
output simple text results?

thanks
Tony