How fun! Good job Karl, nice example ... shows the power of what you can do
with embedding XEPOUT as an image.
Too bad this is a background image, we have done several projects like this
where we actually generate the XEPOUT as an instream image with XSLT. This
allows you to create formulas for the tweaks and pass things like font-size,
family and the other tweaks in as params to a template.
Karl sent me the PDF, it looks perfect to me.
Kevin Brown
RenderX
-----Original Message-----
From: Karl Stubsjoen [mailto:stubsjoen@renderx.com]
Sent: Monday, January 24, 2011 8:21 PM
To: kevin@renderx.com; 'RenderX Community Support List'
Subject: RE: [xep-support] Re: Indenting 2nd through last lines of a
paragraph with ">>>" character
Dan,
We managed to come up with a possible solution for you which involves using
XEP intermediate format as a background-image in your document.
Here's a quick FO that uses an xep intermediate file as a background image
that is the triple arrow comment syntax you are looking for.
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:rx="http://www.renderx.com/XSL/Extensions" font-family="Helvetica"
font-size="12pt">
<fo:layout-master-set>
<fo:simple-page-master master-name="master">
<fo:region-body margin=".5in"></fo:region-body>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="master">
<fo:flow flow-name="xsl-region-body">
<fo:block-container width="2.3in"
background-image="url('triplearrow.xep')"
rx:background-content-type="application/xepout"
background-repeat="repeat-y">
<fo:block text-indent="-.35in" start-indent=".35in">
<fo:inline background-color="white">This is some text
that will wrap and when it wraps I want to have some characters in front of
each line after the first.</fo:inline>
</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
Here is the "triplearrow.xep" intermediate format:
<xep:document xmlns:xep="http://www.renderx.com/XEP/xep" producer="XEP 4.18
build 20100322" creator="Unknown" author="Unknown" title="Untitled">
<xep:page width="25024" height="14400" page-number="1" page-id="1">
<xep:word-spacing value="0"/>
<xep:letter-spacing value="0"/>
<xep:font-stretch value="1.0"/>
<xep:font family="Helvetica" weight="400" style="normal" variant="normal"
size="12000"/>
<xep:gray-color gray="0.0"/>
<xep:text value=">>>" x="1300" y="4000" width="21024"/>
</xep:page>
</xep:document>
A few comments regarding "triplearrow.xep":
It assumes a matching font size and family as the paragraph you wish to add
this background to. The example here is a font-family of Helvetica who's
font-size is 12pt (XEP Units: 1000units per Pt = 12000). The y-value for
the ">>>" text line is set at 4000 matching the dominant baseline,
and the overall height (14400) is the exact Y height of one line for this
font and font-size.
If you have a different font and/or size you will need to adjust these
values. For example, we adjusted x-value for ">>>" from 0 to 1300
to give a slightly indented visual effect and we played with the y-value to
find the correct baseline. One more hint is, we determined the overall
height of the triplearrow document by looking at two different y-values in
the intermediate format and just subtracted the two.
Happy formatting!
Karl..
Karl Stubsjoen
Senior Sales Engineer / Professional Services RenderX, Inc. (Phoenix, AZ)
Got XML?
Get RenderX!
The Leader in XML to Print Technology
+1 (925) 392-0011 Direct
+1 (602) 451-6157 Cell +1 (650) 328-8008 Fax
stubsjoen@renderx.com http://www.renderx.com%a0%a0
-----Original Message-----
From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Kevin Brown
Sent: Monday, January 24, 2011 8:04 PM
To: 'RenderX Community Support List'
Subject: [xep-support] Re: Indenting 2nd through last lines of a paragraph
with ">>>" character
Wow a brain teaser ... hmm. One thought came to my mind ...
Background image (very properly sized for proper line height) in a
fo:block-container with background-repeat="repeat-y"?
First line outdent and white background <fo:inline> for first few words to
obscure the ">>>" of the first line?
If you ran a hand created sample first -- you could make the background
image from the Intermediate file so you know the exact line height. Would
only work for a fixed line-height.
Worth a try.
Kevin Brown
RenderX
-----Original Message-----
From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Dan Ochs
Sent: Monday, January 24, 2011 6:26 PM
To: RenderX Community Support List
Subject: [xep-support] Indenting 2nd through last lines of a paragraph with
">>>" character
Hi everyone, do you know of the construct that I could use to show a string
like ">>>" in front of lines 2 through the end of a paragraph of text? I
know that I can most likely use the XEP intermediate format, but I would
rather not if I don't have to. Does anyone know of a construct that will
let me do this?
For instance, I would want a paragraph to look like:
This is some text that will wrap
>>> and when it wraps I want to
>>> have some characters in
>>> front of each line after the
>>> first.
Thanks!
Dan
!DSPAM:87,4d3e34c163736047744349!
_______________________________________________
(*) 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
_______________________________________________
(*) 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 Mon Jan 24 20:28:09 2011
This archive was generated by hypermail 2.1.8 : Mon Jan 24 2011 - 20:28:10 PST