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
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
Yes, I think this could be fun. Or perhaps not. Either way, for my use case, for hyphenation analysis I can do a query to an API, but it just feels wrong not doing this in XQuery ;-)
-----Ursprüngliche Nachricht----- Von: Christian Grün [mailto:christian.gruen@gmail.com] Gesendet: Mittwoch, 19. Juni 2019 09:56 An: Zimmel, Daniel Cc: BaseX Betreff: Re: [basex-talk] Hyphenation with XQuery
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
basex-talk@mailman.uni-konstanz.de