Hi Ritika,
It would be a initialization function you have to write yourself. You would
exchange all file based operations in libLouis that reads tables with your
own code that is based on reading the tables from a memory buffer that you
are deliver instead of your table path. It is yours how you want to deliver
it, as a callback function or as a struct or whatever. To do so you have to
dig deep into the code of libLouis, therefore I said this can be done by a
good C programmer that is willingly to dig into this code. Another point:
then you have a special build of LibLouis that is not compatible with future
changes, you need to merge the code base every time you want to update.
Have a nice weekend,
Volker
-----Ursprüngliche Nachricht-----[mailto:liblouis-liblouisxml-
Von: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
bounce@xxxxxxxxxxxxx] Im Auftrag von Ritika Guptamemory
Gesendet: Freitag, 11. September 2015 08:49
An: liblouis-liblouisxml@xxxxxxxxxxxxx
Betreff: [liblouis-liblouisxml] Re: AW: Re: running liblouis on flash
resource
Hi Volker,
Is it so that we have to provide the callback function to specify the
from where the library would read the data like file system in case we areusing
tables?passed
What I was doing till now is just providing my table path to the
lou_charToDots() function and it successfully returned the dot-format of
string. I din't provide the callback function to specify the resource fromwhere it
should read. Could you please guide me through the process of providing thethe
callback function at the initialisation time ?
On 11-09-2015 AM 11:41, Bijewitz, Volker wrote:
Hi Ritika,
I have seen something like you want in the interface of a speech
library. To read table files, you provide a callback function at
intitialisation time that is called by the library if it wants to read
any resource, something like
Void* GetResource(const char* ResourceName,DWORD* ResourceChunkSize);
You need also a function to free the resource again like closing a
file. I would do it in a way that I put a new module to LibLouis to
handle resource allocations. You need to look for functions like
"fopen" and replace this parts of code with your functions that work
in memory instead of accessing the file system. You need also to alter
code that writes into the logs.the
It is a job for a used C-Programmer, not just very easy.
Another question: if you have such a special environment that has no
filesystem, is there a runtime library that fits the needs of
LibLouis? Under windows it has a lot of dependencies to
"Kernel32.dll". You may need a special build at all.
Volker
-----Ursprüngliche Nachricht-----[mailto:liblouis-liblouisxml-
Von: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
bounce@xxxxxxxxxxxxx] Im Auftrag von Ritika Gupta
Gesendet: Freitag, 11. September 2015 05:45
An: liblouis-liblouisxml@xxxxxxxxxxxxx
Betreff: [liblouis-liblouisxml] Re: running liblouis on flash memory
On 10-09-2015 PM 08:42, Christian Egli wrote:
On 09/10/2015 09:21 AM, Ritika Gupta wrote:
I wan to use liblouis for my own braille display device which has
flash memory. But the liblouis source code is written in such a way
that it uses file system for loading table files but the file
system is not present on flash memory. So is there a way I can use
liblouis on my flash memory by using tables in some other form and not
files.pages go
system onChanging liblouis to read from memory might be doable but it almostActually liblouis is a very small part of my project and putting file
seems easier to put a file system on flash memory, see
https://en.wikipedia.org/wiki/Flash_file_system it seems doable.
HTH
Christian
memory may take a large amount of space which could otherwise be usedconsidering this
for putting other parts of my entire project's code. While I am still
option of putting file system on flash, could you please also guidethrough
me
how to change liblouis to read from memory.pages go
Thanks
Ritika
For a description of the software, to download it and links to
project
to http://liblouis.orgu *m ~ ^ h yhiحjwe y, k 7 z ( m & org=
For a description of the software, to download it and links to project
to http://liblouis.org