Skip to content

Do not linktrail if following text is not [a-z]?#414

Open
kristian-clausal wants to merge 1 commit intomainfrom
linktrailing
Open

Do not linktrail if following text is not [a-z]?#414
kristian-clausal wants to merge 1 commit intomainfrom
linktrailing

Conversation

@kristian-clausal
Copy link
Collaborator

See wiktectract issue #1604
tatuylonen/wiktextract#1604 https://en.wikipedia.org/wiki/Help:Wikitext#Blend_link

This should not be merged as is, because it will create problems in other extractors that might rely on different behavior.

In the best-case scenario, there might be two different camps: 1) Languages that use spaces that want to do linktrailing 2) Languages without spaces that can't do linktrailing

If this is the case, we might be able to get away with a kludge that checks whether the script of the last character in the link matches the script of the first character after the link.

See wiktectract issue #1604
tatuylonen/wiktextract#1604
https://en.wikipedia.org/wiki/Help:Wikitext#Blend_link

This should not be merged as is, because it will create problems in
other extractors that might rely on different behavior.

In the best-case scenario, there might be two different camps:
1) Languages that use spaces that want to do linktrailing
2) Languages without spaces that can't do linktrailing

If this is the case, we might be able to get away with a
kludge that checks whether the script of the last character
in the link matches the script of the first character after
the link.
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