606646
51
Zoom out
Zoom in
Vorherige Seite
1/58
Nächste Seite
KompoZer User Guide 17 December 2007 Based on version 0.7.10 51
The output code for ASCII characters is the charac-
ter code, for all characters for which an entity exists is
the entity else it is a decimal numeric character refer-
ence.
Final option
The final option should output decimal numeric
character reference for all non-ASCII characters but
has a bug so that it uses a mixture of character codes
(for ASCII characters) and entities or numeric referenc-
es for others.
Note The output will always produce valid and
operating code for the corresponding character
so files run correctly. With KompoZer 0.7.10, for
all options, there are a few detailed non-compli-
ances with the above description.
The options provided may be useful during develop-
ment if you work in source code and may make it easier
for you to read. They may also be required if transfer-
ring source code to some other applications. If, for
instance, your file was encoded as UTF-8 and you
wanted to transfer the content to an application which
could accept only text the fourth option would be useful.
This ensures that only ASCII characters appear in
the file. Unfortunately this is one option that does not
work in KompoZer 0.7.10
Note. In source view you may enter characters
using any of these systems irrespective of the
option selected. After leaving and re-entering
source view, the display will conform to the
option selected and not to the form in which it
was entered.
In Normal and Preview mode KompoZer will attempt
to render all characters correctly, irrespective of the
option selected, subject to the limitations described
under ‘Unicode support’ above.
If you need an ascii only file an alternative way to
obtain one is via the File > Save and change Character
Encoding menu item. Check the ‘Export to text’ box
and save the file as text. The original file remains
intact. Again with UTF encoding this appears to be
faulty but if the encoding is temporally switched to
ISO-8859-1 it works.
A6.4.1.2 Don't encode > outside of attribute values
This is explained under the first option above.
The section on ‘Preferences’ suggests that this be
left in the default, cleared, state but this is optional.
A6.4.2 Encoding in attribute values
One final option in Tools > Preferences > Advanced
provides the option ‘Don’t encode special characters in
Attribute values’. That is not a very precise definition of
what happens because the whole page must be encod-
ed in the same way. What it changes is the way in
which character references are used in attribute values.
When you check the box, special characters appear-
ing in the value of any attribute will be left untouched
and not encoded as entities or numerical character
references.
A6.4.2.1 Don't encode special chrs in attribute values
An example will serve to illustrate.
The table element has an attribute 'summary' and
might appear as:
<table summary="Resumé of results">
The attribute is ‘summary’ and the value is ‘Resumé
of results’. If the characters were encoded as entities
the source would read
<table summary=“Resum&eacute; of results”>
Even worse if the characters were encoded as nu-
meric character references the source would read
<table summary=“Resum&#233; of results”>
Any readout on the screen, whether through a
properties inspector or at the bottom of the browser
window, will be normal but those doing lot of work in
source view might prefer not to encode in this situation.
You are recommended to check the box ‘Don't
encode special characters in attribute values’ un-
less you have good reason to do otherwise.
Where the attribute value is a URL a different
encoding method is covered in the following section.
A6.5 URL encoding
A6.5.1 Percentage encoding
Special considerations apply to characters in a URL.
URLs can occur as the value of an attribute to many
elements the most common being the ‘href’.
Any Latin 1 character may occur in a URL but only
those shown against a green background in Table
A6.5-1 may be used freely. This set includes alphabet-
ics, hyphen and underscore. A number of other charac-
ters which may have specific meanings are reserved.
This includes the majority of the remaining ASCII
characters. Such characters may be used to separate
one part of the structure from an other e.g the colon
separates the protocol from the domain. These charac-
ters, from current specifications, are shown against an
orange background. Whenever such a character is
used other than for the specific reserved purpose it
must be encoded to avoid confusion. Use of the remain-
ing characters depends on specifics of the URL or part
of the URL involved.
When encoding is required in a URL a new method
referred to as ‘percentage encoding’ is used. Put simply,
percent encoded characters consist of a percentage
sign followed by two characters representing the hexa-
decimal position of the character in the Latin 1 set.
Thus %20 represents a space.
x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
0x
1x
2x
sp
! # $ % & ( ) * + , - . /
L
3x
0 1 2 3 4 5 6 7 8 9 : ; < = > ?
4x
@
A B C D E F G H I J K L M N O I
A
5x
P Q R S T U V
W
X Y Z [ \ ] ^ _ I
6x
` a b c d e f g h i j k l m n o
T
7x
p q r s t u v w x y z { | } ~
8x
I
9x
Ax
nb
sp
! ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬
shy
® ¯
N
Bx
° ± ² ³ ´ µ · ¸ ¹ º » ¼ ½ ¾ ¿
Cx
À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï
1
Dx
Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß
Ex
à á â ã ä å æ ç è é ê ë ì í î ï
Fx
ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ
Table A6.5.1
Characters permissible in a URL
51

Brauchen Sie Hilfe? Stellen Sie Ihre Frage.

Forenregeln

Missbrauch melden von Frage und/oder Antwort

Libble nimmt den Missbrauch seiner Dienste sehr ernst. Wir setzen uns dafür ein, derartige Missbrauchsfälle gemäß den Gesetzen Ihres Heimatlandes zu behandeln. Wenn Sie eine Meldung übermitteln, überprüfen wir Ihre Informationen und ergreifen entsprechende Maßnahmen. Wir melden uns nur dann wieder bei Ihnen, wenn wir weitere Einzelheiten wissen müssen oder weitere Informationen für Sie haben.

Art des Missbrauchs:

Zum Beispiel antisemitische Inhalte, rassistische Inhalte oder Material, das zu einer Gewalttat führen könnte.

Beispielsweise eine Kreditkartennummer, persönliche Identifikationsnummer oder unveröffentlichte Privatadresse. Beachten Sie, dass E-Mail-Adressen und der vollständige Name nicht als private Informationen angesehen werden.

Forenregeln

Um zu sinnvolle Fragen zu kommen halten Sie sich bitte an folgende Spielregeln:

Neu registrieren

Registrieren auf E - Mails für Kompozer 07 wenn:


Sie erhalten eine E-Mail, um sich für eine oder beide Optionen anzumelden.


Andere Handbücher von Kompozer 07

Kompozer 07 Bedienungsanleitung - Deutsch - 157 seiten


Das Handbuch wird per E-Mail gesendet. Überprüfen Sie ihre E-Mail.

Wenn Sie innerhalb von 15 Minuten keine E-Mail mit dem Handbuch erhalten haben, kann es sein, dass Sie eine falsche E-Mail-Adresse eingegeben haben oder dass Ihr ISP eine maximale Größe eingestellt hat, um E-Mails zu erhalten, die kleiner als die Größe des Handbuchs sind.

Ihre Frage wurde zu diesem Forum hinzugefügt

Möchten Sie eine E-Mail erhalten, wenn neue Antworten und Fragen veröffentlicht werden? Geben Sie bitte Ihre Email-Adresse ein.



Info