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

Discuss technical problems and features here
User avatar
leosmith
Orange Belt
Posts: 240
Joined: Thu Sep 29, 2016 10:06 pm
Location: Seattle
Languages: English (N)
Actively learning Korean (~B1)
Maintaining Japanese (~B2), Mandarin (~B2), Thai (~B2), Russian (~B2), French (~B2), Spanish (~C1)
All but forgotten Swahili (~B1)
Language Log: viewtopic.php?f=15&t=5054
x 385

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
My Log: Korean - from scratch to B2 in one year
: 4675 / 8000 Korean listening (800 hrs goal):
: 13540 / 24550 Korean reading (24,550 LingQ words goal):
: 1175 / 2000 Korean conversation (200 italki tutor hours goal):

User avatar
aokoye
Blue Belt
Posts: 955
Joined: Sat Jul 18, 2015 6:14 pm
Location: Portland, OR
Languages: English (N), German (B2), Swedish (beginner), Dutch (beginner), French (beginner)
Language Log: viewtopic.php?f=15&t=2935
x 1353
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
Yellow Belt
Posts: 82
Joined: Sat Jul 18, 2015 6:21 pm
Languages: German (N)
x 124

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
Blue Belt
Posts: 787
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 1187

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

User avatar
aokoye
Blue Belt
Posts: 955
Joined: Sat Jul 18, 2015 6:14 pm
Location: Portland, OR
Languages: English (N), German (B2), Swedish (beginner), Dutch (beginner), French (beginner)
Language Log: viewtopic.php?f=15&t=2935
x 1353
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
Orange Belt
Posts: 240
Joined: Thu Sep 29, 2016 10:06 pm
Location: Seattle
Languages: English (N)
Actively learning Korean (~B1)
Maintaining Japanese (~B2), Mandarin (~B2), Thai (~B2), Russian (~B2), French (~B2), Spanish (~C1)
All but forgotten Swahili (~B1)
Language Log: viewtopic.php?f=15&t=5054
x 385

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
My Log: Korean - from scratch to B2 in one year
: 4675 / 8000 Korean listening (800 hrs goal):
: 13540 / 24550 Korean reading (24,550 LingQ words goal):
: 1175 / 2000 Korean conversation (200 italki tutor hours goal):

User avatar
jeff_lindqvist
Blue Belt
Posts: 787
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 1187

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

User avatar
rdearman
Site Admin
Posts: 2223
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
French (studies), Italian (studies), Mandarin (studies),
Esperanto TAC (Only god knows why), Finnish (only in it for the cookies)
Language Log: viewtopic.php?f=15&t=1836
x 4396
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

User avatar
leosmith
Orange Belt
Posts: 240
Joined: Thu Sep 29, 2016 10:06 pm
Location: Seattle
Languages: English (N)
Actively learning Korean (~B1)
Maintaining Japanese (~B2), Mandarin (~B2), Thai (~B2), Russian (~B2), French (~B2), Spanish (~C1)
All but forgotten Swahili (~B1)
Language Log: viewtopic.php?f=15&t=5054
x 385

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
My Log: Korean - from scratch to B2 in one year
: 4675 / 8000 Korean listening (800 hrs goal):
: 13540 / 24550 Korean reading (24,550 LingQ words goal):
: 1175 / 2000 Korean conversation (200 italki tutor hours goal):

User avatar
tomgosse
Blue Belt
Posts: 998
Joined: Tue Aug 25, 2015 11:29 am
Location: Massachusetts, USA
Languages: English (Native)
French (A1)
Language Log: viewtopic.php?f=15&t=1185
x 1763
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 3 guests