Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Wolfgang Schuster
Am 13.05.2009 um 14:59 schrieb Hans Hagen: Yue Wang wrote: compilation time, you can have a cup of tea and enjoy the sunshine... Anyway, t-zhspacing is much faster than lualatex. but 1 minutes to compile a 100 pages document is still too long) it all depends on what you use and want to achi

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Hans Hagen
Yue Wang wrote: > the software unusable (Imagine that you want to correct a minor error > in a document and see the result, you press the typeset button in > TeXWorks, leave the lualatex program running, and during the 5 minutes it depends on usage: if you want wysiwyg you should use a desk top

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Thomas A. Schmitz
On May 13, 2009, at 1:28 PM, Wolfgang Schuster wrote: (Just thinking alound: aren't there plenty of books around that also mix lots of greek and latin, possibly using different fonts for them? How do they deal with the problem, or is the problem just neglectable?) Dunno, AFAIR Thomas use swit

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Yue Wang
On Wed, May 13, 2009 at 7:12 PM, Mojca Miklavec wrote: > On Wed, May 13, 2009 at 12:41, Wolfgang Schuster wrote: >> >> Am 13.05.2009 um 12:17 schrieb Mojca Miklavec: >> >>> Or do you want to suggest that one would possibly need both "serif" >>> and "sans" variants of some Chinese font, often switc

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Wolfgang Schuster
Am 13.05.2009 um 13:12 schrieb Mojca Miklavec: On Wed, May 13, 2009 at 12:41, Wolfgang Schuster wrote: Am 13.05.2009 um 12:17 schrieb Mojca Miklavec: Or do you want to suggest that one would possibly need both "serif" and "sans" variants of some Chinese font, often switching between familie

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Hans Hagen
Hi Mojca let me show you a neat trick ... just as distraction of your thesis work ... \starttypescript[serif] [modern] \definefontsynonym [Whatever] [file:AdobeSongStd-Light] \stoptypescript \starttypescript[zhfont] \definetypeface [zhfont] [rm] [serif] [modern] [default] \stoptypescript

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Mojca Miklavec
On Wed, May 13, 2009 at 12:41, Wolfgang Schuster wrote: > > Am 13.05.2009 um 12:17 schrieb Mojca Miklavec: > >> Or do you want to suggest that one would possibly need both "serif" >> and "sans" variants of some Chinese font, often switching between >> families inside a document? > > That's what I m

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Hans Hagen
Mojca Miklavec wrote: \starttext % test 1: takes 12 seconds \dorecurse{1}{ hello {\cg 你好}} % test 2: takes 9 seconds \dorecurse{1}{ hello {\ccg 你好}} \stoptext Switching the whole typescript (\def\ccg{\zhfont} and running the second test) took 123 seconds eating 100% of processor time.

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Wolfgang Schuster
Am 13.05.2009 um 12:17 schrieb Mojca Miklavec: Or do you want to suggest that one would possibly need both "serif" and "sans" variants of some Chinese font, often switching between families inside a document? That's what I mean, also in chinese you use different fonts for serif, sans and mono

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Mojca Miklavec
On Wed, May 13, 2009 at 12:02, Wolfgang Schuster wrote: > > Am 13.05.2009 um 10:59 schrieb Mojca Miklavec: > >> \definetypeface [myzhfont] [rm] [serif] [latin-modern] [default] >> \definetypeface [myzhfont] [ss] [sans] [latin-modern] [default] >> \definetypeface [myzhfont] [tt] [mono] [latin-modern

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Wolfgang Schuster
Am 13.05.2009 um 10:59 schrieb Mojca Miklavec: \definetypeface [myzhfont] [rm] [serif] [latin-modern] [default] \definetypeface [myzhfont] [ss] [sans] [latin-modern] [default] \definetypeface [myzhfont] [tt] [mono] [latin-modern] [default] \definetypeface [myzhfont] [cjk] [cjk] [zhfont] [defaul

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Mojca Miklavec
On Wed, May 13, 2009 at 10:59, Mojca Miklavec wrote: > > I suspect that what LaTeX does is something similar to the following > (in ConTeXt slang): > > \starttypescript[cjk] [zhfont] >  \definefontsynonym [CJK]           [file:SimSun] >  \definefontsynonym [CJKBold]       [file:SimSun] % you could

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Mojca Miklavec
2009/5/12 Yue Wang: > here is the xelatex result given by a chinese user: > > \documentclass{minimal} > \usepackage{xeCJK} > \setCJKfamilyfont{song}{SimSun} > \begin{document} > {hello {\CJKfamily{song}你好}}\par % 1 lines > \end{document} > > got 209 pages, three seconds to run. > note he is swi

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Hans Hagen
Yue Wang wrote: > After debugging for half an hour in the morning, finally I know why > this is so slow on both XeTeX and pdfTeX. > This problem is not an operating system issue, But a ConTeXt "feature". > > in font-mkii, you use the following to define a actual font > (\definefontlocal and \defi

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-13 Thread Yue Wang
I can confirm that I am wrong. 2009/5/13 Yue Wang : > Hi, Hans: > > On Tue, May 12, 2009 at 11:22 PM, Hans Hagen wrote: >> \setupbodyfont[myzhfont] \dorecurse{1}{{hello >> {\switchtobodyfont[myzhfont] 你好}}\par} >> so it's probably also an operating system issue (caching files in mem, disk >>

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, Hans: On Tue, May 12, 2009 at 11:22 PM, Hans Hagen wrote: > \setupbodyfont[myzhfont] \dorecurse{1}{{hello > {\switchtobodyfont[myzhfont] 你好}}\par} > so it's probably also an operating system issue (caching files in mem, disk > access etc) After debugging for half an hour in the morning,

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: So why XeTeX is spending 6 seconds aimlessly? since ConTeXt asked it to search for a non-existed font. keep in mind that the font (lmmono10-regular) *is* existing, it's ust that xetex cannot find it as it favors names instead of files (and praise yourself happy that it's not

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 11:41 PM, Hans Hagen wrote: > Taco Hoekwater wrote: >> >> Yue Wang wrote: \def\defaultfontfile{file:lmmono10-regular} >>> >>> After changing like this, XeTeX runs like a blink. (It wasted 6 >>> seconds for each compile. now it won't) >> >> Does that mean that the

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: Yue Wang wrote: Hi, Hans: here is the solution to your great feature: huh? what great features? what's wrong with the features anyway? you want a special version that instead prints hundreds of error messages each and every

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 11:22 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: >>> >>> Yue Wang wrote: Hi, Hans: here is the solution to your great feature: >>> >>> huh? what great features? what's wrong with the features anyway

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Taco Hoekwater wrote: Yue Wang wrote: \def\defaultfontfile{file:lmmono10-regular} After changing like this, XeTeX runs like a blink. (It wasted 6 seconds for each compile. now it won't) Does that mean that the near-endless font issues with xetex are now finally fixed? no ... suffix and nam

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: Yue Wang wrote: Hi, Hans: here is the solution to your great feature: huh? what great features? what's wrong with the features anyway? you want a special version that instead prints hundreds of error messages each and every

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: loading 6 fonts, each fonts will be scanned for 3 times. so there are 18 searching. 12 of them are fc searches, and these are quite slow. if so, then this fc mechanism is pretty messed up as it's just a hash lookup which cna be fast also, it does not explain why simple plain

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Yue Wang wrote: >> >> \def\defaultfontfile{file:lmmono10-regular} > > After changing like this, XeTeX runs like a blink. (It wasted 6 > seconds for each compile. now it won't) Does that mean that the near-endless font issues with xetex are now finally fixed? Cheers, Taco

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 11:02 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> Hi, Hans: >> >> here is the solution to your great feature: > > huh? what great features? what's wrong with the features anyway? you want a > special version that instead prints hundreds of error messages each and > every

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 10:50 PM, Hans Hagen wrote: > Yue Wang wrote: >> >> On Tue, May 12, 2009 at 8:54 PM, Hans Hagen wrote: >>> >>> Yue Wang wrote: >>> >>> moreover, can you tell me why pdftex load these fonts so fast? (also 6 families * 3 sizes) >>> >>> i don't know; as the same cod

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: Hi, Hans: here is the solution to your great feature: huh? what great features? what's wrong with the features anyway? you want a special version that instead prints hundreds of error messages each and every run because some font is missing which in practice is harmless?

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: On Tue, May 12, 2009 at 8:54 PM, Hans Hagen wrote: Yue Wang wrote: moreover, can you tell me why pdftex load these fonts so fast? (also 6 families * 3 sizes) i don't know; as the same code is used so it must be xetex itself then Then let me tell you why: ConTeXt tries to l

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, Hans: here is the solution to your great feature: change \def\defaultfontfile{lmmono10-regular} in font-ini.mkii to \def\defaultfontfile{"[lmmono10-regular]"} to disable that feature. Yue Wang On Tue, May 12, 2009 at 9:59 PM, Yue Wang wrote: > On Tue, May 12, 2009 at 8:54 PM, Hans Hagen

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 8:54 PM, Hans Hagen wrote: > Yue Wang wrote: > > >> moreover, can you tell me why pdftex load these fonts so fast? (also 6 >> families * 3 sizes) > > i don't know; as the same code is used so it must be xetex itself then Then let me tell you why: ConTeXt tries to load lmmo

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > moreover, can you tell me why pdftex load these fonts so fast? (also 6 > families * 3 sizes) i don't know; as the same code is used so it must be xetex itself then - Hans

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, On Tue, May 12, 2009 at 8:26 PM, Taco Hoekwater wrote: > > > Yue Wang wrote: >> >> \font\a="[AdobeSongStd-Light]" > > Why? I asked to use \definefont. After reading Hans' explanation, I understand what you said now. \dorecurse{1}{ hello {\font\a="[AdobeSongStd-Light]"\a 你好}\par} is fas

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
2009/5/12 Hans Hagen : > Yue Wang wrote: >> Thank you, Taco. >> >> currently I found one way to speed up font loading: >> >> \synchronizemathfontsfalse >> \let\synchronizetext\relax >> \starttypescript[serif] [myzhfont] >> \definefontsynonym [Serif] [file:SimSun] >> \stoptypescript >> \d

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Yue Wang wrote: > > \font\a="[AdobeSongStd-Light]" Why? I asked to use \definefont. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http:/

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: >>> \font\a="[simsun]" >>> \starttext >>> \dorecurse{1}{ hello {\a 你好}\par} >>> \stoptext >>> >>> runtime: TeXExec | runtime: 2.922 >>> >>> \font\a="[simsun.ttf]" >>> \starttext >>> \dorecurse{1}{ hello {\a 你好}\par} >>> \stoptext as taco already mentioned there's a problem

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, \font\a="[AdobeSongStd-Light.otf]" \starttext \dorecurse{1}{ hello {\a 你好}\par} \stoptext runtime = 3.25 \font\a="[AdobeSongStd-Light]" \starttext \dorecurse{1}{ hello {\a 你好}\par} \stoptext runtime=3.234 Yue Wang 2009/5/12 Taco Hoekwater : > > > Yue Wang wrote: >> >> \font\

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Taco Hoekwater wrote: > > Yue Wang wrote: >> \font\a="[simsun]" >> \starttext >> \dorecurse{1}{ hello {\a 你好}\par} >> \stoptext >> >> runtime: TeXExec | runtime: 2.922 >> >> \font\a="[simsun.ttf]" >> \starttext >> \dorecurse{1}{ hello {\a 你好}\par} >> \stoptext >> >> runtime: TeXExec | runt

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Yue Wang wrote: > > \font\a="[simsun]" > \starttext > \dorecurse{1}{ hello {\a 你好}\par} > \stoptext > > runtime: TeXExec | runtime: 2.922 > > \font\a="[simsun.ttf]" > \starttext > \dorecurse{1}{ hello {\a 你好}\par} > \stoptext > > runtime: TeXExec | runtime: 2.938 Please try an otf fo

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > Thank you, Taco. > > currently I found one way to speed up font loading: > > \synchronizemathfontsfalse > \let\synchronizetext\relax > \starttypescript[serif] [myzhfont] > \definefontsynonym [Serif] [file:SimSun] > \stoptypescript > \definetypeface [myzhfont] [rm] [se

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
On Tue, May 12, 2009 at 7:26 PM, Taco Hoekwater wrote: > Hans Hagen wrote: >> >> > Taco Hoekwater wrote: >>> >>> Hans Hagen wrote: anyway .. i cannot comment on runtimes as xetex on my windows box runs too slow (caching issue) and all examples are slow, no matter how i specify

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Hans Hagen wrote: > Taco Hoekwater wrote: Hans Hagen wrote: anyway .. i cannot comment on runtimes as xetex on my windows box runs too slow (caching issue) and all examples are slow, no matter how i specify fonts so i will not look into the code till that gets fixed first The example with

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Thank you, Taco. currently I found one way to speed up font loading: \synchronizemathfontsfalse \let\synchronizetext\relax \starttypescript[serif] [myzhfont] \definefontsynonym [Serif] [file:SimSun] \stoptypescript \definetypeface [myzhfont] [rm] [serif][myzhfont] [default] \def\a{\m

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
> Taco Hoekwater wrote: Hans Hagen wrote: anyway .. i cannot comment on runtimes as xetex on my windows box runs too slow (caching issue) and all examples are slow, no matter how i specify fonts so i will not look into the code till that gets fixed first The example with the typescript seems

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Wolfgang Schuster
Am 12.05.2009 um 11:09 schrieb Yue Wang: Hi, Sum up: define a font usng typescripts takes 64.797 seconds. You can speed it up when you replace \definetypeface (...) with \definefont: \unprotect \definefontsynonym [ZhSerif] [name:AdobeSongStd-Light] \definefont [ZhSeri

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Taco Hoekwater
Hans Hagen wrote: > anyway .. i cannot comment on runtimes as xetex on my windows box runs > too slow (caching issue) and all examples are slow, no matter how i > specify fonts so i will not look into the code till that gets fixed first The example with the typescript seems logical to me: a type

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > here is the xelatex result given by a chinese user: > > \documentclass{minimal} > \usepackage{xeCJK} > \setCJKfamilyfont{song}{SimSun} > \begin{document} > {hello {\CJKfamily{song}你好}}\par % 1 lines > \end{document} > > got 209 pages, three seconds to run. > note he is switc

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
sorry the the context sample and latex sample are not equivalent (note the \par). So I test again: \starttypescript[serif] [myzhfont] \definefontsynonym [Serif] [file:SimSun] \definefontsynonym [SerifBold] [file:SimSun] \definefontsynonym [SerifItalic] [file:SimSun] \define

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
here is the xelatex result given by a chinese user: \documentclass{minimal} \usepackage{xeCJK} \setCJKfamilyfont{song}{SimSun} \begin{document} {hello {\CJKfamily{song}你好}}\par % 1 lines \end{document} got 209 pages, three seconds to run. note he is switching families 2 times. (\family{f

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Hans Hagen
Yue Wang wrote: > Hi, > > Sum up: > define a font usng typescripts takes 64.797 seconds. > define a font like \definefont[a][file:SimSun.ttf] takes 55.548 seconds > define a font like \definefont[a][file:SimSun] takes 4.329 seconds > define a font like \font\a="[simsun]" takes 1.812 seconds > > J

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi, Sum up: define a font usng typescripts takes 64.797 seconds. define a font like \definefont[a][file:SimSun.ttf] takes 55.548 seconds define a font like \definefont[a][file:SimSun] takes 4.329 seconds define a font like \font\a="[simsun]" takes 1.812 seconds Jonathan and Jin-Hwan, sorry for th

Re: [NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-12 Thread Yue Wang
Hi: update: change the second example, remove the ".otf" suffix , and texexec --xtx gives: TeXExec | runtime: 5.766 Obviously, this is a parsing bug in ConTeXt. I doubt the reason to the third one is the same. Yue Wang 2009/5/12 Yue Wang : > Hi, Hans and Jonathan: > > I made some testing samp

[NTG-context] XeConTeXt bug report I: strange benchmark

2009-05-11 Thread Yue Wang
Hi, Hans and Jonathan: I made some testing samples in ConTeXt to test XeTeX. but the result is quite strange. All benchmark are get from the second run: Sample 1: \definefont[a][file:SimSun] \starttext \dorecurse{1}{ hello {\a 你好}} \stoptext And here is the result: XeTeX: TeXExec | runtime