Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Dan Lewis


On 9/19/20 17:22, DaveB wrote:

On 19/09/2020 20:01, Robert Großkopf wrote:

Hi Dave,


I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.

The links will be saved als relative links in the file. Try to move the
file to another folder - together with the other documents. It will work.

Have a look in the *.odt-file in content.xml:

Hi Robert,

Many thanks for taking the time to reply.

If you look at my original post and my reply to Regina the odt file and
the hyperlinked files are are already in the same directory, so I see no
reason why moving them to another location would change anything.

It really doesn't matter what appears in content.xml. The critical point
is that keyboard Ctrl+click on the hyperlink in the odt file generates a
"not an *absolute* URL" error.

Sorry if I have misunderstood or misinterpreted the explanation you and
Regina have kindly given, but I need to clearly explain this for
inexperienced users in the next edition of the official LibreOffice
Writer Guide.

Kind Regards
Dave


Personally, I think this is a bug. In Debian 64 bit, what you have found 
gives the same error for versions, 6.2.8, 6.3.6, and 7.0.1.


Dan



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Robert Funnell

Regina -

FWIW, I just tried it in LO 6.1.5.2 under Debian Linux 10 and it 
worked as you said, without an error message, and with the very 
misleading appearance of the absolute path in LO (but with the 
relative path appearing in content.xml).


- Robert F.

On Sat, 19 Sep 2020, Regina Henschel wrote:


Hi Dave,

I have now used an English UI, and now the correct fields. Open 
Hyperlink-dialog, click Document. Click "Open File" button at the ride side 
of the Document Path field.


I have tried with system open file dialog and with LO's own dialog. It works 
in both cases. Ctrl-click opens e.g. a linked .odt file in LibreOffice.


I work on Windows 10. What OS do you use? Perhaps there is an error in Linux?

Kind regards
Regina

DaveB schrieb am 19-Sep-20 um 23:22:

 On 19/09/2020 20:01, Robert Großkopf wrote:

 Hi Dave,


 I am trying to create a Writer document with a number of links to files
 in the same directory as the odt file itself. Using absolute paths
 everything works perfectly, but relative links (eg. file://abc.xyz)
 always fail with a "not an *absolute* URL" error.


 The links will be saved als relative links in the file. Try to move the
 file to another folder - together with the other documents. It will work.

 Have a look in the *.odt-file in content.xml:
 

 Hi Robert,

 Many thanks for taking the time to reply.

 If you look at my original post and my reply to Regina the odt file and
 the hyperlinked files are are already in the same directory, so I see no
 reason why moving them to another location would change anything.

 It really doesn't matter what appears in content.xml. The critical point
 is that keyboard Ctrl+click on the hyperlink in the odt file generates a
 "not an *absolute* URL" error.

 Sorry if I have misunderstood or misinterpreted the explanation you and
 Regina have kindly given, but I need to clearly explain this for
 inexperienced users in the next edition of the official LibreOffice
 Writer Guide.

 Kind Regards
 Dave


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Regina Henschel

Hi Dave,

I have now used an English UI, and now the correct fields. Open 
Hyperlink-dialog, click Document. Click "Open File" button at the ride 
side of the Document Path field.


I have tried with system open file dialog and with LO's own dialog. It 
works in both cases. Ctrl-click opens e.g. a linked .odt file in 
LibreOffice.


I work on Windows 10. What OS do you use? Perhaps there is an error in 
Linux?


Kind regards
Regina

DaveB schrieb am 19-Sep-20 um 23:22:

On 19/09/2020 20:01, Robert Großkopf wrote:

Hi Dave,


I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.


The links will be saved als relative links in the file. Try to move the
file to another folder - together with the other documents. It will work.

Have a look in the *.odt-file in content.xml:


Hi Robert,

Many thanks for taking the time to reply.

If you look at my original post and my reply to Regina the odt file and
the hyperlinked files are are already in the same directory, so I see no
reason why moving them to another location would change anything.

It really doesn't matter what appears in content.xml. The critical point
is that keyboard Ctrl+click on the hyperlink in the odt file generates a
"not an *absolute* URL" error.

Sorry if I have misunderstood or misinterpreted the explanation you and
Regina have kindly given, but I need to clearly explain this for
inexperienced users in the next edition of the official LibreOffice
Writer Guide.

Kind Regards
Dave





--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread DaveB
On 19/09/2020 20:01, Robert Großkopf wrote:
> Hi Dave,
> 
>> I am trying to create a Writer document with a number of links to files
>> in the same directory as the odt file itself. Using absolute paths
>> everything works perfectly, but relative links (eg. file://abc.xyz)
>> always fail with a "not an *absolute* URL" error.
> 
> The links will be saved als relative links in the file. Try to move the
> file to another folder - together with the other documents. It will work.
> 
> Have a look in the *.odt-file in content.xml:
>  will open the document Bilder_gross.odt, which is in a subfolder of the
> document I have created.
> 
> For documents you could set in the further settings for a Hyperlink:
> Text: "My Document". Then there will be shown only the name "My
> Document" for the document. Not the absolute path to the file, which is
> saved only for the shown text in the document, not for the real path to
> the file. This information of the path is misleading.
> 
> Regards
> 
> Robert

Hi Robert,

Many thanks for taking the time to reply.

If you look at my original post and my reply to Regina the odt file and
the hyperlinked files are are already in the same directory, so I see no
reason why moving them to another location would change anything.

It really doesn't matter what appears in content.xml. The critical point
is that keyboard Ctrl+click on the hyperlink in the odt file generates a
"not an *absolute* URL" error.

Sorry if I have misunderstood or misinterpreted the explanation you and
Regina have kindly given, but I need to clearly explain this for
inexperienced users in the next edition of the official LibreOffice
Writer Guide.

Kind Regards
Dave


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Remy Gauthier
Hi,
Does not seem to work with something like file://./abc.xyz either.Rémy.
Le samedi 19 septembre 2020 à 15:33 +0100, Dave Barton a écrit :
> I am trying to create a Writer document with a number of links to
> filesin the same directory as the odt file itself. Using absolute
> pathseverything works perfectly, but relative links (eg.
> file://abc.xyz)
> always fail with a "not an *absolute* URL" error.
> TIA
> Dave
> PS. Apologies if this is a duplicated post.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread DaveB
On 19/09/2020 19:56, Regina Henschel wrote:
> Hi Dave,
> 
> please excuse, same in English:

No problem. Your English is a million times better than my tiny
understanding of German.

> Regina Henschel schrieb am 19-Sep-20 um 20:47:
>> Hi Dave,
>>
>> Dave Barton schrieb am 19-Sep-20 um 16:33:
>>> I am trying to create a Writer document with a number of links to files
>>> in the same directory as the odt file itself. Using absolute paths
>>> everything works perfectly, but relative links (eg. file://abc.xyz)
>>> always fail with a "not an *absolute* URL" error.
>>
> 
> You create the hyperlink with Ctrl+K and then Document?
> 
> Do not try to manually enter the link, but _always_ use the button at
> the right side of the Target input field. Of cause the target needs to
> be already in the same folder as the text file.
> 
> Be not confused by the shown text. It does not show, what is stored in
> the file. The link is stored as relative. Such links are usually stored
> as relativ, even if not in the same folder. Only if a target is on a
> different drive, the link is absolute.
> 
> If you are unsure about the saved text, open the file e.g. with 7Zip and
> look into the content.xml. You will find the link starting with ../
> 
> Kind regards
> Regina

Hi Regina,

Many thanks for taking the time to reply.

The odt document and the linked files are all in the same local directory.

I open the hyperlink dialog either by the menu, toolbar or keyboard
Ctrl+K. I do not manually enter the link. In the hyperlink dialog I
select the "Open File" button to the right of "Document > Path", see:
http://www.mediafire.com/view/33hc7qwbjtc7dlp/Hyperlink_Dialog.png/file
Selecting the file from the open file dialog ALWAYS adds the full
(ABSOLUTE) path to the hyperlink in the document.

Maybe I have misunderstood or misinterpreted your explanation, but I
cannot find anything in the hyperlink dialog that provides an option to
create a RELATIVE hyperlink to to another file.

I should add that part of my reason for asking this question is that if
I can get this to work it will form the basis of a section in the next
edition of our official Writer Guide, so so telling our readers to unzip
odt files is definitely not an acceptable option.

Thanks & Kind Regards
Dave


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Robert Großkopf
Hi Dave,

> I am trying to create a Writer document with a number of links to files
> in the same directory as the odt file itself. Using absolute paths
> everything works perfectly, but relative links (eg. file://abc.xyz)
> always fail with a "not an *absolute* URL" error.

The links will be saved als relative links in the file. Try to move the
file to another folder - together with the other documents. It will work.

Have a look in the *.odt-file in content.xml:
https://www.familiegrosskopf.de/robert


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Regina Henschel

Hi Dave,

please excuse, same in English:

Regina Henschel schrieb am 19-Sep-20 um 20:47:

Hi Dave,

Dave Barton schrieb am 19-Sep-20 um 16:33:

I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.




You create the hyperlink with Ctrl+K and then Document?

Do not try to manually enter the link, but _always_ use the button at 
the right side of the Target input field. Of cause the target needs to 
be already in the same folder as the text file.


Be not confused by the shown text. It does not show, what is stored in 
the file. The link is stored as relative. Such links are usually stored 
as relativ, even if not in the same folder. Only if a target is on a 
different drive, the link is absolute.


If you are unsure about the saved text, open the file e.g. with 7Zip and 
look into the content.xml. You will find the link starting with ../


Kind regards
Regina


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Regina Henschel

Hi Dave,

Dave Barton schrieb am 19-Sep-20 um 16:33:

I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.


Du erzeugst den Hyperlink mit Strg+K und dann Dokument?

Versuche nicht den Link von Hand einzugeben sondern benutze _immer_ den 
Dateiauswahl-Button rechts vom Sprungziel-Eingabefeld. Dazu muss die zu 
verlinkende Datei natürlich schon mit der Textdatei zusammen im gleichen 
Ordner liegen. Lass dich nicht von der Anzeige täuschen. Sie zeigt nicht 
den gespeicherten Text. In der Datei ist der Link relativ gespeichert. 
Solche Links sind eigentlich immer relativ, außer der Weg geht über 
Laufwerksgrenzen hinaus.


Wenn du nicht sicher bist, was dort gespeichert ist, dann öffne die 
Datei z.B. mit 7Zip und gucke in die content.xml hinein.


Mit freundlichen Grüßen
Regina

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Dave Barton
On 19/09/2020 17:55, Luuk wrote:
> 
> On 19-9-2020 16:33, Dave Barton wrote:
>> I am trying to create a Writer document with a number of links to files
>> in the same directory as the odt file itself. Using absolute paths
>> everything works perfectly, but relative links (eg. file://abc.xyz)
>> always fail with a "not an *absolute* URL" error.
>>
>> TIA
>>
>> Dave
>>
>> PS. Apologies if this is a duplicated post.
> 
> 
> you need 3 '/', see: https://en.wikipedia.org/wiki/File_URI_scheme
> 
> 
> I should be: file:///abc.xyz
> not: file://abc.xyz

No. Exactly the same error message.


-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Luuk


On 19-9-2020 16:33, Dave Barton wrote:

I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.

TIA

Dave

PS. Apologies if this is a duplicated post.



you need 3 '/', see: https://en.wikipedia.org/wiki/File_URI_scheme 



I should be: file:///abc.xyz
not: file://abc.xyz


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


[libreoffice-users] Create a relative hyperlink to file?

2020-09-19 Thread Dave Barton
I am trying to create a Writer document with a number of links to files
in the same directory as the odt file itself. Using absolute paths
everything works perfectly, but relative links (eg. file://abc.xyz)
always fail with a "not an *absolute* URL" error.

TIA

Dave

PS. Apologies if this is a duplicated post.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy