unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* PATCH: iso-cvt.elL: add \textquestiondown ¿
@ 2017-02-11 10:03 Uwe Brauer
  2017-02-11 21:22 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2017-02-11 10:03 UTC (permalink / raw)
  To: emacs-devel

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


Hi

Attached find a trivial patch which adds \textquestiondown to be
translated to ¿.

Uwe Brauer


[-- Attachment #2: 0001-Add-textquestiondown-to-be-translated-to.patch --]
[-- Type: text/x-diff, Size: 1177 bytes --]

From 02f3c2aa191334099a2396ee0ce3f7e0b934c62a Mon Sep 17 00:00:00 2001
From: Uwe Brauer <oub@mat.ucm.es>
Date: Sat, 11 Feb 2017 10:01:15 +0000
Subject: [PATCH] =?UTF-8?q?Add=20\textquestiondown=20to=20be=20translated?=
 =?UTF-8?q?=20to=20=C2=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lisp/international/iso-cvt.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/international/iso-cvt.el b/lisp/international/iso-cvt.el
index ebf90a3..3ae2055 100644
--- a/lisp/international/iso-cvt.el
+++ b/lisp/international/iso-cvt.el
@@ -202,6 +202,7 @@ iso-iso2tex
  (interactive "*r")
  (iso-translate-conventions from to iso-iso2tex-trans-tab))
 
+
 (defvar iso-tex2iso-trans-tab
   '(
     ("{\\\\\"a}" "ä")
@@ -378,6 +379,7 @@ iso-tex2iso-trans-tab
     ("\\\\P{}" "¶" )
     ("\\\\S{}" "§" )
     ("{\\?`}" "¿")
+    ("\\\\textquestiondown" "¿")
     ("{!`}" "¡")
     ("\\?`" "¿")
     ("!`" "¡")
@@ -565,6 +567,7 @@ iso-gtex2iso-trans-tab
     ("\\\\P{}" "¶" )
     ("\\\\S{}" "§" )
     ("?`" "¿")
+    ("\\\\textquestiondown" "¿")
     ("!`" "¡")
     ("{?`}" "¿")
     ("{!`}" "¡")
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: PATCH: iso-cvt.elL: add \textquestiondown ¿
  2017-02-11 10:03 PATCH: iso-cvt.elL: add \textquestiondown ¿ Uwe Brauer
@ 2017-02-11 21:22 ` Stefan Monnier
  2017-02-11 22:36   ` Uwe Brauer
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2017-02-11 21:22 UTC (permalink / raw)
  To: emacs-devel

> Attached find a trivial patch which adds \textquestiondown to be
> translated to ¿.

I guess even better would be to merge iso-tex2iso-trans-tab with quail's
latin-ltx.


        Stefan




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: iso-cvt.elL: add \textquestiondown ¿
  2017-02-11 21:22 ` Stefan Monnier
@ 2017-02-11 22:36   ` Uwe Brauer
  2017-02-11 22:57     ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2017-02-11 22:36 UTC (permalink / raw)
  To: emacs-devel


>>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Attached find a trivial patch which adds \textquestiondown to be
>> translated to ¿.

> I guess even better would be to merge iso-tex2iso-trans-tab with quail's
> latin-ltx.

But I thought iso-cvt.el is for converting 7bit strings in (La)TeX
files, to latin-1, utf8 or whatever while the quail stuff is independent
that and for input only, at least I cannot see any conversion function
in latin-ltx.

So if I understand you correctly you would like to merge iso-cvt.el with
quail-ltx.el? So that one would end up only with one translation table
and then either input functionality or conversion functionality.

Do I understand that correctly? But I don't think that it would be
helpful that \textquestiondown would be expanded to ¿ while typing.
Using auctex usually people would use macros to insert that.

But maybe I miss the point.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PATCH: iso-cvt.elL: add \textquestiondown ¿
  2017-02-11 22:36   ` Uwe Brauer
@ 2017-02-11 22:57     ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2017-02-11 22:57 UTC (permalink / raw)
  To: emacs-devel

> But I thought iso-cvt.el is for converting 7bit strings in (La)TeX
> files, to latin-1, utf8 or whatever

Actually, it converts to "Emacs characters" (i.e. an internal
representation).  So it's not specifically latin-1 nor utf-8, tho it was
originally mostly aimed at converting those characters covered by latin-1.

> while the quail stuff is independent that and for input only, at least
> I cannot see any conversion function in latin-ltx.

Indeed, they don't do the same thing.

> So if I understand you correctly you would like to merge iso-cvt.el with
> quail-ltx.el?  So that one would end up only with one translation table
> and then either input functionality or conversion functionality.

I'm not sure if merging the two would really be the best option, but at
least have them share a table, so improvements to one carry over to the other.

> Do I understand that correctly? But I don't think that it would be
> helpful that \textquestiondown would be expanded to ¿ while typing.

It wouldn't hurt either.


        Stefan




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-02-11 22:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-11 10:03 PATCH: iso-cvt.elL: add \textquestiondown ¿ Uwe Brauer
2017-02-11 21:22 ` Stefan Monnier
2017-02-11 22:36   ` Uwe Brauer
2017-02-11 22:57     ` Stefan Monnier

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).