Hi Volker,
Is it so that we have to provide the callback function to specify the
resource from where the library would read the data like file system in
case we are using tables?
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
passed string. I din't provide the callback function to specify the
resource from where it should read. Could you please guide me through
the process of providing the 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 the code that writes into the logs.
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 Guptasystem on
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:Actually liblouis is a very small part of my project and putting file
I wan to use liblouis for my own braille display device which hasChanging liblouis to read from memory might be doable but it almost
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 the files.
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 used forconsidering this
putting other parts of my entire project's code. While I am still
option of putting file system on flash, could you please also guide methrough
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.org��u��*m���~�^������h�yhiحjwe�y,��k�7����z�(��m����&��org=