All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/5] efi_loader: capitalization table
Date: Mon, 3 Sep 2018 22:54:03 +0200	[thread overview]
Message-ID: <f9bb986c-f90f-a942-80b8-98d1a3d6646f@suse.de> (raw)
In-Reply-To: <20180903163541.26218-2-xypron.glpk@gmx.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 <xypron.glpk@gmx.de>
> ---
> 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, }, \
> +}
> 

  reply	other threads:[~2018-09-03 20:54 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-03 16:35 [U-Boot] [PATCH v3 00/05]efi_loader: EFI_UNICODE_COLLATION_PROTOCOL Heinrich Schuchardt
2018-09-03 16:35 ` [U-Boot] [PATCH v3 1/5] efi_loader: capitalization table Heinrich Schuchardt
2018-09-03 20:54   ` Alexander Graf [this message]
2018-09-03 16:35 ` [U-Boot] [PATCH v3 2/5] lib: charset: upper/lower case conversion Heinrich Schuchardt
2018-09-03 16:35 ` [U-Boot] [PATCH v3 3/5] test: tests for utf_to_lower() utf_to_upper() Heinrich Schuchardt
2018-09-03 16:35 ` [U-Boot] [PATCH v3 4/5] efi_loader: EFI_UNICODE_COLLATION_PROTOCOL Heinrich Schuchardt
2018-09-03 21:09   ` Alexander Graf
2018-09-03 21:24     ` Heinrich Schuchardt
2018-09-03 21:26       ` Alexander Graf
2018-09-04 13:46   ` Alexander Graf
     [not found]     ` <2079463e-a243-3830-eaea-3148af637b42@gmx.de>
2018-09-04 17:20       ` [U-Boot] [Fwd] " Heinrich Schuchardt
2018-09-04 22:04       ` [U-Boot] " Alexander Graf
2018-09-04 22:28         ` Leif Lindholm
2018-09-04 22:35           ` Alexander Graf
2018-09-03 16:35 ` [U-Boot] [PATCH v3 5/5] efi_selftest: EFI_UNICODE_COLLATION_PROTOCOL Heinrich Schuchardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f9bb986c-f90f-a942-80b8-98d1a3d6646f@suse.de \
    --to=agraf@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.