簡體   English   中英

emacs ispell打破乳膠引號

[英]emacs ispell breaks on latex quotation marks

我的emacs“ispell”命令運行hunspell,當它命中我的emacs乳膠緩沖區(我使用的是AucTEX)中的引用部分時會中斷。 使用我以前的emacs / Linux發行版,它沒有這個問題。 例:

as you like to say, vbfs ``You won't know what to do with yourself.''

運行Mx ispell正確標記vbfs。 然而,

as you like to say, ``You won't know what to do with yourself.'' vbfs

不記錄任何錯誤。 此外,一旦它被命中部分文本,似乎跳過文檔的其余部分。 什么可能導致這個? 作為參考,這是我的ispell-tex-skip-alists var:

((("\\\\addcontentsline" ispell-tex-arg-end 2)
  ("\\\\add\\(tocontents\\|vspace\\)" ispell-tex-arg-end)
  ("\\\\\\([aA]lph\\|arabic\\)" ispell-tex-arg-end)
  ("\\\\bibliographystyle" ispell-tex-arg-end)
  ("\\\\makebox" ispell-tex-arg-end 0)
  ("\\\\e?psfig" ispell-tex-arg-end)
  ("\\\\document\\(class\\|style\\)" . "\\\\begin[  \n]*{[  \n]*document[   \n]*}"))
 (("\\(figure\\|table\\)\\*?" ispell-tex-arg-end 0)
  ("list" ispell-tex-arg-end 2)
  ("program" . "\\\\end[    \n]*{[  \n]*program[    \n]*}")
  ("verbatim\\*?" . "\\\\end[   \n]*{[  \n]*verbatim\\*?[   \n]*}")))

在buildvm-15.phx2.fedoraproject.org上運行2013-08-14的GNU Emacs 24.3.1(x86_64-redhat-linux-gnu,GTK +版本3.8.2)

Ispell將這對引號傳給hunspell,而這些引號並不能應付它。 我們可以通過以下建議避免這種情況:

(defadvice ispell-send-string (before kill-quotes activate)
  (setq string (replace-regexp-in-string "''" "  " string)))

它用空格替換這對引號。 需要空間以避免錯位對齊。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM