--- On Tue, 13/12/11, Werner LEMBERG <[email protected]> wrote:

> > I am wondering how much of this behavior depends on
> display (and the
> > availability of a display with fontsets, etc).
> 
> It *completely* depends on display!  You can control
> the fonts by
> setting them up, either using the FontConfig interface or
> directly
> handling X11 font names.

Hmm, I was hoping for a batch (command-line) solution - i.e.
 
emacs -batch -l cjk-enc -f batch-cjk-write-file 


> AFAIK, there isn't.  I think we should *only* rely on
> get-text-property.
> 
> > The string returned by get-test-property is not
> exactly the same as
> > char-charset - e.g. 'tis620-2533' vs 'thai-tis620',
> 
> I've just loaded CJKbabel.tex into a buffer, positioned the
> cursor on
> a Thai character, called `eval-expression' and evaluated
> 
>   (get-text-property (point) 'charset)
> 
>      ==> thai-tis620

I get "tis620-2533" with emacs 23.

> So I think we can use this, right?

Caveat above :-).

> However, this result
> 
>  (char-charset (point))
> 
>      ==> unicode

Yes, this is pretty much the source of the problem with the emacs 22 to 23 
change :-).

> > and 'nil' for ascii region instead of 'ascii'.
> 
> This is OK, I think.

Except some of your existing code explicitly test for "(eq charset 'ascii)"
and also "(setq pre-charset 'ascii)"... 

> > The other thing is, there seems to be some buffer
> confusion and once
> > in a while things switch to a different buffer, and/or
> the buffer
> > pointer got winded back.
> 
> No idea what you are talking about.
 
> > Perhaps I could ask: how often does the code backtrack
> in the input
> > buffer scan?  It certain does in the Thai
> part.  It is easier to
> > deal with skipping over a chunk of input than it
> backtracking over
> > and over :-(.
> 
> How is this relevant to the problem?  Please explain.

I am having problem with the code going into a tight infinite loop, when 
somehow it switches into a different buffer, and lose track of where it is 
supposed to be.

_______________________________________________
Cjk maillist  -  [email protected]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to