<d_bot>
<thangngoc89> aantron is helping me with publishing this to opam
gwizon has quit [Quit: leaving]
berberman_ has quit [Ping timeout: 240 seconds]
berberman has joined #ocaml
zebrag has joined #ocaml
Haudegen has joined #ocaml
mro has quit [Remote host closed the connection]
waleee has joined #ocaml
vb has quit [Remote host closed the connection]
favonia has quit [Remote host closed the connection]
favonia has joined #ocaml
mro has joined #ocaml
<d_bot>
<Drup> @thangngoc89 I think you should explain what slugifying means
vb has joined #ocaml
favonia has quit [Ping timeout: 252 seconds]
favonia has joined #ocaml
waleee has quit [Ping timeout: 252 seconds]
<dmbaturin>
thangngoc89: Interesting... I think I may want to add it to the next soupault release, right now there's only a really dumb slugifier built-in...
<dmbaturin>
To clarify: it will not need any external data when built and linked, right?
bartholin has quit [Quit: Leaving]
favonia has quit [Ping timeout: 240 seconds]
vizard has quit [Quit: WeeChat 3.0.1]
favonia has joined #ocaml
glassofethanol has quit [Quit: leaving]
Haudegen has quit [Quit: Bin weg.]
<d_bot>
<thangngoc89> @Drup it turn string into url-safe string. From
<d_bot>
<thangngoc89> “This is a title” to “this-is-a-title” with locales support for cases that unicode normalization doesn’t produce safe string.
<d_bot>
<thangngoc89> dmbaturin: yes. All data were committed to the repository. I just leave to script for keeping up with upstream.
<dmbaturin>
Cool, thanks!
<d_bot>
<thangngoc89> Though is pulled in quite a few libraries for unicode handling (uunf, uuseg and uutf
mro has quit [Remote host closed the connection]
<dmbaturin>
thangngoc89: Right now my ToC (https://soupault.app/reference-manual/#toc-widget) offers two options: replace all non-ASCII chars with hyphens or replace just the whitespace with hyphens, and I find that unsatisfactory... One more question: how stable is the output? I.e. how likely is it that a future version will cause link rot?
mro has joined #ocaml
leah2 has quit [Ping timeout: 240 seconds]
<d_bot>
<thangngoc89> That’s literally and use case why I built it. There aren’t any libraries on opam that create slug with unicode support
<d_bot>
<thangngoc89> There are 2 processes that could make the link rots:
<d_bot>
<thangngoc89> - Unicode normalization NFD. I don’t know much about this but It is a standard and stable
<d_bot>
<thangngoc89> - Custom characters map (downloaded from upstream) . To prevent link rots from this case, I would say you keep a local copy yourself.
leah2 has joined #ocaml
<d_bot>
<Drup> Well, it's not for me, it's that the readme (and package description) should explain it. 🙂
<dmbaturin>
Drup has a point!
<d_bot>
<thangngoc89> @Drup I agree. I’ve done a bad job on this one
<d_bot>
<thangngoc89> Let’s me add some explanation to it tomorrow
<d_bot>
<Drup> (amusingly, the node package you cite doesn't explain it either)
<d_bot>
<thangngoc89> That’s a different kind of slug 😆
<d_bot>
<thangngoc89> I guess I should infest the ecosystem with more stuff.
<d_bot>
<Drup> (even if the term was well known, packages should have a description)
<d_bot>
<thangngoc89> Agreed.
<d_bot>
<Drup> :p
<d_bot>
<thangngoc89> dmbaturin: I’m pretty much done with the package. It’s such a simple package, there isn’t anything to change
<d_bot>
<thangngoc89> Unless you can provide an edge case off course 🙂
zebrag has quit [Quit: Konversation terminated!]
mro has quit [Remote host closed the connection]
mro has joined #ocaml
<d_bot>
<dinosaure> @octachron it's possible to show which library/module brings a specific library?
<d_bot>
<dinosaure> with `codept`
favonia has quit [Ping timeout: 240 seconds]
<d_bot>
<octachron> Normally, the `lib` part of the `-deps` option list the (known) source of all compilation units imported from a library with `-L` or `-pkg`.
<d_bot>
<dinosaure> hmmhmm
<d_bot>
<dinosaure> Unrelated question but if a `META` requires `unix`, with `ocamlbuild`, sub-libraries requires `unix` too (I think not but I'm not sure)
<d_bot>
<dinosaure> ah I think I found the problem
<d_bot>
<dinosaure> it's hard to track real dependencies :/