[Netsurf-develop] Font / Unicode overview
by James Bursa
In an attempt to answer the questions that have appeared recently,
I've written a guide to fonts and Unicode support in NetSurf.
James
______________________________________________________________________
Fonts in NetSurf
NetSurf has support for displaying pages containing Unicode characters
that aren't normally available on RISC OS, for example accented Latin
letters, Greek, Cyrillic, Japanese, and various symbols.
The font choices let you pick a font for each of the five standard
families available to web authors (in CSS). The choices specify the
preferred font to use. If a character is not available in the chosen
font, but it's present in some other font that you have installed,
then NetSurf will automatically use it. There's no need to change the
font choices to view pages with characters that are not available in
the chosen font.
Note that you can only choose a font family. NetSurf will
automatically use weights from the family for bold and slanted text,
if available.
Installing more fonts
The fonts that come with RISC OS cover Latin (Homerton, Trinity,
Corpus), Greek (Sidney), and various symbols (Selwyn, Sidney). (On
RISC OS 3-4, only the "Latin 1" characters from the standard fonts,
which cover Western European languages, can be used by NetSurf).
If you want to display pages with other characters correctly, you'll
need to install fonts containing them. When a character is not present
in any available font, the Unicode character code will be displayed.¹
Any font supplied with a correctly designed "Encoding" file should
work. In practice, native fonts covering anything other than Latin 1
are rare. The solution is to convert TrueType fonts using TTF2f (this
currently produces fonts suitable for RISC OS 5 only).
After installing new fonts, NetSurf will need restarting so that it
detects them.
Problems and unimplemented features
* The default font is always the sans-serif one.
* Printing on RISC OS 5 doesn't work, due to lack of support in the
Font Manager and printer drivers. Printing to Postscript printers on
RISC OS 3-4 is not correctly implemented in NetSurf.
* Substituted characters are taken from the first font that contains
them, even if a character which matches the weight or slant better
is available.
* Only two weights (regular and bold) are supported, even if a family
contains other weights. The algorithm that finds weights needs
improving, for example using the heuristics given in CSS 2.1 15.6.
* Drawfile export is broken.
* Right-to-left text (Hebrew, Arabic) is not implemented.
____________________
¹ If you see the codes 0091, 0092, 0096, or others starting 009, that
indicates that the page is not specifying the character set that it
is using correctly. Installing fonts won't help. We haven't yet
decided what the best way to work around this problem is.
16 years, 4 months
[Netsurf-develop] Illegal window handle
by Fred Bambrough
On recent builds including 25 May 2005: 23:15 I'm getting the error
message, 'WimpError Illegal window handle' on conclusion of file
downloads. Clearing the box allows Netsurf to continue and the
downloads are complete.
SARPC, ROS 4.39, stderr available.
--
Fred
18 years
[Netsurf-develop] Re: downloading files
by Tony Moore
On 27 May 2005 John-Mark Bell wrote:
> On Fri, 27 May 2005, Tony Moore wrote:
>
> > Clicking on any of the links below does _not_ open a download
> > window
[snip links and John-Mark's explanation]
Thanks for the explanation (and thanks for reformatting my post!)
> > > You can shift-click a link to download it.
> >
> > Yes, that's fine! (Undocumented?)
>
> http://netsurf.sourceforge.net/guide#BrowserWindowContentLinkHandling
So it is! I was looking under 'Download window'
Tony
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
18 years
[Netsurf-develop] Re: downloading files
by Tony Moore
On 26 May 2005, James Bursa wrote:
> In message <4a7622714d%old_coaster(a)yahoo.co.uk>
> Tony Moore <old_coaster(a)yahoo.co.uk> wrote:
[snip apparent problem]
> Are you seeing this for all PDFs, or just PDFs on some sites?
It seemed to be all PDFs but, just now, I cannot reproduce it!
I'll let you know the url if/when it happens again.
> For example, do the PDFs on
> http://www.nationalrail.co.uk/maps.htm download correctly?
Yes, the download window opens, as expected.
[snip]
> Currently no files are run automatically
Clicking on any of the links below does _not_ open a download
window but the status bar indicates that data is being received.
When the total received reaches 99% the hourglass activates and
NetSurf hangs. It is necessary to alt-break to regain control.
(NetSurf 25 May 2005 23:15, RISC OS 4.39)
http://www.blastzone.demon.co.uk/shutdown.arc
http://www.blastzone.demon.co.uk/split.afs
http://www.blastzone.demon.co.uk/split.arc
> but thanks for the suggestion!
The suggestion is irrelevant, in view of the following:
> You can shift-click a link to download it.
Yes, that's fine! (Undocumented?)
Tony
>
> James
___________________________________________________________
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
18 years
[Netsurf-develop] No FTP please
by Frank de Bruijn
How do I tell NetSurf to keep off FTP links?
I have a perfectly good FTP client, but when NetSurf is running it
invariable hijacks any launched FTP link and sometimes makes a total
mess of the retrieval (try ftp://ftp.rfc-editor.org/in-notes/rfc2822.txt
but if you've added to your hotlist, make sure you save it first,
because you may have to Alt+Break NetSurf [1]).
So I want NetSurf to ignore FTP. How do I make it do that, please?
Regards,
Frank
[1] 15 May 2005 17:45 build - I must admit I didn't have the patience to
endure more than 2 minutes of 'Formatting document', so I don't know
if it would eventually have come up with something useful...
18 years
[Netsurf-develop] downloading files
by Tony Moore
The NetSurf documentation (18 May 2005) says that
When NetSurf encounters a file type it does not recognise, it
opens a download window to allow the file to be saved to
disc. (Note, NetSurf ignores local files of unrecognised file
types.) The file types that NetSurf understands are listed
below, with their RISC OS file type and MIME type(s)
The list of filetypes does not include
&adf PDF
so one would expect that clicking on a link to one of these
files would open the download window. In fact, NetSurf attempts
to display the file (which may not be possible or desirable).
The list of filetypes also omits
&ddc Archive (ZIP, ARJ, Spark, etc.)
but in this case NetSurf (correctly) opens the download window
to allow the file to be saved.
May I suggest that either there should be a configurable list of
runnable filetypes, and/or that clicking menu over a link should
lead to an option to download the target.
Tony
___________________________________________________________
How much free photo storage do you get? Store your holiday
snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
18 years
[Netsurf-develop] Webmail login bug with Netsurf
by Stuart Halliday
I use the following URL to login and read my email when away from Home.
http://www.gradwell.com/webmail/
Whist this works with Fresco.
It doesn't work with Netsurf Test Build (16 May 2005 01:00)
On trying to log in, it just goes to a 'Error You must be logged in to
access this page' page.
at http://www.gradwell.com/webmail-142/src/webmail.php
perhaps it is not passing on the cookie info?
I've set up a test email account for any Netsurf Developer who may wish to
look into this bug.
At the above page type into the lower Webmail login address field:
netsurf(a)quantumsoft.co.uk
password: freddie456
(Any emails sent via this temporary email account just auto deleted. So no
use trying ;-)
This webmail system uses the popular SquirrelMail Web email system used on
thousands of other Servers worldwide so it may help others using this
system.
Thanks.
--
Stuart Halliday
http://mytriops.com/
Largest collection of Triops information on the Internet.
Please check my email address as I usually mangle it to stop Spam.
18 years
[Netsurf-develop] Re: Out of memory
by Rob Jackson
John-Mark Bell wrote:
> In this case, the Iconv module knows nothing about the character encoding
> the page claims to be in (ISO8859_1, for anyone who's interested). This
> isn't in IANA's list of character set names or their aliases
> (http://www.iana.org/assignments/character-sets).
OK. I had a quick look at the web page you mentioned, and this was in it:
Name: ISO_8859-1:1987 [RFC1345,KXS2]
MIBenum: 4
Source: ECMA registry
Alias: iso-ir-100
Alias: ISO_8859-1
Alias: ISO-8859-1 (preferred MIME name)
Alias: latin1
Alias: l1
Alias: IBM819
Alias: CP819
Alias: csISOLatin1
Is that not it?
> Therefore, the fix will occur as a new version of Iconv at some point in
> the future (but not before mid-June at the earliest, unless someone else
> feels like making the necessary changes).
What sort of changes are required (ie simply, what's the process
Nesturf/Iconv goes through after form submission? I'll have a quick look at
the source and see if I can sort it out.
Cheers
Rob
18 years
[Netsurf-develop] Out of memory
by Rob Jackson
I've seen this error for quite a while with different versions of Netsurf,
although it always used to work (>1 month ago).
When logging in to the www.smile.co.uk online banking (you need to cut and
paste a redirect URL from the source to get to the site) when the login info
is submitted, the OK button results in the "Netsurf is running out of
memory...." error, and stopping the fetch.
You can probably just enter a fake account number and the error will still
happen.
--
Rob Jackson
18 years
[Netsurf-develop] Form problem with umlauts?
by Stefan Bellon
I set up an online form where users can request licenses for our
software at work. It's at
http://www.bauhaus-stuttgart.de/cgi-bin/licenserequest.pl
I think it works pretty well with NetSurf. However I noticed one minor
problem where I'm not sure whether it's a problem of NetSurf, a problem
of the page design or a problem with our Apache configuration:
Enter some text in the input fields, with an umlaut somwhere in the
middle, but leave a required field empty. Then press "Generate Request
Form". The form should get displayed again with the text "One or more
fields are empty!" displayed in red. However, in NetSurf, the form
stops displaying at the place where the first umlaut should get
displayed in the form.
Even if you don't put any umlaut in the input fields and just leave one
required field empty and select "Commercial Evaluation" as license
type, pressing "Generate Request Form" results in the license type
field only displaying "Commercial" instead of "Commercial Evaluation"
afterwards. Selecting "Academic License" however works.
All of the above works correctly when using Galeon and Mozilla Firefox.
Any ideas of what might be the problem?
--
Stefan Bellon
18 years