Re: [fpc-pascal] OS/2 INF help support
Tomas Hajny het geskryf: > remembered it wrongly. I'm happy to be proven wrong. http://owbuilder.malakovi.cz/snapshot/ I downloaded the Linux IPF compiler from here... I don't know how recent that copy is though. > Simple pictures are certainly no problem (although I believe that the INF > format only supports BMP files - no JPG, no GIF or PNG, etc.). However, I > was more referring to more advanced formatting possibilities; yet again, > this may or may not be important depending on your needs and expectations. I do not understand "advanced formatting possibilities"? INF supports only BMP and MET (meta graphics). INF also supports hyperlinks via text and graphics. For the graphics you can also support segmented graphic links -- one image containing various links to different help topics or other help files etc... Similar thing to HTML's image map support. http://tinyurl.com/nvjvdz or http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/ej6c2b00/2.3.2.2.3?SHELF=&DT=19941104154554 What I am doing at the moment is reviewing various help formats so I can implement something that works for fpGUI based applications. I do not limit myself to the exact feature list of previous help formats. The INF is a case in point. If I want to support png images in INF, I will add such support in the viewer and compiler. Obviously, then I will change the help file extension as no to confuse other users thinking the INF I use is the same format as the INF used in OS/2. I'm collecting a feature list for application help. Good compression, speed, size, easy help authoring etc... Obviously I start off with the stock help formats and add my personal needs from there - if the stock help format doesn't support what I want. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OS/2 INF help support
Tomas Hajny het geskryf: > > Probably clear from the previous discussion in the meantime, but anyway - > neither LCL nor Lazarus itself have been ported to OS/2. Yup, sorry to hear that. I'll add OS/2 support as a feature request for fpGUI Toolkit. It's relatively easy to add new backends to fpGUI - at least much less work than LCL as far as I can see. Anyway, that will give me an excuse to dust off my copies of OS/2 2.1, Warp 3.0 Connect (still my favourite release) and Warp v4. Wow, that will bring back good memories. I was a huge OS/2 supporter in the day. :-) How well does FPC support OS/2? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OS/2 INF help support
On Wed, September 9, 2009 09:24, Graeme Geldenhuys wrote: > Tomas Hajny het geskryf: >> >> Probably clear from the previous discussion in the meantime, but anyway >> - >> neither LCL nor Lazarus itself have been ported to OS/2. > > Yup, sorry to hear that. I'll add OS/2 support as a feature request for > fpGUI Toolkit. It's relatively easy to add new backends to fpGUI - at > least much less work than LCL as far as I can see. Anyway, that will > give me an excuse to dust off my copies of OS/2 2.1, Warp 3.0 Connect > (still my favourite release) and Warp v4. Wow, that will bring back good > memories. I was a huge OS/2 supporter in the day. :-) > > How well does FPC support OS/2? To be honest, the support is not so good as with some other platforms, there are several known issues and limitations. One of the problematic areas are limitations related to the ancient EMX (GNU) ld linker (and also other parts of the GNU toolchain like the debugger); it would be better to switch to another linker, but that is a non-trivial task, unfortunately, because it implies many changes also in other areas). One additional area is the well-known 32-bit/16-bit thunking (support of a special calling convention necessary for invoking some of the old 16-bit API still used for console support is not available in FPC, but that is solvable using wrapper DLL like emxwrap.dll). Finally, some parts of the RTL are not debugged that well (or not even finished completely) and some FCL packages have not been ported to OS/2 yet. I'm willing to assist in solving these areas, but my time available for FPC is unfortunately rather limited and thus the progress is very slow. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] OS/2 INF help support
On Wed, September 9, 2009 09:18, Graeme Geldenhuys wrote: > Tomas Hajny het geskryf: >> remembered it wrongly. I'm happy to be proven wrong. > > http://owbuilder.malakovi.cz/snapshot/ > > I downloaded the Linux IPF compiler from here... I don't know how recent > that copy is though. Apparently more recent than the latest release (1.8), because it's the snapshot building machine for OpenWatcom. >> Simple pictures are certainly no problem (although I believe that the >> INF >> format only supports BMP files - no JPG, no GIF or PNG, etc.). However, >> I >> was more referring to more advanced formatting possibilities; yet again, >> this may or may not be important depending on your needs and >> expectations. > > I do not understand "advanced formatting possibilities"? INF supports One simple example - INF/IPF specifies the size in characters (see e.g. table column size). The format (IPF this time) is primarily based on the assumption of working with monospaced raster fonts (which btw makes the specification of fonts completely non-portable). There are many more examples for sure, I'd just need to dig through the documents to remember them. In any case, the limitations make the format very nice for stuff like our text mode IDE. > only BMP and MET (meta graphics). INF also supports hyperlinks via text > and graphics. For the graphics you can also support segmented graphic > links -- one image containing various links to different help topics or > other help files etc... Similar thing to HTML's image map support. > > http://tinyurl.com/nvjvdz > > or > > http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/ej6c2b00/2.3.2.2.3?SHELF=&DT=19941104154554 Neither BMP nor MET are very efficient from storage/compression point of view. Yet again - it was fairly advanced at its time, but its age is visible now. Still, it works pretty well, it's just not that "fancy" any longer. > What I am doing at the moment is reviewing various help formats so I can > implement something that works for fpGUI based applications. I do not > limit myself to the exact feature list of previous help formats. The INF > is a case in point. If I want to support png images in INF, I will add > such support in the viewer and compiler. Obviously, then I will change > the help file extension as no to confuse other users thinking the INF I > use is the same format as the INF used in OS/2. OK, that is certainly a viable approach (with its obvious limitations stemming from the fact that it becomes a new format). > I'm collecting a feature list for application help. Good compression, > speed, size, easy help authoring etc... Obviously I start off with the > stock help formats and add my personal needs from there - if the stock > help format doesn't support what I want. OK, clear. Tomas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Licencing software made in Free Pascal
What type of licence can I use when I use source from directory "source\rtl" and "source\packages"? ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
2009/9/9 wht244 : > What type of licence can I use when I use source from directory "source\rtl" > and "source\packages"? The rtl licence (lgpl) is in rtl/COPYING. The licence for packages depends on the package you use. It's essentially the same as the rtl, I think, but if a package links against another library with a different licence, you may have to obey that licence and any restrictions it imposes (example: mysql). Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
So, when I want to use libmysql.dll library - I have to make my application run on a GPL licence. Is that right? And what about sqlite3? Dnia 9 września 2009 14:34 Henry Vermaak napisał(a): > 2009/9/9 wht244 : > > What type of licence can I use when I use source from directory > > "source\rtl" and "source\packages"? > > The rtl licence (lgpl) is in rtl/COPYING. > > The licence for packages depends on the package you use. It's > essentially the same as the rtl, I think, but if a package links > against another library with a different licence, you may have to obey > that licence and any restrictions it imposes (example: mysql). > > Henry > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
2009/9/9 wht244 : > So, when I want to use libmysql.dll library - I have to make my application > run on a GPL licence. Is that right? As far as I know, yes, or you can obtain a licence from mysql. > And what about sqlite3? http://tinyurl.com/q32422 :) Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
wht244 wrote: So, when I want to use libmysql.dll library - I have to make my application run on a GPL licence. Is that right? And what about sqlite3? If your application merely uses (soft link) the mysql library, then you should only be bound to the free-pascal part license. (but users of your app will have to download and install mysql themself) And this is only if the actual pascal part does not contain any mysql owned material. If you link static or plan to redistribute mysql libraries with your app, then you are bound to both licenses. (IANAL) Martin ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Problem with string manager
Hello list. The following cgi script shows "??" in the browser if cwstring is declared, and works as expected if the declaration is removed. Is there something I can change in order to work with widestrings, cwstring and special chars? fixes_2_4 with linux. Thanks. Joao Morais {$mode objfpc}{$H+} uses Classes, SysUtils, httpDefs, custcgi, cwstring; type TCGIApp = class(TCustomCGIApplication) public procedure HandleRequest(ARequest: TRequest; AResponse: TResponse); override; end; procedure TCGIApp.HandleRequest(ARequest: TRequest; AResponse: TResponse); var ac: widestring; begin ac := 'é'; AResponse.Contents.Add(ac); end; begin with TCGIApp.Create(nil) do try Initialize; Run; finally Free; end; end. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Problem with string manager
On 09 Sep 2009, at 21:10, Joao Morais wrote: The following cgi script shows "??" in the browser if cwstring is declared, and works as expected if the declaration is removed. Is there something I can change in order to work with widestrings, cwstring and special chars? fixes_2_4 with linux. a) bug: you are not specifying to the compiler in what code page the strings in your source code are encoded. As a result, the compiler will assume it's the default (8859-1), unless their is an UTF-8 BOM (in which case the compiler parses it as UTF-8) b) when you use cwstring, the RTL will convert any widestring you write to the current locale. Under *nix this is defined by the "LANG" environment variable (which in turn controls the various LC_* environment variables). If the current locale does not support the character you try to write, you will get question marks. I guess what's happening if you don't use cwstring and don't specify a code page, that the compiler dumps the character as it appears in the source code straight into the widestring without any conversion, and that the rtl later on extracts it (when "converting" from widestring to ansistring) also without any conversion. So it only happens to work because the code page in which you wrote the source code happens to be the same as the code page that the browser at the other side uses as default. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
wht244 escreveu: So, when I want to use libmysql.dll library - I have to make my application run on a GPL licence. Is that right? And what about sqlite3? Sqlite is public domain. Use as you want Luiz ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
On 09 Sep 2009, at 15:34, Martin wrote: wht244 wrote: So, when I want to use libmysql.dll library - I have to make my application run on a GPL licence. Is that right? And what about sqlite3? If your application merely uses (soft link) the mysql library, then you should only be bound to the free-pascal part license. That's incorrect. MySql is GPL, not LGPL. That generally mean that as soon as you link your program to it in any way, your program must be distributed under a GPL-compatible license. Exception: Sun defined an exception to this requirement, in that your program is also allowed to link to the MySQL libraries if your program is licensed under one of the other licenses listed here: http://www.mysql.com/about/legal/licensing/foss-exception/ Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
2009/9/9 Jonas Maebe : > > Exception: Sun defined an exception to this requirement, in that your > program is also allowed to link to the MySQL libraries if your program is > licensed under one of the other licenses listed here: > http://www.mysql.com/about/legal/licensing/foss-exception/ So you can make a small wrapper library for your mysql calls, licence it under the lgpl, then link against it in your main program, which enables you to licence your main program as anything you like? Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Licencing software made in Free Pascal
On 10 Sep 2009, at 00:00, Henry Vermaak wrote: 2009/9/9 Jonas Maebe : Exception: Sun defined an exception to this requirement, in that your program is also allowed to link to the MySQL libraries if your program is licensed under one of the other licenses listed here: http://www.mysql.com/about/legal/licensing/foss-exception/ So you can make a small wrapper library for your mysql calls, licence it under the lgpl, then link against it in your main program, which enables you to licence your main program as anything you like? Obviously not. If you read the above-linked page, you'll see that it only applies to applications, not tp libraries. Furthermore, if you wish to make use of this exception with FPC programs, you must adhere to the terms of the LGPL (or GPL) rather than the LGPL+linking exception, since only the former is included in the list of licenses to which that exception applies. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal