Tidy Legacy HTML
...is a DELUXE LTOOL which cleans up your Legacy generated pedigree style web pages.
NOTE: Tidy Legacy HTML has only been tested with HTML generated by Legacy V6 and V7 in English. If you are using an earlier version of Legacy or a language other than English, please check the generated HTML carefully for problems. If you find any problems, feel free to report them to the author.
To tidy up your Legacy generated pedigree style web pages:
Before and after samples of Tidy Legacy HTML can be found here and here.The only work I had to do (beside running Tidy Legacy HTML) was to make a few changes to the pedigree.css file that Tidy Legacy HTML created.For more information about the contents of pedigree.css, click [#59-en,here].
- Generate your pedigree style web pages in Legacy.
- Open your Legacy database in _LTools_.
- Double-click Tidy Legacy HTML in the Deluxe LTools tree to bring up the dialog for this LTool.
- Select a Source HTML Folder. This is the folder where you told Legacy to place the web pages it generated in Step 1.
- Select a Destination HTML Folder. This is the folder where you want _LTools_ to place the web pages it produces.
- Check Convert events to \ if desired.
- Check Convert sources to \
- Check Add LTools link to Legacy footer if desired and enter the text for the LTools link in the box below.
- Click the Pre-Processor button. This phase prepares the web pages for processing by HTML Tidy.
- When the pre-processing phase is finished, click the HTML Tidy button. This phase cleans up the HTML converting it to markup which will pass the HTML 4.01 Transitional validation at http://validator.w3.org/.
- When the HTML Tidy phase is finished, click the Post-Processor button. This phase inserts the LINK tag, the CSS styles, and optionally converts events and sources to \
... \ or \ format.
- You are done! _LTools_ has generated new HTML pages from those that Legacy created along with an external CSS stylesheet (see [#59-en,pedigree.css]) that you can use to customize your website. Now you can upload these files and any other supporting files from the Destination HTML Folder to your website.
ABOUT USING LEGACY's CUSTOM HEADERS/FOOTERS
If you want Tidy Legacy HTML to skip any CSS processing for Legacy's custom headers/footers, place any custom code between the following comments...
... custom HTML here ...
These two comments should appear on separate lines all by themselves.
Tidy Legacy HTML will not try to convert your custom HTML to CSS if it lies between these comments. However, your custom HTML will still go thru the pre-processing and HTML Tidy phases, as well as the non-CSS processing in the post-processing phase.
If the file pedigreeHead.txt exists in the Destination HTML Folder, Tidy Legacy HTML will insert the contents of pedigreeHead.txt into the \...\ section of each HTML document.
USING HTML ENTITIES TO INSERT UNICODE CHARACTERS
The post-processing phase will allow you to insert unicode characters into your HTML output. See the Description in this Mantis issue for more information.
uri/../images/bluepin.gif Source HTML Folder
This is the folder where you told Legacy to place the web pages it generated.
uri/../images/bluepin.gif Destination HTML Folder
This is the folder where you want _LTools_ to place the web pages it produces.
uri/../images/bluepin.gif Convert events to \
This option will convert events from Legacy's \
... \ style to \ tags.
uri/../images/bluepin.gif Convert sources to \
This option will convert sources from Legacy's \
... \ style to \
... \ tags.
uri/../images/bluepin.gif Add LTools link to Legacy footer
This option will add an HTML link to the Legacy footer which will tell page viewers that the page was modified by _LTools_. Enter the text for the link in the box below. _LTools_ will look for the Legacy footer and, if it finds it, will append the text that you entered. You do not have to enter the anchor tag for the _LTools_ website, as the program will scan for the word "LTools" and wrap it with the appropriate anchor tag.
Click this button to perform the pre-processing phase. This phase consists of some minor alterations to the Legacy generated HTML which will allow the HTML Tidy phase to clean things up without wreaking havoc. Only files that begin with a number are altered in this phase. All other files are passed thru as is.
uri/../images/bluepin.gif HTML Tidy...
Click this button to perform the HTML Tidy phase. This phase consists of invoking the HTML Tidy program (see http://tidy.sourceforge.net/) on each pedigree style web page. Only files that begin with a number are altered in this phase. All other files are passed thru as is.
Click this button to perform the post-processing phase. This phase inserts the LINK tag, the CSS styles, and optionally converts events and sources to \
... \ or \ format. All .htm or .html files are altered in some manner during this phase. All other files are passed thru as is.
uri/../images/bluepin.gif View Log...
Click if you wish to view a log which describes the processing in detail. This comes in handy for troubleshooting.
Click to close this dialog.
You can use the ? (on the caption bar) or the \ key to display help for this dialog.
Introduction | Deluxe Features | Find Missing Information | Send Legacy Reminders | Tidy Legacy HTML | List Events | Find Unattached Multimedia | Add Events | Add To-Do's | Address Converter | Advanced Set Living++ | Advanced Tagging - Tag Living | Backup/Restore USR Files | Copy Master Event | Delete Master Events | Advanced Tagging - Y-DNA | Get IPTC Data | Global Text Search | Merge Basic to SourceWriter Sources | MRIN Filing Assistant | Repair Multimedia Paths | RegEx GEDCOM | Run Raw SQL | Set IPTC Data | Set Picture Captions | Set Special User IDs | Sort All Children | Sort Children of Tagged Individuals | Sort Events | Sort Marriages by Date | View Legacy Tables | Rename Non-Unique Multimedia | Advanced Tagging | Advanced Tagging - Ancestors Plus | Advanced Tagging - Mito DNA | Create Unknown Spouses | Remove Dead Multimedia Links | Data Bridge | Save/Restore Tags | Link Unattached Multimedia | Standard Features | Set Private/Invisible | Change To-Do Priorities | Clear IPTC Data | DAR Lineage Worksheet | Delete To-Do's | Include Citations by Surety Level | Include Citations by Verified Flag | Remove Medical Notes for Living Individuals | Search Citations | Search File IDs | Set Individual User IDs | Set Marriage User IDs | Set Birthday/Anniversary/Death Reminders | Set Source Surety Levels | Set Source Verified Flags | System Requirements | Contact Info | Miscellaneous Help | Legacy Tables | Product Registration | Edit Preferences | Command Line | Legacy Tables - tblSX.Type | pedigree.css | Source Template | Event Template | About Wiki Web Help | Miscellaneous Tools | Convert Long to Short U.S.A. Location Names