Has anyone else had problems with hyphenation? I have a brand new version of ConTeXt, and cannot get one of its main features, hyphenation, to work. I looked at the documentation, specifically the file called hypenation patterns. According to this, I should be able to invoke a took called ctxtools, or at least a tool called texmfstart ctxtools. Neither tool exists with my distribution. I do have a file called hyphen.tex. On Hans' suggestion, I copied this to ushyph1.tex and ushyph2.tex. That didn't help. I also changed my cont-usr.tex file, changing all lines that had ushyp* to hyphen. This also didn't work. I am at a loss, and I consider hyphenation pretty important. How do I proceed from here? Thanks Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Paul Tremblay wrote:
Has anyone else had problems with hyphenation? I have a brand new version of ConTeXt, and cannot get one of its main features, hyphenation, to work.
I looked at the documentation, specifically the file called hypenation patterns. According to this, I should be able to invoke a took called ctxtools, or at least a tool called texmfstart ctxtools. Neither tool exists with my distribution.
I do have a file called hyphen.tex. On Hans' suggestion, I copied this to ushyph1.tex and ushyph2.tex. That didn't help. I also changed my cont-usr.tex file, changing all lines that had ushyp* to hyphen. This also didn't work.
did you run mktexlsr ?
I am at a loss, and I consider hyphenation pretty important. How do I proceed from here?
another option is to fetch cont-pat.zip from our website and install that one in the same texmf tree as context; run mktexlsr, and regenerate the formats (with --all option) i'd appreciate feedback about this working or not (since it's step 1 towards shipping context with its own instances of patterns) 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 -----------------------------------------------------------------
On Fri, Mar 18, 2005 at 10:05:36AM +0100, Hans Hagen wrote:
Paul Tremblay wrote:
Has anyone else had problems with hyphenation? I have a brand new version of ConTeXt, and cannot get one of its main features, hyphenation, to work.
I looked at the documentation, specifically the file called hypenation patterns. According to this, I should be able to invoke a took called ctxtools, or at least a tool called texmfstart ctxtools. Neither tool exists with my distribution.
I do have a file called hyphen.tex. On Hans' suggestion, I copied this to ushyph1.tex and ushyph2.tex. That didn't help. I also changed my cont-usr.tex file, changing all lines that had ushyp* to hyphen. This also didn't work.
did you run mktexlsr ?
I am at a loss, and I consider hyphenation pretty important. How do I proceed from here?
another option is to fetch cont-pat.zip from our website and install that one in the same texmf tree as context; run mktexlsr, and regenerate the formats (with --all option)
Where is this? I just spent 20 minutes searching the website. Paul
i'd appreciate feedback about this working or not (since it's step 1 towards shipping context with its own instances of patterns)
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 -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Hi Paul,
another option is to fetch cont-pat.zip from our website and install that one in the same texmf tree as context; run mktexlsr, and regenerate the formats (with --all option)
Where is this? I just spent 20 minutes searching the website.
http://www.pragma-ade.com/context/latest/cont-pat.zip Patrick -- ConTeXt wiki: http://contextgarden.net
http://www.pragma-ade.com/context/latest/cont-pat.zip
Patrick -- ConTeXt wiki: http://contextgarden.net _______________________________________________
Thanks. It wasn't on the download page, though, right? Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Hello folks,
Thanks. It wasn't on the download page, though, right?
I don't know, since I looked directly into the file structure. That is because I run yet another ConTeXt mirror at http://mirror.contextgarden.net You all know that there is http://tex.aanhet.net/context/ (Taco's mirror, click on the first link to get there - it leads you to http://context.aanhet.net/ ). Both mirrors are updated several times a day. Patrick -- ConTeXt wiki: http://contextgarden.net
On 19 Mar 2005 11:11:52 +0100, Patrick Gundlach
Hello folks,
Thanks. It wasn't on the download page, though, right?
I don't know, since I looked directly into the file structure. That is because I run yet another ConTeXt mirror at
When I click over the link "dir" http://mirror.contextgarden.net/dir I see: Not Found The requested URL /dir was not found on this server.
The virtual directories (/dir and /exalogin) cannot be mirrored at the moment. The same problem occurs at htpp://context.aanhet.net Greetings, Taco VnPenguin wrote:
On 19 Mar 2005 11:11:52 +0100, Patrick Gundlach
wrote: Hello folks,
Thanks. It wasn't on the download page, though, right?
I don't know, since I looked directly into the file structure. That is because I run yet another ConTeXt mirror at
When I click over the link "dir" http://mirror.contextgarden.net/dir
I see:
Not Found
The requested URL /dir was not found on this server. _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
another option is to fetch cont-pat.zip from our website and install that one in the same texmf tree as context; run mktexlsr, and regenerate the formats (with --all option)
i'd appreciate feedback about this working or not (since it's step 1 towards shipping context with its own instances of patterns)
I downloaded the patterns file and unzipped it. It put the following
directory in my texmf directory:
.tex/context/patterns
I then ran texhash. I then ran ./mktexlsr --all.
I then ran texexec test.tex.
Still no hyphenation.
My log file is below.
Thanks
Paul
This is pdfeTeXk, Version 3.141592-1.20a-2.2 (Web2C 7.5.3) (format=cont-en 2005.2.20) 18 MAR 2005 19:55
entering extended mode
%&-line parsing enabled.
(/usr/TeX/texmf/web2c/natural.tcx)
**&cont-en test.tex
(./test.tex
ConTeXt ver: 2005.01.31 fmt: 2005.2.20 int: english mes: english
language : language en is active
Paul Tremblay wrote:
another option is to fetch cont-pat.zip from our website and install that one in the same texmf tree as context; run mktexlsr, and regenerate the formats (with --all option)
i'd appreciate feedback about this working or not (since it's step 1 towards shipping context with its own instances of patterns)
I downloaded the patterns file and unzipped it. It put the following directory in my texmf directory:
.tex/context/patterns
I then ran texhash. I then ran ./mktexlsr --all.
At this point, you missed a step: texexec --make
I then ran texexec test.tex.
Still no hyphenation.
On Sat, Mar 19, 2005 at 09:03:08AM +0100, Taco Hoekwater wrote:
I downloaded the patterns file and unzipped it. It put the following directory in my texmf directory:
.tex/context/patterns
I then ran texhash. I then ran ./mktexlsr --all.
At this point, you missed a step:
texexec --make
I just ran texexec --make Same. No hyphenation. GRRRRRRRRRRRRRRRRR! Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
At this point, you missed a step:
texexec --make
I re-ran the test and saved the output to a file. I opened the file and saw this: system (E-TEX) : [line 159] \ifcsname ) (/usr/TeX/texmf/tex/context/base/lang-ger.tex loading : Germanic Languages language : patterns for nl not loaded language : patterns for en not loaded language : patterns for de not loaded language : patterns for da not loaded language : patterns for sv not loaded language : patterns for af not loaded language : patterns for no not loaded language : patterns for deo not loaded language : patterns for uk not loaded language : patterns for us not loaded ) (/usr/TeX/texmf/tex/context/base/lang-ita.tex loading : Italic Languages language : patterns for fr not loaded language : patterns for es not loaded language : patterns for ca not loaded language : patterns for it not loaded language : patterns for la not loaded language : patterns for pt not loaded language : patterns for ro not loaded ) (/usr/TeX/texmf/tex/context/base/lang-sla.tex loading : Slavic Languages language : patterns for pl not loaded language : patterns for cz not loaded language : patterns for sk not loaded language : patterns for hr not loaded language : patterns for sl not loaded ) (/usr/TeX/texmf/tex/context/base/lang-alt.tex -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Hi Paul, All of this must be maddening you by now. :'(
system (E-TEX) : [line 159] \ifcsname ) (/usr/TeX/texmf/tex/context/base/lang-ger.tex loading : Germanic Languages language : patterns for nl not loaded language : patterns for en not loaded
Mine does that as well, but somewhat deeper in the log file, it restarts loading patterns, like this: (./cont-fmt.tex language : patterns nl for nl loaded(n=1,e=texnansi,m=texnansi) (/home/taco/texmf/tex/context/patterns/lang-nl.pat) language : hyphenations nl for nl loaded ... culminating in : 210 hyphenation exceptions Hyphenation trie of length 99454 has 4157 ops out of 35111 117 for language 34 31 for language 33 ....<30 lines or so, counting down> .. 265 for language 1 perhaps you also need to get the cont-tmf.zip from 'latest'? Mine has ConTeXt ver: 2005.03.16 fmt: 2005.3.19 int: english mes: english Good luck! Taco
Mine does that as well, but somewhat deeper in the log file, it restarts loading patterns, like this:
(./cont-fmt.tex language : patterns nl for nl loaded(n=1,e=texnansi,m=texnansi) (/home/taco/texmf/tex/context/patterns/lang-nl.pat) language : hyphenations nl for nl loaded ...
culminating in :
210 hyphenation exceptions Hyphenation trie of length 99454 has 4157 ops out of 35111 117 for language 34 31 for language 33 ....<30 lines or so, counting down> .. 265 for language 1
perhaps you also need to get the cont-tmf.zip from 'latest'? Mine has
ConTeXt ver: 2005.03.16 fmt: 2005.3.19 int: english mes: english
Yes, now that I look deeper down in my log file, I see the same. Oh well. I guess I'll have to live without hyphenation. Just when I thought I was getting somewhere. Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Paul Tremblay said this at Sat, 19 Mar 2005 10:58:10 -0500:
210 hyphenation exceptions Hyphenation trie of length 99454 has 4157 ops out of 35111 117 for language 34 31 for language 33 ....<30 lines or so, counting down> .. 265 for language 1
perhaps you also need to get the cont-tmf.zip from 'latest'? Mine has
ConTeXt ver: 2005.03.16 fmt: 2005.3.19 int: english mes: english
Yes, now that I look deeper down in my log file, I see the same. Oh well. I guess I'll have to live without hyphenation. Just when I thought I was getting somewhere.
So if I understand what you're saying, that suggests you do have the capability for hyphenation somewhere in your system. What is your test file? Can you strip it to its barest form? -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
So if I understand what you're saying, that suggests you do have the capability for hyphenation somewhere in your system. What is your test file? Can you strip it to its barest form?
Here is the entire file. Luckily, it is very small. Thanks Paul % enable utf \enableregime[utf] % turn off automatic page numbering \setuppagenumbering[state=stop, way=bytext, alternative=doublesided] %\setupbodyfont[rm,12pt] %\setuplanguage[en][ state=start] %\language[en] %\setuptolerance[verytolerant] \starttext \setuppapersize[A4] % show frames so we can debug \showframe \definelayout[test][ backspace=50mm, cutspace=70mm, width=fit, ] % so it is always a good idea to use width=fit \setuplayout[test] \setupheadertexts[odd][][][even] Test\par % input text from another document \dorecurse{6}{\input tufte \par \input knuth \par} \stoptext -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Paul Tremblay said this at Sat, 19 Mar 2005 11:20:10 -0500:
So if I understand what you're saying, that suggests you do have the capability for hyphenation somewhere in your system. What is your test file? Can you strip it to its barest form?
Here is the entire file. Luckily, it is very small.
That does show a fair bit of hyphenation, here. Taco says some wise things, and here are a couple things to insert at the beginning of your text that may help debug. (But, again, I'm no expert in this area.) \the\hyphenpenalty % (50 on my system) \showhyphenations{hypertextual} -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
That does show a fair bit of hyphenation, here. Taco says some wise things, and here are a couple things to insert at the beginning of your text that may help debug. (But, again, I'm no expert in this area.)
\the\hyphenpenalty % (50 on my system)
\showhyphenations{hypertextual}
I put these lines at the top of my file. My resulting dvi file shows these lines: 50 language : en(code:1) font : cmr12 encoding : default mapping : default sample : hypertextual It seems that the hypen penalty is what it should be. Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Paul Tremblay wrote:
Yes, now that I look deeper down in my log file, I see the same. Oh well. I guess I'll have to live without hyphenation. Just when I thought I was getting somewhere.
You are getting somewhere. The format files that have been created by texexec in that last 'texexec --make' know how to hyphenate text. There is only one job left to do: making it so that 'texexec test' uses the right (new) format file (and not the old one). Without exact log files, I doubt I can sort that out for you, but assuming you ran 'texexec --make' today, then 'texexec -version' should report the following date info: context : ver: 2005.03.16 cont-en : ver: 2005.03.16 fmt: 2005.3.19 mes: english cont-nl : ver: 2005.03.16 fmt: 2005.3.19 mes: dutch if not, some files need to be copied. Good luck, Taco
You are getting somewhere. The format files that have been created by texexec in that last 'texexec --make' know how to hyphenate text. There is only one job left to do: making it so that 'texexec test' uses the right (new) format file (and not the old one). Without exact log files, I doubt I can sort that out for you, but assuming you ran 'texexec --make' today, then 'texexec -version' should report the following date info:
context : ver: 2005.03.16 cont-en : ver: 2005.03.16 fmt: 2005.3.19 mes: english cont-nl : ver: 2005.03.16 fmt: 2005.3.19 mes: dutch
if not, some files need to be copied.
Good luck,
Taco
texexec --version: texexec : TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeXk, 3.141592-1.20a-2.2 (Web2C 7.5.3) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2005.2.20 mes: english Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Hi Paul, [...]
texexec : TeXExec 5.2.3 - ConTeXt / PRAGMA ADE 1997-2004 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeXk, 3.141592-1.20a-2.2 (Web2C 7.5.3) context : ver: 2005.01.31 cont-en : ver: 2005.01.31 fmt: 2005.2.20 mes: english
So your format with the new patterns is not used. You generated the format Feb. 20 and downloaded the patters a few days ago. What happens if you run texexec --make --alone and copy the cont-en.fmt (or whatever it is called now) into the 'correct' path? Or leave it in the path that your test file is in and try the \showhyphenations{hypertextual} again. Patrick -- ConTeXt wiki: http://contextgarden.net
What happens if you run
texexec --make --alone
and copy the cont-en.fmt (or whatever it is called now) into the 'correct' path? Or leave it in the path that your test file is in and try the \showhyphenations{hypertextual} again.
Back from my rally. And, success! If I leave the cont-en.fmt file in the same directory as I am running texeec, then I get hypenated text. So the goal is to move it to my path. But where exactly is my path? If I do a search for the cont-en.fmt file in texmf, I get: ./doc/man/man1/cont-en.1 ./tex/context/base/cont-en.tex ./tex/context/config/cont-en.ini ./tex/context/interface/cont-en.xml ./context/data/cont-en-scite.properties ./cont-en.log ./cont-en.fmt Thanks Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Hi Paul, there should be some cont-en.fmt somewhere on your disk. Like /usr/local/texmf/web2c/context/cont-en.fmt, but this is just a wild guess. So you could copy your newly generated cont-en.fmt over the old one. Patrick -- ConTeXt wiki: http://contextgarden.net
Hi Patrick On Sat, Mar 19, 2005 at 11:00:57PM +0100, Patrick Gundlach wrote:
there should be some cont-en.fmt somewhere on your disk. Like /usr/local/texmf/web2c/context/cont-en.fmt, but this is just a wild guess. So you could copy your newly generated cont-en.fmt over the old one.
Okay. I was looking for it in /usr/TeX/texmf directory. It was in /usr/TeX/texmf-var/web2c So everything works fine now. I assume that future versions of ConTeXt will install this file correctly? Paul -- ************************ *Paul Tremblay * *phthenry@iglou.com * ************************
Hello Paul, [...]
So everything works fine now.
Good to hear.
I assume that future versions of ConTeXt will install this file correctly?
That should have been the case anyway. Can't tell you what went wrong. Patrick -- ConTeXt wiki: http://contextgarden.net
Dear list, How can I place two figures next to each other without using a \startcombination ... \stopcombination group? I now have this, but it is not what I want: \gebruikexternfiguur[kortoctaaf][cekort][type=eps,hoogte=30mm] \gebruikexternfiguur[gebrokenoctaaf][gebroken][type=eps,hoogte=30mm] \plaatsfiguur [hier] [fig:klavieren] {Enkele varianten van het groot octaaf} {\startcombinatie[2*1] {\kortoctaaf}{kort octaaf} {\gebrokenoctaaf}{gebroken octaaf} \stopcombinatie} I want to have the two figures numbered as seperate, independent figures, but when using a combination, the whole combination is treated as one figure and gets only one number and one label. XXXX XXXX X X X X XXXX XXXX fig.n fig.n+1 I've consulted the manuals and searched the list archives, but I have not found a solution. tnx in advance, Peter van Kranenburg p.s. I've already sent this message to the list, thursday, but it didn't show up in my inbox. So this is another try.
The best I can get is \starttext \useexternalfigure[myfigure][filename][width=1in] \placetable[here][tab:2figures]{none} \starttable[|c|c|] \NC \placefigure[here]{My Caption 1}{\externalfigure[myfigure]} \NC \placefigure[here]{My Caption 1}{\externalfigure[myfigure]} \NC \FR \stoptable \stoptext But something in \placefigure produces undesired glue so that the figures end up in the margins. Somebody else? Matthias On Mar 19, 2005, at 6:17 AM, Peter wrote:
Dear list,
How can I place two figures next to each other without using a \startcombination ... \stopcombination group?
I now have this, but it is not what I want:
\gebruikexternfiguur[kortoctaaf][cekort][type=eps,hoogte=30mm] \gebruikexternfiguur[gebrokenoctaaf][gebroken][type=eps,hoogte=30mm] \plaatsfiguur [hier] [fig:klavieren] {Enkele varianten van het groot octaaf} {\startcombinatie[2*1] {\kortoctaaf}{kort octaaf} {\gebrokenoctaaf}{gebroken octaaf} \stopcombinatie}
I want to have the two figures numbered as seperate, independent figures, but when using a combination, the whole combination is treated as one figure and gets only one number and one label.
XXXX XXXX X X X X XXXX XXXX
fig.n fig.n+1
I've consulted the manuals and searched the list archives, but I have not found a solution.
tnx in advance,
Peter van Kranenburg
p.s. I've already sent this message to the list, thursday, but it didn't show up in my inbox. So this is another try. _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Matthias Weber wrote:
The best I can get is
\starttext \useexternalfigure[myfigure][filename][width=1in] \placetable[here][tab:2figures]{none} [...]
Thanks for the try. I've also tried columns. But the floating mechanism and columns/tables doesn't cooperate very well... Maybe there is a way to increment the figure counter by hand? And to add a label for the added figurenumber? Then I can make the [2*1]-combination appear as two independent figures. the only problem then is the caption of the combination. I don't want that caption, and I don't want the space that is occupied by that caption. greetings Peter
Hans Hagen wrote:
I do have a file called hyphen.tex. On Hans' suggestion, I copied this to ushyph1.tex and ushyph2.tex. That didn't help. I also changed my cont-usr.tex file, changing all lines that had ushyp* to hyphen. This also didn't work.
did you run mktexlsr ?
And in case that's unexpected: You need to run texexec --make, since patterns are loaded at format generation. Christopher
See also this threade: http://archive.contextgarden.net/message/20041228.225433.b0bd0faf.html This is becoming a FAQ, unfortunately. Greetings, Taco Paul Tremblay wrote:
Has anyone else had problems with hyphenation? I have a brand new version of ConTeXt, and cannot get one of its main features, hyphenation, to work.
I looked at the documentation, specifically the file called hypenation patterns. According to this, I should be able to invoke a took called ctxtools, or at least a tool called texmfstart ctxtools. Neither tool exists with my distribution.
I do have a file called hyphen.tex. On Hans' suggestion, I copied this to ushyph1.tex and ushyph2.tex. That didn't help. I also changed my cont-usr.tex file, changing all lines that had ushyp* to hyphen. This also didn't work.
I am at a loss, and I consider hyphenation pretty important. How do I proceed from here?
Thanks
Paul
participants (9)
-
Adam Lindsay
-
Christopher Creutzig
-
Hans Hagen
-
Matthias Weber
-
Patrick Gundlach
-
Paul Tremblay
-
Peter
-
Taco Hoekwater
-
VnPenguin