Updating DTDs
This is a basic guide to editing the spec. We'll add to this over time. LocationThe CLDR Spec (TR35) is maintained via cvs: EditingThe
CLDR Spec is one of the Unicode Technical Standards, so it has a very
specific format. When you edit it, you want to make sure that you
follow the guidelines in this document. - Don't mess with the HTML. If you use a WYSIWYG tool, make sure that it doesn't make arbitrary changes to the HTML.
- Don't use Microsoft Word -- it completely mucks up the HTML
- If you use FrontPage, make sure to make the settings not change the HTML
- Mark all changes. New
text should be marked with <span class="changedSpan">, and
removed with <span class="removedSpan">. Note that <span>
can't cross block elements like <div>, <p>, <td>, and
so on. So if you are changing a bunch of text within a table or
multiple paragraphs, you have to mark each one separately. This is MUCH easier to do with a WYSIWYG editor.
- Also
put a note summarizing each type of change in the Modifications
section. At the end of the note, reference any relevant bug (Jitterbug
now, Trac in the future) using the format "[ticket #456]".
- Use Styles.
- For Examples, DTD fragments, etc.
- Look at existing text in the document to find the right style to use.
- Validate the results. Run the following tools to make sure you haven't messed anything up. (You can just click on the links in Preview Mode.)
- http://validator.w3.org/check?uri=http://unicode.org/draft/reports/tr35/tr35.html
- http://jigsaw.w3.org/css-validator/validator?uri=http://unicode.org/draft/reports/tr35/tr35.html
- http://validator.w3.org/checklink?url=http://unicode.org/draft/reports/tr35/tr35.html
- Diff the results. Before
you check into CVS, make sure that you diff with the previous version,
to make sure that you don't have any inadvertent changes.
There are details on the format at http://unicode.org/reports/tr-template.html. DTD / Structure ChangesYou must follow the process on Updating DTDs!Life-cycleAsk Rick to do these steps at the appropriate times, to http://unicode.org/draft/reports/tr35/tr35.html.
See Big Red Switch document: http://unicode.org/cldr/big_red_switch.html for details on some of these.
- When the new cycle is started:
- The header needs to be updated so that it is a draft version for the next release.
- Add a new section of Revisions in the Modifications section at the end.
- If necessary, update the copyright year at the end of the document.
- In all data files, replace old DTD numbers by new, and check in. Update the soft link on the Unicode site. See BRS.
- Examples for the transition from 1.5 and 1.5.1 to 1.6:
- In all common files: http://www.unicode.org/cldr/dtd/1.5
- => http://www.unicode.org/cldr/dtd/1.6
- In 2 dtd files: version CDATA #FIXED "1.5"
- => version CDATA #FIXED "1.6"
- In test files: cldrTest version='1.5.1'
- => cldrTest version='1.6'
- For the final release:
Recommended Editors- Windows
- Macintosh
- To edit the HTML directly (not WYSIWYG): BBEdit, Taco (has html preview and syntax check)
- WYSIWYG editors: I'm trying out KompoZer, at http://www.kompozer.net/ -Mark 3/5/08 9:57 AM
|
|