Skip to content

Add admin-area1 to formatting rules for DE, FR, NL and PL and perform accompanying cleanups #84

Closed
oroko123 wants to merge 7 commits intomainfrom
fix_growth_invariant_area1
Closed

Add admin-area1 to formatting rules for DE, FR, NL and PL and perform accompanying cleanups #84
oroko123 wants to merge 7 commits intomainfrom
fix_growth_invariant_area1

Conversation

@oroko123
Copy link
Collaborator

@oroko123 oroko123 commented Jan 14, 2026

It is added as a separate line, just before the country-name, for each of the 4 affected locales.
This is a big step to ensure information growth invariant holds for all the locales.
Also update the HTML docs files, as generated. updates are coming from other recent PRs that didn't include their coresponding changes, including at least:

  • splitting postal code PR,
  • adding Japan model PR

Next steps (not included in this PR) include:

  • resolving country vs country_name inconsistency between hierarchy and formatting rules

  • converge formatting rules, parsing rules and transpile rules to build the same forest structure.

@oroko123 oroko123 requested review from battre and skyman503 January 14, 2026 12:58
- street-address-alternative-1
- separator: "\n"
- locality1
- separator: " "
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the reasoning behind removing these separators?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When separator is absent, " " value is getting assigned.
I removed it to achieve consistency between files - i.e. to not specify the default value explicitly.

This is no-op in the generated files, which is easiest to verify by looking at them directly.

@@ -1,5 +1,10 @@
formatting-rules:
address:
# {street-address-alternative-1}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this needed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This made it easier for me to understand how the formatting works across the files.
This brings consistency across files (before there were some comments with some formats in some files, now there is 1 comment with specific format in each file).
I extracted these cleanup changes into a separate commit. Please let me know if you believe they trash this PR and they should be moved into a separate PR instead.

@oroko123 oroko123 requested a review from skyman503 January 14, 2026 14:07
@oroko123 oroko123 requested a review from skyman503 January 15, 2026 11:08
@skyman503
Copy link
Collaborator

Looks fine to me (though honestly I'd prob prefer more if there was a separate PR with all of the comments/removing default separator changes). Let's add Norge to take a look before landing this

@skyman503
Copy link
Collaborator

Also please add in the PR description why more countries have changes to their .html files (what we discussed offline)

@oroko123 oroko123 requested a review from norgevz January 16, 2026 13:09
Copy link
Collaborator

@norgevz norgevz left a comment

Choose a reason for hiding this comment

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

Could you please divide this PR into two different ones containing:

  1. Generated files related to previous PRs.
  2. Files related to the changes listed in the PR title.

@oroko123
Copy link
Collaborator Author

Could you please divide this PR into two different ones containing:

  1. Generated files related to previous PRs.
  2. Files related to the changes listed in the PR title.

Created #85 for 1.

@oroko123
Copy link
Collaborator Author

I'm closing this pull request and replacing it with another PRs

@oroko123 oroko123 closed this Jan 21, 2026
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.

3 participants