<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>Hi David,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>In general I agree with you that HTML might be a better
choice for online reading, but the readers require PDFs in this case, so
creating another format is not an option. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>We use CHM and PDF for User guides and PDF for sysadm,
installation and upgrade guides.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>The installation engineers use the PDF both online and
in binders. Mostly they copy commands but occasionally they copy chunks of code,
like this:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>WISE =<BR>(DESCRIPTION =<BR>(ADDRESS_LIST =<BR>(ADDRESS
=<BR>(PROTOCOL = TCP)(HOST = <WISE_HOST>)(PORT =
1521)<BR>)<BR>)<BR>(CONNECT_DATA = (SERVICE_NAME =
WISE)<BR>)<BR>)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>which was copied from a PDF loosing all the indention.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>Btw, I don't have a problem with tabs since we don't use
tabs in our programlistings, but rather with whitespaces which I'd expect would
be available in the PDF.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=421460408-11072005><FONT face=Arial
color=#0000ff size=2>/Kenneth</FONT></SPAN><FONT face=Arial color=#0000ff
size=2></FONT></DIV><!-- Converted from text/plain format -->
<P><FONT
size=2>--------------------------------------------------------<BR>Kenneth
Johansson Technical Documentation
Manager<BR>Sectra Imtec AB<BR>Teknikringen 20
E-mail: ke-joh AT sectra DOT
se<BR>SE-583 30 Linköping Phone: +46 13 23 52
00<BR>SWEDEN
Web: <A
href="http://www.sectra.se/">http://www.sectra.se</A></FONT> </P>
<DIV> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-xep-support@renderx.com
[mailto:owner-xep-support@renderx.com] <B>On Behalf Of </B>David Cramer (Tech
Pubs)<BR><B>Sent:</B> den 8 juli 2005 17:12<BR><B>To:</B>
xep-support@renderx.com<BR><B>Subject:</B> RE: [xep-support] Preserving
whitespace in programlisting output<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=751545714-08072005><FONT face=Arial
color=#0000ff size=2>Kenneth,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=751545714-08072005><FONT face=Arial
color=#0000ff size=2>This doesn't address the details of your actual question,
but my gut tells me that cutting and pasting from pdf to code is not a good
idea. Aside from your issue with tabs, what about listings that don't fit well
on a page (so you break lines with an arrow indicating that you've done
it--the docbook xsls can do this automatically now). One of the reasons we do
our docs in DocBook is to provide pdf (for printing) and html formats. We have
an eclipse infocenter running standalone to serve up all the docs in a
convenient, searchable format to services. From there, they can also get pdfs
or chms of individual docs (e.g. to print a portion or send an individual doc
to somebody) or the whole infocenter for offline use. </FONT></SPAN><SPAN
class=751545714-08072005><FONT face=Arial color=#0000ff size=2>Another
alternative is having the xsls spit out the programlistings as separate text
files in a code samples directory with some naming convention that would make
it easy to go from the pdf to the code sample (then even using callouts in the
listings would be no problem). But if they're reading online anyway,
wouldn't html be a more suitable format? </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=751545714-08072005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=751545714-08072005><FONT face=Arial
color=#0000ff size=2>David</FONT> </SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> owner-xep-support@renderx.com
[mailto:owner-xep-support@renderx.com] <B>On Behalf Of </B>Kenneth
Johansson<BR><B>Sent:</B> Friday, July 08, 2005 8:31 AM<BR><B>To:</B>
Xep-Support<BR><B>Subject:</B> [xep-support] Preserving whitespace in
programlisting output<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial size=2>I'm using
DocBook <programlisting> a lot for showing chunks of code etc. From
what I've deducted from reading on the support mailing list I
gather that tabs in <programlisting> are replaced with a single
whitespace. </FONT></SPAN></DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial size=2>I'm using
whitespaces in my <programlisting> but when I try to select the result
in a PDF I only select the text, not a single whitespace. Is this behavior a
Acrobat Reader "feature" or is it a XEP bug, or is it possible to tweak XEP
to keep the whitespaces? </FONT></SPAN></DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial size=2>This is quite a
serious problem for us since our service engineers wish to copy the
content of these <programlisting>'s and insert it in scripts etc. In
some cases the indention is vital, and when pasting 50 rows of code its
quite irritating to have to reindent the text.</FONT></SPAN></DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial size=2>Best
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=171240313-08072005><FONT face=Arial
size=2>/Kenneth</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV><!-- Converted from text/plain format -->
<P><FONT
size=2>--------------------------------------------------------<BR>Kenneth
Johansson Technical Documentation
Manager<BR>Sectra Imtec AB<BR>Teknikringen 20
E-mail: ke-joh AT sectra DOT
se<BR>SE-583 30 Linköping Phone: +46 13 23 52
00<BR>SWEDEN
Web: <A
href="http://www.sectra.se/">http://www.sectra.se</A></FONT> </P>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>