Re: Issues with japanese support

Masayuki Ataka <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
From: Ralf Angeli <[email protected]>
Subject: Re: Issues with japanese support
Date: Fri, 18 Feb 2005 10:15:34 +0100

> > To define `LaTeX-nospace-between-char-regexp' looks good to me.
(snip)
> 
> Hm, it is a bit dangerous to have a value of nil here because the code
> in `LaTeX-fill-delete-newlines' could then match only "\n".  Of course
> this is very unlikely to happen because there is a test for mule as
> well.  But if we suppose that somebody removes that test without
> looking at `LaTeX-nospace-between-char-regexp' this could lead to
> problems.
> 
> How about the following?
> 
> (if (featurep 'xemacs)
>     (if (boundp 'word-across-newline)
> 	word-across-newline
>       "\\cj\\|\\cc\\|\\ct")
>   "\\c|")
> 
In such a rare case, we should check `word-across-newline' is non-nil.

(defcustom LaTeX-nospace-between-char-regexp
  (if (featurep 'xemacs)
    (if (and (boundp 'word-across-newline) word-across-newline)
	word-across-newline
      ;; NOTE: '\ct' means `Chinese Taiwan' (XEmacs) but `Thai' (FSF Emacs).
      "\\cj\\|\\cc\\|\\ct")
    "\\c|")

> >   "Regular expression of such characters which can be a word across newline."
> 
> This does not refer to the variables's name.  Maybe the following is a
> bit clearer:
> 
>   "Regexp matching a character where no interword space is necessary.
> Words formed by such characters can be broken across newlines."
> 
Thanks.

> >   :group 'LaTeX
> >   :type 'regexp)
> >
> > # Where to put it?
> > # After `;;; Filling' ?
> 
> Yes.
> 
Ok.

---
email: [email protected]
Name:: Masayuki Ataka // (Japan)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.