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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Mario Madunic

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=”” />.

 

Marijan (Mario) Madunic

Publishing Specialist

New Flyer Industries



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.
Reply | Threaded
Open this post in threaded view
|

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

G. Ken Holman
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:[hidden email]
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


Reply | Threaded
Open this post in threaded view
|

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

Mario Madunic
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 />
</xsl:for-each>

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: [hidden email] [mailto:[hidden email]] On Behalf Of G. Ken Holman
Sent: Monday, February 14, 2011 12:56 PM
To: [hidden email]
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:[hidden email]
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.
Reply | Threaded
Open this post in threaded view
|

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

Mario Madunic
The for-each won't work as it will force all blocks that contain content into the left most columns, hence making the columns unbalanced. Didn't think it through completely.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Mario Madunic
Sent: Monday, February 14, 2011 1:23 PM
To: G. Ken Holman; [hidden email]
Subject: RE: PDF screen reader and how to tag a block to be ignored by it

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 />
</xsl:for-each>

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: [hidden email] [mailto:[hidden email]] On Behalf Of G. Ken Holman
Sent: Monday, February 14, 2011 12:56 PM
To: [hidden email]
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:[hidden email]
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.

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.
Reply | Threaded
Open this post in threaded view
|

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

G. Ken Holman
At 2011-02-14 13:35 -0600, Mario Madunic wrote:
>The for-each won't work as it will force all blocks that contain
>content into the left most columns, hence making the columns
>unbalanced. Didn't think it through completely.

Actually, I thought the zero-height blocks would not have changed the
end result in any way.

Remember you can annotate the XSL-FO constructs with private
attributes using your own namespace, then a post-XSLT filter (again
using XSLT) can then filter those out to produce a PDF for screen
readers that is different than the unfiltered XSL-FO for the page reader.

I hope this helps.

. . . . . . . . . Ken

>Marijan (Mario) Madunic
>Publishing Specialist
>New Flyer Industries
>
>-----Original Message-----
>...
><xsl:for-each select="0 to $extraRowsNeeded">
>    <fo:block />
></xsl:for-each>
>
>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?


--
Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
G. Ken Holman                 mailto:[hidden email]
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


Reply | Threaded
Open this post in threaded view
|

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

Mario Madunic
Ended up using a background image of the column borders on all pages and defining no column borders for the columns themselves. Not a great solution but does the trick.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of G. Ken Holman
Sent: Monday, February 14, 2011 2:13 PM
To: [hidden email]
Subject: RE: PDF screen reader and how to tag a block to be ignored by it

At 2011-02-14 13:35 -0600, Mario Madunic wrote:
>The for-each won't work as it will force all blocks that contain
>content into the left most columns, hence making the columns
>unbalanced. Didn't think it through completely.

Actually, I thought the zero-height blocks would not have changed the
end result in any way.

Remember you can annotate the XSL-FO constructs with private
attributes using your own namespace, then a post-XSLT filter (again
using XSLT) can then filter those out to produce a PDF for screen
readers that is different than the unfiltered XSL-FO for the page reader.

I hope this helps.

. . . . . . . . . Ken

>Marijan (Mario) Madunic
>Publishing Specialist
>New Flyer Industries
>
>-----Original Message-----
>...
><xsl:for-each select="0 to $extraRowsNeeded">
>    <fo:block />
></xsl:for-each>
>
>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?


--
Contact us for world-wide XML consulting & instructor-led training
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
G. Ken Holman                 mailto:[hidden email]
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.