19 Jun
2019
19 Jun
'19
9:55 a.m.
Hi Daniel, I’m not aware of any XQuery implementation. Would you like to give it a try? ;) Best, Christian On Tue, Jun 4, 2019 at 10:26 AM Zimmel, Daniel <D.Zimmel@esvmedien.de> wrote:
Hi,
somewhat off-topic to BaseX, but I wonder if anybody already tried to port the TeX hyphenation algorithm to XQuery?
See for example this Python port:
https://nedbatchelder.com/code/modules/hyphenate.py
>>> hyphenate_word("supercalifragilisticexpialidocious") ['su', 'per', 'cal', 'ifrag', 'ilis', 'tic', 'ex', 'pi', 'ali', 'do', 'cious']
Best, Daniel