The significant changes to WebWonder in version 7.00 concern improved file data reporting, correction of a long-standing problem with lists, along with the addition of a new list type, as well support for XHTML format. Powerful labour saving features have been added to deal with bulk changes to files as well as the ability to extract part of a page into a new page and have all the references to cross-page anchors automatically corrected.
The ‘About this file’ box now has four new fields. These give the numbers of the various types of link on a page. Google’s page ranking algorithm uses information like this whereby pages with more links appear to be more important. The four types are as follows:
On page links which are links to anchors within the page file.
On site links which are local links within the current WebWonder site.
Off site links which link to the rest of the web, ie starting with ‘http’.
Email links which start with ‘mailto:’.
A new button has been added to the Genealogy Tree File dialogue when creating family trees. When this switch is on, all the names of the people in the family tree that are blood-descendants of the individual A (in the relations box) will be shown in capital letters.
In previous versions of WebWonder ordered and unordered lists were not properly terminated in their HTML output. Also a line break <br> was not allowed in a list line. Version 7.00 addresses both of these issues. The way in which Return and Shift-Return behave in lists has been changed. Shift-Return now inserts a line break <br> as for any other type of paragraph. Return creates a new list line. To create a new or nested list, simply use the existing menu options provided.
Description lists were not supported in previous versions of WebWonder. These work in a slightly different way to ordered and unordered lists. List entries in those cases are bounded by <li>...</li>. For description lists (<dl>...</dl>, the list entries are enclosed in two different types of container: <dt>...</dt> for title and <dd>...</dd> for data. The second, data, line is indented more than the title line. In this case a Return in a title line will create a new data line and vice-versa.
For unordered lists, Edit>Bullet allows the shape of the bullet to be changed. For description lists Edit>Bullet allows title lines to become data lines and vice versa.
XHTML is a form of HTML where stricter formatting rules apply, such that:
<!DOCTYPE ....> is mandatory An XHTML document must have an XHTML DOCTYPE declaration. The <html>, <head>, <title>, and <body> elements must be present, and the xmlns attribute in <html> must specify the xml namespace for the document. All element names must be in lowercase. All empty elements must be closed ( e.g. <br /> ) All attribute names must be in lowercase. All attribute values have quotes around them. |
If the XHTML type is found in a file’s <!DOCTYPE ....> line it is assumed to be an XHTML file.
Usually, if XHTML is to be used, it will apply to the whole site. A new option has been added: Site>HTML output>XHTML. When this is active and a new page is called for, the new file xBlank/html is used instead of Blank/html, as the master. These can both be found inside the !WebWonder application.
When XHTML is on, lowercase output is forced on and greyed out.
The page editor window’s menu now has an XHTML entry in the File section. This will be ticked for an XHTML file. Clicking on this option will change between HTML and XHTML format for the file.
NB: If you want to use lowercase output or XHTML for genealogy, you will need to modify your master page to suit. Having done that, a rebuild will reformat the pages. Alternatively, use ‘Reload all files’ as described below.
In the past, changes to a site’s HTML output settings only took effect at the saving of an edited page. A new menu option has been added below the XHTML option in order to load and resave all the HTML files in the site so that they take on any of the other settings in this menu that may have been changed.
Extracting part of a page into a new file can become very complicated if links and anchors straddle the piece to be extracted and what is to be left behind. Additionally, references in other files to anchors that have moved into the extracted portion will need to be changed. WebWonder now has a feature to deal with this but it requires an understanding of the contents of an HTML file and so has been placed in an ‘Advanced’ menu.
The selection mechanism is used to define what is to be extracted. However, what is extracted is usually greater than the apparent selection. This is because only whole paragraphs and/or tables are moved and these must be at the lowest level. i.e. not nested within other structures. Nested lists or tables within tables may not be extracted by this feature.
Once a selection has been made, the Select>Advanced>Extract option may be used. A file name is entered for the new file, which will be created in the same directory as the ‘host’ file. The beginning of the host will be copied, up to and including <body... >. Then will follow the extracted bit and </body> and </html> to terminate it. The references for the anchors that cross the two bits will then be corrected, after which all other files will be scanned in case any anchors that are now in the extracted bit are referred to and need correcting. Lastly, the title for the new page will be requested.
Clicking on the page editor’s CSS button opens the CSS box for the paragraph or table cell that contains the caret. Holding down Shift while clicking on it toggles the CSS display effect. Holding down Ctrl while clicking on it now does the following:
If there is a selection, it applies the last used style defined by the last use of Style>Advanced>Span>CSS in this session. It creates a span around the selection if one doesn’t already exist.
If there is no selection or no last style, it bleeps.
The new key short-cut Ctrl-Shift-F8 also does the same as Ctrl-CSS button. This feature is also available as Style>Advanced>Span>Last used.