Biblos Menu

 

SDK - Software Development Kit

Software developers creating assistive technologies can now easily give their users the ability to print in braille: simply follow a few straightforward instructions.

Some of the benefits of integrating Biblos braille printing

Biblos is always installed in the system "Program Files" folder: ..\DIGRANDE\BIBLOS5
The "Program Files" folder should always be determined using the system's own functions, never by using hard-coded paths. Biblos can therefore be launched by running the "Biblos.exe" executable file.
If the path and executable file do not exist, this means that Biblos is not installed on the system. Checking for the presence of the "Biblos.exe" file is useful for determining whether Biblos is installed. An example of code for retrieving the Biblos installation path, if present, is provided at the end of this document.
Biblos can also be launched using only its name from the system shell. For example, you can open the Windows "Run" dialog and enter the command "Biblos". This will launch Biblos. The name "Biblos" can also be used with the "ShellExecute" API function.

To automate opening and braille printing of documents, "Biblos.exe" accepts the following parameters:

Biblos.exe -p "%1" "%2"

How to Integrate Braille Printing into Your Software

When the User Clicks the Braille Print Command

A Delphi Function That Returns the Path to Biblos 5, If Installed


uses
Winapi.Windows, Winapi.Shlobj, System.Sysutils;

Function getBiblosPath: string;

{}

Function getBP(cs: integer): string;
const
BiblosExe5 = 'digrande\biblos5\biblos.exe';
var
idl: pItemIdlist;
p: pChar;
begin
Result:= '';
Getmem(p,max_path);
Fillmemory(p,max_path,0);
if succeeded(shgetspecialfolderlocation(0, cs, idl)) then
if shgetpathfromidlist(idl,p) then
begin
Result:= IncludeTrailingPathDelimiter(string(p))+ BiblosExe5;
If fileExists(Result) = false then result:= '';
End;
Freemem(p,max_path);
End;

{}

Begin
Result:= getBP(csidl_program_files);;
If Result = '' then
Result:= getBP(csidl_program_filesx86);;
End;


A Delphi Function That Returns True if Biblos Is Running


Uses
WinApi.Windows;

Function IsBiblosRun: boolean;
begin
result:= not(FindWindow('TBiblosHidden',nil)=0);
end;