I saw in an article (here on page 43, note 2, in french) an intersting way to hyphenate words. I thought it would be intersting, as an exercise, to try and reproduce it using XeTeX. It looks like this:
... words words long<
... words words long-
Where < and > are in fact characters U+2039 and U+203A.
Using fontspec I changed HyphenChar to < with
\addfontfeature. However, I would like to know, how do I add an other character at the beginning of the next line?
Changing HyphenChar created a problem, that I cannot solve. In the text I used is the word “TeXnicien” which is not hyphenated and creates an overfull box. I cannot use
\hyphenation because this word contains a command. I thought I could use
\-, but while it worked fine when HyphenChar was a dash, it created an “Improper discretionary list” error after I changed it (cutting the word properly but not putting any character at the line break).
Thanks in advance!