Skip to content

[en] INCOMPLETE WIP TRASH-HEAP DO NOT LOOK AT ME try to extract links from heads to attach to forms#1617

Open
kristian-clausal wants to merge 3 commits intomasterfrom
form-links
Open

[en] INCOMPLETE WIP TRASH-HEAP DO NOT LOOK AT ME try to extract links from heads to attach to forms#1617
kristian-clausal wants to merge 3 commits intomasterfrom
form-links

Conversation

@kristian-clausal
Copy link
Copy Markdown
Collaborator

This place is a message... and part of a system of messages... pay attention to it!
Sending this message was important to us. We considered ourselves to be a powerful culture.
This place is not a place of honor... no highly esteemed deed is commemorated here... nothing valued is here.

I am going on a break next week for two weeks and I've been hitting my head against this for too gd long and I am putting this here only to remind me of my shame when I get back so that I will pick it up again.

Gets links and categories (if provided with `category_ns_names`)
and returns a list of tuples `[(text, link), ...]` and category
names `{name, ...}`.
Changes to these to enable some kludges later.

There was a kludge here that checked if the word had
special characters and then checked the links in the
head to use them in various places, like a splitting
regex and other places where the head text is split,
and some of the code was shuffled from the higher
level function to the lower.

There will follow a commit that wants to use more
`links` data, so we generated a `links` list using
the new `extract_links_from_nodes()` helper function
(also changed a bit) that may be used later. But
if it is not generated here, it will be later, which
is why `links` is an Optional to check whether it is None.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant