Skip to content

Commit

Permalink
NL signals extension (#161)
Browse files Browse the repository at this point in the history
Add icons for speed signals and train length signals
  • Loading branch information
hiddewie authored Dec 4, 2024
1 parent 7caf138 commit fae9624
Show file tree
Hide file tree
Showing 67 changed files with 388 additions and 19 deletions.
25 changes: 23 additions & 2 deletions features/signals_railway_signals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ signals_railway_signals:
- 'railway:signal:steam_locomotive'
- 'railway:signal:steam_locomotive:form'
- 'railway:signal:stop:form'
- 'railway:signal:stop:carriages'
- 'railway:signal:stop_demand'
- 'railway:signal:stop_demand:form'
- 'railway:signal:train_protection'
Expand Down Expand Up @@ -1298,8 +1299,28 @@ signals_railway_signals:

- description: treinlengtebord
country: NL
# TODO implement train length values
icon: { default: 'nl/304-empty' }
# TODO implement partial platform train length values (railway:signal:stop:carriages_partial_platform=*)
icon:
match: 'railway:signal:stop:carriages'
cases:
# Free match to allow matching multiple values on a single sign, separated by ;
- { regex: '18', value: 'nl/304-18' }
- { regex: '16', value: 'nl/304-16' }
- { regex: '15', value: 'nl/304-15' }
- { regex: '14', value: 'nl/304-14' }
- { regex: '13', value: 'nl/304-13' }
- { regex: '12', value: 'nl/304-12' }
- { regex: '11', value: 'nl/304-11' }
- { regex: '10', value: 'nl/304-10' }
- { regex: '9', value: 'nl/304-9' }
- { regex: '8', value: 'nl/304-8' }
- { regex: '7', value: 'nl/304-7' }
- { regex: '6', value: 'nl/304-6' }
- { regex: '5', value: 'nl/304-5' }
- { regex: '4', value: 'nl/304-4' }
- { regex: '3', value: 'nl/304-3' }
- { regex: '2', value: 'nl/304-2' }
default: 'nl/304-empty'
tags:
- { tag: 'railway:signal:stop', value: 'NL:304' }
- { tag: 'railway:signal:stop:form', value: 'sign' }
Expand Down
6 changes: 3 additions & 3 deletions features/speed_railway_signals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ speed_railway_signals:
icon:
match: 'railway:signal:speed_limit_distant:speed'
cases:
- { regex: '^[1-9]0|1[0-9]0$', value: 'nl/313-{}', example: 'nl/313-80' }
- { regex: '^[1-9]0|1[0-4]0|125$', value: 'nl/313-{}', example: 'nl/313-80' }
default: 'nl/313-empty'
tags:
- { tag: 'railway:signal:speed_limit_distant', value: 'NL:313' }
Expand All @@ -702,7 +702,7 @@ speed_railway_signals:
icon:
match: 'railway:signal:speed_limit:speed'
cases:
- { regex: '^[1-9]0|1[0-9]0$', value: 'nl/314-{}', example: 'nl/314-70' }
- { regex: '^[1-9]0|1[0-46]0|[12]5|125$', value: 'nl/314-{}', example: 'nl/314-70' }
default: 'nl/314-empty'
tags:
- { tag: 'railway:signal:speed_limit', value: 'NL:314' }
Expand All @@ -714,7 +714,7 @@ speed_railway_signals:
icon:
match: 'railway:signal:speed_limit:speed'
cases:
- { regex: '^[1-9]0|1[0-9]0$', value: 'nl/316-{}', example: 'nl/316-130' }
- { regex: '^[3-9]0|1[0-46]0|125$', value: 'nl/316-{}', example: 'nl/316-130' }
default: 'nl/316-empty'
tags:
- { tag: 'railway:signal:speed_limit', value: 'NL:316' }
Expand Down
7 changes: 7 additions & 0 deletions symbols/nl/304-10.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions symbols/nl/304-11.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions symbols/nl/304-12.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions symbols/nl/304-13.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions symbols/nl/304-14.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fae9624

Please sign in to comment.