From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eduardo Ochs Newsgroups: gmane.emacs.help Subject: Re: Convert the hexadecimal character code to the corresponding Unicode value. Date: Sat, 2 Oct 2021 04:51:31 -0300 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="803"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Hongyi Zhao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 02 09:52:24 2021 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 1mWZom-000AXt-8W for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 09:52:24 +0200 Original-Received: from localhost ([::1]:56636 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWZol-0006dD-8J for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 02 Oct 2021 03:52:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWZoA-0006d5-IF for help-gnu-emacs@gnu.org; Sat, 02 Oct 2021 03:51:46 -0400 Original-Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]:37837) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mWZo8-0005UW-Q2 for help-gnu-emacs@gnu.org; Sat, 02 Oct 2021 03:51:46 -0400 Original-Received: by mail-pf1-x42d.google.com with SMTP id s55so8917317pfw.4 for ; Sat, 02 Oct 2021 00:51:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rfhVN3lhh3lcm4Yzwhd2rUu9VyZ3gTHRupGfyi7NtXU=; b=heZGqkXyLykjpxpkvZcJ6BASmHmnoyld5u8dt/BQO6BsaYpxknBlgjAOaVzcIyX6BN L19tM+LNP6efYTWhNAKEGlggzGnNOxAnWRNFbJmqrkbs2qY+dDywrcxHUUp58NEoA5zh o5r/9+gkbOT1t2DEiOpi3vqiJIL9bG9UXuBTASxgtDGvgquZEznFOe48lhBME5v0ypy0 N2eB1F0A9uTJtH3myQSsJO1ZwnXZTNo1k/pmYUpZwWbn4IqUcCHO4Vs4I3JJYCG1FgWo HHEkap1p6nWbxbswNRdTwthePn02PyVpmIzTd/8cnqLFfVrzS13n+lsOAYvFNeIRpp/b gX/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rfhVN3lhh3lcm4Yzwhd2rUu9VyZ3gTHRupGfyi7NtXU=; b=vhMiRScm7LteKtyrRfPYQMl9Lsp4roah0cIMRyx1CbjhsPHxO4rW/eSiLrqxT9vqQT t5j9WTZXxVdts7izehABxHiLY8B9f81WQqdsI9I6x4XX6RZ1HSuiy+OBskLELfK9wKlN j8eF5YZlFiq3XAlcAR45qvjkD8jOFLoAC81kZ7UJkUafi+BQZTJpWYm8ikEa4qLrniYs Ynep4rTkoxMIvOEjr+Ph5WQUTYTof9/7w2mw7+PgyLofqiOBnNEU1qbyyJASXkegFS6E W7/2cLjdAHZiRayQcEMy0ECwcd6ZbU+aNL9MdbH3M+3pDMlund/6nXu9hc+RiLuotQPW m6mw== X-Gm-Message-State: AOAM530E0rwZPXYHkxKx2JYGZkydSldYw7EAon2Gb0SkNkyMkbA3LA5u M/ooiZ0H+i/sXyKNxWCvYyp2SizCDjGSJ8hZSyI= X-Google-Smtp-Source: ABdhPJxdWBWrRbqrkws77C/zVy4C+XQKdb2Ta/Flqvw6OORIomCHYXKxhhyCIt5rWqmneQ5X2abdVt0qkZvdx2oTTKk= X-Received: by 2002:a05:6a00:9c:b0:448:603f:720b with SMTP id c28-20020a056a00009c00b00448603f720bmr14465006pfj.66.1633161103326; Sat, 02 Oct 2021 00:51:43 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=eduardoochs@gmail.com; helo=mail-pf1-x42d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:133498 Archived-At: On Sat, 2 Oct 2021 at 04:41, Hongyi Zhao wrote: > > On Sat, Oct 2, 2021 at 2:20 PM Eduardo Ochs wrote: > > > > Hi Hongyi, > > > > does this help? > > > > (string-to-number "1D4E0" 16) > > (char-to-string (string-to-number "1D4E0" 16)) > > (string (string-to-number "1D4E0" 16)) > > (format "%c" (string-to-number "1D4E0" 16)) > > (insert (string-to-number "1D4E0" 16)) > > > > The entry for 1D4E0 in UnicodeData.txt is: > > > > 1D4E0;MATHEMATICAL BOLD SCRIPT CAPITAL Q;Lu;0;L; 0051;;;;N;;;;; > > > > I have some hacks to display the characters around a certain > > entry in UnicodeData.txt here, > > > > http://angg.twu.net/.emacs.html#find-echars-around > > (find-wgeta-elisp "http://angg.twu.net/.emacs" "find-echars-around") > > I tried the code snippet above, but it relies on another function > named as `ee-bol' which is not available there. > > HZ Hi Hongyi, `find-echars-around' uses several functions from eev... For example `ee-bol', that is defined here: https://github.com/edrx/eev/blob/UTF-8/eepitch.el#L217 [[]] =/, E.