SLAC PEP-II
BABAR
SLAC<->RAL
Babar logo
HEPIC E,S & H Databases PDG HEP preprints
Organization Detector Computing Physics Documentation
Personnel Glossary Sitemap Search Hypernews
Unwrap page!
Comp. Search
Who's who?
Meetings
FAQ Homepage
Archive
Environment
Administration
New User Info.
Web Info/Tools
Monitoring
Training
Tools & Utils
Programming
C++ Standard
SRT, AFS, CVS
QA and QC
Remedy
Histogramming
Operations
PromptReco
Simulation Production
Online SW
Dataflow
Detector Control
Evt Processing
Run Control
Calibration
Databases
Offline
Workbook
Coding Standards
Simulation
Reconstruction
Prompt Reco.
BaBar Grid
Data Distribution
Beta & BetaTools
Kanga & Root
Analysis Tools
RooFit Toolkit
Data Management
Data Quality
Event display
Event Browser
Code releases
Databases
Check this page for HTML 4.01 Transitional compliance with the
W3C Validator
(More checks...)

Tools for BaBar web authors

This page is out-of-date and is kept for historical purposes only!!! Go to the new Web tools page.
  • Microsoft bookmarks<->favourites conversion tool on NT machines.
  • Testhtml to correct html syntax.
  • WEBwrap to insert headers, make links relative and insert location information into html files.
  • FixBookmarks converts bookmarks to new BaBar web.
  • FixIMG inserts size information into html files for images.

testhtml ($BFROOT/doc/www/WebTeamPages/tools/bin/testhtml)

testhtml is a wrapper for Tidy - a program which analyses html for correct syntax. It can be used to produce a report or automatically correct the syntax of an html file. testhtml will insert body and /body tags if they don't exist, make sure tables are defined correctly etc... It also has a host of other features.
Documentation can be found here.
Tidy is written in C and can be downloaded here.

Typical usage: testhtml -e Marsupials.html
The -e flag tells testhtml to report any html errors.
testhtml can also correct some errors (e.g. missing head tags etc...) when used with the -m (modify) flag.
It is important that your page contains no errors before attempting to wrap BaBar headers into your page since testhtml is run with the -m flag within the wrapping tool.

Tidy is a binary and has been compiled for AIX, SunOS (Solaris), HP-UX, DEC Unix 4.x (OSF1) and Linux (Red Hat 5.1, egcs compiler).
Tidy has been tested on vesta, flora, morgan and percheron.


WEBwrap ($BFROOT/doc/www/WebTeamPages/tools/bin/WEBwrap)

WEBwrap adds(wraps)/removes standard BaBar navigation headers to your web page.
The Add Header option will only work if you have a header.inc file in the same directory as the given filename. So, copy your file to an appropriate directory under $BFROOT/doc/www/testweb/ and run WEBwrap there.

    Usage: WEBwrap [-ah] [-rh] [-help] <filname>
        -ah       Add Header (replace existing header)
        -rh       Remove Header 
        -help     Display this help file 
        <filename> The name of the html file you wish to wrap.
    

FixBookmarks ($BFROOT/doc/www/WebTeamPages/tools/bin/FixBookmarks)

A tool for converting bookmarks from the old web to the new web. The script can be run in two modes:
  1. query mode : You can type in an old location and it will search for a new location
    usage: FixBookmarks -q
  2. update mode: This will update your bookmarks (making a backup first)
    usage: FixBookmarks ./.netscape/bookmarks.html (remember to quit netscape before you do this!)

    *** Please note: The databases for old symbolic links and the new WWW file locations have not yet been merged. Currently, FixBookmarks uses the new file locations database only, so you may have broken links even after updating your bookmarks file.


FixIMG ($BFROOT/doc/www/WebTeamPages/tools/bin/fiximg)

FixIMG examines HTML files and changes IMG tags to hold the WIDTH and HEIGHT sizes. Putting the size in IMG tags will speed up loading the page with Netscape. When HTML files are edited manually, putting in the sizes is quite a hassle. Fiximg will try to locate each indicated image, and determine its size if it is a GIF or JPG or XBM image. If it changes a html file it produces a back-up copy of the original file.
Usage: fiximg [-h] [-l] [-v] <Directory> or <file name>
       -h     Displays manual page.
       -l     Treat symbolic links as well. The default is not to treat
              symbolic links, because the original file should be treated
              instead of the link to it.
       -v     Display the version of fiximg.pl

Page authors:Mark Williams and Paul Dixon
Last significant update: 11th of January 1999 Expiry date: 1st of February 1999