From d35f5c0bd171d222d2bf9955aefb71d09b81f500 Mon Sep 17 00:00:00 2001 From: Alan Davidson Date: Sun, 14 Jan 2024 21:49:16 -0500 Subject: [PATCH 1/3] Add suits for playing cards --- unidecode/x026.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/unidecode/x026.py b/unidecode/x026.py index 380e84b..96da932 100644 --- a/unidecode/x026.py +++ b/unidecode/x026.py @@ -95,14 +95,14 @@ '', # 0x5d '', # 0x5e '', # 0x5f -'', # 0x60 -'', # 0x61 -'', # 0x62 -'', # 0x63 -'', # 0x64 -'', # 0x65 -'', # 0x66 -'', # 0x67 +'spades', # 0x60 +'hearts', # 0x61 +'diamonds', # 0x62 +'clubs', # 0x63 +'spades', # 0x64 +'hearts', # 0x65 +'diamonds', # 0x66 +'clubs', # 0x67 '', # 0x68 '', # 0x69 '', # 0x6a From 22d2574aae5e05f264c6e74b3bd7527ea37b811a Mon Sep 17 00:00:00 2001 From: Alan Davidson Date: Sun, 14 Jan 2024 21:53:34 -0500 Subject: [PATCH 2/3] add support for chess pieces, too --- unidecode/x026.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/unidecode/x026.py b/unidecode/x026.py index 96da932..79699d3 100644 --- a/unidecode/x026.py +++ b/unidecode/x026.py @@ -83,18 +83,18 @@ '', # 0x51 '', # 0x52 '', # 0x53 -'', # 0x54 -'', # 0x55 -'', # 0x56 -'', # 0x57 -'', # 0x58 -'', # 0x59 -'', # 0x5a -'', # 0x5b -'', # 0x5c -'', # 0x5d -'', # 0x5e -'', # 0x5f +'white king', # 0x54 +'white queen', # 0x55 +'white rook', # 0x56 +'white bishop', # 0x57 +'white knight', # 0x58 +'white pawn', # 0x59 +'black king', # 0x5a +'black queen', # 0x5b +'black rook', # 0x5c +'black bishop', # 0x5d +'black knight', # 0x5e +'black pawn', # 0x5f 'spades', # 0x60 'hearts', # 0x61 'diamonds', # 0x62 From 626b5e85602e4436eaddafd62eba1065321b3c77 Mon Sep 17 00:00:00 2001 From: Tomaz Solc Date: Mon, 15 Jan 2024 11:49:20 +0100 Subject: [PATCH 3/3] Add white/black to playing card suit names. Makes it possible to differentiate black and white symbols. --- unidecode/x026.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/unidecode/x026.py b/unidecode/x026.py index 79699d3..478937e 100644 --- a/unidecode/x026.py +++ b/unidecode/x026.py @@ -95,14 +95,14 @@ 'black bishop', # 0x5d 'black knight', # 0x5e 'black pawn', # 0x5f -'spades', # 0x60 -'hearts', # 0x61 -'diamonds', # 0x62 -'clubs', # 0x63 -'spades', # 0x64 -'hearts', # 0x65 -'diamonds', # 0x66 -'clubs', # 0x67 +'black spades', # 0x60 +'white hearts', # 0x61 +'white diamonds', # 0x62 +'black clubs', # 0x63 +'white spades', # 0x64 +'black hearts', # 0x65 +'black diamonds', # 0x66 +'white clubs', # 0x67 '', # 0x68 '', # 0x69 '', # 0x6a