Deutsch   English   Français   Italiano  
<v33ggr$e0ph$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.lang.c
Subject: Re: C23 thoughts and opinions
Date: Tue, 28 May 2024 02:45:48 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <v33ggr$e0ph$1@dont-email.me>
References: <v2l828$18v7f$1@dont-email.me>
	<00297443-2fee-48d4-81a0-9ff6ae6481e4@gmail.com>
	<v2lji1$1bbcp$1@dont-email.me> <87msoh5uh6.fsf@nosuchdomain.example.com>
	<f08d2c9f-5c2e-495d-b0bd-3f71bd301432@gmail.com>
	<v2nbp4$1o9h6$1@dont-email.me> <v2ng4n$1p3o2$1@dont-email.me>
	<87y18047jk.fsf@nosuchdomain.example.com>
	<87msoe1xxo.fsf@nosuchdomain.example.com> <v2sh19$2rle2$2@dont-email.me>
	<87ikz11osy.fsf@nosuchdomain.example.com> <v2v59g$3cr0f$1@dont-email.me>
	<v30l15$3mcj6$1@dont-email.me> <v30lls$3mepf$1@dont-email.me>
	<v30sai$3rilf$1@dont-email.me> <v320am$1km5$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 28 May 2024 04:45:48 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f9fa71f6bded3e8519d33d87ee221dff";
	logging-data="459569"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+mNyxH7oME2aOtQIyVx31E"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:0ajRnUOwLHAHEp7/orqL4v44N4M=
Bytes: 2644

On Mon, 27 May 2024 14:03:16 +0100, bart wrote:

> On 27/05/2024 03:48, Lawrence D'Oliveiro wrote:
>>
>>> Apparently that is not so easy as you seem to think.
>> 
>> Yes, it is as easy as I think. I’ve done this sort of thing, using
>> suitable build scripts.
> 
> Show me.

Here <https://github.com/ldo/unicode_browser_android> is an old
example, from when I was trying to learn Android programming. It lets
you browse the Unicode code-point database, and do incremental
searches by partial matching on code-point names: e.g. you can type
“right arrow” and see candidate matches such as “U+219B RIGHTWARDS
ARROW WITH STROKE”, “U+219D RIGHTWARDS WAVE ARROW”, “U+21A0 RIGHTWARDS
TWO HEADED ARROW” etc.

In the “util” subdirectory, you will find a Python script called
“get_codes”. This processes a NamesList.txt file as downloaded from
Unicode.org, and encodes the database as a binary blob with a
specially-constructed header to allow quick loading and extraction of
code-point information, including names, categories, related entries
etc. This blob gets built as a “resource file” into the .apk file,
where the Java code can find it.