Dear listmembers, When setting a language (in this case Swedish) for a document, is there something else one is supposed to do than putting \language[sv] on a single line somewhere before \starttext? I get overfull, non-hyphenated lines in the section I am typesetting. Best regards, Mats Broberg
Mats Broberg wrote:
Dear listmembers,
When setting a language (in this case Swedish) for a document, is there something else one is supposed to do than putting \language[sv] on a single line somewhere before \starttext?
I get overfull, non-hyphenated lines in the section I am typesetting.
if you want a document wide switch, use \mainlanguage[sv] are you sure that you've loaded the swedish patterns? texexec --make --all will add them all Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
if you want a document wide switch, use \mainlanguage[sv]
are you sure that you've loaded the swedish patterns?
texexec --make --all
will add them all
Hans
OK, I ran texexec --make --all and changed \language[sv] to \mainlanguage[sv]. Regretfully, no change. Still overfull lines and incorrect hyphenation the few times the text is hyphenated. Any ideas to what I am doing wrong? Best regards, Mats Broberg
Mats Broberg wrote:
if you want a document wide switch, use \mainlanguage[sv]
are you sure that you've loaded the swedish patterns?
texexec --make --all
will add them all
Hans
OK, I ran texexec --make --all and changed \language[sv] to \mainlanguage[sv].
Regretfully, no change. Still overfull lines and incorrect hyphenation the few times the text is hyphenated. Any ideas to what I am doing wrong?
does the log report a swedisch pattern being loaded? what font encoding do you use? (is related to hyphenation) can you make a minimal file that i can run here (with right hyphenation points indicated?) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
does the log report a swedisch pattern being loaded?
what font encoding do you use? (is related to hyphenation)
can you make a minimal file that i can run here (with right hyphenation points indicated?)
Hans
Hans, I looked at the log file and no, you're right: Swedish is not included in the list of languages when pdfTeX is talking about patterns: language : patterns en->default:default->1->2:2 uk->default:default->2-> 2:2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2 :2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 it->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded So something is wrong and the patterns are not loading. Best regards, Mats Broberg
Mats Broberg wrote:
does the log report a swedisch pattern being loaded?
what font encoding do you use? (is related to hyphenation)
can you make a minimal file that i can run here (with right hyphenation points indicated?)
Hans
Hans,
I looked at the log file and no, you're right: Swedish is not included in the list of languages when pdfTeX is talking about patterns:
language : patterns en->default:default->1->2:2 uk->default:default->2-> 2:2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2 :2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 it->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded
So something is wrong and the patterns are not loading.
but ... texexec --make --all should load all patterns; what does cont-en.log say about that? [you can try to edit your local copy of cont-usr.tex -- uncomment the swedish lines] another option is to pick up the beta version, since it is more clever with patterns; in that case you can also try to generate pattern files for context (using ctxtools, see patterns manual on our website) btw, given that patterns fit into mem quite well, we may as well preload the whole lot by default Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
but ...
texexec --make --all
should load all patterns; what does cont-en.log say about that?
[you can try to edit your local copy of cont-usr.tex -- uncomment the swedish lines]
another option is to pick up the beta version, since it is more clever with patterns; in that case you can also try to generate pattern files for context (using ctxtools, see patterns manual on our website)
btw, given that patterns fit into mem quite well, we may as well preload the whole lot by default
Hans, Enclosing the cont-en.log. As you can see, Swedish is not loaded. I hunted down the cont-usr.tex file and uncommented this line about Swedish: % \installlanguage [\s!sv] [\c!state=\v!start] % swedish ran texexec --make --all again, but the log says Swedish is still not loaded. Best regards, Mats Broberg
Mats Broberg wrote:
Enclosing the cont-en.log.
As you can see, Swedish is not loaded. I hunted down the cont-usr.tex file and uncommented this line about Swedish:
% \installlanguage [\s!sv] [\c!state=\v!start] % swedish
ran texexec --make --all again, but the log says Swedish is still not loaded.
C:\texmf\tex\generic\hyphen\nohyph.tex Norsk hyphenation patterns ! TeX capacity exceeded, sorry [pattern memory ops=2048]. l.1207 lt3s6 If you really absolutely need more capacity, you can ask a wizard to enlarge me. Here is how much of TeX's memory you used: 33278 strings out of 98455 509952 string characters out of 1219765 417307 words of memory out of 1048577 32670 multiletter control sequences out of 60000 7 words of font info for 0 fonts, out of 500000 for 1000 134 hyphenation exceptions out of 607 23i,1n,26p,286b,663s stack positions out of 1500i,500n,5000p,200000b,32768s No pages of output. so ... you never made a format -) you need to increase some mem values in texmf.cnf: texmfstart --direct youreditor.exe kpse:texmf.cnf buf_size.context = 200000 % needed for omega bug extra_mem_bot.context = 2000000 extra_mem_top.context = 4000000 font_max.context = 2000 font_mem_size.context = 1000000 hash_extra.context = 65000 main_memory.context = 1500000 max_strings.context = 200000 nest_size.context = 500 obj_tab_size.context = 300000 % 8388607 pdf_mem_size.context = 500000 % 524288 dest_names_size.context = 300000 % 131072 param_size.context = 10000 pool_free.context = 47500 pool_size.context = 1250000 save_size.context = 50000 stack_size.context = 10000 string_vacancies.context = 90000 trie_size.context = 250000 hyph_size.context = 1000 ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
so ... you never made a format -)
you need to increase some mem values in texmf.cnf:
texmfstart --direct youreditor.exe kpse:texmf.cnf
buf_size.context = 200000 % needed for omega bug extra_mem_bot.context = 2000000 extra_mem_top.context = 4000000 font_max.context = 2000 font_mem_size.context = 1000000 hash_extra.context = 65000 main_memory.context = 1500000 max_strings.context = 200000 nest_size.context = 500 obj_tab_size.context = 300000 % 8388607 pdf_mem_size.context = 500000 % 524288 dest_names_size.context = 300000 % 131072 param_size.context = 10000 pool_free.context = 47500 pool_size.context = 1250000 save_size.context = 50000 stack_size.context = 10000 string_vacancies.context = 90000 trie_size.context = 250000 hyph_size.context = 1000
Hans, Thanks. Now I typed: texmfstart --direct winedt.exe kpse:texmf.cnf And this is what I get: 'texmfstart' is not recognized as an internal or external command, operable program or batch file. Then I tried searching for the file texmf.cnf, but it is nowhere to be found. Best regards, Mats Broberg
Hello, Matthew Huggett wrote:
Then I tried searching for the file texmf.cnf, but it is nowhere to be found.
On my system, it's in texmf/web2c/texmf.cnf -- if that helps at all.
Well, on web2c-based systems (fpTeX, teTeX, TeXLive) one should be able to find it using "kpsewhich texmf.cnf." If the TeX is not based on web2c, well, then you have to look for another config file ;) If I remember correctly, MiKTeX has a different file. Under Windows there is under Start|Find (or something like that) the possibility to search for a file (texmf.cnf); Unix: "locale texmf.cnf" (or rather brutral: find / /usr /etc $HOME -name texmf.cnf) Tobias PS: I also get bash: texmfstart: command not found Seemingly, it's time for a newer Linux (with teTeX 3) and a newer ConTeXt.
Well, on web2c-based systems (fpTeX, teTeX, TeXLive) one should be able to find it using "kpsewhich texmf.cnf." If the TeX is not based on web2c, well, then you have to look for another config file ;) If I remember correctly, MiKTeX has a different file.
Under Windows there is under Start|Find (or something like that) the possibility to search for a file (texmf.cnf); Unix: "locale texmf.cnf" (or rather brutral: find / /usr /etc $HOME -name texmf.cnf)
Tobias
OK, I'm using MikTeX so obviously I should change the memory settings in a different file then. MikTeX users out there - any pointers to what file I should be looking for? I checked the installation PDF but there is no reference to the name of the file. Best regards, Mats Broberg
Hi Mats, Mats Broberg wrote:
OK, I'm using MikTeX so obviously I should change the memory settings in a different file then.
Google is your friend. Try http://www.miktex.org/manual/miktexinilayout.html#id585308 and there "Memory Settings for TeX & Friends". the file is seeminly named miktex.ini. Greetings to Sweden from (currently) Taiwan, Tobias
Google is your friend. Try http://www.miktex.org/manual/miktexinilayout.h> tml#id585308
and there "Memory Settings for TeX & Friends". the file is seeminly named miktex.ini.
Greetings to Sweden from (currently) Taiwan,
Tobias
Many thanks, Tobias. I browsed the archives and it seems memory settings for MikTeX can not be changed. Approx. 2 years ago, Sebastian Rooks wrote (and Giuseppe Bilotta answered): =================================================== Saturday, April 12, 2003 Sebastian Rooks wrote: SR> So it does not seem to be my setup. What can I try next ? Am I really SR> the only guy with this problem ? Drats, it looks like the hash size cannot be changed ... I'm discussing this and similar issues with Christian, so I'll forward the problem to him. If everything goes well it should be fixed in the next upgrade. I'll keep you informed. =================================================== Pity! What TeX distributions are the other Windows users running, if not MikTeX? Thanks for all listmembers' help, anyway. Best regards, Mats Broberg
Hello Mats, Mats Broberg wrote:
Pity! What TeX distributions are the other Windows users running, if not MikTeX?
Well, TeXLive, fpTeX or Hans' stripped-down TeX version comes into my mind. If you don't have the TeXLive CD (as several TeX user groups send their members), try - http://www.tug.org/texlive/ - http://www.fptex.org/ - http://www.pragma-ade.com/download-1.htm - minimal and stand-alone ConTeXt distribution Maybe some Windows users know others or can recommend which one is best (with which editor). (My last TeX under Windows was web2c/Windows [now named fpTeX], before that Y&Y TeX and before that emTeX; now I use teTeX under Linux.) Tobias
Tobias Burnus wrote:
Mats Broberg wrote:
Pity! What TeX distributions are the other Windows users running, if not MikTeX? Well, TeXLive, fpTeX or Hans' stripped-down TeX version comes into my mind.
I'm running TeXLive2003, although I think my ConTeXt is from last summer, i.e. updated from the original. One of my TeXLive2003:s (I guess the XP at home) has TeXLive installed in C:\Program Files, which means that while ConTeXt now works fine with spaces in file names, the TeXfont in that system doesn't, so I haven't been able to install a single extra font besides the ones I already have. Where TeXLive2003 is installed as C:\TeXLive, I haven't had problems. I don't yet know what newer versions do here.
If you don't have the TeXLive CD (as several TeX user groups send their members), try - http://www.tug.org/texlive/
TeXLive 2004 .iso CD image, i.e. the installable TeXLive, does NOT come with Windows installer and I couldn't get it to install by running the shell scripts in CygWin, either. Or let's say, it kind of installs, but takes a ton of tweaking afterwards and still doesn't work for me. (Note. I tried installing it into a "blank" Windows2000, a Windows without an older version of TeXLive2003 (and very little else besides Windows and Office)). However, you may have better luck if you get hold of the stand-alone (runnable) TeXLive2004 DVD. The instructions on how to install TeXLive on Windows from that are at http://www.tug.org/texlive/windows.html, see "Manual Windows installation for 2004" and this sounds like a viable option (had to find a DVD burner first and just got the DVD done, so haven't tried yet). The same page now also mentions that there's now a provisional installation program for reasonably experienced users who know how to use command line. (Maybe I'll try this... not getting TeXLive 2004 to work majorly *irritates* me.)
Maybe some Windows users know others or can recommend which one is best (with which editor).
I'm weird, I use NTEmacs (have to install that separately) with context.el. For Emacs it probably doesn't make any difference what distribution is used as long as it works at all. My workmate installed the standalone windows version (mswincontext.zip) and found out (the hard way) that it required some bits and pieces that a standard Windows (think of non-programming 'dummy user' Windows) doesn't automatically have - both perl and ruby were missing, at least. Once he installed ruby (perl he had already) and got the system running, he's been very happy with editing ConTeXt with Scite on the stand-alone. (Hans, I'd suggest including a small "readme.txt" in these windows zips for us dummy users which tell us about the system requirements including info on where to get ruby - the downloading page itself is less than informative in this respect. Or included perl and ruby into the standalone package as was done in the older/original version of the standalone. But for example I'd be quite ok with getting them from somewhere else if I got some pointers on from where.) Or, even better, while I'm at it: I'll go install the standalone in a computer that recently experienced a hard-disk wipe and *if* I get the system to work, I'll write the instructions for other Windows users to follow. mari (whose never used ConTeXt in any other platform than Windows)
Hi MAts, I use different installations: c:\alpha-context a minimal distribution of Hans with the alpha version of ConTeXt (mswintex.zip + cont-lmt.zip) c:\mytex a TeXlive installation based on TeXlive 2004 c:\newcontext a minimal distribution with the beta-version of ConTeXt (mswintex.zip + cont-lmt.zip). I can only say, that Hans his minimal distributions are great. Minimal and still complete! Kind regards Willi Mats Broberg wrote:
Google is your friend. Try http://www.miktex.org/manual/miktexinilayout.h> tml#id585308
and there "Memory Settings for TeX & Friends". the file is seeminly named miktex.ini.
Greetings to Sweden from (currently) Taiwan,
Tobias
Many thanks, Tobias. I browsed the archives and it seems memory settings for MikTeX can not be changed. Approx. 2 years ago, Sebastian Rooks wrote (and Giuseppe Bilotta answered):
===================================================
Saturday, April 12, 2003 Sebastian Rooks wrote: SR> So it does not seem to be my setup. What can I try next ? Am I really SR> the only guy with this problem ?
Drats, it looks like the hash size cannot be changed ... I'm discussing this and similar issues with Christian, so I'll forward the problem to him. If everything goes well it should be fixed in the next upgrade. I'll keep you informed.
===================================================
Pity! What TeX distributions are the other Windows users running, if not MikTeX?
Thanks for all listmembers' help, anyway.
Best regards, Mats Broberg
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Mats Broberg wrote:
does the log report a swedisch pattern being loaded?
what font encoding do you use? (is related to hyphenation)
can you make a minimal file that i can run here (with right hyphenation points indicated?)
Hans
Hans,
I looked at the log file and no, you're right: Swedish is not included in the list of languages when pdfTeX is talking about patterns:
language : patterns en->default:default->1->2:2 uk->default:default->2-> 2:2 de->texnansi:texnansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2 :2 fr->ec:ec->6->2:2 es->default:default->7->2:2 it->texnansi:texnansi->8->2:2 it->ec:ec->9->2:2 nl->texnansi:texnansi->10->2:2 nl->ec:ec->11->2:2 loaded
So something is wrong and the patterns are not loading.
this is what i get here language : patterns nl->texnansi:texnansi->1->2:2 nl->ec:ec->2->2:2 fr-> texnansi:texnansi->3->2:2 fr->ec:ec->4->2:2 de->texnansi:texnansi->5->2:2 de->e c:ec->6->2:2 it->texnansi:texnansi->7->2:2 it->ec:ec->8->2:2 hr->ec:ec->9->2:2 pl->pl0:pl0->10->2:2 pl->ec:ec->11->2:2 cz->il2:il2->12->2:2 cz->ec:ec->13->2:2 sk->il2:il2->14->2:2 sk->ec:ec->15->2:2 sl->il2:il2->16->2:2 sl->ec:ec->17->2: 2 en->ec:ec->18->2:2 da->ec:ec->19->2:2 sv->ec:ec->20->2:2 af->ec:ec->21->2:2 n o->ec:ec->22->2:2 deo->ec:ec->23->2:2 uk->ec:ec->24->2:2 us->ec:ec->25->2:2 es-
ec:ec->26->2:2 ca->ec:ec->27->2:2 la->ec:ec->28->2:2 pt->ec:ec->29->2:2 ro->ec :ec->30->2:2 tr->ec:ec->31->2:2 fi->ec:ec->33->2:2 hu->ec:ec->34->2:2 loaded
some patterns are loaded multiple times Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Hello Mats,
When setting a language (in this case Swedish) for a document, is there something else one is supposed to do than putting \language[sv] on a single line somewhere before \starttext?
is this the same on live.contextgarden.net? Patrick -- ConTeXt wiki: http://contextgarden.net
participants (8)
-
h h extern
-
Hans Hagen
-
Mari Voipio
-
Mats Broberg
-
Matthew Huggett
-
Patrick Gundlach
-
Tobias Burnus
-
Willi Egger