Hullo, in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV I'm writing right now, I have a few of those and they get hyphenated and broken. How can I tell that a single word/abbrevation should *not* be hyphenated and broken? Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suklje@gabbler.org
Matija Šuklje wrote:
Hullo,
in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV I'm writing right now, I have a few of those and they get hyphenated and broken.
How can I tell that a single word/abbrevation should *not* be hyphenated and broken? Try \hbox{word} (AFAIR, this is a plain TeX command)
Cheers, Matija
Dne ponedeljek 21. junija 2010 ob 18:53:12 je Yury G. Kudryashov napisal(a):
How can I tell that a single word/abbrevation should not be hyphenated and broken?
Try \hbox{word} (AFAIR, this is a plain TeX command)
That's the ticket! :D Cheers! Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suklje@gabbler.org
Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
Matija Šuklje wrote:
Hullo,
in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV I'm writing right now, I have a few of those and they get hyphenated and broken.
How can I tell that a single word/abbrevation should *not* be hyphenated and broken?
Try \hbox{word} (AFAIR, this is a plain TeX command)
If you want a context command then use \mbox ;) Wolfgang
Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
Try \hbox{word} (AFAIR, this is a plain TeX command)
If you want a context command then use \mbox ;)
Is there any practical difference? Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suklje@gabbler.org
Am 21.06.10 19:50, schrieb Matija Šuklje:
Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
Try \hbox{word} (AFAIR, this is a plain TeX command)
If you want a context command then use \mbox ;)
Is there any practical difference?
No but i wish there is one, e.g. the following example shows a problem with \hbox. \starttext \hbox{test} text text \blank \dontleavehmode\hbox{test} text text \stoptext As you can see in the output the first 'test' starts 'text text' on a new line and i forced \hbox to appear in horizontal mode with \dontleavehmode and this can't be changed because \hbox is a TeX primitive and you have to rely on this behaviour. The \mbox command isn't a primitive and i would be so easy to add \dontleavehmode to it's definition to make sure the text after \mbox won't appear on a new line, this means in this example both lines result in the same output. \starttext \dontleavehmode\hbox{test} text text \blank \mbox{test} text text \stoptext Wolfgang
On 21-6-2010 8:03, Wolfgang Schuster wrote:
Am 21.06.10 19:50, schrieb Matija Šuklje:
Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
Try \hbox{word} (AFAIR, this is a plain TeX command) If you want a context command then use \mbox ;) Is there any practical difference?
No but i wish there is one, e.g. the following example shows a problem with \hbox.
\starttext \hbox{test} text text \blank \dontleavehmode\hbox{test} text text \stoptext
As you can see in the output the first 'test' starts 'text text' on a new line and i forced \hbox to appear in horizontal mode with \dontleavehmode and this can't be changed because \hbox is a TeX primitive and you have to rely on this behaviour. The \mbox command isn't a primitive and i would be so easy to add \dontleavehmode to it's definition to make sure the text after \mbox won't appear on a new line, this means in this example both lines result in the same output.
\starttext \dontleavehmode\hbox{test} text text \blank \mbox{test} text text \stoptext
we can have \unexpanded\def\mbox {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi} as i never use this command it won't break my documents -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 21.06.10 22:04, schrieb Hans Hagen:
On 21-6-2010 8:03, Wolfgang Schuster wrote:
Am 21.06.10 19:50, schrieb Matija Šuklje:
Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
Try \hbox{word} (AFAIR, this is a plain TeX command) If you want a context command then use \mbox ;) Is there any practical difference?
No but i wish there is one, e.g. the following example shows a problem with \hbox.
\starttext \hbox{test} text text \blank \dontleavehmode\hbox{test} text text \stoptext
As you can see in the output the first 'test' starts 'text text' on a new line and i forced \hbox to appear in horizontal mode with \dontleavehmode and this can't be changed because \hbox is a TeX primitive and you have to rely on this behaviour. The \mbox command isn't a primitive and i would be so easy to add \dontleavehmode to it's definition to make sure the text after \mbox won't appear on a new line, this means in this example both lines result in the same output.
\starttext \dontleavehmode\hbox{test} text text \blank \mbox{test} text text \stoptext
we can have
\unexpanded\def\mbox {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}
as i never use this command it won't break my documents -)
thanks, this looks good Wolfgang
On 21-6-2010 10:16, Wolfgang Schuster wrote:
\unexpanded\def\mbox {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}
as i never use this command it won't break my documents -)
thanks, this looks good
in retrospect it's tricky ... \setbox0\mbox{...} will break then ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 22.06.10 09:10, schrieb Hans Hagen:
On 21-6-2010 10:16, Wolfgang Schuster wrote:
\unexpanded\def\mbox {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}
as i never use this command it won't break my documents -)
thanks, this looks good
in retrospect it's tricky ...
\setbox0\mbox{...}
will break then
at the cost of a box register even this works \def\mbox {\ifmmode\normalmbox\else\specialmbox\fi} \newbox\textmbox \def\specialmbox {\normalhbox\bgroup \dowithnextbox{\global\setbox\textmbox\box\nextbox\egroup\dontleavehmode\box\textmbox}\normalhbox} \starttext \hbox{text} text text \mbox{text} text text \setbox0\hbox{bar}\setbox1\mbox{foo}\box1\box0 \stoptext Wolfgang
Am 21.06.10 18:32, schrieb Matija Šuklje:
Hullo,
in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV I'm writing right now, I have a few of those and they get hyphenated and broken.
How can I tell that a single word/abbrevation should *not* be hyphenated and broken?
\hyphenation{nothyphenatedword anothernothyphenatedword} \starttext ... \stoptext Wolfgang (who wonders why there is no context alternative for \hyphenation)
On 21-6-2010 7:45, Wolfgang Schuster wrote:
Am 21.06.10 18:32, schrieb Matija Šuklje:
Hullo,
in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV I'm writing right now, I have a few of those and they get hyphenated and broken.
How can I tell that a single word/abbrevation should *not* be hyphenated and broken?
\hyphenation{nothyphenatedword anothernothyphenatedword}
\starttext .... \stoptext
Wolfgang (who wonders why there is no context alternative for \hyphenation)
so there is room for improvements \starttext \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens nothyphenatedword}, hyphenatedword } \stoptext Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 21.06.10 22:00, schrieb Hans Hagen:
Wolfgang (who wonders why there is no context alternative for \hyphenation)
so there is room for improvements
\starttext \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens nothyphenatedword}, hyphenatedword } \stoptext
i should explain what i mean: when you try to make hyphenation exceptions for different languages you need currently \language[en]\hyphenation{expection list for english} \language[de]\hyphenation{expection list for german} ... but it would be nice to combine both in a single command, e.g. \setuphyphenation{exception list for the current active language} % like \hyphenation{...} \setuphyphenation[de]{exception list for german} % like \language[de]\hyphenation{...} Wolfgang
On 21-6-2010 10:22, Wolfgang Schuster wrote:
Am 21.06.10 22:00, schrieb Hans Hagen:
Wolfgang (who wonders why there is no context alternative for \hyphenation)
so there is room for improvements
\starttext \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens nothyphenatedword}, hyphenatedword } \stoptext
i should explain what i mean:
when you try to make hyphenation exceptions for different languages you need currently
\language[en]\hyphenation{expection list for english} \language[de]\hyphenation{expection list for german} ....
but it would be nice to combine both in a single command, e.g.
\setuphyphenation{exception list for the current active language} % like \hyphenation{...} \setuphyphenation[de]{exception list for german} % like \language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
Am 22.06.10 09:18, schrieb Hans Hagen:
On 21-6-2010 10:22, Wolfgang Schuster wrote:
Am 21.06.10 22:00, schrieb Hans Hagen:
Wolfgang (who wonders why there is no context alternative for \hyphenation)
so there is room for improvements
\starttext \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens nothyphenatedword}, hyphenatedword } \stoptext
i should explain what i mean:
when you try to make hyphenation exceptions for different languages you need currently
\language[en]\hyphenation{expection list for english} \language[de]\hyphenation{expection list for german} ....
but it would be nice to combine both in a single command, e.g.
\setuphyphenation{exception list for the current active language} % like \hyphenation{...} \setuphyphenation[de]{exception list for german} % like \language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
i have no problem with the name, mine was only meant to describe the function Wolfgang
Dne torek 22. junija 2010 ob 09:18:10 je Hans Hagen napisal(a):
On 21-6-2010 10:22, Wolfgang Schuster wrote:
Am 21.06.10 22:00, schrieb Hans Hagen:
Wolfgang (who wonders why there is no context alternative for \hyphenation)
so there is room for improvements
\starttext \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens nothyphenatedword}, hyphenatedword } \stoptext
i should explain what i mean:
when you try to make hyphenation exceptions for different languages you need currently
\language[en]\hyphenation{expection list for english} \language[de]\hyphenation{expection list for german} ....
but it would be nice to combine both in a single command, e.g.
\setuphyphenation{exception list for the current active language} % like \hyphenation{...} \setuphyphenation[de]{exception list for german} % like \language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
Do any of the above work already or is it just a suggestion for future improvement? Also, how does one disable hyphenation throughout the whole document? (I heard that in the UK hyphenation in the CV is not desirable) Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suklje@gabbler.org
Am 24.06.10 23:30, schrieb Matija Šuklje:
Dne torek 22. junija 2010 ob 09:18:10 je Hans Hagen napisal(a):
On 21-6-2010 10:22, Wolfgang Schuster wrote:
Am 21.06.10 22:00, schrieb Hans Hagen:
Wolfgang (who wonders why there is no context alternative for \hyphenation)
so there is room for improvements
\starttext \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens nothyphenatedword}, hyphenatedword } \stoptext
i should explain what i mean:
when you try to make hyphenation exceptions for different languages you need currently
\language[en]\hyphenation{expection list for english} \language[de]\hyphenation{expection list for german} ....
but it would be nice to combine both in a single command, e.g.
\setuphyphenation{exception list for the current active language} % like \hyphenation{...} \setuphyphenation[de]{exception list for german} % like \language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
Do any of the above work already or is it just a suggestion for future improvement?
Also, how does one disable hyphenation throughout the whole document? (I heard that in the UK hyphenation in the CV is not desirable)
\setupalign[nothyphenated] Wolfgang
Am 24.06.10 23:30, schrieb Matija Šuklje:
Dne torek 22. junija 2010 ob 09:18:10 je Hans Hagen napisal(a):
On 21-6-2010 10:22, Wolfgang Schuster wrote:
Am 21.06.10 22:00, schrieb Hans Hagen:
Wolfgang (who wonders why there is no context alternative for \hyphenation)
so there is room for improvements
\starttext \dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens nothyphenatedword}, hyphenatedword } \stoptext
i should explain what i mean:
when you try to make hyphenation exceptions for different languages you need currently
\language[en]\hyphenation{expection list for english} \language[de]\hyphenation{expection list for german} ....
but it would be nice to combine both in a single command, e.g.
\setuphyphenation{exception list for the current active language} % like \hyphenation{...} \setuphyphenation[de]{exception list for german} % like \language[de]\hyphenation{...}
how about \startexceptions[de] ... \stopexceptions
Do any of the above work already or is it just a suggestion for future improvement?
Also, how does one disable hyphenation throughout the whole document? (I heard that in the UK hyphenation in the CV is not desirable)
\setupalign[nothyphenated] Wolfgang
Dne četrtek 24. junija 2010 ob 23:48:11 je Wolfgang Schuster napisal(a):
Also, how does one disable hyphenation throughout the whole document? (I heard that in the UK hyphenation in the CV is not desirable)
\setupalign[nothyphenated]
Thank you :] Cheers, Matija -- gsm: +386 41 849 552 www: http://matija.suklje.name xmpp: matija.suklje@gabbler.org
participants (5)
-
Hans Hagen
-
Marco
-
Matija Šuklje
-
Wolfgang Schuster
-
Yury G. Kudryashov