-
-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ability to remove protocol from URL #395
Comments
Thanks for the suggestion! This is a quirky rule that is unique to MLA as far as I am aware. I personally don't really understand why MLA bothers with it and my standard preference is that more clarity rather than less is preferable. For example, many publishers are named "something.com" and including the protocol more clearly distinguishes what is an actual URL where the item is located. Given the rarity of this rule, I'm not sure it's worth the additional complexity to ask citation processors to include an option to strip the protocol from a web link. What do you think @denismaier @bdarcus @adam3smith ? |
So you are not proposing schema changes, but instead for this to be handled in the data? If yes, that seems less-than-ideal, given that it's style dependent? And if there were schema changes, I would think still open is whether it would be a global parameter/attribute (probably my preference if we do this, since it fits better with the direction we were going with url rendering in general), or lower-level.
IDK. As you are aware, I'm not fond of many citation rules. |
I'm also skeptical: I have searched around a bit and haven't found a single example of this in a citation style other than MLA |
well, don't count on me to defend the idea of removing the protocol, I find it quite silly to be honest... but for better or worse, MLA is quite popular in the humanities so that would still be helpful to a number of users |
My worry is where it stops?
Stripping the protocol seems straightforward enough, but are people then
going to ask for other iterations of this?
|
BTW, they promote this on twitter; a recent tweet pointing to this: |
@andras-simonyi - since you've been dealing with URLs lately, any feedback? And while I'm at it, any feedback/suggested changes on our related recommendations? |
Well, as for adding something like an attribute to remove the protocol from rendered URL's, I don't see big problems from the implementor's point of view (I wouldn't tinker with the data model). OTOH, I agree that hiding information (which is actually already in a condensed format) is not a good policy, and can even have security implications, e.g., it does matter whether the protocol is Regarding the 1.0.2 appendix on links, I ran into an issue when implementing external linking according to the recommendations: what should be done when the style dictates rendering an URL prefix different from the one recommended for linking, e.g., for DOIs. All options can be problematic: if the recommendation is followed to the letter then an explicitly rendered URL will be linked to a different one; the alternative is to link to the rendered URL, which might even be inaccessible. A more general thought on linking: wouldn't it be more elegant and extensible to handle external linking explicitly in the underlying/implied rich-text model (say, with a |
How would that look like? IIUC, we'd have to introduce a new sibling to Or could we allow a new value on |
There surely are some institutional styles, even unrelated to the MLA, with this requirement (I know of one :)). And, how could it not be, Austrian legal styles require funny things: either no protocol at all or no protocol unless it is [Edit: Every time, I come up with such examples I fear you must be thinking, I’m making this all up :D] |
Yeah. I think the "if no url rendered in bib entry, add the anchor to the title` fallback thing goes too far. In a nutshell, I don't think anyone wants titles to be blue/underlined but link styling is fine for all the others, and that is quite tricky to resolve at the CSL processor level. More broadly, departing from a convention where every URL is visible in textual form is a bad idea. Think accidental inclusion of incorrect links that someone writing a paper might not even notice have made it in. Think sci-hub. I can bang out a proper issue for that if you want and discuss there. |
I think we should just remove that part. Maybe a PR? |
What I was asking about earlier was a likely a global boolean. <style url-format="strip-protocol"> |
Ok, much better than an attribute on |
Okay, given that we have found at least a few examples, I think a style attribute makes sense. Could someone open a PR? How should this be handled for rendering of DOI or other identifiers? I suppose that the style would just specify an appropriate prefix in that case. With respect to @georgd's example about
I've spent enough time working on German and UK university styles to know what you say is plausible haha! |
That's why I mentioned the spec recommendation section. Was thinking we could rely on this simple attribute plus those recommendations first, and see if and how requirements evolve. |
Is your feature request related to a problem? Please describe.
MLA Handbook 8th edition says in 2.5.2 URLs and DOIs:
but
modern-language-association.csl
can only copy the URL that is given as argument.see
Describe the solution you'd like
Add an
npurl
to the list of link renderings:https://github.com/citation-style-language/documentation/blob/master/specification.rst#appendix-vi-links
that would remove the protocol from a url
For changes to the CSL RNC schemas, this should include links to citation style guides. It's better to include links to more than one style guide, and no more than five, for us to assess how widely needed this feature might be.
MLA Handbook 8th edition (published book, not openly available online)
The text was updated successfully, but these errors were encountered: