This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: long strings
- From: Paul Grosso <pgrosso at arbortext dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 07 Mar 2002 08:48:37 -0600
- Subject: Re: DOCBOOK-APPS: long strings
- References: <200203070828.g278Sob12488@d1o982.telia.com>
One should also be able to insert ­ (which is defined in the
character entity files that are part of the DocBook DTD--or you
can just use ­) to insert a discretionary hyphen. This will
cause a hyphen (dash) character to be printed at the end of the line
if a break is taken here.
One can also insert ​ which is the "zero width space" character
which allows a line break here without the insertion of a dash. (This
character may not be implemented as such in all formatters.)
In both cases, if the line isn't broken at that spot, your output
doesn't have an introduced space as would be the case with solution 1.
paul
At 09:48 2002 03 07 +0100, Camille Bégnis wrote:
>Hi Tim,
>
>Three solutions:
>
>1) The quick and dirty: Add a space/newline where you want the line to
>be cutted
>
>2) The tedious and clean: put the long string into another tag like
><parameter> and make sure it is processed with the \url TeX command and
>package.
>
>3) The tricky: reduce the font size for <userinput> ;-)
>
>Camille.
>
>Tim Terlegård a écrit :
>>
>> If I have a very long string it won't be broken down to two or more lines,
>> the last part just dissapears outside the paper (or pdf). I have this:
>>
>> <userinput>$ snmpwalk hostname communitystring
>> host.hrSWInstalled.hrSWInstalledTable.hrSWInstalledEntry.hrSWInstallName</userinput>
>>
>> The last part in the last string will be cut out from the document. How
>> should I solve this? I thought of SBR, but it doesn't seem to be available in
>> <para> or <userinput>.
>>
>> I'm using DSSSL 1.72
>>
>> Thanks,
>>
>> Tim