How do I copy links from a word doc into a post?

Discuss technical problems and features here
User avatar
leosmith
Brown Belt
Posts: 1341
Joined: Thu Sep 29, 2016 10:06 pm
Location: Seattle
Languages: English (N)
Spanish (adv)
French (int)
German (int)
Japanese (int)
Korean (int)
Mandarin (int)
Portuguese (int)
Russian (int)
Swahili (int)
Tagalog (int)
Thai (int)
x 3104
Contact:

How do I copy links from a word doc into a post?

Postby leosmith » Mon Dec 12, 2016 1:27 am

I have a word document with text and many links in it, and I'd like to copy/paste all the text into a post here, but when I try to do this the links disappear.
0 x
https://languagecrush.com/reading - try our free multi-language reading tool

User avatar
aokoye
Black Belt - 1st Dan
Posts: 1818
Joined: Sat Jul 18, 2015 6:14 pm
Location: Portland, OR
Languages: English (N), German (~C1), French (Intermediate), Japanese (N4), Swedish (beginner), Dutch (A2)
Language Log: https://forum.language-learners.org/vie ... 15&t=19262
x 3309
Contact:

Re: How do I copy links from a word doc into a post?

Postby aokoye » Mon Dec 12, 2016 4:43 am

Testing: http://www.ravelry.com

edit: what do you mean by the links disappear? I typed that into a .docx file saved it, and copied and pasted it into here. This behavior, the hyperlink being clickable (so being a hyperlink), when it's typed (or copied and pasted) into textbox is default for this software. For further clarification - you're not going to find a clickable link when you're typing it into the textbox before hitting submit. Once you hit submit it becomes clickable.
0 x
Prefered gender pronouns: Masculine

Doitsujin
Green Belt
Posts: 402
Joined: Sat Jul 18, 2015 6:21 pm
Languages: German (N)
x 801

Re: How do I copy links from a word doc into a post?

Postby Doitsujin » Mon Dec 12, 2016 10:02 am

leosmith wrote:I have a word document with text and many links in it, and I'd like to copy/paste all the text into a post here, but when I try to do this the links disappear.
Save the MS Word doc as a filtered web page, then open the HTML page with Notepad ++ (or another text editor with regex support) and search and replace the folllowing:

Find what:</*p[^>]*>
Replace with:

Find what:<a href="([^"]+)">([^<]+)</a>
Replace with:[url=\1]\2[/url]

This should allow you to copy and paste the remaining text into the input form.
2 x

User avatar
jeff_lindqvist
Black Belt - 3rd Dan
Posts: 3135
Joined: Sun Aug 16, 2015 9:52 pm
Languages: sv, en
de, es
ga, eo
---
fi, yue, ro, tp, cy, kw, pt, sk
Language Log: viewtopic.php?f=15&t=2773
x 10462

Re: How do I copy links from a word doc into a post?

Postby jeff_lindqvist » Mon Dec 12, 2016 1:22 pm

aokoye wrote:edit: what do you mean by the links disappear?


I'm sure leosmith referred to documents where the actual URL is covered by a word or sentence, just like many posts on this forum, Wikipedia and just about any web page out there. (<----see what I did here)

Such texts usually lose formatting and links when pasted into simple text boxes.
2 x
Leabhair/Greannáin léite as Gaeilge: 9 / 18
Ar an seastán oíche: Oileán an Órchiste
Duolingo - finished trees: sp/ga/de/fr/pt/it
Finnish with extra pain : 100 / 100

Llorg Blog - Wiki - Discord

User avatar
aokoye
Black Belt - 1st Dan
Posts: 1818
Joined: Sat Jul 18, 2015 6:14 pm
Location: Portland, OR
Languages: English (N), German (~C1), French (Intermediate), Japanese (N4), Swedish (beginner), Dutch (A2)
Language Log: https://forum.language-learners.org/vie ... 15&t=19262
x 3309
Contact:

Re: How do I copy links from a word doc into a post?

Postby aokoye » Mon Dec 12, 2016 3:56 pm

jeff_lindqvist wrote:
aokoye wrote:edit: what do you mean by the links disappear?


I'm sure leosmith referred to documents where the actual URL is covered by a word or sentence, just like many posts on this forum, Wikipedia and just about any web page out there. (<----see what I did here)

Such texts usually lose formatting and links when pasted into simple text boxes.

I didn't think that it was terribly common for people to create text links in word files which is why I asked for the clarification. Then again what do I do with most of my Word files? Print them out. I generally have the frustration of making sure that hyperlinks don't show up for the sake of formatting.
1 x
Prefered gender pronouns: Masculine

User avatar
leosmith
Brown Belt
Posts: 1341
Joined: Thu Sep 29, 2016 10:06 pm
Location: Seattle
Languages: English (N)
Spanish (adv)
French (int)
German (int)
Japanese (int)
Korean (int)
Mandarin (int)
Portuguese (int)
Russian (int)
Swahili (int)
Tagalog (int)
Thai (int)
x 3104
Contact:

Re: How do I copy links from a word doc into a post?

Postby leosmith » Mon Dec 12, 2016 6:54 pm

jeff_lindqvist wrote:I'm sure leosmith referred to documents where the actual URL is covered by a word or sentence, just like many posts on this forum, Wikipedia and just about any web page out there. (<----see what I did here)

Such texts usually lose formatting and links when pasted into simple text boxes.

Yes, that's what I meant. I like to use these word-links in my word doc because it looks better, and because on some forums I've been able to paste them directly into the text box and retain the link. Is that a possible thing to request as a feature here?
0 x
https://languagecrush.com/reading - try our free multi-language reading tool

User avatar
jeff_lindqvist
Black Belt - 3rd Dan
Posts: 3135
Joined: Sun Aug 16, 2015 9:52 pm
Languages: sv, en
de, es
ga, eo
---
fi, yue, ro, tp, cy, kw, pt, sk
Language Log: viewtopic.php?f=15&t=2773
x 10462

Re: How do I copy links from a word doc into a post?

Postby jeff_lindqvist » Mon Dec 12, 2016 7:28 pm

It's one thing that web email services (Hotmail, Gmail etc.) and certain email clients (Thunderbird e.g.) can parse it correctly, but a common answer in various threads from phpbb.com, is that Word (and other word processors) produce a lot of hidden code which first of all isn't necessary and secondly can give you unwanted results. I've seen a whole web site crash due to some copy/pasted text from Word. Hence, "Paste without formatting" is a preferred option in cms/wysiwyg tools. Do the formatting later.

Maybe there's a phpbb patch that can do what you want, but until we know, you're better off creating the links again after pasting the whole text (or following Doitsujin's find/replace advice).
1 x
Leabhair/Greannáin léite as Gaeilge: 9 / 18
Ar an seastán oíche: Oileán an Órchiste
Duolingo - finished trees: sp/ga/de/fr/pt/it
Finnish with extra pain : 100 / 100

Llorg Blog - Wiki - Discord

User avatar
rdearman
Site Admin
Posts: 7231
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 23127
Contact:

Re: How do I copy links from a word doc into a post?

Postby rdearman » Mon Dec 12, 2016 7:30 pm

Or just save the document as html, open with a web-browser and then copy and paste. That should work.
0 x
: 0 / 150 Read 150 books in 2024

My YouTube Channel
The Autodidactic Podcast
My Author's Newsletter

I post on this forum with mobile devices, so excuse short msgs and typos.

User avatar
leosmith
Brown Belt
Posts: 1341
Joined: Thu Sep 29, 2016 10:06 pm
Location: Seattle
Languages: English (N)
Spanish (adv)
French (int)
German (int)
Japanese (int)
Korean (int)
Mandarin (int)
Portuguese (int)
Russian (int)
Swahili (int)
Tagalog (int)
Thai (int)
x 3104
Contact:

Re: How do I copy links from a word doc into a post?

Postby leosmith » Mon Dec 12, 2016 10:56 pm

rdearman wrote:Or just save the document as html, open with a web-browser and then copy and paste. That should work.

That was one of the first things I tried.
0 x
https://languagecrush.com/reading - try our free multi-language reading tool

User avatar
tomgosse
Brown Belt
Posts: 1143
Joined: Tue Aug 25, 2015 11:29 am
Location: Les Etats Unis
Languages: Anglais (langue maternelle)
Français (A1)
Language Log: viewtopic.php?f=15&t=1185
x 2378
Contact:

Re: How do I copy links from a word doc into a post?

Postby tomgosse » Mon Dec 12, 2016 11:30 pm

leosmith wrote:
rdearman wrote:Or just save the document as html, open with a web-browser and then copy and paste. That should work.

That was one of the first things I tried.

Works for me:
This is a word doc with a link: http://www.language-learners.org
0 x
Rejoignez notre groupe français ! Les Voyageurs


Return to “Technical Support and Feature Requests”

Who is online

Users browsing this forum: No registered users and 2 guests