Auto Meta Published date creation and filename case sensitivity.

Auto Meta Published date creation and filename case sensitivity.

Post by Chris Evan » Sun, 12 Oct 2003 22:49:07


Two requests for you excellent helpful programmers out there:

Does anyone have a routine in BASIC that will output the current date in
meta "published" format e.g.

<meta http-equiv="published" content="Sat,11 Sep 2003">


Also does anyone have a routine which will read an individual file name with
case sensitive information when given the full path name with casing
insesitivity? (I'm not sure if that describes it well!)

This is to check that all the individual graphics referenced are in our
product image directory ready for upload to our web site, I have Basic
program which reads in all the names used in the HTML and then does an
OPENIN of that file name, I now realise that the check is not case sensitive
whilst our web site server is. So I need to read the name of file for which
I have it's name but not necessarily of the same case.

I know there are is an OS call to read in the file names of a directory, but
wonder if anyone's had the same requirements as me before and written a
suitable routine in BASIC.

Chris Evans

--
CJE Micro's / NCS / Fourth Dimension 'RISC OS Specialists'
Telephone: (01903) 523222 Fax: (01903) 523679
XXXX@XXXXX.COM http://www.yqcomputer.com/
78 Brighton Road, Worthing, West Sussex, BN11 2EN, UK.
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by SteNew » Sun, 12 Oct 2003 23:12:11

In article < XXXX@XXXXX.COM >,


Will this do you?

DEF FNmeta_time
LOCAL blk%, time$
DIM blk% LOCAL 64
SYS "OS_Word", 1, blk%
SYS "OS_ConvertDateAndTime",blk%,blk%+5,60,"%W3,%DY %M3 %CE%YR" TO time$
=time$

(DIM LOCAL being a RISC OS 5 BASIC thing.)

Steve

--
Steve Revill @ Home
Note: All opinions expressed herein are my own.

 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by Steve Drai » Mon, 13 Oct 2003 00:04:40


LEFT$(TIME$,15)


Do you mean you want the actual name the file was saved as in RO when
you only have a case-insensitive one, eg: find the name 'File' from only
knowing 'FILE'?

DIM buffer% 255
SYS"OS_GBPB",9,path$,buffer%,255,0,256,"FILE"
SYS"XOS_GenerateError",buffer% TO name$
PRINT name$ :REM File

Does that do it? You might juggle the number of objects to seach through
and the size of the buffer.

--
; ,', * Basalt * - gives RO 3.10+ versions of BASIC V new and alternative
;,' keywords, dynamic memory for arrays and blocks, new variable types.
;', Legal, fast and simple to use. Freeware - version 0.98- 19 Aug 03
,; ',, Steve Drain, Kappa : http://www.yqcomputer.com/
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by New » Mon, 13 Oct 2003 00:17:16

In article < XXXX@XXXXX.COM >,




I've got as far as getting your required string (above) into a System
Variable and then back into my buffer, but I'm having a bit of difficulty
writing that out to the current cursor - which is what I assume you want to
do, click your cursor into an HTML page in an editor and then use the
utility to insert the line for you.

Any tips on how to do this last bit welcome, as:

SYS"OS_Write0",block%

seems to do funny things to my printer. Something I don't understand about
'current output streams', I think!

John

--
John Williams, Wirral, Merseyside, UK - no attachments to these addresses!
XXXX@XXXXX.COM change user to johnrwilliams for speediest attention!
Who is John Williams? http://www.yqcomputer.com/
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by Kell Gathe » Mon, 13 Oct 2003 02:34:04

In article < XXXX@XXXXX.COM >,




I can't find any documentation on this particular META tag.
Is it important? Do search engines give it any notice?

Alta Vista lists my site www.locationworks.com top (for "film location
library", under the sponsored sites), which is good, however others are
marked as "Refreshed in past 48 hours" - this despite the fact that my
home page is "refreshed" every day. I'm wondering where Alta Vista gets
this information from - I can't see it in the meta tags. Presumably this
must be the date-stamp of the HTML file?

--
Kell Gatherer
XXXX@XXXXX.COM
The Location Source
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by New » Mon, 13 Oct 2003 04:12:21

In article < XXXX@XXXXX.COM >,




C'mon, guys!

How do I get a string, either as a memory block or a system variable, to
print to the cursor in a current editor window!

Someone must know!

Best wishes,

John

--
John Williams, Wirral, Merseyside, UK - no attachments to these addresses!
XXXX@XXXXX.COM change user to johnrwilliams for speediest attention!
Who is John Williams? http://www.yqcomputer.com/
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by Philip Lud » Mon, 13 Oct 2003 04:39:21

On 11 Oct, in message < XXXX@XXXXX.COM >



[snip]


To give people hints. OS_FSControl,&25 - canonicalise path should
return the full filename of the one supplied. Strip off any unnecessary
prefix and do IF a$ = b$ THEN PRINT "Hooray!" :-)

Well, that's how I might try to solve the problem. Are the any better
ways?

Yours,

Phil L.
--
http://www.yqcomputer.com/ http://www.yqcomputer.com/
The From address is valid, but anything over 32k is deleted by the server
i ou a uea i e a o ie e a o a a oue oae
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by Philip Lud » Mon, 13 Oct 2003 04:46:34

On 11 Oct, in message < XXXX@XXXXX.COM >




SWI Wimp_ProcessKey
the only *** with that is that it's one key press at a time and
(probably) requires a Wimp_Poll between each call.

Or:

SWI OS_Byte,138
just watch out for Select 3i1 users :-) !
Also note that with certian versions of RISC OS 5 the C flag returns
set, even when the buffer is not empty.

Yours,

Phil L.
--
http://www.yqcomputer.com/ http://www.yqcomputer.com/
The From address is valid, but anything over 32k is deleted by the server
i ou a uea i e a o ie e a o a a oue oae
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by druc » Mon, 13 Oct 2003 05:43:07


Try my WindOpen modules' WO_TypeString and WO_ProcessKey commands. First link
below.

---druck

--
The ARM Club Free Software - http://www.yqcomputer.com/
The 32bit Conversions Page - http://www.yqcomputer.com/
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by Dave Moor » Mon, 13 Oct 2003 07:03:22

In article < XXXX@XXXXX.COM >, Philip Ludlam




Or, I have used ...

DEF PROCforceKeyInput(text$)
LOCAL x%
WHILE x%<LEN(text$)
x%+=1 : SYS "OS_Byte",153,0,ASCMID$(text$,x%,1)
ENDWHILE
ENDPROC


--
Dave (KDM)
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by New » Mon, 13 Oct 2003 17:33:53

In article < XXXX@XXXXX.COM >,




Excellent! That works a treat!

<meta http-equiv='published' content='Sun, 12 Oct 2003'>

Even in an e-mail window!

Thanks.

Chris, it's on its way to you!

Best wishes,

John

--
John Williams, Wirral, Merseyside, UK - no attachments to these addresses!
XXXX@XXXXX.COM change user to johnrwilliams for speediest attention!
Who is John Williams? http://www.yqcomputer.com/
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by New » Mon, 13 Oct 2003 17:57:32

In article < XXXX@XXXXX.COM >,



Hang on - spoke too soon.

Here, in a Pluto window (having now put the double quotes back) I get:

<meta http-equiv="published" content="Sun, 12 Oct 2003">

exactly as required.

But in a DeskEdit or Edit window I lose every 21st character, the 21st and
42nd:

<meta http-equiv="pulished" content="Sun 12 Oct 2003">

which is not what's required!

Any ideas why?

John

--
John Williams, Wirral, Merseyside, UK - no attachments to these addresses!
XXXX@XXXXX.COM change user to johnrwilliams for speediest attention!
Who is John Williams? http://www.yqcomputer.com/
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by Ian Jeffra » Mon, 13 Oct 2003 20:14:33


Because trying to shove things in the keyboard buffer, especially
ignoring any return (eg buffer full!) conditions is a stupid thing
for a WIMP program to do. Obey the rules and use the tools provided
in the way they're supposed to be used and you don't get this sort
of problem. Ie, use Wimp_ProcessKey as was suggested earlier.

I.


PS Don't put broken crud in your Reply-To either!
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by New » Mon, 13 Oct 2003 20:28:48

In article <tIaib.4510$ XXXX@XXXXX.COM >,




How big is the buffer?


But it isn't a WIMP program. It's a little bit of single-tasking BASIC.

Would it be better as a WIMP program?


Sorry, temporary aberration now corrected.

Thank you for your help,

John

--
John Williams, Wirral, Merseyside, UK - no attachments to these addresses!
change user to johnrwilliams for speediest attention!
Who is John Williams? http://www.yqcomputer.com/
 
 
 

Auto Meta Published date creation and filename case sensitivity.

Post by Kell Gathe » Mon, 13 Oct 2003 20:57:36

In article < XXXX@XXXXX.COM >,



Further to the above, I have found a page which refers to meta tags and
dates: http://www.yqcomputer.com/
This strongly suggests that dates must be in ISO format, yyyy-mm-dd, and
suggests the correct meta tag is
<meta name="dc.date.created" content="2003-10-12">

Any thoughts?

--
Kell Gatherer
XXXX@XXXXX.COM
The Location Source