Hi all,
I scanned the mailing list archives for this problem and have not found it (maybe it's already been raised, but I could not find it).
I'm experiencing issues with hyperlinks in Ms Word when they are either rendered in html using Abiword or when I import the document into Abiword and view in HTML.
The command I use is: C:\abiword\AbiWord\bin\AbiWord.exe C:\PHP\TEMP\00000000-a714-8652.DOC --to=html --to-name=C:/TSC/files/KB040202/40202.HTML
Abiword 2.6.4
Running on Windows Server 2003.
Documents being converted to HTML are in MS Word 2003.
I also added a bug report: http://bugzilla.abisource.com/show_bug.cgi?id=11813
I'll give you two examples:
Case 1: URL
MS Word:
http://PRTCHQ828
When I convert to HTML using, this hyperlink shows as:
<a href="http%3a//PRTCHQ828"><span style="font-size:11pt;font-family:'Verdana'" xml:lang="en-US" lang="en-US">http://PRTCHQ828</span></a>
What I notice is the %3a which stands for :
I therefore find myself having to do some pre-processing before displaying the HTML content
$HTMLCONTENT = str_replace("%3a",":",$HTMLCONTENT);
Case 2: Hyperlink a file or folder resource
MS Word:
\\xxxx-xx-yyyya\TTT\Problem_Resolution_Team\Pinne\Flash_Pinne_Printers.hta
HTML from Abiword:
<a href="%5c%5c%5c%5cxxxx-xx-yyyya%5c%5cTTT%5c%5cProblem_Resolution_Team%5c%5cPinne%5c%5cFlash_Pinne_Printers.hta"><span style="font-weight:bold;font-size:9pt;font-family:'Verdana';text-decoration:underline" xml:lang="en-US" lang="en-US">\\xxxx-xx-yyyya\TTT\Problem_Resolution_Team\Pinne\Flash_Pinne_Printers.hta</span></a></p>
Again, to fix this I do some pre-processing before displaying the html content:
$HTMLCONTENT = str_replace("%5c%5c",'\\',$HTMLCONTENT);
It would be grand if I didn't have to do any pre-processing. If you have any ideas, let me know :-))) thanks !
BTW I love Abiword, it enables me to render MS Word documents in HTML. It's super great! (I wish AbiCommand were available for Windows...)-----------------------------------------------
To unsubscribe from this list, send a message to
abiword-user-request@abisource.com with the word
unsubscribe in the message body.
Received on Wed Nov 26 14:05:12 2008
This archive was generated by hypermail 2.1.8 : Wed Nov 26 2008 - 14:05:12 CET