W3C home > Mailing lists > Public > www-xsl-fo@w3.org > February 2011

RE: PDF screen reader and how to tag a block to be ignored by it

From: Mario Madunic <Mario_Madunic@newflyer.com>
Date: Mon, 14 Feb 2011 13:23:00 -0600
To: "G. Ken Holman" <gkholman@CraneSoftwrights.com>, "www-xsl-fo@w3.org" <www-xsl-fo@w3.org>
Message-ID: <246DE0E0EA0D6942B5426733426721228280CB@NFIL050.newflyer.com>
What I'm trying to do is straight FO to PDF. I want to add a bunch of empty fo:blocks output for style reasons (will get to that in a bit) to be ignored by a screen reader.

Here is the situation (using AHF 5 to create the PDF).

I have an index of part numbers in 3 columns and the columns have borders. When there are not enough entries to fill an entire page the border does not reach the bottom of the page. Not what is wanted. So I am creating a variable that contains a number of how many items are required to allow the column borders to reach the bottom of the page. Then use the following:

<xsl:for-each select="0 to $extraRowsNeeded">
   <fo:block />

So I was hoping there was an attribute that can define the blocks as fluff and no need to be read out. Stylistically bad and not screen reader unfriendly but what are other solutions?

This all being said. I have some code someplace that creates a balanced table of entries over an unlimited amount of pages and used a page bg for the column borders. Thus no need to add empty rows but don't know where it is at the moment.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On Behalf Of G. Ken Holman
Sent: Monday, February 14, 2011 12:56 PM
To: www-xsl-fo@w3.org
Subject: Re: PDF screen reader and how to tag a block to be ignored by it

At 2011-02-14 12:42 -0600, Mario Madunic wrote:
>Is it possible to mark a block in FO so that a
>screen reader will ignore it (in this case PDF)?
>I’m thinking something in the line of xhtml
><img src=”some.jpeg” alt=”” />.

Can you clarify this a bit, please?

Do you want the FO content to show up when the
PDF file is in Adobe Reader but not show up when
the same PDF file is in a screen reader?

If you are producing something like ePub from
XHTML then you simply include the content in the
XHTML and a different stylesheet for the XSL-FO for the PDF.

. . . . . . . . . Ken

Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/

G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.
Received on Monday, 14 February 2011 19:23:40 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:34 UTC