Re: [xep-support] Incorrect page margins when writing-mode="rl-tb"

From: Bob Stayton <bobs@sagehill.net>
Date: Tue Apr 21 2009 - 09:13:38 PDT

Hi Ben,
Actually, I think that note in Section 6.4.13 reinforces my point rather than contradicts it. Perhaps my example was confusing because I switched two things. I switched both the writing mode and the margins. If I had switched just writing mode the effect would be more obvious.

The problem in XEP is that when writing-mode="rl-tb", then "margin-left" incorrectly appears on the right side of the page. My reading of the spec in both sections is that "left" means "left", and is not dependent on the writing mode. It is the "start" properties mean "left" or "right" depending on the writing-mode.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

  ----- Original Message -----
  From: ben.m.wynn@rrd.com
  To: xep-support@renderx.com
  Sent: Tuesday, April 21, 2009 6:25 AM
  Subject: Re: [xep-support] Incorrect page margins when writing-mode="rl-tb"

  Hi Bob,

  I've looked over Section 5.3 of the spec, but Section 6.4.13 seems to trump it... it says that such mappings don't apply to the simple-page-master.

  Specificly:
  http://www.w3.org/TR/xsl/
  Section 6.4.13: simple-page-master

  """
  Note:
  The reference points for the page-viewport-area content-rectangle are in terms of the "top", "bottom", "left", and "right" rather than "before-edge", "after-edge", "start-edge", and "end-edge" because users see the media relative to its orientation and not relative to the writing-mode currently in use.

  """
  (bolding is from the spec, not mine)

  -Ben Wynn

  owner-xep-support@renderx.com wrote on 04/20/2009 06:25:09 PM:

> Hi,
> I don't think there was a response to this bug report. Is this something
> that will be addressed?
>
> Bob Stayton
> Sagehill Enterprises
> bobs@sagehill.net
>
>
> ----- Original Message -----
> From: "Bob Stayton" <bobs@sagehill.net>
> To: <xep-support@renderx.com>
> Sent: Friday, March 06, 2009 2:43 AM
> Subject: [xep-support] Incorrect page margins when writing-mode="rl-tb"
>
>
> >I believe I have found a bug in XEP's interpretation of margin-left and
> > margin-right on an fo:simple-page-master when the writing-mode="rl-tb".
> >
> > I attach two FO files that illustrate the problem:
> >
> > test-lr.fo is an FO file with writing-mode="lr-tb" on the fo:root
> > element,
> > and margin-left="1.5in" margin-right="0.5in" on the fo:simple-page-master
> > with master-name="body-first"
> >
> > test-rl.fo is an FO file with writing-mode="rl-tb" on the fo:root element,
> > and margin-left="0.5in" margin-right="1.5in" on the fo:simple-page-master
> > with master-name="body-first"
> >
> > Note that the values of the left and right margins are swapped between the
> > two files.
> >
> > I also attach the PDF outputs:
> >
> > xep-lr.pdf shows the first page with a left margin of 1.5in and writing
> > mode left-to-right
> >
> > xep-rl.pdf shows the first page with a left margin of 1.5in and writing
> > mode right-to-left
> >
> > Note that the margins are not swapped in the PDF outputs.
> > I believe xep-rl.pdf should have a left margin of 0.5in, not 1.5in. The
> > XSL-FO spec section 5.3 says that when writing-mode is rl-tb then left
> > maps
> > to end and right maps to start. That is not the case in the PDF files I
> > have attached.
> >
> > Is this a known problem?
> >
> > Bob Stayton
> > Sagehill Enterprises
> > bobs@sagehill.net
> >
> >
>
> -------------------
> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
> in the body of the message to majordomo@renderx.com from the address
> you are subscribed from.
> (*) By using the Service, you expressly agree to these Terms of Service
> http://www.renderx.com/terms-of-service.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Tue Apr 21 09:53:28 2009

This archive was generated by hypermail 2.1.8 : Tue Apr 21 2009 - 09:53:29 PDT