How can we copy text from Wikipedia without the citation parts “[1]”, “[2]”, “[3]”?
If we copy text from a Wikipedia page, this is roughly what we get:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention.[1] Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet.[2] These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space.[3] Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,[4]
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.[5]
I do not wish to copy the parts [1]
and [2]
etc. This is actually what I wanted to copy:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention. Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet. These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space. Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.
The selected answer below uses regex but it doesn't work everytime. (If the actual text itself contains [
and ]
the regex shouldn't be removing them.)
Are there better solutions?
browser copy-paste
|
show 1 more comment
If we copy text from a Wikipedia page, this is roughly what we get:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention.[1] Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet.[2] These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space.[3] Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,[4]
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.[5]
I do not wish to copy the parts [1]
and [2]
etc. This is actually what I wanted to copy:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention. Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet. These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space. Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.
The selected answer below uses regex but it doesn't work everytime. (If the actual text itself contains [
and ]
the regex shouldn't be removing them.)
Are there better solutions?
browser copy-paste
Those are references which probably are important because they often support the credibility of the information being presented. Including references is helpful, particularly to researchers.
– Randolf Richardson
Aug 17 '11 at 6:19
@Randolf Including references can be helpful, especially for researchers. not for normal-beings who just want the information
– Pacerier
Aug 17 '11 at 6:20
Your word processor's search and replace feature, possibly called from a macro, could come in handy here.
– Keith
Aug 17 '11 at 6:34
I did upvote your question, by the way, because I do think it's a good one. Regarding references, many people expect to see them, especially professors in university (if you're planning to attend one, you'll almost certainly find that most professors will expect references be included in any research papers you write, and you'll probably hear other students talking about references from time-to-time).
– Randolf Richardson
Aug 17 '11 at 6:43
@Randolf i mean i just want to store the information for personal future reading and use.
– Pacerier
Aug 17 '11 at 12:22
|
show 1 more comment
If we copy text from a Wikipedia page, this is roughly what we get:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention.[1] Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet.[2] These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space.[3] Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,[4]
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.[5]
I do not wish to copy the parts [1]
and [2]
etc. This is actually what I wanted to copy:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention. Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet. These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space. Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.
The selected answer below uses regex but it doesn't work everytime. (If the actual text itself contains [
and ]
the regex shouldn't be removing them.)
Are there better solutions?
browser copy-paste
If we copy text from a Wikipedia page, this is roughly what we get:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention.[1] Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet.[2] These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space.[3] Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,[4]
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.[5]
I do not wish to copy the parts [1]
and [2]
etc. This is actually what I wanted to copy:
Sentence spacing is the horizontal space between sentences in typeset
text. It is a matter of typographical convention. Since the
introduction of movable-type printing in Europe, various sentence
spacing conventions have been used in languages with a Latin-derived
alphabet. These include a normal word space (as between the words
in a sentence), a single enlarged space, two full spaces, and, most
recently in digital media, no space. Although modern digital fonts
can automatically adjust a single word space to create visually
pleasing and consistent spacing following terminal punctuation,
most debate is about whether to strike a keyboard's spacebar once or
twice between sentences.
The selected answer below uses regex but it doesn't work everytime. (If the actual text itself contains [
and ]
the regex shouldn't be removing them.)
Are there better solutions?
browser copy-paste
browser copy-paste
edited May 8 '15 at 3:30
Pacerier
asked Aug 17 '11 at 6:10
PacerierPacerier
11.2k62155242
11.2k62155242
Those are references which probably are important because they often support the credibility of the information being presented. Including references is helpful, particularly to researchers.
– Randolf Richardson
Aug 17 '11 at 6:19
@Randolf Including references can be helpful, especially for researchers. not for normal-beings who just want the information
– Pacerier
Aug 17 '11 at 6:20
Your word processor's search and replace feature, possibly called from a macro, could come in handy here.
– Keith
Aug 17 '11 at 6:34
I did upvote your question, by the way, because I do think it's a good one. Regarding references, many people expect to see them, especially professors in university (if you're planning to attend one, you'll almost certainly find that most professors will expect references be included in any research papers you write, and you'll probably hear other students talking about references from time-to-time).
– Randolf Richardson
Aug 17 '11 at 6:43
@Randolf i mean i just want to store the information for personal future reading and use.
– Pacerier
Aug 17 '11 at 12:22
|
show 1 more comment
Those are references which probably are important because they often support the credibility of the information being presented. Including references is helpful, particularly to researchers.
– Randolf Richardson
Aug 17 '11 at 6:19
@Randolf Including references can be helpful, especially for researchers. not for normal-beings who just want the information
– Pacerier
Aug 17 '11 at 6:20
Your word processor's search and replace feature, possibly called from a macro, could come in handy here.
– Keith
Aug 17 '11 at 6:34
I did upvote your question, by the way, because I do think it's a good one. Regarding references, many people expect to see them, especially professors in university (if you're planning to attend one, you'll almost certainly find that most professors will expect references be included in any research papers you write, and you'll probably hear other students talking about references from time-to-time).
– Randolf Richardson
Aug 17 '11 at 6:43
@Randolf i mean i just want to store the information for personal future reading and use.
– Pacerier
Aug 17 '11 at 12:22
Those are references which probably are important because they often support the credibility of the information being presented. Including references is helpful, particularly to researchers.
– Randolf Richardson
Aug 17 '11 at 6:19
Those are references which probably are important because they often support the credibility of the information being presented. Including references is helpful, particularly to researchers.
– Randolf Richardson
Aug 17 '11 at 6:19
@Randolf Including references can be helpful, especially for researchers. not for normal-beings who just want the information
– Pacerier
Aug 17 '11 at 6:20
@Randolf Including references can be helpful, especially for researchers. not for normal-beings who just want the information
– Pacerier
Aug 17 '11 at 6:20
Your word processor's search and replace feature, possibly called from a macro, could come in handy here.
– Keith
Aug 17 '11 at 6:34
Your word processor's search and replace feature, possibly called from a macro, could come in handy here.
– Keith
Aug 17 '11 at 6:34
I did upvote your question, by the way, because I do think it's a good one. Regarding references, many people expect to see them, especially professors in university (if you're planning to attend one, you'll almost certainly find that most professors will expect references be included in any research papers you write, and you'll probably hear other students talking about references from time-to-time).
– Randolf Richardson
Aug 17 '11 at 6:43
I did upvote your question, by the way, because I do think it's a good one. Regarding references, many people expect to see them, especially professors in university (if you're planning to attend one, you'll almost certainly find that most professors will expect references be included in any research papers you write, and you'll probably hear other students talking about references from time-to-time).
– Randolf Richardson
Aug 17 '11 at 6:43
@Randolf i mean i just want to store the information for personal future reading and use.
– Pacerier
Aug 17 '11 at 12:22
@Randolf i mean i just want to store the information for personal future reading and use.
– Pacerier
Aug 17 '11 at 12:22
|
show 1 more comment
1 Answer
1
active
oldest
votes
A bookmarklet is your friend...
Create a new browser bookmark and copy the javascript code below into it - when you want to copy some text from wikipedia, just click it beforehand and it'll remove all instances of [n] to meet your requirement in the question.
javascript:function a (){document.body.innerHTML=document.body.innerHTML.replace(/<supb[^>]*>(.*?)</sup>/gi, "" );return;}; a();
Behind the scenes, it's just doing a regular expression search and replace of all <sup>...</sup>
HTML tags on the page.
I've just tried this in IE7 and it works fine, so hopefully should be ok in other browsers too.
I'll credit this SO thread with pointing me in the right direction - I knew a bookmarklet was the way to go, but had never written one before.
1
+1, this is the only way I can think of doing this. Even additional browser extensions would have to use some kind of Javascript analysis to do this (and indeed most do).
– Breakthrough
Aug 31 '11 at 15:20
add a comment |
protected by Community♦ Jan 29 at 8:53
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A bookmarklet is your friend...
Create a new browser bookmark and copy the javascript code below into it - when you want to copy some text from wikipedia, just click it beforehand and it'll remove all instances of [n] to meet your requirement in the question.
javascript:function a (){document.body.innerHTML=document.body.innerHTML.replace(/<supb[^>]*>(.*?)</sup>/gi, "" );return;}; a();
Behind the scenes, it's just doing a regular expression search and replace of all <sup>...</sup>
HTML tags on the page.
I've just tried this in IE7 and it works fine, so hopefully should be ok in other browsers too.
I'll credit this SO thread with pointing me in the right direction - I knew a bookmarklet was the way to go, but had never written one before.
1
+1, this is the only way I can think of doing this. Even additional browser extensions would have to use some kind of Javascript analysis to do this (and indeed most do).
– Breakthrough
Aug 31 '11 at 15:20
add a comment |
A bookmarklet is your friend...
Create a new browser bookmark and copy the javascript code below into it - when you want to copy some text from wikipedia, just click it beforehand and it'll remove all instances of [n] to meet your requirement in the question.
javascript:function a (){document.body.innerHTML=document.body.innerHTML.replace(/<supb[^>]*>(.*?)</sup>/gi, "" );return;}; a();
Behind the scenes, it's just doing a regular expression search and replace of all <sup>...</sup>
HTML tags on the page.
I've just tried this in IE7 and it works fine, so hopefully should be ok in other browsers too.
I'll credit this SO thread with pointing me in the right direction - I knew a bookmarklet was the way to go, but had never written one before.
1
+1, this is the only way I can think of doing this. Even additional browser extensions would have to use some kind of Javascript analysis to do this (and indeed most do).
– Breakthrough
Aug 31 '11 at 15:20
add a comment |
A bookmarklet is your friend...
Create a new browser bookmark and copy the javascript code below into it - when you want to copy some text from wikipedia, just click it beforehand and it'll remove all instances of [n] to meet your requirement in the question.
javascript:function a (){document.body.innerHTML=document.body.innerHTML.replace(/<supb[^>]*>(.*?)</sup>/gi, "" );return;}; a();
Behind the scenes, it's just doing a regular expression search and replace of all <sup>...</sup>
HTML tags on the page.
I've just tried this in IE7 and it works fine, so hopefully should be ok in other browsers too.
I'll credit this SO thread with pointing me in the right direction - I knew a bookmarklet was the way to go, but had never written one before.
A bookmarklet is your friend...
Create a new browser bookmark and copy the javascript code below into it - when you want to copy some text from wikipedia, just click it beforehand and it'll remove all instances of [n] to meet your requirement in the question.
javascript:function a (){document.body.innerHTML=document.body.innerHTML.replace(/<supb[^>]*>(.*?)</sup>/gi, "" );return;}; a();
Behind the scenes, it's just doing a regular expression search and replace of all <sup>...</sup>
HTML tags on the page.
I've just tried this in IE7 and it works fine, so hopefully should be ok in other browsers too.
I'll credit this SO thread with pointing me in the right direction - I knew a bookmarklet was the way to go, but had never written one before.
edited May 23 '17 at 12:41
Community♦
1
1
answered Aug 31 '11 at 15:14
Stuart McLaughlinStuart McLaughlin
932511
932511
1
+1, this is the only way I can think of doing this. Even additional browser extensions would have to use some kind of Javascript analysis to do this (and indeed most do).
– Breakthrough
Aug 31 '11 at 15:20
add a comment |
1
+1, this is the only way I can think of doing this. Even additional browser extensions would have to use some kind of Javascript analysis to do this (and indeed most do).
– Breakthrough
Aug 31 '11 at 15:20
1
1
+1, this is the only way I can think of doing this. Even additional browser extensions would have to use some kind of Javascript analysis to do this (and indeed most do).
– Breakthrough
Aug 31 '11 at 15:20
+1, this is the only way I can think of doing this. Even additional browser extensions would have to use some kind of Javascript analysis to do this (and indeed most do).
– Breakthrough
Aug 31 '11 at 15:20
add a comment |
protected by Community♦ Jan 29 at 8:53
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
Those are references which probably are important because they often support the credibility of the information being presented. Including references is helpful, particularly to researchers.
– Randolf Richardson
Aug 17 '11 at 6:19
@Randolf Including references can be helpful, especially for researchers. not for normal-beings who just want the information
– Pacerier
Aug 17 '11 at 6:20
Your word processor's search and replace feature, possibly called from a macro, could come in handy here.
– Keith
Aug 17 '11 at 6:34
I did upvote your question, by the way, because I do think it's a good one. Regarding references, many people expect to see them, especially professors in university (if you're planning to attend one, you'll almost certainly find that most professors will expect references be included in any research papers you write, and you'll probably hear other students talking about references from time-to-time).
– Randolf Richardson
Aug 17 '11 at 6:43
@Randolf i mean i just want to store the information for personal future reading and use.
– Pacerier
Aug 17 '11 at 12:22