#1509
Bulgaria: speed defaults, В26 signs, Наредба № 2 markings, Sofia's yellow paving, С7 and Д11 / Д12
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.
| Feature | Rule |
|---|---|
| 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 photo | OpenStreetMap 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_FORMATgoes from 31 to 32 (yellow paving'sSpec.surf). The golden is regenerated, and only the format number changed.- With Settings > World > Town signs on, dev's
townentry.pydraws the town boards andbgsignsleaves 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_BULGARIAhere,STYLE_POLANDthere. 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_multiis set with_replacebeside it, and Bulgaria's credits sit after the German signs.
Tests
- New:
test_bgpavingandtest_bgsigns.test_speed_signs,test_markingsandtest_navgraphare 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_roadgeotest_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
Activity
10febcec0