refspy.syntax.european
European reference number formatting:
Example:
1,2.4-5;
1""" 2European reference number formatting: 3 4Example: 5 ``` 6 1,2.4-5; 7 ``` 8""" 9 10from refspy.constants import NON_BREAKING_SPACE, SPACE 11from refspy.models.syntax import Syntax 12 13EUROPEAN = Syntax( 14 name="European", 15 abbrev="euro", 16 colon=",", 17 format_colon="," + NON_BREAKING_SPACE, 18 match_colons=":,", 19 comma=".", 20 format_comma="." + SPACE, 21 match_commas=".", 22 dash="-", 23 format_dash="–", 24 match_dashes="–-", 25 semicolon=";", 26 format_semicolon=NON_BREAKING_SPACE + ";" + SPACE, 27 match_semicolons=";", 28)
EUROPEAN =
Syntax(name='European', abbrev='euro', colon=',', comma='.', dash='-', semicolon=';', format_colon=', ', format_comma='. ', format_dash='–', format_semicolon=' ; ', match_colons=':,', match_commas='.', match_dashes='–-', match_semicolons=';')