Add German color short codes

This commit is contained in:
Daniel Rojas 2020-05-23 21:38:22 +02:00
parent e6cfc3b2ee
commit 1dde27b072

View File

@ -34,6 +34,21 @@ color_full = {
'BN': 'brown',
}
color_ger = {
'BK': 'sw',
'WH': 'ws',
'GY': 'gr',
'PK': 'rs',
'RD': 'rt',
'OG': 'or',
'YE': 'ge',
'GN': 'gn',
'TQ': 'tk',
'BU': 'bl',
'VT': 'vi',
'BN': 'br',
}
class Harness:
def __init__(self):
@ -265,6 +280,10 @@ class Cable:
x = color_hex[x].lower()
elif self.color_mode == 'HEX':
x = color_hex[x].upper()
elif self.color_mode == 'ger':
x = color_ger[x].lower()
elif self.color_mode == 'GER':
x = color_ger[x].upper()
elif self.color_mode == 'short':
x = x.lower()
elif self.color_mode == 'SHORT':