unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Baums <baums@stefanbaums.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 55539@debbugs.gnu.org
Subject: bug#55539: 28.1; Support for the Kharoṣṭhī Script
Date: Sun, 05 Jun 2022 19:18:23 +0200	[thread overview]
Message-ID: <8735gj6nc0.fsf@stefanbaums.com> (raw)
In-Reply-To: <83v8tf82t5.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Jun 2022 19:58:46 +0300")

[-- Attachment #1: Type: text/plain, Size: 87 bytes --]

Okay, here you go: a patch for misc-lang.el and the separate quail
file kharoshthi.el.

[-- Attachment #2: lisp_language_misc-lang.patch --]
[-- Type: text/x-patch, Size: 1991 bytes --]

--- misc-lang.el	2022-06-05 18:43:14.966176210 +0200
+++ misc-lang_new.el	2022-06-05 19:10:07.490136500 +0200
@@ -1,5 +1,6 @@
 ;;; misc-lang.el --- support for miscellaneous languages (characters)  -*- lexical-binding: t; -*-
 
+;; Copyright (C) 2022 Free Software Foundation, Inc.
 ;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
 ;;   2005, 2006, 2007, 2008, 2009, 2010, 2011
 ;;   National Institute of Advanced Industrial Science and Technology (AIST)
@@ -234,6 +235,36 @@
         "[\x10D00-\x10D27]+"
         1 'font-shape-gstring)))
 
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; Kharoṣṭhī
+;; Author: Stefan Baums <baums@gandhari.org>
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(set-language-info-alist
+ "Kharoṣṭhī" '((charset unicode)
+	           (coding-system utf-8)
+	           (coding-priority utf-8)
+	           (input-method . "kharoshthi")
+               (sample-text . "Kharoṣṭhī (𐨑𐨪𐨆𐨛𐨁)	𐨣𐨨𐨲𐨪𐨆 𐨐𐨪𐨅𐨨𐨁")
+	           (documentation . "\
+Language environment for Gāndhārī, Sanskrit, and other languages using the Kharoṣṭhī script.")))
+
+(let ((consonant     "[\U00010A00\U00010A10-\U00010A35]")
+      (vowel         "[\U00010A01-\U00010A06]")
+      (virama        "\U00010A3F")
+      (modifier      "[\U00010A0C-\U00010A0F\U00010A38-\U00010A3A]"))
+  (set-char-table-range composition-function-table
+		                '(#x10A3F . #x10A3F)
+                        (list
+                         (vector
+                          (concat consonant
+                                  "\\(?:" virama consonant "\\)*"
+                                  modifier "*"
+                                  virama "?"
+                                  vowel "*"
+                                  modifier "*")
+                          1 'font-shape-gstring))))
+
 (provide 'misc-lang)
 
 ;;; misc-lang.el ends here

[-- Attachment #3: lisp_leim_quail_kharoshthi.el --]
[-- Type: application/emacs-lisp, Size: 27594 bytes --]

  reply	other threads:[~2022-06-05 17:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20  9:48 bug#55539: 28.1; Support for the Kharoṣṭhī Script Stefan Baums
2022-05-20 16:18 ` Eli Zaretskii
2022-05-20 17:16   ` Stefan Baums
2022-05-20 17:27     ` Eli Zaretskii
2022-05-20 18:05     ` Stefan Baums
2022-05-31 13:47     ` Eli Zaretskii
2022-06-05 16:55       ` Stefan Baums
2022-06-05 16:58         ` Eli Zaretskii
2022-06-05 17:18           ` Stefan Baums [this message]
2022-06-05 17:52             ` समीर सिंह Sameer Singh
2022-06-05 18:45               ` Stefan Baums
2022-06-08 13:29                 ` समीर सिंह Sameer Singh
2022-06-08 18:42                   ` Stefan Baums
2022-06-09  4:59                     ` Eli Zaretskii
2022-06-09  9:40                       ` Stefan Baums
2022-06-09 10:17                         ` Eli Zaretskii
2022-06-09  9:14             ` Eli Zaretskii
2022-06-09  9:52               ` Stefan Baums
2022-06-09  9:56                 ` Stefan Baums
2022-06-09 10:29                 ` Eli Zaretskii
2022-06-09 10:37                   ` Stefan Baums
2022-05-20 17:26   ` Stefan Baums

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=8735gj6nc0.fsf@stefanbaums.com \
    --to=baums@stefanbaums.com \
    --cc=55539@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).