[xep-support] Re: PDF from DocBook FO Line numbering ordinary text, not just 'verbatim environments'

From: Kevin Brown <kevin@renderx.com>
Date: Wed Aug 27 2014 - 10:44:22 PDT

David:

There are two ways using RenderX to do line numbers. One is an extension
built-in to the engine that allows you to create a "ruler". It isn't true
line numbering. The other is true line-numbering of text, has some
limitations and requires a custom process to go from FO->RenderX
Intermediate Format, then modifying that Intermediate Format, then produce
the final output.

Here I will post a little information about rx:ruler and in a later post I
will add the other as a "CoolTool" series.
I have also attached a zip file with documentation and examples.

Implementation uses one empty extension element: <rx:ruler>. Like all other
XEP extensions to XSL 1.0
recommendation, it is placed into a separate namespace:
xmlns:rx="http://www.renderx.com/XSL/Extensions".
This element must be first child of a <fo:block-container> element. It
creates a vertical sequence of uniformly
spaced consecutive numbers attached to the start-edge side of the parent
block-container (left side for
Western scripts).

Line numbers are put into a special block-area that extends to the whole
height of the block-container in
the block progression direction; we call it line-number-area. In the inline
progression direction, its extent
is constrained by the respective attributes on <rx:ruler>:
inline-progression-dimension or width. The line-number-area
overlays areas generated by its parent <fo:block-container> element, and
does not affect
formatting of the block-container contents.

Because it "attaches" to a block-container, you can use it to number areas
and not others.

Attached is the documentation and a few samples that show the capabilities.

Kevin Brown
Executive Vice President, Sales & Marketing RenderX, Inc.
(650) 327-1000 Direct
(650) 328-8008 Fax
(925) 395-1772 Mobile
skype:kbrown01
kevin@renderx.com
sales@renderx.com
http://www.renderx.com

-----Original Message-----
From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of
David Clunie
Sent: Wednesday, August 27, 2014 5:04 AM
To: RenderX Community Support List
Subject: [xep-support] PDF from DocBook FO Line numbering ordinary text, not
just 'verbatim environments'

Hi

I was wondering if RenderX had an option to add line numbers for all the
text in a document (so that reviewers can comment on specific parts of the
document with precise references, without having to manually count line
offsets from the nearest section label, etc).

I asked about this on the DocBook list but someone there pointed out that
since the DocBook stylesheets produced FO and it was the FO renderer that
lays out the lines, it had to be done at the rendering step (or in
post-processing afterwards).

David

PS. Or to put it another way, I am looking for something like Microsoft
Word's line numbering feature, but better, in that ideally table lines would
also be numbered (which they are not in Word).

PPS. Either restarting numbering with a page, or continuous from the start
would be fine for my use case.

!DSPAM:87,53fdc93310105201948168!

_______________________________________________
(*) To unsubscribe, please visit
http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service
http://w ww.renderx.com/terms-of-service.html

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html

Received on Wed Aug 27 17:58:03 2014

This archive was generated by hypermail 2.1.8 : Wed Aug 27 2014 - 17:58:09 PDT