GNU bug report logs -
#20488
Problems with Icelandic quotation marks
Previous Next
Reported by: Joseph Timothy Foley <foley <at> ru.is>
Date: Sat, 2 May 2015 23:02:02 UTC
Severity: normal
Tags: notabug
Done: Mosè Giordano <mose <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 20488 in the body.
You can then email your comments to 20488 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#20488
; Package
auctex
.
(Sat, 02 May 2015 23:02:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Joseph Timothy Foley <foley <at> ru.is>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Sat, 02 May 2015 23:02:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The Icelandic support in AUCTeX seems to be having issues with quotation
marks. If I type ", it doesn't replace it with the right marks. It
simply puts ". I have to press " twice in order to get it to create "`
and "'. Am I missing something? I searched on google and could not
find anyone else with a similar issue.
When the system is not editing a document in with biber, " expands
correctly to the `` and '' as normal.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20488
; Package
auctex
.
(Sun, 03 May 2015 09:37:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 20488 <at> debbugs.gnu.org (full text, mbox):
close 20488
tags 20488 notabug
thanks
Hi Joseph,
2015-05-03 0:19 GMT+02:00 Joseph Timothy Foley <foley <at> ru.is>:
> The Icelandic support in AUCTeX seems to be having issues with quotation
> marks. If I type ", it doesn't replace it with the right marks. It
> simply puts ". I have to press " twice in order to get it to create "`
> and "'. Am I missing something?
Well, the behavior you reported is exactly what is described in the
AUCTeX manual (info "(auctex)European") [1], so I wouldn't call it a
bug.
> I searched on google and could not
> find anyone else with a similar issue.
> When the system is not editing a document in with biber, " expands
> correctly to the `` and '' as normal.
You can achieve the behavior you expected by setting the
`TeX-quote-language-alist' variable. Add the following code to your
init file
(add-to-list 'TeX-quote-language-alist
'("icelandic" "\"`'" "\"'" nil))
Now you can insert the right quotation marks by pressing " just once.
I'm going to close this ticket.
Bye,
Mosè
Note:
[1] https://gnu.org/software/auctex/manual/auctex.html#European
bug closed, send any further explanations to
20488 <at> debbugs.gnu.org and Joseph Timothy Foley <foley <at> ru.is>
Request was from
Mosè Giordano <mose <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 03 May 2015 09:37:03 GMT)
Full text and
rfc822 format available.
Added tag(s) notabug.
Request was from
Mosè Giordano <mose <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 03 May 2015 09:37:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20488
; Package
auctex
.
(Mon, 04 May 2015 11:57:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 20488 <at> debbugs.gnu.org (full text, mbox):
Thank you for that solution, though it has a minor error in it:
You sent:
(add-to-list 'TeX-quote-language-alist
'("icelandic" "\"'" "\"'" nil))
When it should be:
(add-to-list 'TeX-quote-language-alist
'("icelandic" "\"`" "\"'" nil))
Note the right single quote.
In the AUCTex distribution, it appears that this is supposed to be
already set via icelandic.el. Am I confused about how TeX-quote-language
vs TeX-quote-language-alist works?
in elpa/auctex-11.88.3/style/icelandic.el
(TeX-add-style-hook
"icelandic"
(lambda ()
(set-syntax-table LaTeX-icelandic-mode-syntax-table)
(unless (eq (car TeX-quote-language) 'override)
(setq TeX-quote-language '("icelandic" "\"`" "\"'" t)))
(setq LaTeX-babel-hyphen-language "icelandic")
;; Fontification of quotation marks.
(when (fboundp 'font-latex-add-quotes)
(font-latex-add-quotes '("\"`" "\"'"))
(font-latex-add-quotes '("\"<" "\">" french)))
(run-hooks 'TeX-language-is-hook))
LaTeX-dialect)
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#20488
; Package
auctex
.
(Tue, 05 May 2015 08:44:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 20488 <at> debbugs.gnu.org (full text, mbox):
Hi Joseph,
2015-05-04 13:56 GMT+02:00 Joseph Timothy Foley <foley <at> ru.is>:
> Thank you for that solution, though it has a minor error in it:
> You sent:
> (add-to-list 'TeX-quote-language-alist
> '("icelandic" "\"'" "\"'" nil))
>
> When it should be:
> (add-to-list 'TeX-quote-language-alist
> '("icelandic" "\"`" "\"'" nil))
> Note the right single quote.
That's what I wrote, see
https://debbugs.gnu.org/cgi/bugreport.cgi?msg=8;bug=20488
> In the AUCTex distribution, it appears that this is supposed to be
> already set via icelandic.el. Am I confused about how TeX-quote-language
> vs TeX-quote-language-alist works?
>
> in elpa/auctex-11.88.3/style/icelandic.el
>
> (TeX-add-style-hook
> "icelandic"
> (lambda ()
> (set-syntax-table LaTeX-icelandic-mode-syntax-table)
> (unless (eq (car TeX-quote-language) 'override)
> (setq TeX-quote-language '("icelandic" "\"`" "\"'" t)))
> (setq LaTeX-babel-hyphen-language "icelandic")
> ;; Fontification of quotation marks.
> (when (fboundp 'font-latex-add-quotes)
> (font-latex-add-quotes '("\"`" "\"'"))
> (font-latex-add-quotes '("\"<" "\">" french)))
> (run-hooks 'TeX-language-is-hook))
> LaTeX-dialect)
The difference between what I wrote in my code and what is done in
icelandic.el is the last item of the list: it's t in the style file,
and nil in my code. The fourth item of the list controls whether the
quote is inserted after the first or the second press of ", see
https://gnu.org/software/auctex/manual/auctex.html#index-TeX_002dquote_002dlanguage_002dalist
Bye,
Mosè
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 02 Jun 2015 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.