GNU bug report logs -
#54233
29.0.50; [PATCH] Missing symbols in tex--prettify-symbols-alist
Previous Next
Reported by: Arash Esbati <arash <at> gnu.org>
Date: Thu, 3 Mar 2022 11:50:02 UTC
Severity: normal
Tags: patch
Found in version 29.0.50
Fixed in version 29.1
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54233 in the body.
You can then email your comments to 54233 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54233
; Package
emacs
.
(Thu, 03 Mar 2022 11:50:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arash Esbati <arash <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 03 Mar 2022 11:50:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
I'd like to propose the following change to
`tex--prettify-symbols-alist'. It adds support for macros formerly
provided by textcomp package which are now part of LaTeX kernel. I will
prepare a format-patch once this change is accepted.
Any comments welcome.
Best, Arash
[tex-prettify.diff (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54233
; Package
emacs
.
(Thu, 03 Mar 2022 13:56:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 54233 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
> I'd like to propose the following change to
> `tex--prettify-symbols-alist'. It adds support for macros formerly
> provided by textcomp package which are now part of LaTeX kernel. I will
> prepare a format-patch once this change is accepted.
[...]
> + ;; Text symbols formerly part of textcomp package:
> + ("\\textdollar" . ?$) ; "0024
> + ("\\textborn" . ?*) ; "002A
> + ("\\textless" . ?<) ; "003C
Is there any point in adding the numerical code to all these lines? And
if we want that, I think this should be two patches -- one that adds the
new symbols, and one that adds codes to the old lines, otherwise it's
difficult to say what's changed functionally.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54233
; Package
emacs
.
(Thu, 03 Mar 2022 15:36:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 54233 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Is there any point in adding the numerical code to all these lines?
It's for reference only to show which character LaTeX will pick. One
difference I found between the current implementation and my patch is
the entry for \textdied. Current implementation is:
character: ✝ (displayed as ✝) (codepoint 10013, #o23435, #x271d)
to input: type "C-x 8 RET 271d" or "C-x 8 RET LATIN CROSS"
LaTeX does (and my change too):
character: † (displayed as †) (codepoint 8224, #o20040, #x2020)
to input: type "C-x 8 RET 2020" or "C-x 8 RET DAGGER"
One could now argue that the current implementation is better for
prettifying, but I would say to stick with LaTeX does to keep the
difference between final product and what you see in the editor low.
But that's only me.
> And if we want that, I think this should be two patches -- one that
> adds the new symbols,
I can provide a new patch and delete the code points, just let me know.
Best, Arash
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54233
; Package
emacs
.
(Fri, 04 Mar 2022 15:38:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 54233 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
>> Is there any point in adding the numerical code to all these lines?
>
> It's for reference only to show which character LaTeX will pick. One
> difference I found between the current implementation and my patch is
> the entry for \textdied. Current implementation is:
>
> character: ✝ (displayed as ✝) (codepoint 10013, #o23435, #x271d)
> to input: type "C-x 8 RET 271d" or "C-x 8 RET LATIN CROSS"
>
> LaTeX does (and my change too):
>
> character: † (displayed as †) (codepoint 8224, #o20040, #x2020)
> to input: type "C-x 8 RET 2020" or "C-x 8 RET DAGGER"
Adding a comment noting that this is DAGGER might be appropriate for
that one, since it seems confusable.
>> And if we want that, I think this should be two patches -- one that
>> adds the new symbols,
>
> I can provide a new patch and delete the code points, just let me know.
Yes, please do.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54233
; Package
emacs
.
(Thu, 17 Mar 2022 10:26:01 GMT)
Full text and
rfc822 format available.
Message #17 received at 54233 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Arash Esbati <arash <at> gnu.org> writes:
>>
>> I can provide a new patch and delete the code points, just let me know.
>
> Yes, please do.
Please find attached the next try. Let me know if it's Ok and I push it
to Emacs master.
Best, Arash
[tex-prettify.diff (text/x-patch, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54233
; Package
emacs
.
(Thu, 17 Mar 2022 10:33:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 54233 <at> debbugs.gnu.org (full text, mbox):
Arash Esbati <arash <at> gnu.org> writes:
> Please find attached the next try. Let me know if it's Ok and I push it
> to Emacs master.
Looks good to me; please go ahead.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#54233
; Package
emacs
.
(Thu, 17 Mar 2022 10:53:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 54233 <at> debbugs.gnu.org (full text, mbox):
close 54233 29.1
quit
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Looks good to me; please go ahead.
Thanks, pushed. I'm closing this report.
Best, Arash
bug marked as fixed in version 29.1, send any further explanations to
54233 <at> debbugs.gnu.org and Arash Esbati <arash <at> gnu.org>
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 17 Mar 2022 10:53:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 14 Apr 2022 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 3 years and 125 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.