From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: AproposUnicode (was: Help with unicode diacritics) Date: Mon, 28 Dec 2020 10:11:06 -0800 (PST) Message-ID: <5dded0a0-5970-45c8-ae51-8ec6ccdd50a7@default> References: <87czytn7t1.fsf@mimuw.edu.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27257"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help GNU Emacs To: jsbien@mimuw.edu.pl Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 28 19:12:08 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ktx03-0006xj-8c for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 19:12:07 +0100 Original-Received: from localhost ([::1]:36570 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktx02-0001yq-AE for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 28 Dec 2020 13:12:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktwzC-0001yi-U8 for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 13:11:15 -0500 Original-Received: from userp2130.oracle.com ([156.151.31.86]:32994) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktwz9-0006DE-Sy for help-gnu-emacs@gnu.org; Mon, 28 Dec 2020 13:11:14 -0500 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BSHsvnY162411; Mon, 28 Dec 2020 18:11:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=duGEMSjf9ReiOzaKflNTBGc+tzy+lfryI5IrVs9Y4ak=; b=0UmQhnpGTQwMIBHhJLEyaNfQAfjFEFRO+UJiQG8OZMYhWxp1q3w4I+vXaETtlX+ahVHv +d6AJ4tb9wrrYV1d6Z/bKJtjYB/EqRkojfYseHlvZNhXSOTPhGZqVx9zlYEtROgGT4kW 9PClzCMZsfUffnad2i6G95toI+CMatAYqngGhiQInmbJgvgPGSfTa3i5devOOnMmLJDZ IJX79Db0wPgItYZELRD05ZisuVnfOQ/K+3q8cO29vRIsWCb+gLobNMRystqcUY2q81nA 9leSLDG1SagMabTXyDSe8b8iHQzTw//+zXi3Zu35t3DiIFnZOwgDndQiOp/yNnbYVBK1 yw== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2130.oracle.com with ESMTP id 35nvkqmbbv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 28 Dec 2020 18:11:08 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BSHtvPY126302; Mon, 28 Dec 2020 18:11:08 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 35perkvh3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Dec 2020 18:11:08 +0000 Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BSIB7vd018765; Mon, 28 Dec 2020 18:11:07 GMT In-Reply-To: <87czytn7t1.fsf@mimuw.edu.pl> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5095.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9848 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 bulkscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012280112 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9848 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 bulkscore=0 adultscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 suspectscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012280112 Received-SPF: pass client-ip=156.151.31.86; envelope-from=drew.adams@oracle.com; helo=userp2130.oracle.com X-Spam_score_int: -45 X-Spam_score: -4.6 X-Spam_bar: ---- X-Spam_report: (-4.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.178, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126873 Archived-At: > > Only partly related to this thread, and just FYI. > > My library `apu.el' (Apropos Unicode) can sometimes > > help with showing info about Unicode chars. > > I've made a quick test and looks like I would like it, but it seems that > you completely ignore private use characters. For example, U+E8BF > described by =E2=80=98describe-char=E2=80=99 as general-category: Co (Oth= er, Private > Use) is completely ignored by `describe-chars-in-region'. Thanks for trying it. First, I'm no expert on Unicode, by any means. I use `get-char-code-property' to check for Unicode chars, checking properties `name' and `old-name': (or (get-char-code-property character 'name) (get-char-code-property character 'old-name)) If a char doesn't have either of those properties then I flag it as not being a Unicode char. (Perhaps the message shouldn't say it's not a Unicode char. I'm no expert on the terminology. Perhaps it should just say that the char has no name.) Maybe you can suggest a code change to do something more like what you expect? If so, please do. Thx.