# [tex-hyphen] String preparation

Arthur Reutenauer arthur.reutenauer at normalesup.org
Fri May 27 11:29:24 CEST 2016

```> \fr
>
> \hsize 1mm
>
> \hjcode`x=`o
>
> foobar % foo-bar
>
> fxxbar % fxx-bar
>
> \lefthyphenmin3
>
> œdipus % œdi-pus
>
> \lefthyphenmin4
>
> œdipus % œdipus
>
> \hjcode`œ=2    % < 32 then it's the length and code is char code
>
> œdipus % œdi-pus

That looks really nice :-)

>> Also, will this work with 0? For instance can we say
>>
>>    \hjcode`^^^^0301=0
>
> hjcode accepts a number (as any code primitive), the ` just turn a character
> into a number

And the caret notation turns a number into a character ;-)  But I
don’t think that’s what Élie meant, he probably meant to ask what
happened if we set the \hjcode to zero.

Best,

Arthur
```