I can confirm that I am wrong.
2009/5/13 Yue Wang yuleo...@gmail.com:
Hi, Hans:
On Tue, May 12, 2009 at 11:22 PM, Hans Hagen pra...@wxs.nl wrote:
\setupbodyfont[myzhfont] \dorecurse{1}{{hello
{\switchtobodyfont[myzhfont] 你好}}\par}
so it's probably also an operating system issue (caching
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
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 switching
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
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]
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]
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.
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.
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 mean, also in
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
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
families
On Wed, May 13, 2009 at 7:12 PM, Mojca Miklavec
mojca.miklavec.li...@gmail.com 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
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
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
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
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 yuleo...@gmail.com:
Hi, Hans and Jonathan:
I made
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 the
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.
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]
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 switching
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
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
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
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]
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
On Tue, May 12, 2009 at 7:26 PM, Taco Hoekwater t...@elvenkind.com 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 fonts so
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]
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 font and/or
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 | runtime: 2.938
Please try an otf
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 t...@elvenkind.com:
Yue Wang 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
as taco already mentioned there's a problem with xetex caching fonts
in a
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 /
2009/5/12 Hans Hagen pra...@wxs.nl:
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
Hi,
On Tue, May 12, 2009 at 8:26 PM, Taco Hoekwater t...@elvenkind.com 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}
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
On Tue, May 12, 2009 at 8:54 PM, Hans Hagen pra...@wxs.nl 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
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 yuleo...@gmail.com wrote:
On Tue, May 12, 2009 at 8:54
Yue Wang wrote:
On Tue, May 12, 2009 at 8:54 PM, Hans Hagen pra...@wxs.nl 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:
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?
On Tue, May 12, 2009 at 10:50 PM, Hans Hagen pra...@wxs.nl wrote:
Yue Wang wrote:
On Tue, May 12, 2009 at 8:54 PM, Hans Hagen pra...@wxs.nl 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
On Tue, May 12, 2009 at 11:02 PM, Hans Hagen pra...@wxs.nl 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
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
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
Yue Wang wrote:
On Tue, May 12, 2009 at 11:02 PM, Hans Hagen pra...@wxs.nl 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
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
On Tue, May 12, 2009 at 11:22 PM, Hans Hagen pra...@wxs.nl wrote:
Yue Wang wrote:
On Tue, May 12, 2009 at 11:02 PM, Hans Hagen pra...@wxs.nl 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
Yue Wang wrote:
On Tue, May 12, 2009 at 11:02 PM, Hans Hagen pra...@wxs.nl 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
On Tue, May 12, 2009 at 11:41 PM, Hans Hagen pra...@wxs.nl 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 near-endless
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
Hi, Hans:
On Tue, May 12, 2009 at 11:22 PM, Hans Hagen pra...@wxs.nl 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
50 matches
Mail list logo