[brailleblaster] Re: Internet connection required?

  • From: "Vic Beckley" <vic.beckley3@xxxxxxxxx>
  • To: <brailleblaster@xxxxxxxxxxxxx>
  • Date: Mon, 15 Jul 2013 08:49:08 -0400

Keith,

Can I download the DTD from the Internet to place somewhere on my system? If
not, how would I have a local copy?


Best regards from Ohio,

Vic


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Keith Creasy
Sent: Monday, July 15, 2013 8:29 AM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Internet connection required?

Whether a network connection is controlled by the document, not the
software. So, if the document only has a PUBLIC URL then the parser is going
to try to resolve it and that fails without a network connection. If it
includes a SYSTEM DTD then it looks on the local path first. I'm not sure
why so many of the documents only use a PUBLIC URL but they do. As I've
said, you can edit the document and add the DTD to the file set. You really
can't fix this any other way.

Whether embossing is primary or not it does need to do it correctly. 
Keith Creasy
Software Developer
American Printing House for the Blind
KCreasy@xxxxxxx
Phone: 502.895.2405
Skype: keith537


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Larry Skutchan
Sent: Monday, July 15, 2013 8:25 AM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Internet connection required?

I disagree with most people on two points here.
1. Not requiring a network connection makes sense. The software could use a
local copy before checking the internet.
2. While embossing is important, much of the work done translating textbooks
will likely be distributed in electronic format. We still need a good
rendering engine, but that is another story.


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Keith Creasy
Sent: Monday, July 15, 2013 8:05 AM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Internet connection required?

The answer is yes unless you want to edit the doctype processing
instruction. I would have prefered that most if not all documents use a
SYSTEM URL but but apparently most seem to think requiring a network
connection isn't a problem.

-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Vic Beckley
Sent: Monday, July 15, 2013 7:58 AM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Internet connection required?

Thanks for the info. So I guess that the short answer for most documents is
yes an Internet connection is required.


Best regards from Ohio,

Vic


-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Keith Creasy
Sent: Monday, July 15, 2013 7:35 AM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Internet connection required?

Hi Vic and John.

Most of the DAISY files I have encountered do use a "PUBLIC" URL for the DTD
and these do fail. We could make them ignore that but it would cause other
problems. The DTD is what is used to determine, among other things, what
whitespace is part of the document.

Some of them do use a "system" DTD which means that the DTD is somewhere on
the local file system, usually in the directory with the book. I haven't
worked with Word-to-DAISY and so don't know what if anything you might do to
force it to use a system DTD.






You can of course edit it by hand. The system DTD declaration, actually a
"processing instruction" looks like:

<!doctype dtbook SYSTEM "dtbook-2005-3.dtd">



Keith Creasy
Software Developer
American Printing House for the Blind
KCreasy@xxxxxxx
Phone: 502.895.2405
Skype: keith537

-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of Vic Beckley
Sent: Saturday, July 13, 2013 2:36 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Internet connection required?

John,

I tried opening two different files with the same result. They were just the
normal files I have been testing with that were created with the DAISY for
Word plug-in. I could attach them if necessary.


Best regards from Ohio,

Vic

-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
Sent: Saturday, July 13, 2013 1:11 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: Internet connection required?

Vic,

It looks like it was trying to access a DTD on the Internet. This shouldn't
happen for all files.

John

On Sat, Jul 13, 2013 at 12:59:05PM -0400, Vic Beckley wrote:
> Is an Internet connection required for BB to work properly? I had my
network
> adapter temporarily disconnected and tried to open an XML file in BB. 
> It wouldn't open and I got the following error:
> 
> ---------------------------
> 
> ---------------------------
> IO error occurred while parsing
> C:\Users\Vic\AppData\Roaming\brlblst\temp\18u31k0\outFile.utd See 
> stack trace.
> ---------------------------
> OK   
> ---------------------------
> 
> I had the following in the console window:
> 
> java.net.UnknownHostException: www.daisy.org
>         at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
>         at java.net.PlainSocketImpl.connect(Unknown Source)
>         at java.net.SocksSocketImpl.connect(Unknown Source)
>         at java.net.Socket.connect(Unknown Source)
>         at java.net.Socket.connect(Unknown Source)
>         at sun.net.NetworkClient.doConnect(Unknown Source)
>         at sun.net.www.http.HttpClient.openServer(Unknown Source)
>         at sun.net.www.http.HttpClient.openServer(Unknown Source)
>         at sun.net.www.http.HttpClient.<init>(Unknown Source)
>         at sun.net.www.http.HttpClient.New(Unknown Source)
>         at sun.net.www.http.HttpClient.New(Unknown Source)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
> Source)
>         at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
> Sour
> ce)
>         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
> Source)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
> urce)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrent
> Entity(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
> Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEnti
> ty(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSou
> rce(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDri
> ver.dispatch(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDri
> ver.next(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$Prolog
> Driver.next(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(U
> nknown Source)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l.scanDocument(Unknown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(Unk
> nown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.DTDConfiguration.parse(Unk
> nown Source)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown So
> urce)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Un
> known Source)
>         at nu.xom.Builder.build(Unknown Source)
>         at nu.xom.Builder.build(Unknown Source)
>         at nu.xom.Builder.build(Unknown Source)
>         at
> org.brailleblaster.wordprocessor.BBDocument.buildDOM(BBDocument.java:
> 133)
>         at
> org.brailleblaster.wordprocessor.BBDocument.setupFromFile(BBDocument.
> java:103)
>         at
> org.brailleblaster.wordprocessor.BBDocument.startDocument(BBDocument.
> java:80)
>         at
> org.brailleblaster.wordprocessor.DocumentManager.initializeAllViews(D
> ocumentManager.java:254)
>         at
> org.brailleblaster.wordprocessor.DocumentManager.openDocument(Documen
> tManager.java:249)
>         at
> org.brailleblaster.wordprocessor.BBMenu$56.widgetSelected(BBMenu.java
> :910)
>         at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown
Source)
>         at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
>         at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
>         at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown
Source)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
>         at
> org.brailleblaster.wordprocessor.WPManager.<init>(WPManager.java:132)
> 
>         at org.brailleblaster.Main.main(Main.java:54)
> The Document Base document tree is empty Main Shell handling Close 
> event, about to dipose the main Display
> 
> c:\newdesign\dist>
> 
> 
> Best regards from Ohio,
> 
> Vic
> 
> 

--
John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities









Other related posts: