Hi!
I think it makes sense to have a handy abbreviation for ‘Learn to
Program’. L2P seems appropriate.
You need Apache set up to allow you to execute *.rbx files.
I’m using thttpd. It runs anything that is marked world executable
and matches a CGI-specifying regexp. Cute feature :->
BTW: I would love to see that someone explains to me how to make
index.rbx a default start page for thttpd. I presently use this as a
workaround:
go ahead...
This issue does not have high priority because the above works good
enough and the intended target system is running Apache.
Let’s come to the BUTs. It seems as if there are some preliminaries
before actually starting translation.
Or, looking at my code, is there something I could do to make
translation easier?
The first issue is not so much a translation but a portability one.
You are using absolute URLs to refer to different parts of the
tutorial. This requires changes to the source as soon as the tutorial
is located elsewhere (due to whatever reason). A better solution is
using
LINKFILE = "./index.rbx"
LINKPATH = File.basename(LINKFILE)
And modifying the links appropiately (diff is attached).
Next issue is encoding. As far as I can see you only use iso-646-us
so it seems to be a good idea to change
<?xml version="1.0" encoding="UTF-8"?>
into
<?xml version="1.0" encoding="us-ascii"?>
and adding
meta('http-equiv' =>'content-type',
:content=>'text/html; charset=us-ascii')
to the source. That better shows what to replace by the charset that
is actually used (be it utf-8, iso-8859-15, iso-2022-jp-2, or
koi8-r). utf-8 is too generic to decide wether it is a formal
requirement or an actual charset.
Line length:
-
Normal text: Consider keeping it below 80 chars a line whenever
possible (vim: ‘set tw=79’) - my fetish is called ‘console’
-
Source: Keep it below 70 characters a line. A number of browsers
have default setups that require scrolling when code lines are
longer than this.
On colors used: I am not sure if that still poses a problem but the
ones used are mostly not Web safe. Web save colors have 00, 33, 66,
99, CC, FF as their constituents. Netscape optimized GIFs use these
colors (you perhaps did see the number 216 - that’s 6 to the third).
Comment on diff:
‘…/L2P/Learning-To-Program-2004-02-29-22:12:13’ is the snapshot
taken (obvious date and time). ‘index.rbx’ is the updated version I
will use as a basis for translation.
Now switching to translation mode until the empire of technical
problems strike back.
Josef ‘Jupp’ SCHUGT
difflog (2.17 KB)
···
–
E-Mail: .— …- .–. .–. .–.-. --. – -…- .-.-.- -… .
http://oss.erdfunkstelle.de/ruby/ - German comp.lang.ruby FAQ
http://rubyforge.org/users/jupp/ - Ruby projects at Rubyforge