[NTG-context] MKIV Chinese and English typesetting

2008-03-25 Thread Yanrui Li
Dear Hans and other friends: I am a Chinese user of ConTeXt. Recently, I tried ConTeXt MkIV and test its Chinese typesetting. I am very glad to see MkIV can access my linux OS TTFOTF fonts and give a good face of my article about lines breaking. But on the bilingual typesetting, such as Chinese

[NTG-context] A problem in fallback fonts of MkIV

2008-10-01 Thread Yanrui Li
Hi, Hans: When I used AdobeSongStd-Light as my main font and used LMRoman10-Regular as the fallback font, I found that the spaces between Chinese characters and English words are perfect, for example: \definefontfeature [zh][mode=node,script=hang,lang=zhs] \definefontsynonym

Re: [NTG-context] A problem in fallback fonts of MkIV

2008-10-02 Thread Yanrui Li
On Thu, 2 Oct 2008 21:55:46, Wolfgang wrote: \spaceskip .25em plus .25em \relax It works. Thank you Wolfgang. Best wishes. Li Yanrui ___ If your question is of interest to others as well, please add an entry to

[NTG-context] Fails to load certain Chinese fonts

2008-10-06 Thread Yanrui Li
Hi, In MkIV of last beta version (2008.10.03 23:45), when I was loading certain Chinese fonts such as AdobeSongStd-Light or SimSun, LuaTeX happened to be interrupted. As the following example: \definefontfeature [zh][mode=node,script=hang,lang=zhs] \definefontsynonym

[NTG-context] A problem on lousy code of certain Chinese fonts in pdf

2008-10-06 Thread Yanrui Li
Hi, When I used SimSun font in the newest MkIV (2008.10.3), I found lousy code in pdf document, as an example attached to in this email, and I am sure that there is no this problem in the version 2008.10.1. Best wishes. Li Yanrui example.tar.gz Description: GNU Zip compressed data

Re: [NTG-context] Fails to load certain Chinese fonts (Yanrui Li)

2008-10-06 Thread Yanrui Li
These problems which include lousy code of certain Chinese fonts in pdf that is generated by MkIV, seem to connect with LuaTeX. From revision 1525 to 1535, LuaTeX can always work very well except text of using SimSun font is lousy code in pdf. After cleaning $TEXMFCACHE, I compiled revision

Re: [NTG-context] Thank you for the Chinese support, but still one question.

2008-10-13 Thread Yanrui Li
On Mon, Aug 11, 2008 at 12:17:15PM +0200, Hans Hagen wrote: Longmin Wang wrote: Hi, Hans, Thank you for the great works. But there is still a problem when I test a more complicated file which is attached below. In this file, both \bf and \bi give the same font lmroman10-bold. experimental

Re: [NTG-context] new beta (Hans Hagen)

2008-10-17 Thread Yanrui Li
Hi, Hans Hagen [EMAIL PROTECTED] wrote: this time a beta that is more beta than usual (mkiv) I fail to reinstall the latest beta. There is an errors with LuaTeX as following: mkiv lua stats : loaded fonts - none ! LuaTeX error

Re: [NTG-context] Thank you for the Chinese support, but still one question.

2008-10-24 Thread Yanrui Li
2008/10/24 Yue Wang [EMAIL PROTECTED]: Oh, btw, Yanrui Li also has a problem concerning the space between chinese and english (different space skips when use different chinese fonts). He is also in the list so I think it is better to leave to him to describe the problem. I have ever report

Re: [NTG-context] Fwd: Thank you for the Chinese support, but still one question.

2008-10-30 Thread Yanrui Li
2008/10/30 Hans Hagen [EMAIL PROTECTED]: i uploaded a beta for some reason the fallbacks were not part of the hash that i use to keep track of uniqueness of definitions it seems to work ok now in the beta this might also solve some of Thomas's problems there will probably be a new

[NTG-context] Maybe there is a bug in cross references with latest beta

2008-11-07 Thread Yanrui Li
Hi, The \in[ref] command is regarded as a mathematical symbol by the latest beta. There is a simple example as follows: \starttext \chapter[test]{TEST} \in{Chapter}[test] \stoptext The output of it is attached in the mail. -- Best wishes, Li Yanrui test.pdf Description: Adobe

Re: [NTG-context] Need more interword spacing

2008-11-12 Thread Yanrui Li
2008/11/13 Vyatcheslav Yatskovsky [EMAIL PROTECTED]: Hi, Can someone suggest me global setting for interword spacing? I write chords above lyrics (with a pen), and often there is no enougn space between words. Hi, Wolfgang have told me about using code such as ``spaceskip .25em plus

Re: [NTG-context] Need more interword spacing

2008-11-12 Thread Yanrui Li
2008/11/13 Yanrui Li [EMAIL PROTECTED]: 2008/11/13 Vyatcheslav Yatskovsky [EMAIL PROTECTED]: Hi, Can someone suggest me global setting for interword spacing? I write chords above lyrics (with a pen), and often there is no enougn space between words. Hi, Wolfgang have told me about using

Re: [NTG-context] no en dash with otf fonts

2008-11-13 Thread Yanrui Li
2008/11/14 Yi Zhang [EMAIL PROTECTED]: Hi, I'm using some otf fonts but '--' does not produce the en dash. How can I get over this problem? Thanks, Try to use `\emdash' instead of it. -- Best wishes, Li Yanrui

[NTG-context] The rules of Chinese breaking lines don't work

2008-11-28 Thread Yanrui Li
Hi, Today when I updated the newest beta, I found that Chinese breaking lines failed. This is a simple test file: %% \definefontfeature [zh][mode=node,script=hang,lang=zhs] \definefontsynonym [SongTi][AdobeSongStd-Light][features=zh] \definefont [song][SongTi at 12pt]

Re: [NTG-context] Copy Paste chinese in PDF files

2008-12-11 Thread Yanrui Li
2008/12/10 Yu Yi [EMAIL PROTECTED]: hi, I'm thinking now whether change from latex to context. As I know, both latex and context support the chinese language, but like in Latex, there is a problem with generated PDF, that is, the chinese words can not be copied and pasted correctly as the

Re: [NTG-context] Copy Paste chinese in PDF files

2008-12-11 Thread Yanrui Li
2008/12/12 Yue Wang yuleo...@gmail.com: Hi, Yanrui, Are you sure we should proceed the bibtex manually? (page38 of your version 2) since I run pdfTeX and bibtex, the process can be done automatically using texexec (after the 2006 release, of course). Yes, If we use 'context' as compiling

Re: [NTG-context] Template from latex to context

2008-12-14 Thread Yanrui Li
2008/12/13 Xan dxpubl...@telefonica.net: I would like to know if there is a template for having the same results in context than in latex. I refer for example in style of page (margins, etc), style of chapters (for example \setuphead[chapter][style=\tfd]), etc. It could be useful for

Re: [NTG-context] new beta

2009-02-18 Thread Yanrui Li
2009/2/18 Dohyun Kim nomosno...@gmail.com: We have three more things to do, however. 1. inter_char_stretch_factor = 2.00 seems to be too large value. I do not think that even Chinese or Japanese would allow that big value. I suggest 0.50 instead. Mr Wang, how do you think about that? I

Re: [NTG-context] new beta

2009-02-19 Thread Yanrui Li
2009/2/18 Hans Hagen pra...@wxs.nl: Hi, There is a new beta: a few additions to math as well as a prelude to new cjk support, now to be triggered explicitly (since the methods differ too much we cannot share them) \setscript[hangul] \setscript[hanzi]% arthur, is this the right name?

Re: [NTG-context] new beta

2009-02-19 Thread Yanrui Li
2009/2/20 luigi scarso luigi.sca...@gmail.com: btw, we prefer typesetting Chinese document like this: http://jjgod.org/docs/random/yt.pdf forgive me for intrusion $pdfinfo yt.pdf Creator:LaTeX with hyperref package Producer: xdvipdfmx (0.7.3) CreationDate: Sat Dec 27

Re: [NTG-context] beta release

2009-03-01 Thread Yanrui Li
2009/2/25 Hans Hagen pra...@wxs.nl: Hi, As prelude to LuaTeX 0.40 there is now a beta 0.35. I uploaded a context beta that matches this version. The most important move is that we now have a new math subsystem. (Specially for Mojca: iwona seems to work ok). Apart from bringin unicode math

Re: [NTG-context] beta release

2009-03-01 Thread Yanrui Li
2009/3/2 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: 2009/2/25 Hans Hagen pra...@wxs.nl: Hi, As prelude to LuaTeX 0.40 there is now a beta 0.35. I uploaded a context beta that matches this version. The most important move is that we now have a new math subsystem. (Specially for Mojca

Re: [NTG-context] How to increase weight of a font?

2009-03-06 Thread Yanrui Li
2009/3/6 Wei-Wei Guo wwgu...@gmail.com: It works, but is what I want. Sorry, I didn't describe my problem clear enough. I want to set weighted font for chapter title. How do this? \setuphead [chapter] [before={\startproperty[both]}, after={\stopproperty}] -- Best wishes, Li Yanrui *

Re: [NTG-context] betas

2009-03-13 Thread Yanrui Li
2009/3/14 Thomas A. Schmitz thomas.schm...@uni-bonn.de: On Mar 13, 2009, at 6:54 PM, luigi scarso wrote: ok here too This is LuaTeX, Version snapshot-0.35.0 ConTeXt  ver: 2009.03.13 17:35 MKIV  fmt: 2009.3.13  int: english/english OK here too, on OS X! (I'll check linux later) :) Linux

Re: [NTG-context] new beta

2009-03-19 Thread Yanrui Li
2009/3/17 Hans Hagen pra...@wxs.nl: Hi, In the process of a major cleanup and code split I uploaded a beta. Some important changes are: - initialization code is ready for upcoming luatex - language files have been cleaned up - core-table stuff is renamed to tabl-table stuff - several

Re: [NTG-context] new beta

2009-03-26 Thread Yanrui Li
2009/3/27 Hans Hagen pra...@wxs.nl: new beta with some of todays patches -- Hi, Now if I use Chinese fonts with this beta, sizes of character is all same. The test example is as shown in attachment. -                          

Re: [NTG-context] new beta

2009-03-26 Thread Yanrui Li
2009/3/27 Yanrui Li liyanrui...@gmail.com: 2009/3/27 Hans Hagen pra...@wxs.nl: new beta with some of todays patches -- Hi, Now if I use Chinese fonts with this beta, sizes of character is all same. The test example is as shown in attachment. Sorry, I forgot to put up My test file

Re: [NTG-context] Affiliation change

2009-04-02 Thread Yanrui Li
I heard the worst message and the best one. 2009/4/2 Taco Hoekwater t...@elvenkind.com: Hi, As Arthur emailed me already: you people are just too gullible ! :) Taco Hoekwater wrote: Hello everybody, This message is to inform you all that as of today, I am no longer an employee of

[NTG-context] Why can not rm or rmtf fonts be set up by \definebodyfont macro?

2009-04-05 Thread Yanrui Li
These days I have been reading co-fonts.pdf because I plan to write a document about ConTeXt MkIV for our Chinese users. When I reached the part of Defining body fonts, for testing bodyfont model, I made an example as following: \definefontsynonym[Song][AdobeSongStd-Light]

Re: [NTG-context] Why can not rm or rmtf fonts be set up by \definebodyfont macro?

2009-04-05 Thread Yanrui Li
2009/4/5 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 05.04.2009 um 15:07 schrieb Yanrui Li: I want to know why I can not override the preloading rm font. Dunno but it works for a complete definition. If I use other font size, it can work, such as: \definebodyfont[11pt][rm

Re: [NTG-context] Why can not rm or rmtf fonts be set up by \definebodyfont macro?

2009-04-05 Thread Yanrui Li
2009/4/6 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 05.04.2009 um 23:25 schrieb Hans Hagen: sure, but i'm not too eager to add that kind of hackery so loading a new typeface then makes more sense My hack can be done in a cleaner way with

Re: [NTG-context] new beta

2009-04-06 Thread Yanrui Li
2009/4/6 Hans Hagen pra...@wxs.nl: Hi, I uploaded a new beta. Last week(ends) fixes are merged in. Sorry for my noise. It seems that Chinese linebreak fails. Maybe \setscript[hanzi] doesn't work. -- Best wishes, Li Yanrui * Gentoo Linux (~x86) * ConTeXt Minimals Beta (2009.04.06 12:23)

Re: [NTG-context] new beta

2009-04-06 Thread Yanrui Li
2009/4/6 Yanrui Li liyanrui...@gmail.com: 2009/4/6 Hans Hagen pra...@wxs.nl: Hi, I uploaded a new beta. Last week(ends) fixes are merged in. Sorry for my noise. It seems that Chinese linebreak fails. Maybe \setscript[hanzi] doesn't work. The attachment is my test example. -- Best

Re: [NTG-context] new beta

2009-04-06 Thread Yanrui Li
2009/4/7 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: 2009/4/6 Yanrui Li liyanrui...@gmail.com: 2009/4/6 Hans Hagen pra...@wxs.nl: Hi, I uploaded a new beta. Last week(ends) fixes are merged in. Sorry for my noise. It seems that Chinese linebreak fails. Maybe \setscript[hanzi] doesn't

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Yanrui Li
2009/4/7 Yanrui Li liyanrui...@gmail.com: Hi, May be this can help you. \startuseMPgraphic{mpos:par:columnset} % Shift underlining down a touch   \iftracepositions show_multi_pars \else draw_multi_pars \fi ;   path p ; p := boundingbox currentpicture ;   currentpicture

Re: [NTG-context] new beta

2009-04-10 Thread Yanrui Li
2009/4/10 Hans Hagen pra...@wxs.nl: Hi, I uploaded a new beta, one that needs luatex beta 0.38, which has just been released. The most important things: I failed to update it and got an error message. ConTeXt ver: 2009.04.10 13:59 MKIV fmt: 2009.4.10 int: dutch/dutch ! LuaTeX error

Re: [NTG-context] new beta

2009-04-10 Thread Yanrui Li
2009/4/11 Longmin Wang longminw...@gmail.com: On Fri, Apr 10, 2009 at 10:02:24PM +0800, Yanrui Li wrote: 2009/4/10 Hans Hagen pra...@wxs.nl: Hi, I uploaded a new beta, one that needs luatex beta 0.38, which has just been released. The most important things: I failed to update it and got

Re: [NTG-context] new structure code

2009-04-10 Thread Yanrui Li
2009/4/11 Hans Hagen pra...@wxs.nl: Wolfgang Schuster wrote: I add it to my list, mkii and mkiv behave in the reverse way. thanks for collecting the issues, i prefer looking at them at once (next week) so if you make a summary / test file ... \headnumber missing with MkIV. \starttext

Re: [NTG-context] new structure code

2009-04-10 Thread Yanrui Li
2009/4/11 Yanrui Li liyanrui...@gmail.com: 2009/4/11 Hans Hagen pra...@wxs.nl: Wolfgang Schuster wrote: I add it to my list, mkii and mkiv behave in the reverse way. thanks for collecting the issues, i prefer looking at them at once (next week) so if you make a summary / test file

Re: [NTG-context] new structure code

2009-04-15 Thread Yanrui Li
2009/4/15 Hans Hagen pra...@wxs.nl: Wolfgang Schuster wrote: Hi, i found a few bugs in the new structure code for mkiv. i fixed a few things Hi, Hans, Header and footer appear in the chapter page. Isn't this problem fixed? \setuphead[chapter][header=empty,footer=empty]

Re: [NTG-context] new structure code

2009-04-16 Thread Yanrui Li
2009/4/16 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: Header and footer appear in the chapter page. Isn't this problem fixed? also fixed in next beta Thanks very much. Now I found a new bug with \setupinteraction in latest beta. \setupinteraction [state=start,focus=standard] \starttext

Re: [NTG-context] Bug in mkiv: \setupinteraction (Was: new structure code)

2009-04-16 Thread Yanrui Li
regards: OK On 16 avr. 09, at 16:44, Yanrui Li wrote: 2009/4/16 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: Header and footer appear in the chapter page. Isn't this problem fixed? also fixed in next beta Thanks very much. Now I found a new bug with \setupinteraction in latest beta

Re: [NTG-context] Page background color. Does not cover the entire page.

2009-04-17 Thread Yanrui Li
2009/4/17 Curiouslearn curiousle...@gmail.com: Hi, I created the attached PDF file using ConTeXt. As you can see I have a green background, which covers the whole page. However, when I took it to the printer today and he printed two copies for me, there was some white space left at four ends.

Re: [NTG-context] new beta

2009-04-17 Thread Yanrui Li
2009/4/18 Wei-Wei Guo wwgu...@gmail.com: Hi Hans, Here is the minimal examples. 1. The figure list and table list do not show caption titles and dots.   Only label number and page number appear there, such as:   1 Should have a caption title here   Should have dots here  13   Example:  

Re: [NTG-context] new beta

2009-04-17 Thread Yanrui Li
2009/4/18 Yanrui Li liyanrui...@gmail.com: Hi, Wei-Wei, I tested your examples. The first example can work here. With AdobeSongStd-Light font, the third one can also work. You can post your example with zhfonts.tex which use Adobe Song and Kai fonts. I think that Hans have these fonts

[NTG-context] Footnotes number can not be reset by way=bychapter

2009-04-19 Thread Yanrui Li
Hi, \setupfootnotes[way=bychapter] can not work. This is minimal example: \setupfootnotes[way=bychapter] \starttext \chapter{The Bare Basics} In this\footnote{CAGD} first chapter, we cover some basic geometry\footnote{CAGD}. \chapter{Lines and Planes} Next, we cover\footnote{CAGD} the

Re: [NTG-context] Updating bug

2009-04-27 Thread Yanrui Li
Linux x86: sent 221 bytes received 975 bytes 265.78 bytes/sec ... ... MTXrun | using script: ./bin/mtx-update.lua MTXrun | state: loaded MTXrun | update: start ./bin/mtx-update.lua:266: attempt to get length of global 'individual' (a nil value) -- Best wishes, Li Yanrui * Gentoo Linux

Re: [NTG-context] Updating bug

2009-04-28 Thread Yanrui Li
2009/4/28 Yanrui Li liyanrui...@gmail.com: Linux x86: sent 221 bytes  received 975 bytes  265.78 bytes/sec ... ... MTXrun | using script: ./bin/mtx-update.lua MTXrun | state: loaded MTXrun | update: start ./bin/mtx-update.lua:266: attempt to get length of global 'individual' (a nil value

Re: [NTG-context] Updating bug

2009-04-28 Thread Yanrui Li
2009/4/28 Yanrui Li liyanrui...@gmail.com: 2009/4/28 Yanrui Li liyanrui...@gmail.com: Linux x86: sent 221 bytes  received 975 bytes  265.78 bytes/sec ... ... MTXrun | using script: ./bin/mtx-update.lua MTXrun | state: loaded MTXrun | update: start ./bin/mtx-update.lua:266: attempt to get

Re: [NTG-context] Updating bug

2009-04-28 Thread Yanrui Li
2009/4/28 Yanrui Li liyanrui...@gmail.com: 2009/4/28 Yanrui Li liyanrui...@gmail.com: 2009/4/28 Yanrui Li liyanrui...@gmail.com: Linux x86: sent 221 bytes  received 975 bytes  265.78 bytes/sec ... ... MTXrun | using script: ./bin/mtx-update.lua MTXrun | state: loaded MTXrun | update

Re: [NTG-context] beta

2009-04-29 Thread Yanrui Li
2009/4/28 Hans Hagen pra...@wxs.nl: As I'm redoing the backend as well as cross referencing some interaction features might be broken but normally they are easy to fix (once i know what fails). So, best collect all bugs while i'm away so that i can deal with then at once. The numbering of

Re: [NTG-context] beta

2009-04-29 Thread Yanrui Li
2009/4/29 Otared Kavian ota...@gmail.com: Hi Yanrui, I tested your file and everything is correct here both with mkii and mkiv (ConTeXt  ver: 2009.04.21 16:11 MKIV  fmt: 2009.4.25  int: english/english). Hi Otared, When you would update to Minimals 2009.04.28 08:46, maybe you can get the

Re: [NTG-context] beta

2009-04-29 Thread Yanrui Li
2009/4/30 Aditya Mahajan adit...@umich.edu: On Thu, 30 Apr 2009, Yanrui Li wrote: 2009/4/29 Otared Kavian ota...@gmail.com: Hi Yanrui, I tested your file and everything is correct here both with mkii and mkiv (ConTeXt  ver: 2009.04.21 16:11 MKIV  fmt: 2009.4.25  int: english/english

Re: [NTG-context] FiXme module

2009-04-29 Thread Yanrui Li
2009/4/30 Wolfgang Schuster schuster.wolfg...@googlemail.com: Hi all, for the people who're looking for a equivalent of the FiXme package for LaTeX, there is a first version only with the basic commands. I can extend the module if there is interest but I don't want to integrate margin notes

Re: [NTG-context] bugs in beta

2009-05-07 Thread Yanrui Li
On Fri, May 8, 2009 at 7:06 AM, Yanrui Li liyanrui...@gmail.com wrote: On Fri, May 8, 2009 at 5:17 AM, Hans Hagen pra...@wxs.nl wrote: Alan BRASLAU wrote: I still get a major sectioning bug using the new beta mkiv 1. minimals from the garden 2. beta from http://pragma-ade.nl/context/beta

Re: [NTG-context] bugs in beta

2009-05-08 Thread Yanrui Li
On Fri, May 8, 2009 at 3:22 PM, Hans Hagen pra...@wxs.nl wrote: Yanrui Li wrote: On Fri, May 8, 2009 at 5:17 AM, Hans Hagen pra...@wxs.nl wrote: Alan BRASLAU wrote: I still get a major sectioning bug using the new beta mkiv 1. minimals from the garden 2. beta from http://pragma-ade.nl

Re: [NTG-context] setuptex changes in minimals (was: bugs in beta)

2009-05-08 Thread Yanrui Li
On Fri, May 8, 2009 at 7:19 PM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Fri, May 8, 2009 at 11:46, Yanrui Li wrote: Recently I have found some environment variables in setuptex script are commented out sometimes, such as TEXMFLOCAL, TEXMFCONTEXT and so on. Is this be done

Re: [NTG-context] setuptex changes in minimals (was: bugs in beta)

2009-05-08 Thread Yanrui Li
On Sat, May 9, 2009 at 1:43 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Fri, May 8, 2009 at 14:16, Yanrui Li wrote: I have no questions for these, only I have to modify instruction of these variables in the tutorial which I wrote for Chinese users :) What exactly do you

Re: [NTG-context] setuptex changes in minimals (was: bugs in beta)

2009-05-08 Thread Yanrui Li
On Sat, May 9, 2009 at 2:17 AM, Yanrui Li liyanrui...@gmail.com wrote: On Sat, May 9, 2009 at 1:43 AM, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: On Fri, May 8, 2009 at 14:16, Yanrui Li wrote: I have no questions for these, only I have to modify instruction of these variables

Re: [NTG-context] setuptex changes in minimals

2009-05-09 Thread Yanrui Li
On Sat, May 9, 2009 at 4:02 PM, Hans Hagen pra...@wxs.nl wrote: Yue Wang wrote: On Sat, May 9, 2009 at 2:20 AM, Yanrui Li liyanrui...@gmail.com wrote: Sorry! s/MkIV have not support Chinese typesetting now / MkIV have not support Chinese typesetting well now/g We can start a fork

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document.  And I want the chapter numbers to be in the right margin, while the chapter titles remain in the main text area.  So I write    \def\MyChapter#1#2    {\inright{#1} #2}

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 9:09 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 11.05.2009 um 14:59 schrieb Yanrui Li: On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document.  And I want the chapter numbers

Re: [NTG-context] New module - mkiv font loading

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 9:18 PM, Mohamed Bana mbana.li...@googlemail.com wrote: great!  thanks Wolfgang. is this working with the latest minimals?  Hopefully I'll get to try it later. Yes, I used it with latest beta for a whole afternoon. -- Best wishes, Li Yanrui

[NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Yanrui Li
Hi Hans, I tried to use Chinese opentype fonts with luatex + plain fmt but I failed. Only with Chinese TTF fonts it can work. This a simple example: \pdfoutput=1 \font\myfont=AdobeSongStd-Light \myfont 我想实现 LuaTeX 对中文的支持 \end When I compiled it, I got the following messages: This is LuaTeX,

Re: [NTG-context] Chinese opentype fonts can not be loaded in luatex-plain

2009-05-12 Thread Yanrui Li
On Tue, May 12, 2009 at 10:37 PM, Hans Hagen pra...@wxs.nl wrote: Yanrui Li wrote: Hi Hans, I tried to use Chinese opentype fonts with luatex + plain fmt but I failed. Only with Chinese TTF fonts it can work. this is because a cidmap is needed and the kpse that you use does not have

Re: [NTG-context] loading figure in LuaTeX

2009-05-21 Thread Yanrui Li
Hi Dalyoung, You should use the absolute path for your figure, such as: \externalfigure[/home/your-name/Documents/figures/math-shapes/moebius-band][] On Thu, May 21, 2009 at 5:03 PM, Dalyoung Jeong hak...@mac.com wrote: Dear all, I tried to load figure in LuaTeX, but I couldn't succeed.

[NTG-context] Problem with fontdata.cache being set to no in font-def.lua

2009-06-17 Thread Yanrui Li
Hi Hans, I am testing comperssion of Chinese punctuations according boundingbox. But I found that the fontdata.cache in font-def.lua is set to no, so I can't get the boundingbox information of those punctuation glyphs in my module. I want to know why set to no as default. Is it for efficiency?

Re: [NTG-context] Problem with fontdata.cache being set to no in font-def.lua

2009-06-17 Thread Yanrui Li
2009/6/17 Hans Hagen pra...@wxs.nl Yanrui Li wrote: Hi Hans, I am testing comperssion of Chinese punctuations according boundingbox. But I found that the fontdata.cache in font-def.lua is set to no, so I can't get the boundingbox information of those punctuation glyphs in my module. I

Re: [NTG-context] Problem with fontdata.cache being set to no in font-def.lua

2009-06-17 Thread Yanrui Li
2009/6/18 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: the cache option mentioned there is not meant for using, just for debugging (i.e. for myself) I have printed the the shared descriptions with the following code fragment: function f4zhcn.pre_linebreak_filter (head, groupcode)   for t

Re: [NTG-context] Problem with fontdata.cache being set to no in font-def.lua

2009-06-17 Thread Yanrui Li
2009/6/18 Hans Hagen pra...@wxs.nl Yanrui Li wrote: the cache option mentioned there is not meant for using, just for debugging (i.e. for myself) I have printed the the shared descriptions with the following code fragment: function f4zhcn.pre_linebreak_filter (head, groupcode)   for t

Re: [NTG-context] latest beta: trouble with font loading

2009-11-20 Thread Yanrui Li
2009/11/20 Wolfgang Schuster schuster.wolfg...@googlemail.com: Am 20.11.2009 um 11:45 schrieb Thomas A. Schmitz: Hi Hans, all, the two latest betas have trouble loading fonts from my own typescripts. All errors point to the same line in font-syn.lua. I don't have a minimal example yet,

Re: [NTG-context] latest beta: trouble with font loading

2009-11-20 Thread Yanrui Li
2009/11/20 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: I did so and solved this problem. However I can not use Chinese OTF fonts such as 'AdobeSongStd-Light.otf', because luatex need very very large memory to load it in the stage of *enhancing* . This is a test file: \definefont[song

Re: [NTG-context] latest beta: trouble with font loading

2009-11-20 Thread Yanrui Li
2009/11/21 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: 2009/11/20 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: I did so and solved this problem. However I can not use Chinese OTF fonts such as 'AdobeSongStd-Light.otf', because luatex need very very large memory to load it in the stage

Re: [NTG-context] latest beta: trouble with font loading

2009-11-21 Thread Yanrui Li
2009/11/21 Yanrui Li liyanrui...@gmail.com: 2009/11/21 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: 2009/11/20 Hans Hagen pra...@wxs.nl: Yanrui Li wrote: I did so and solved this problem. However I can not use Chinese OTF fonts such as 'AdobeSongStd-Light.otf', because luatex need very very

Re: [NTG-context] latest beta: trouble with font loading

2009-11-21 Thread Yanrui Li
2009/11/22 Bernhard Rosensteiner brosenstei...@gmail.com: Hello all, now i only have attached the .log and .tex (minimal example) files (first i attached the .otf font too). My problem with the otf font loading still exists (even after completely removing the old minimals and uptating via

Re: [NTG-context] new beta

2009-11-27 Thread Yanrui Li
2009/11/28 Hans Hagen pra...@wxs.nl Hi, i uploaded a beta with a few fixes. i also replaced the mtxrun.cmd etc file by executables (windows stubs only); on tex live we have a call chain: *.exe - *.cmd|bat - whatever and we don't want that many calls (and files) so i copied the regular

[NTG-context] Problem with the 'scrp-cjk.lua'

2009-11-29 Thread Yanrui Li
Hi Hans, In the *hanzi* part of scrp-cjk.lua, there is: local injectors = { -- [previous] [current] ... ... ... full_width_close = { ... ... ... chinese = nobreak_shrink_break_stretch, ... ... ... This causes that lines can not be broken after some

[NTG-context] mtxrun script broken in the latest beta

2009-12-22 Thread Yanrui Li
Hi, Under linux x86: $ context --version MTXrun | unknown script 'context.lua' or 'mtx-context.lua' After I replaced the current one with the previous one, it can work again. -- Best regards, Li Yanrui ___ If

Re: [NTG-context] mtxrun script broken in the latest beta

2009-12-22 Thread Yanrui Li
2009/12/23 Yanrui Li liyanrui...@gmail.com Hi, Under linux x86: $ context --version MTXrun | unknown script 'context.lua' or 'mtx-context.lua' After I replaced the current one with the previous one, it can work again. Sorry, I discovered this is only my delusion for the result after

Re: [NTG-context] mtxrun script broken in the latest beta

2009-12-22 Thread Yanrui Li
2009/12/23 Aditya Mahajan adit...@umich.edu On Wed, 23 Dec 2009, Yanrui Li wrote: Hi, Under linux x86: $ context --version MTXrun | unknown script 'context.lua' or 'mtx-context.lua' Run luatools --generate first. I do so, but it still don't work. These are my steps: $ rm -rf

[NTG-context] Chinese numeral conversion

2009-12-22 Thread Yanrui Li
Hi Hans, I modified the part of Chinese numeral conversion in core-con.lua script. The attachment is the patch. After many tests as the following I think the patch is right even though it looks dirty. \definefont[song][name:adobesongstdlight]\song \starttext \startluacode local function

Re: [NTG-context] Chinese numeral conversion

2009-12-22 Thread Yanrui Li
2009/12/23 Yanrui Li liyanrui...@gmail.com Hi Hans, I modified the part of Chinese numeral conversion in core-con.lua script. The attachment is the patch. After many tests as the following I think the patch is right even though it looks dirty. \definefont[song][name:adobesongstdlight

Re: [NTG-context] Chinese numeral conversion

2009-12-22 Thread Yanrui Li
2009/12/23 Yanrui Li liyanrui...@gmail.com 2009/12/23 Yanrui Li liyanrui...@gmail.com Hi Hans, I modified the part of Chinese numeral conversion in core-con.lua script. The attachment is the patch. After many tests as the following I think the patch is right even though it looks dirty

[NTG-context] The problem with structure of heads in MkIV

2009-12-29 Thread Yanrui Li
hi all, For example: \starttext \placelist[part,chapter,section,subsection][criterium=all] \part{first} \chapter{alpha} \section{a} \section{b} \subsection{x} \subsection{y} \chapter{beta} \part{second} \chapter{gamma} \section{a} \section{b}

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-29 Thread Yanrui Li
2009/12/30 Joshua Lee muz...@gmail.com Hi Yanrui, How about the attached sample? Hi Joshua, This is exactly what I want. Many thanks :-) -- Best regards, Li Yanrui ___ If your question is of interest to

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-30 Thread Yanrui Li
2009/12/31 Tad Ashlock taas...@cyberdude.com The attached sample doesn't meet the original poster's criteria. It produces headings like 1.1 alpha and 1.1.1 a instead of the requested 1 alpha and 1.1 a. Is there any way of achieving this? (Under Part 1, of course. That's the trick.) Hi

Re: [NTG-context] The problem with structure of heads in MkIV

2009-12-31 Thread Yanrui Li
2010/1/1 Tad Ashlock taas...@cyberdude.com Ahhh... The problem was that I came at Joshua's message from the online mailing list http://archive.contextgarden.net/message/20091230.023239.56a1e396.en.html and the only attached sample was the code in the message. Apparently attachments

[NTG-context] Is there the length of article title limited in bibliography with MkIV for Chinese?

2010-01-18 Thread Yanrui Li
Hi all, If the .bib file includes a article with Chinese title, I found the article's length should be equal or less than 22 characters. Once the length is over 22 characters, the compile process will hang. The following is an example: %% filename: test.tex, it depends on the

Re: [NTG-context] Is there the length of article title limited in bibliography with MkIV for Chinese?

2010-01-18 Thread Yanrui Li
2010/1/18 Taco Hoekwater t...@elvenkind.com Yanrui Li wrote: Hi all, If the .bib file includes a article with Chinese title, I found the article's length should be equal or less than 22 characters. Once the length is over 22 characters, the compile process will hang. %% filename

[NTG-context] Can not register the callback functions in MkIV

2010-02-18 Thread Yanrui Li
Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode local old_pre_linebreak_filter = callback.find ('pre_linebreak_filter') local function my_pre_linebreak_filter (head, groupcode) if old_pre_linebreak_filter then

Re: [NTG-context] Can not register the callback functions in MkIV

2010-02-19 Thread Yanrui Li
2010/2/19 Yanrui Li liyanrui...@gmail.com Hi, Now it seems that we have not allowed to register the callback functions since beta 2010.02.18. For example: \startluacode local old_pre_linebreak_filter = callback.find ('pre_linebreak_filter') local function my_pre_linebreak_filter (head

[NTG-context] \definetypeface broken?

2010-02-25 Thread Yanrui Li
Hi, I found '\definetypeface' can not work with beta 2010.02.24. This is a minimal example: \starttypescript[serif][test] \definefontsynonym[Serif][name:texgyrepagella] \stoptypescript \definetypeface[myfonts][rm][serif][test][default] \setupbodyfont[myfonts] \starttext Hello world!

[NTG-context] incorrect size of the font bounding box with MkIV

2010-03-24 Thread Yanrui Li
Hi Hans, I tried to get the boundry of Chinese punctuation in the scrp-cjk.lua file. Such as the bounding box information of Chinese comma in the AdobeSongStd-Light.otf font: bbox[1] = 36, bbox[2] = -78, bbox[3] = 963, bbox[4] = 833 However I got the following result with luatex + plain