From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Date: Mon, 3 Sep 2018 22:54:03 +0200 Subject: [U-Boot] [PATCH v3 1/5] efi_loader: capitalization table In-Reply-To: <20180903163541.26218-2-xypron.glpk@gmx.de> References: <20180903163541.26218-1-xypron.glpk@gmx.de> <20180903163541.26218-2-xypron.glpk@gmx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 03.09.18 18:35, Heinrich Schuchardt wrote: > This patch provides a define to initialize a table that maps lower to > capital letters for Unicode code point 0x0000 - 0xffff. > > Signed-off-by: Heinrich Schuchardt > --- > v3: > remove codes < 0x80 from tables for code pages 437 and 1250 > sort tables for code pages 437 and 1250 > v2: > add shorter tables for code pages 437 and 1250 > --- > MAINTAINERS | 1 + > include/capitalization.h | 1978 ++++++++++++++++++++++++++++++++++++++ > 2 files changed, 1979 insertions(+) > create mode 100644 include/capitalization.h > [...] > +/* > + * Correspondence table for small and capital letters of codepage 437. > + * Letters A-Z are handled in code. > + */ > +#define CP437_CAPITALIZATION_TABLE { \ > + { 0x00c4, 0x00e4, }, \ Please keep the comments that indicate which character these are. Makes the list much more appealing :) and more obvious. Alex > + { 0x00c5, 0x00e5, }, \ > + { 0x00c6, 0x00e6, }, \ > + { 0x00c7, 0x00e7, }, \ > + { 0x00c9, 0x00e9, }, \ > + { 0x00d1, 0x00f1, }, \ > + { 0x00d6, 0x00f6, }, \ > + { 0x00dc, 0x00fc, }, \ > + { 0x03a3, 0x03c3, }, \ > + { 0x03a6, 0x03c6, }, \ > + { 0x0000, 0x0000, }, \ > +} > + > +/* > + * Correspondence table for small and capital letters of codepage 1250. > + * Letters A-Z are handled in code. > + */ > +#define CP1250_CAPITALIZATION_TABLE { \ > + { 0x00c1, 0x00e1, }, \ > + { 0x00c2, 0x00e2, }, \ > + { 0x00c4, 0x00e4, }, \ > + { 0x00c7, 0x00e7, }, \ > + { 0x00c9, 0x00e9, }, \ > + { 0x00cb, 0x00eb, }, \ > + { 0x00cd, 0x00ed, }, \ > + { 0x00ce, 0x00ee, }, \ > + { 0x00d3, 0x00f3, }, \ > + { 0x00d4, 0x00f4, }, \ > + { 0x00d6, 0x00f6, }, \ > + { 0x00da, 0x00fa, }, \ > + { 0x00dc, 0x00fc, }, \ > + { 0x00dd, 0x00fd, }, \ > + { 0x0102, 0x0103, }, \ > + { 0x0104, 0x0105, }, \ > + { 0x0106, 0x0107, }, \ > + { 0x010c, 0x010d, }, \ > + { 0x010e, 0x010f, }, \ > + { 0x0110, 0x0111, }, \ > + { 0x0118, 0x0119, }, \ > + { 0x011a, 0x011b, }, \ > + { 0x0139, 0x013a, }, \ > + { 0x013d, 0x013e, }, \ > + { 0x0141, 0x0142, }, \ > + { 0x0143, 0x0144, }, \ > + { 0x0147, 0x0148, }, \ > + { 0x0150, 0x0151, }, \ > + { 0x0154, 0x0155, }, \ > + { 0x0158, 0x0159, }, \ > + { 0x015a, 0x015b, }, \ > + { 0x015e, 0x015f, }, \ > + { 0x0160, 0x0161, }, \ > + { 0x0162, 0x0163, }, \ > + { 0x0164, 0x0165, }, \ > + { 0x016e, 0x016f, }, \ > + { 0x0170, 0x0171, }, \ > + { 0x0179, 0x017a, }, \ > + { 0x017b, 0x017c, }, \ > + { 0x017d, 0x017e, }, \ > + { 0x0000, 0x0000, }, \ > +} >