\setupbackend and manual hyphenation
![](https://secure.gravatar.com/avatar/880e9a15b17a0bf7159f4e31030a9be2.jpg?s=120&d=mm&r=g)
Hi! I'm trying to use Context to export a document to epub. Following the instructions on Contextgarden everything works up to a point: When I add manual hyphenation for the word "Trennalgorithmus" and \setupbackend[export=yes,xhtml=yes] I get: lua error > error on line 1 in file /Volumes/Macintosh HD/Users/axel/Documents/Text/Dokumente_LaTeX/context/Dante 2015/Dominik Wagenführ - ePub/epub/epub_bug.tex: .../context/tex/texmf-context/tex/context/base/back-exp.lua:2516: bad argument #1 to 'utfchar' (invalid value) stack traceback: [C]: in function 'utfchar' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2516: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2687: in function 'collectresults' .../context/tex/texmf-context/tex/context/base/back-exp.lua:2752: in function 'nodes_handlers_export' [string "local nodes_handlers_cleanuppage = nodes.hand..."]:18: in function <[string "local nodes_handlers_cleanuppage = nodes.hand..."]:10> (...tail calls...) .../context/tex/texmf-context/tex/context/base/node-shp.lua:171: in function 'finalizebox' [\directlua]:1: in main chunk 1 >> % !TEX encoding = UTF-8 Unicode See attached log file. If I remove the hyphenation, everything works, but the hyphenation is wrong. I'm using: current version: 2015.02.03 23:55 Greetings Axel
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 2/12/2015 11:13 AM, Axel Kielhorn wrote:
Hi!
I'm trying to use Context to export a document to epub. Following the instructions on Contextgarden everything works up to a point:
remark: in your example you say:
Auch wenn der Trennalgorithmus von LaTeX nicht schlecht ist, gibt es wieder wieder Wörter, die man gerne anders oder gar nicht trennen würde
It's TeX's Trennalgorithmus; a macro package just relies on the tex machinery . 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 2/12/2015 11:13 AM, Axel Kielhorn wrote:
Hi!
I'm trying to use Context to export a document to epub. Following the instructions on Contextgarden everything works up to a point:
When I add manual hyphenation for the word "Trennalgorithmus" and \setupbackend[export=yes,xhtml=yes] I get:
lua error > error on line 1 in file /Volumes/Macintosh HD/Users/axel/Documents/Text/Dokumente_LaTeX/context/Dante 2015/Dominik Wagenführ - ePub/epub/epub_bug.tex:
fixed in next beta (not uploaded before Alan and I reach a next stage in publications) for the moment use \setuphyphenation[method=expanded] ----------------------------------------------------------------- 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/880e9a15b17a0bf7159f4e31030a9be2.jpg?s=120&d=mm&r=g)
Am 12.02.2015 um 16:10 schrieb Hans Hagen
for the moment use
\setuphyphenation[method=expanded]
This works in the current beta, but not with the stable version in TeXLive 2014. It doesn't matter since I need the beta to create epub, just wanted to mention it. Thanks for the quick reply. Axel
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 2/12/2015 5:10 PM, Axel Kielhorn wrote:
Am 12.02.2015 um 16:10 schrieb Hans Hagen
: for the moment use
\setuphyphenation[method=expanded]
This works in the current beta, but not with the stable version in TeXLive 2014.
indeed, as there is new hyphenation related code in the beta (already for a while); the expanded method might become default some day
It doesn't matter since I need the beta to create epub, just wanted to mention it.
Thanks for the quick reply.
Axel ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
-- ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (2)
-
Axel Kielhorn
-
Hans Hagen