RE: [g-a-devel]Re: Ghost-View(ggv): Extracting text from GtkGs Widget
- From: "Mukund" <mukund rajagopalan wipro com>
- To: "'Jaka Mocnik'" <jaka activetools si>, "'Rajkumar Sivasamy'" <rajkumar siva wipro com>
- Cc: <jrb redhat com>, <jaka gnu org>, <gnome-accessibility-devel gnome org>
- Subject: RE: [g-a-devel]Re: Ghost-View(ggv): Extracting text from GtkGs Widget
- Date: Mon, 18 Feb 2002 11:34:42 +0530
Jaka, Raj,
> well, this is actually postscript code piped to ghostscript. to
> correctly extract text from it, you'd have to write a full postscript
> interpreter, ie clone ghostscript in ggv, which would be quite a
> difficult task... so I suppose ggv will never be really accessible.
How about using some tool (within the code) like ps2html or ps2ascii or
pstotext and extract the text info?
Am not sure but if ggv sends postscript code to gs one page at a time,
pass the same content to the tool to get the corresponding text.
Notes:
(1) I haven't really used the above tools extensively. Tried running
ps2ascii and it does work. But this may not be something you want to use
since the words seem to be split in the output. Unless there are options
to the command not to do it. But pstotext may do better rendering so
check that out.
(2) You may want to embed the functionality of the tool into the ggv/gs
program (instead of using the command-line from within the code). This
would remove the dependency of the user having the command(s) installed
in his/her setup.
(3) There are other things like you could use a text window to present
the info on the screen (instead of the drawing area). This, *only* if
accessibility is sought by the user. In other words, Gail loaded. This
way, the accessibility info is made available out-of-box. But that means
some work, which anyway, I guess, you will end up doing.
But these are just my thoughts. Let me know if am overlooking something
in the process..
Cheers,
Mukund.
begin 666 Wipro_Disclaimer.txt
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BI$:7-C;&%I;65R*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ"B @(" @( T*#0H-"DEN9F]R
M;6%T:6]N(&-O;G1A:6YE9"!I;B!T:&ES($4M34%)3"!B96EN9R!P<F]P<FEE
M=&%R>2!T;R!7:7!R;R!,:6UI=&5D#0II<R G<')I=FEL96=E9"<@86YD("=C
M;VYF:61E;G1I86PG(&%N9"!I;G1E;F1E9"!F;W(@=7-E(&]N;'D 8GD@=&AE
M#0II;F1I=FED=6%L(&]R(&5N=&ET>2!T;R!W:&EC:"!I="!I<R!A9&1R97-S
M960N(%EO=2!A<F4@;F]T:69I960 =&AA="!A;GD-"G5S92P 8V]P>6EN9R!O
M<B!D:7-S96UI;F%T:6]N(&]F('1H92!I;F9O<FUA=&EO;B!C;VYT86EN960@
M:6X =&AE($4M34%)3 T*:6X 86YY(&UA;FYE<B!W:&%T<V]E=F5R(&ES('-T
M<FEC=&QY('!R;VAI8FET960N"@T*#0H-"B J*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ
&*BHJ* T*
end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]