[fpc-pascal] CDROM handling again

Pianoman pianoman at centrum.sk
Tue Nov 21 15:45:32 CET 2006


Hello, I 'd like to do it under win32. Michael mentioned way under linux if 
someone knows sometihing similar for win32 let me know.
Thanx in advance
Pianoman----- Original Message ----- 
From: <fpc-pascal-request at lists.freepascal.org>
To: <fpc-pascal at lists.freepascal.org>
Sent: Tuesday, November 21, 2006 3:04 PM
Subject: fpc-pascal Digest, Vol 27, Issue 35


> Send fpc-pascal mailing list submissions to
> fpc-pascal at lists.freepascal.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> or, via email, send a message with subject or body 'help' to
> fpc-pascal-request at lists.freepascal.org
>
> You can reach the person managing the list at
> fpc-pascal-owner at lists.freepascal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fpc-pascal digest..."
>
>
> Today's Topics:
>
>   1. Re[2]: [fpc-pascal] Web site now translatable (???? ???????????)
>   2. Re[2]: [fpc-pascal] Web site now translatable (Dani?l Mantione)
>   3.  CDROM handling question (Pianoman)
>   4. Re:  Web site now translatable (Tomas Hajny)
>   5. Re:  Web site now translatable (Michael Van Canneyt)
>   6. Re:  CDROM handling question (Michael Van Canneyt)
>   7. Re:  Web site now translatable (Dani?l Mantione)
>   8. Re:  CDROM handling question (Henry Vermaak)
>   9. Re[2]: [fpc-pascal] Web site now translatable (???? ???????????)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 21 Nov 2006 14:50:37 +0300
> From: ???? ??????????? <ppkk at mail.ru>
> Subject: Re[2]: [fpc-pascal] Web site now translatable
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <E1GmU97-0004zM-00.ppkk-mail-ru at f76.mail.ru>
> Content-Type: text/plain; charset=koi8-r
>
>> > > If you would like to make the FPC website available in your own 
>> > > language,
>
> Is there a magic button to see the actual page with the text (some words 
> are not very easy to translate without context, and width can be important 
> sometimes, sometimes it's not that obvious to guess the right page)?
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 21 Nov 2006 13:03:34 +0100 (CET)
> From: Dani?l Mantione <daniel.mantione at freepascal.org>
> Subject: Re[2]: [fpc-pascal] Web site now translatable
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <Pine.LNX.4.61.0611211259300.6393 at idefix.wisa.be>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> Op Tue, 21 Nov 2006, schreef ???? ???????????:
>
>> > > > If you would like to make the FPC website available in your own 
>> > > > lan=
> guage, =
>
>> =
>
>> Is there a magic button to see the actual page with the text (some =
>
>> words are not very easy to translate without context, and width can be =
>
>> important sometimes, sometimes it's not that obvious to guess the right =
>
>> page)?
>
> You can click on "show files that use this message key". It isn't =
>
> everything, but the file name should tell you something about the URL a =
>
> message key is used on.
>
> Alternatively, enable translator mode and simply browse to the page you =
>
> would like to translate, then you will see everything in context.
>
> Dani=EBl
>
> ------------------------------
>
> Message: 3
> Date: Tue, 21 Nov 2006 13:14:34 +0100
> From: "Pianoman" <pianoman at centrum.sk>
> Subject: [fpc-pascal] CDROM handling question
> To: <fpc-pascal at lists.freepascal.org>
> Message-ID: <002601c70d66$9b7f8780$ae6d10ac at pianoman>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> reply-type=original
>
> Hello, I 'd like to ask how can I detect whether a CDROM drive is ejected. 
> I
> have program which reads some data from CD after reading this data I eject
> the cd using some calls and user can replace the disk. How can I
> automatically close CD drive let's say after pressing enter?
> Regards
> Pianoman
> ----- Original Message ----- 
> From: <fpc-pascal-request at lists.freepascal.org>
> To: <fpc-pascal at lists.freepascal.org>
> Sent: Tuesday, November 21, 2006 12:00 PM
> Subject: fpc-pascal Digest, Vol 27, Issue 34
>
>
>> Send fpc-pascal mailing list submissions to
>> fpc-pascal at lists.freepascal.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>> or, via email, send a message with subject or body 'help' to
>> fpc-pascal-request at lists.freepascal.org
>>
>> You can reach the person managing the list at
>> fpc-pascal-owner at lists.freepascal.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of fpc-pascal digest..."
>>
>>
>> Today's Topics:
>>
>>   1. Re:  Web site now translatable (???? ???????????)
>>   2. Re:  Web site now translatable (Dani?l Mantione)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 21 Nov 2006 12:05:08 +0300
>> From: ???? ??????????? <ppkk at mail.ru>
>> Subject: Re: [fpc-pascal] Web site now translatable
>> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
>> Message-ID: <E1GmRYz-000FUL-00.ppkk-mail-ru at f75.mail.ru>
>> Content-Type: text/plain; charset=koi8-r
>>
>>> If you would like to make the FPC website available in your own 
>>> language,
>>
>> What encoding does it need? UTF8, UTF16, language specific (for example,
>> five are supported by Opera for cyrillic text, windows-1251 is the most
>> common).
>>
>> I can translate from English into Russian (I can bet I'm not the only
>> one).
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Tue, 21 Nov 2006 10:10:59 +0100 (CET)
>> From: Dani?l Mantione <daniel.mantione at freepascal.org>
>> Subject: Re: [fpc-pascal] Web site now translatable
>> To: ???? ??????????? <ppkk at mail.ru>
>> Message-ID: <Pine.LNX.4.61.0611211007580.1759 at idefix.wisa.be>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>>
>>
>> Op Tue, 21 Nov 2006, schreef ???? ???????????:
>>
>>> > If you would like to make the FPC website available in your own
>>> > languag=
>> e, =
>>
>>> =
>>
>>> What encoding does it need? UTF8, UTF16, language specific (for =
>>
>>> example, five are supported by Opera for cyrillic text, windows-1251 is 
>>> =
>>
>>> the most common).
>>
>> Whatever you prefer. The database uses UTF-8, but I can configure the =
>>
>> website generator to generate any encoding.
>>
>> Dani=EBl
>>
>> ------------------------------
>>
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
>> End of fpc-pascal Digest, Vol 27, Issue 34
>> ******************************************
>>
>
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 21 Nov 2006 13:39:53 +0100 (CET)
> From: "Tomas Hajny" <XHajT03 at mbox.vol.cz>
> Subject: Re: [fpc-pascal] Web site now translatable
> To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Message-ID: <45474.62.141.0.146.1164112793.squirrel at idefix.wisa.be>
> Content-Type: text/plain;charset=iso-8859-2
>
> Daniƫl Mantione wrote:
>> Op Tue, 21 Nov 2006, schreef ???? ???????????:
>>
>>> > If you would like to make the FPC website available in your own
>>> language,
>>>
>>> What encoding does it need? UTF8, UTF16, language specific (for
>>> example, five are supported by Opera for cyrillic text, windows-1251 is
>>> the most common).
>>
>> Whatever you prefer. The database uses UTF-8, but I can configure the
>> website generator to generate any encoding.
>
> Well, preferably the WWW server should accept the charset configured in
> the browser...
>
> Tomas
>
>
>
> ------------------------------
>
> Message: 5
> Date: Tue, 21 Nov 2006 13:49:04 +0100 (CET)
> From: Michael Van Canneyt <michael.vancanneyt at wisa.be>
> Subject: Re: [fpc-pascal] Web site now translatable
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <Pine.LNX.4.64.0611211347550.25242 at gru.wisa.be>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> On Tue, 21 Nov 2006, Tomas Hajny wrote:
>
>> Dani=EBl Mantione wrote:
>> > Op Tue, 21 Nov 2006, schreef ???? ???????????:
>> >
>> >> > If you would like to make the FPC website available in your own
>> >> language,
>> >>
>> >> What encoding does it need? UTF8, UTF16, language specific (for
>> >> example, five are supported by Opera for cyrillic text, windows-1251 
>> >> is
>> >> the most common).
>> >
>> > Whatever you prefer. The database uses UTF-8, but I can configure the
>> > website generator to generate any encoding.
>> =
>
>> Well, preferably the WWW server should accept the charset configured in
>> the browser...
>
> Nooooo, =
>
> the browser should detect the charset sent by the server, and display it 
> co=
> rrectly
> :-)
>
> If the client can do it, let the client do it. Golden rule for writing
> robust servers.
>
> Michael.
>
> ------------------------------
>
> Message: 6
> Date: Tue, 21 Nov 2006 13:50:03 +0100 (CET)
> From: Michael Van Canneyt <michael.vancanneyt at wisa.be>
> Subject: Re: [fpc-pascal] CDROM handling question
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <Pine.LNX.4.64.0611211349250.25242 at gru.wisa.be>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
>
>
>
> On Tue, 21 Nov 2006, Pianoman wrote:
>
>> Hello, I 'd like to ask how can I detect whether a CDROM drive is 
>> ejected. I
>> have program which reads some data from CD after reading this data I 
>> eject the
>> cd using some calls and user can replace the disk. How can I 
>> automatically
>> close CD drive let's say after pressing enter?
>
> That highly depends on the platform. What OS do you use ?
>
> Michael.
>
>
> ------------------------------
>
> Message: 7
> Date: Tue, 21 Nov 2006 13:57:21 +0100 (CET)
> From: Dani?l Mantione <daniel.mantione at freepascal.org>
> Subject: Re: [fpc-pascal] Web site now translatable
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <Pine.LNX.4.61.0611211352010.6393 at idefix.wisa.be>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> Op Tue, 21 Nov 2006, schreef Michael Van Canneyt:
>
>> =
>
>> =
>
>> On Tue, 21 Nov 2006, Tomas Hajny wrote:
>> =
>
>> > Dani=EBl Mantione wrote:
>> > > Op Tue, 21 Nov 2006, schreef ???? ???????????:
>> > >
>> > >> > If you would like to make the FPC website available in your own
>> > >> language,
>> > >>
>> > >> What encoding does it need? UTF8, UTF16, language specific (for
>> > >> example, five are supported by Opera for cyrillic text, 
>> > >> windows-1251=
> is
>> > >> the most common).
>> > >
>> > > Whatever you prefer. The database uses UTF-8, but I can configure the
>> > > website generator to generate any encoding.
>> > =
>
>> > Well, preferably the WWW server should accept the charset configured in
>> > the browser...
>
> If you want we can generate the pages in multiple encodings and use
> the same content negotitiation we use for the language to serve it in the
> right encoding.
>
>> Nooooo, =
>
>> the browser should detect the charset sent by the server, and display it 
>> =
> correctly
>> :-)
>> =
>
>> If the client can do it, let the client do it. Golden rule for writing
>> robust servers.
>
> Well, you can make good use of this facility. Imagine a Russian using a =
>
> system that cannot display Cyrillic. Such system could still request a =
>
> page in Russian, but also community that it doesn't accept Cyrillic. The =
>
> web server can then send a Roman transliteration of the page.
>
> However, in practise I think we would be solving a problem that doesn't =
>
> exist, so no disagreement here.
>
> Dani=EBl
>
> ------------------------------
>
> Message: 8
> Date: Tue, 21 Nov 2006 13:54:39 +0000
> From: "Henry Vermaak" <henry.vermaak at gmail.com>
> Subject: Re: [fpc-pascal] CDROM handling question
> To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Message-ID:
> <e932383c0611210554u52b0a465j7080c4e0ffc8f1a6 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On Tue, 21 Nov 2006, Pianoman wrote:
>> Hello, I 'd like to ask how can I detect whether a CDROM drive is 
>> ejected. I
>> have program which reads some data from CD after reading this data I 
>> eject the
>> cd using some calls and user can replace the disk. How can I 
>> automatically
>> close CD drive let's say after pressing enter?
>
> Hello, if you're in linux you can get tray position with a
> CDROM_DRIVE_STATUS ioctl call.  There is a CDROMCLOSETRAY ioctl
> defined, but it didn't work for me (as far as I remember).
>
> Take a look at kernel docs for ioctl and cdrom.h.
>
> Henry
>
>
> ------------------------------
>
> Message: 9
> Date: Tue, 21 Nov 2006 17:00:49 +0300
> From: ???? ??????????? <ppkk at mail.ru>
> Subject: Re[2]: [fpc-pascal] Web site now translatable
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <E1GmWB7-000Ci9-00.ppkk-mail-ru at f77.mail.ru>
> Content-Type: text/plain; charset=koi8-r
>
>> > Op Tue, 21 Nov 2006, schreef ???? ???????????: <-- it's me
>> >> > If you would like to make the FPC website available in your own
>> >> language,
>> >> What encoding does it need? UTF8, UTF16, language specific (for
>> >> example, five are supported by Opera for cyrillic text, windows-1251 
>> >> is
>> >> the most common).
>> > Whatever you prefer. The database uses UTF-8, but I can configure the
>> > website generator to generate any encoding.
>> Well, preferably the WWW server should accept the charset configured in
>> the browser...
> and
>> Nooooo,
>> the browser should detect the charset sent by the server, and display it 
>> correctly
>> If the client can do it, let the client do it. Golden rule for writing
>> robust servers.
>
> I asked about encoding, because it is possible to enter text in incorrect 
> encoding into "translator" (i.e.: "translator" supposes the text to be in 
> windows-1251 and I enter text in ISO-8859-5 [for cyrillic text]).
>
> It looks like this problem does not arise if I type text in browser (Opera 
> 9).
>
> WWW server may honour Accept-Charset HTTP request header, and it should be 
> easy to translate text on server with known charset to another one, so any 
> desire for accessibility (which is present, as I see, because otherwise 
> the whole translation thing would not appear at all) leads to implementing 
> this honour-thing.
>
> And client may have some problems displaying characters correctly (I don't 
> think that it's possible to write 100%-hit encoding recognition) if the 
> charset is not specified in the <meta http-equiv="content-type" ... 
> charset="" > (well, if I get it right, it may be one step, not two, in the 
> FPC website case; and as the webpages are static, there have to be copies 
> with all the desired encodings).
>
> Anyway, it seems, that the website already deals with these things good 
> enough. Most modern browsers do already support plenty of encodings.
>
> I didn't write anything ingenious, but if I'm wrong somewhere, please 
> point at it.
>
>
> ------------------------------
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> End of fpc-pascal Digest, Vol 27, Issue 35
> ******************************************
> 




More information about the fpc-pascal mailing list