Girish Sharma said:
Is it possible to somehow encode diacritical marks such as a dot above
and below any letter, a tilde, a bar, or an accent above any letter? I
didn't find them in the ISO-8859-1 HTML entities.
Just a few of them belong to ISO-8859-1 (e.g., "a" with tilde).
I want to do it in a way that can be viewed on any browser.
Impossible.
See e.g.
http://www.cs.tut.fi/~jkorpela/html/chars.var for a general
discussion. The most practical way might be to use a Unicode-capable editor
and author your documents in UTF-8. That way you would see the characters
themselves while working with a document. For casual occurrences of
diacritic marks, it might be simplest to write them using character
references.
To write e.g. letter "a" with dot above, you could use either the
precomposed character LATIN SMALL LETTER A WITH DOT ABOVE as
ȧ
or normal letter "a" followed by COMBINING DOT ABOVE:
ȧ
Generally the former works more often, and qualitatively better, when
available - but only a relatively small number of such precomposed
characters exist in Unicode.
Browser support to _simple_ composition (base letter and one diacritic) is
tolerable in modern browsers (IE 6, Firefox, etc), but nasty surprises
should be expected for many combinations, especially if you try to put
several diacritics on a character.