Hello, LuaTeX snapshot-0.20.2-2007121721: This works (in PlainTeX): \prehyphenchar`\- This results in an error: \prehyphenchar=`\- ! Missing number, treated as zero. <to be read again> = l.29 \prehyphenchar= `\- A bug? Am I misunderstanding something? Jonathan
Jonathan Sauer wrote:
Hello,
LuaTeX snapshot-0.20.2-2007121721:
This works (in PlainTeX):
\prehyphenchar`\-
This results in an error:
\prehyphenchar=`\-
! Missing number, treated as zero. <to be read again> = l.29 \prehyphenchar= `\-
A bug? Am I misunderstanding something?
You are missing something (the manual is unclear). The correct syntax is: \prehyphenchar<language number><optional eq><char number> Best wishes, Taco
Taco Hoekwater wrote:
The correct syntax is:
\prehyphenchar<language number><optional eq><char number>
Sorry, I am an idiot. I just checked the source and it says: \prehyphenchar<char number> The idea was that this matches \patterns and \hyphenation: neither accepts a language number or an equals. (but the manual is still unclear, I had that right at least)
Hello,
\prehyphenchar<language number><optional eq><char number>
Sorry, I am an idiot. I just checked the source and it says:
\prehyphenchar<char number>
The idea was that this matches \patterns and \hyphenation: neither accepts a language number or an equals.
Hmm ... I would more expect it to match TeX's \hyphenchar (to match \patterns, the syntax IMO would have to be \prehyphenchar "{"<char number>"}"). But maybe I was confused by "All languages start out with \prehyphenchar=`\- and \posthyphenchar=0". OTOH, it is an integer parameter, so I might have thought that there would be an optional equals sign just as with TeX's other integer parameters (even though this one is not global, but language-specific). Jonathan
Jonathan Sauer wrote:
Hello,
\prehyphenchar<language number><optional eq><char number> Sorry, I am an idiot. I just checked the source and it says:
\prehyphenchar<char number>
The idea was that this matches \patterns and \hyphenation: neither accepts a language number or an equals.
Hmm ... I would more expect it to match TeX's \hyphenchar (to match \patterns, the syntax IMO would have to be \prehyphenchar "{"<char number>"}"). But maybe I was confused by "All languages start out with \prehyphenchar=`\- and \posthyphenchar=0".
OTOH, it is an integer parameter, so I might have thought that there would be an optional equals sign just as with TeX's other integer parameters (even though this one is not global, but language-specific).
Agreed. I will add an optional equals sign in the next release. Best wishes, Taco
Jonathan Sauer wrote:
Hello,
LuaTeX snapshot-0.20.2-2007121721:
This works (in PlainTeX):
\prehyphenchar`\-
This results in an error:
\prehyphenchar=`\-
! Missing number, treated as zero. <to be read again> = l.29 \prehyphenchar= `\-
A bug? Am I misunderstanding something?
this works ok here so maybe your ` or \- is messed up ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Jonathan Sauer
-
Taco Hoekwater