* Key sequence for DEVANAGARI DOUBLE DANDA
@ 2023-08-19 12:36 Pankaj Jangid
2023-09-07 15:20 ` Robert Pluim
0 siblings, 1 reply; 5+ messages in thread
From: Pankaj Jangid @ 2023-08-19 12:36 UTC (permalink / raw)
To: Emacs Development; +Cc: lumarzeli30
In the Devanagari script, two symbols are frequently used in prose:
। - DEVANAGARI DANDA
॥ - DEVANAGARI DOUBLE DANDA
With the devanagari-inscript input method, the '>' key produces the
DEVANAGARI DANDA. For convenience, could we introduce a key sequence
where pressing '>' twice consecutively produces the DEVANAGARI DOUBLE
DANDA?
To my knowledge, there's no legitimate use of two consecutive DEVANAGARI
DANDAs in the script, so this change should not introduce conflicts.
I'm copying Sameer for his insights and assistance, given his experience
with Indian scripts.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Key sequence for DEVANAGARI DOUBLE DANDA
2023-08-19 12:36 Key sequence for DEVANAGARI DOUBLE DANDA Pankaj Jangid
@ 2023-09-07 15:20 ` Robert Pluim
2023-09-07 16:05 ` Visuwesh
0 siblings, 1 reply; 5+ messages in thread
From: Robert Pluim @ 2023-09-07 15:20 UTC (permalink / raw)
To: Emacs Development; +Cc: lumarzeli30, Pankaj Jangid
>>>>> On Sat, 19 Aug 2023 18:06:53 +0530, Pankaj Jangid <pankaj@codeisgreat.org> said:
Pankaj> In the Devanagari script, two symbols are frequently used in prose:
Pankaj> । - DEVANAGARI DANDA
Pankaj> ॥ - DEVANAGARI DOUBLE DANDA
Pankaj> With the devanagari-inscript input method, the '>' key produces the
Pankaj> DEVANAGARI DANDA. For convenience, could we introduce a key sequence
Pankaj> where pressing '>' twice consecutively produces the DEVANAGARI DOUBLE
Pankaj> DANDA?
Pankaj> To my knowledge, there's no legitimate use of two consecutive DEVANAGARI
Pankaj> DANDAs in the script, so this change should not introduce conflicts.
Pankaj> I'm copying Sameer for his insights and assistance, given his experience
Pankaj> with Indian scripts.
Something like this? Is this the only input method that needs a change?
Robert
--
diff --git i/lisp/language/ind-util.el w/lisp/language/ind-util.el
index 71117deef56..34064a30ad8 100644
--- i/lisp/language/ind-util.el
+++ w/lisp/language/ind-util.el
@@ -67,7 +67,7 @@ indian-dev-base-table
?क़ ?ख़ ?ग़ ?ज़ ?ड़ ?ढ़ ?फ़ ?य़ ;; NUKTAS
"ज्ञ" "क्ष")
(;; Misc Symbols (7)
- ?ँ ?ं ?ः ?ऽ ?् ?ॐ ?।)
+ ?ँ ?ं ?ः ?ऽ ?् ?ॐ ?। ?॥)
(;; Digits (10)
?० ?१ ?२ ?३ ?४ ?५ ?६ ?७ ?८ ?९)
(;; Inscript-extra (4) (#, $, ^, *, ])
diff --git i/lisp/leim/quail/indian.el w/lisp/leim/quail/indian.el
index 70ea9290662..02a2c9a68d2 100644
--- i/lisp/leim/quail/indian.el
+++ w/lisp/leim/quail/indian.el
@@ -570,7 +570,7 @@ inscript-dev-keytable
"k]" "K]" "i]" "p]" "[]" "{]" "H]" "/]" ;; NUKTAS
?% ?&)
(;; Misc Symbols (7)
- ?X ?x ?_ ">]" ?d "X]" ?>)
+ ?X ?x ?_ ">]" ?d "X]" ?> ">>")
(;; Digits
?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9)
(;; Inscripts
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Key sequence for DEVANAGARI DOUBLE DANDA
2023-09-07 15:20 ` Robert Pluim
@ 2023-09-07 16:05 ` Visuwesh
2023-09-07 16:35 ` Robert Pluim
0 siblings, 1 reply; 5+ messages in thread
From: Visuwesh @ 2023-09-07 16:05 UTC (permalink / raw)
To: Robert Pluim; +Cc: Emacs Development, lumarzeli30, Pankaj Jangid
[வியாழன் செப்டம்பர் 07, 2023] Robert Pluim wrote:
> Something like this?
Did you try compiling the relevant files and tested devanagari-itrans
with the patch? Because, with your change indian-dev-base-table has 8
misc entries but the corresponding indian-itrans-v5-table only has 7
misc entries (and "base" tables for other languages has 7 entries too).
AFAICT from reading indian--puthash-m, this should not pose a problem
but adding an extra nil to all itrans and inscript "base" tables to the
misc section wouldn't hurt either.
> Is this the only input method that needs a change?
I think so, yes. The devanagari-itrans method already has a convenient
way to insert the concerned character.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Key sequence for DEVANAGARI DOUBLE DANDA
2023-09-07 16:05 ` Visuwesh
@ 2023-09-07 16:35 ` Robert Pluim
2023-09-08 7:33 ` Visuwesh
0 siblings, 1 reply; 5+ messages in thread
From: Robert Pluim @ 2023-09-07 16:35 UTC (permalink / raw)
To: Visuwesh; +Cc: Emacs Development, lumarzeli30, Pankaj Jangid
>>>>> On Thu, 07 Sep 2023 21:35:44 +0530, Visuwesh <visuweshm@gmail.com> said:
Visuwesh> [வியாழன் செப்டம்பர் 07, 2023] Robert Pluim wrote:
>> Something like this?
Visuwesh> Did you try compiling the relevant files and tested devanagari-itrans
Visuwesh> with the patch? Because, with your change indian-dev-base-table has 8
Visuwesh> misc entries but the corresponding indian-itrans-v5-table only has 7
Visuwesh> misc entries (and "base" tables for other languages has 7 entries too).
Visuwesh> AFAICT from reading indian--puthash-m, this should not pose a problem
Visuwesh> but adding an extra nil to all itrans and inscript "base" tables to the
Visuwesh> misc section wouldn't hurt either.
It worked fine when I tested it. From my reading of
`quail-define-inscript-package' and the fact that eg
`inscript-mlm-keytable' only has 5 entries in the 'Misc' section, I
didnʼt think it would cause any issues.
Also now that `indian-dev-base-table' has 8 entries in the 'Misc' section,
inluding one for ?॥, Iʼm wondering about this code at
indian.el:61:
(quail-define-indian-trans-package
indian-dev-itrans-v5-hash "devanagari-itrans" "Devanagari" "DevIT"
"Devanagari transliteration by ITRANS method.")
(quail-defrule "..." ?॥) <== couldnʼt this be in `indian-itrans-v5-table' now?
(quail-defrule "\\'" ?॑)
(quail-defrule "\\_" ?॒)
(quail-defrule "\\__" ?_)
(quail-defrule "\\''" ?')
But I havenʼt tested any changes along those lines :-)
Robert
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Key sequence for DEVANAGARI DOUBLE DANDA
2023-09-07 16:35 ` Robert Pluim
@ 2023-09-08 7:33 ` Visuwesh
0 siblings, 0 replies; 5+ messages in thread
From: Visuwesh @ 2023-09-08 7:33 UTC (permalink / raw)
To: Robert Pluim; +Cc: Emacs Development, lumarzeli30, Pankaj Jangid
[வியாழன் செப்டம்பர் 07, 2023] Robert Pluim wrote:
>>>>>> On Thu, 07 Sep 2023 21:35:44 +0530, Visuwesh <visuweshm@gmail.com> said:
>
> Visuwesh> [வியாழன் செப்டம்பர் 07, 2023] Robert Pluim wrote:
> >> Something like this?
>
> Visuwesh> Did you try compiling the relevant files and tested devanagari-itrans
> Visuwesh> with the patch? Because, with your change indian-dev-base-table has 8
> Visuwesh> misc entries but the corresponding indian-itrans-v5-table only has 7
> Visuwesh> misc entries (and "base" tables for other languages has 7 entries too).
> Visuwesh> AFAICT from reading indian--puthash-m, this should not pose a problem
> Visuwesh> but adding an extra nil to all itrans and inscript "base" tables to the
> Visuwesh> misc section wouldn't hurt either.
>
> It worked fine when I tested it. From my reading of
> `quail-define-inscript-package' and the fact that eg
> `inscript-mlm-keytable' only has 5 entries in the 'Misc' section, I
> didnʼt think it would cause any issues.
>
> Also now that `indian-dev-base-table' has 8 entries in the 'Misc' section,
> inluding one for ?॥, Iʼm wondering about this code at
> indian.el:61:
>
> (quail-define-indian-trans-package
> indian-dev-itrans-v5-hash "devanagari-itrans" "Devanagari" "DevIT"
> "Devanagari transliteration by ITRANS method.")
> (quail-defrule "..." ?॥) <== couldnʼt this be in `indian-itrans-v5-table' now?
> (quail-defrule "\\'" ?॑)
> (quail-defrule "\\_" ?॒)
> (quail-defrule "\\__" ?_)
> (quail-defrule "\\''" ?')
Which makes me think, can't we just do the same for the inscript method
i.e., use quail-defrule for the DOUBLE DANDA?
> But I havenʼt tested any changes along those lines :-)
>
> Robert
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-09-08 7:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-19 12:36 Key sequence for DEVANAGARI DOUBLE DANDA Pankaj Jangid
2023-09-07 15:20 ` Robert Pluim
2023-09-07 16:05 ` Visuwesh
2023-09-07 16:35 ` Robert Pluim
2023-09-08 7:33 ` Visuwesh
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).