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: Tue, 15 Feb 2005 11:38:19 +0100

> * Ralf Angeli (2005-02-15) writes:
> 
> >>> 4) Is it sufficient to search for \cj or are there other character
> >>>    categories which have to be treated the same way?
> >>> 
> >> At least, it is sufficient for Japanese and not sufficient for 
> >> Chinese and Korean.  But I am not a native of Chinese or Korea,
> >> so that I can't say space should be gotten rid of when filling
> >> in Chinese and Korean like in Japanese.
> >>
> >> May be \c| is sufficient, but its document says:
> >>
> >> (category-docstring ?|)
> >>  => While filling, we can break a line at this character.
> >>
> >> That is not equal that no space should be removed.
> >> Please negatives of Chinese and Korean give us advices.
> >
> > Hm, I just looked at the code doing this newline squashing in CVS
> > Emacs and Emacs 21.3:
> [...]
> > Why don't we just stick this into `LaTeX-fill-region-as-para-do'?  We
> > could even cut out the whole `(if (fboundp 'fill-delete-newlines) ...'
> > construct and put it into a new `LaTeX-fill-delete-newlines' function
> > which would make `LaTeX-fill-region-as-para-do' more readable.
> 
> Sigh.  XEmacs.  AFAICS it doesn't provide the ?| category.  Can
> anybody confirm this?  In their `fill-region-as-paragraph' they do the

Oh, no... XEmacs.
I got XEmacs 21.5.18 and I can't find `?|' category.

> newline squashing with the help of `word-across-newline' which
> evaluates to "\\(\\cj\\|\\cc\\|\\ct\\)".  Maybe it is sufficient to
> use this with your solution?  Do multi-line regexps work in XEmacs?
> 

| Documentation:
| Regular expression of such characters which can be a word across newline.

That's what I want.  But FSF Emacs doesn't have `word-across-newline'.

The meaning of category ?t is different between FSF Emacs and XEmacs.
 FSF Emacs: Korean
 XEmacs: Hangul (Korean) 2-byte character set
Sigh...

Maybe we need a new variable for Emacs21 and XEmacs.
  (defvar LaTeX-word-across-newline
    (if (boundp 'word-across-newline) word-across-newline "\\c|"))

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