#1509

Bulgaria: speed defaults, В26 signs, Наредба № 2 markings, Sofia's yellow paving, С7 and Д11 / Д12

OpenMob1K7105wants to merge intofrom

Bulgaria: speed defaults, В26 signs, Наредба № 2 markings, Sofia's yellow paving, С7 and Д11 / Д12

Everything here applies to country BG only. Other countries' output is unchanged: their tests pass, and the bake-format golden's facts digest is unchanged.

FeatureRule
Legal speed defaults: 50 km/h in a populated place, 90 outside one, 140 on a motorwayЗДвП чл. 21 (1), as amended by ДВ 64/2025
В26 speed signs (the Vienna disc), showing the AI's limitНаредба № РД-02-21-1 от 2023, чл. 66
Road markings: widths, dash patterns, M2 on roads of more than three lanes, edge linesНаредба № 2 от 2001 (to ДВ 32/2019)
Sofia's yellow paving (жълти павета), on the mesh and in the ground photoOpenStreetMap colour tags, 67 ways
С7 bend boards on sharp rural bendsНаредба № РД-02-21-1 чл. 201, чл. 24 (1) 3, annex 23
Д11 / Д12 populated-place signs, Latin name on republican roadsчл. 105, 119-121; Закон за транслитерацията

Details, real-data checks and known limits are in docs/BULGARIA_ROADS.md. Credits for the regulations, the OSM snapshot (ODbL) and Roboto Condensed (OFL) are in CREDITS.md.

Notes for review

  • roads.FACTS_FORMAT goes from 31 to 32 (yellow paving's Spec.surf). The golden is regenerated, and only the format number changed.
  • With Settings > World > Town signs on, dev's townentry.py draws the town boards and bgsigns leaves out its own Д11 / Д12.
  • Yellow paving is a sixth ground-paint kind, after paved (the native painter needs paved as the fifth).
  • There is no 120 km/h expressway default: the data can't tell an expressway from a trunk road.
  • Clash with #1503 (Poland's signs) in server/speedsigns.py. Both add a fifth speed-sign face numbered 4: STYLE_BULGARIA here, STYLE_POLAND there. They edit the same lines: the style constants, style()'s table and _kernel_style. Whichever merges second has to take 5 and include both. I'll do that merge from dev when the first one is in.
  • To stay clear of #1434 (Sweden's one-way signs), Bulgaria's marking style is defined after Norway's, Sweden's double_multi is set with _replace beside it, and Bulgaria's credits sit after the German signs.

Tests

  • New: test_bgpaving and test_bgsigns. test_speed_signs, test_markings and test_navgraph are extended.
  • Full suite after merging dev 2026-11-20: 507 of 516 modules pass. All 9 that fail also fail on plain dev, run the same way on this machine:
    • test_otto_bridge, test_integration_drive, test_e2e, test_launcher_linux, test_fargeo, test_roadgeo
    • test_dnp_matmul_native (test_two_nans_meet)
    • test_advance_sign_layout (no fontTools here)
    • test_server: on this branch it passes when run alone (65 tests); in the full run it was cut short under load.

Checked in game

The yellow paving was seen in game before its ground-photo fix and showed grey. Nothing has been checked in game since that fix or since the merges.

🤖 Generated with Claude Code