Hi Vladimir,

Vladimir Bulatov wrote:

Hello everybody,
  We are using Batik for writing accessible SVG viewer to be
used by blind computer users to access to graphical information.
We use special tactile graphics printer as output device and
special touch screen as input device and replacement for
a mouse. This is just some background info to explain, that
we may have unusual requirements.

The problem we currently have with Batik is to find a way to
print text in a custom way. Text for blind users should be
printed in a special way. Most popular is Braille code, when
every character is represented by combination of dots on 2 by 3
or 2 by 4 matrix with 1/10 inch distance between dots.
This size roughly corresponds to 29 or 36 points font size.
Other ways to represent text are possible depending on characters
size. But, in any case, tactile representation should be very much
different from visual representation.

We need an advise on the best way to customize Batik
to allow special text rendering. Visual representation should
remain the same to be useful for sighted user. Only printed
copy should be different. Ideally we would like to be to have
the ability to pass text strings directly to printer driver
(we are on windows platform and have quite sophisticated
driver, which converts text into Braille itself), bypassing
Batik rasterizer.

I'm not sure I fully understand what you mean by 'pass text strings directly to print driver'. This is Java we never talk to something as low level as a driver. We do talk to Java's implementation of Graphics2D for Print. _Most_ of our text is drawn using 'drawGlyphVector' in cases where the text is stroked, or based on an SVG Font we may draw shapes to the Graphics2D.

  If you want to 'reimplement' text most of the work
is done by the SVGTextElementBridge in the org.apache.batik.bridge
package. However if all you want to do is extract the text
from the document I wouldn't bother with Batik I
would just use a little XSLT - so I imagine you want
something more than just "text strings".

  That all said my initial response on how to modify output
for braille would be to use something like a user style sheet, with
an '@media braille' rule.  The Batik browser allows you to set
the CSS Media in use for display.

Any advice would be appreciated.

All the best,
       Vladimir Bulatov



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to