[brailleblaster] Re: Saving and input

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 4 Jan 2013 09:15:33 -0600

The translateString method takes input from memory and delivers output 
to memory. However, it is intended for relatively small inputs. A 
derivative of it will be used in dynamic translation. It could be 
expanded to handle several MB. 

John

On Fri, Jan 04, 2013 at 01:22:02PM +0000, Keith Creasy wrote:
> Probably best not to address an internet URL from LibLouisUTDML. I take it 
> that for now LibLouisUTDML requires that input is from a file on disk? Would 
> it be that hard to fix it so that input can be via a memory buffer of some 
> sort?
> 
> 
> 
> 
> 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 John J. Boyer
> Sent: Thursday, January 03, 2013 4:26 PM
> To: brailleblaster@xxxxxxxxxxxxx
> Subject: [brailleblaster] Saving and input
> 
> Two methods in Semantics.java have been updated to make saving a document 
> more flexible. saveWorkingFile and saveEnhanced document now take the 
> complete path to a file as a parameter. The first saves the working document 
> complete with UTDML. The second removes UTDml but keeps all editing changes 
> and "locked" braille which has been moved into the document.
> 
> On input the makeDocumentModel method still takes a file generated by 
> liblouisutdml to which UTDML markup has been added. This will probably be a 
> temparary file. It is not needed once the document has been parsed. 
> 
> I think it is possible to add a function to liblouisutdml to retrieve a file 
> from the Internet. This would be called something like translateURL 
> 
> Perhaps something could also be added to the Java bindings to handle an 
> InputStream.
> 
> John
> 
> --
> John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
> 
> 

-- 
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: