Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLDR-17561 Utility for visiting DtdData elements #3646

Conversation

macchiati
Copy link
Member

CLDR-17561

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

@macchiati
Copy link
Member Author

Draft; will need some dtd fixes and/or exceptions.

@macchiati macchiati requested review from srl295 and btangmu April 23, 2024 00:47
@macchiati macchiati marked this pull request as ready for review April 23, 2024 00:47
Copy link
Member

@btangmu btangmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM though partly over my head

"", "references", //
"", "cp", //
"version", "", //
// "ruleset", "type", //
Copy link
Member

@btangmu btangmu Apr 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented-out code and empty comments are messy to begin with, and messier due to deep indentation and formatting that breaks up some but not all pairs. Ideally the parameters for add() might be moved to a named constant defined outside the method call, less indented, maybe as an array of Map.Entry objects for element/attribute pairs...

The semantics of these elements and attributes are still mostly beyond my understanding. I sometimes wonder whether defining constants for such strings, maybe as members of enums, and referencing them as such rather than as string literals could be helpful for understanding the code and maybe for catching typos...

@macchiati macchiati merged commit 4dd168a into unicode-org:main Apr 23, 2024
10 checks passed
@macchiati macchiati deleted the CLDR-17561-Utility-for-visiting-DtdData-elements branch April 23, 2024 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants