unicodetools
unicodetools copied to clipboard
Retire ToolUnicodeProperties & UCD.java
There are currently two ways of parsing the property files, ToolUnicodeProperties.java/UCD.java (very old), and the more modern IndexUnicodeProperties.java. I've long had on my task list replacing the old with new; the new is more extensible, and much easier to update for new properties and property values.
Here is a draft of the steps to do that:
- Analyze the differences between ToolUnicodeProperties.java and IndexUnicodeProperties.java to see if the latter can simply replace the former.
- If the differences would affect the results (tests, file generation), then write a shim for IndexUnicodeProperties.java where necessary.
- Find all the cases where internal code is calling UCD.java directly instead of using ToolUnicodeProperties.java.
- Replace those by calls to ShimIndexUnicodeProperties.java, and make sure everything still works.
- Replace calls to ToolUnicodeProperties by ShimIndexUnicodeProperties.java
- Remove UCD.java, UTC_Types.java, UCD_Names.java, ToolUnicodeProperties.java, and code only used by them.
See also https://github.com/unicode-org/unicodetools/issues/484.
thanks for the cross link