473,398 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

<q> element, quotes property, Russian

I've been able to get the <qelement and the CSS quotes property to
work well together in English, but not in Russian or mixed Russian and
English. I probably don't have a firm enough grasp of the CSS syntax
possibilities. This is exacerbated by the fact that I code in XHTML
1.1, where the <langproperty is not allowed (the xml:lang property
is used instead). My XHTML 1.1 pages contain both English and Russian
strings.

For Russian, I'm trying for
outside quotation marks 00AB and 00BB
and
nested (inside) quotation marks 201A and 2018

Can anyone suggest the proper coding for this? Many thanks.

Hank Moss

May 2 '07 #1
5 2413
Scripsit Hank Moss:
I've been able to get the <qelement and the CSS quotes property to
work well together in English,
I'm afraid that's impossible, in the WWW context. Given the fact that IE 6
does not support <qat all and even IE 7 doesn't support the quotes
property, any page relying on them would work in a minority of browsing
situations only (maybe 10 %, maybe even 20 %, but still _far_ less than
"working" in the WWW sense).

The only practical choice is to write quotation marks as document content.
This is as natural as it is to use other punctuation marks. We don't write
<question>What</question>
but
What?
so why should we use <q>...</q(even if it worked) instead of inserting the
quotation marks that are correct for the language used?
but not in Russian or mixed Russian and
English. I probably don't have a firm enough grasp of the CSS syntax
possibilities.
That's hard to guess, in the absence of a URL. But the correctness of coding
wouldn't change the WWW situation.
This is exacerbated by the fact that I code in XHTML
1.1, where the <langproperty is not allowed (the xml:lang property
is used instead).
XHTML 1.1 is an exercise in futility: there is no benefit from using it on
the WWW, and in other contexts, you would not use XHTML 1.1 but some XML
with varying tag sets (tag sallad, anyone?), including some tags from the
XHTML namespace. On the other hand, XHTML 1.1 has pointless changes and
restrictions as compared with XHTML 1.0, and it _should not_ be served as
text/html, and if you obey this rule, your document will not be displayed
_at all_ by IE.
My XHTML 1.1 pages contain both English and Russian
strings.
The quotation marks should be selected according to the language of the text
that encloses a quotation, not the language of quoted text. I mention this
because there seems to be much confusion around this.
For Russian, I'm trying for
outside quotation marks 00AB and 00BB
and
nested (inside) quotation marks 201A and 2018
In principle, you would write

:lang(en) { quotes: "\201c" "\201d" "\2018" "\2019"; }
:lang(ru) { quotes: "\ab" "\bb" "\201a" "\2018"; }

(I'm not taking a position on the correctness of this choice of quotation
marks. I'm a bit allergic to such issues, since there is so much wrong
information on the use of quotes, especially in nested quotations, and so
little solid ground consisting of authoritative specifications.)

On Firefox 2, this works whether you use lang or xml:lang (or both). On IE,
as said, it does not work at all. (IE 7 recognizes the selector [lang="ru"],
but this has narrower scope than :lang(ru), since it only applies to
elements with the attribute lang="ru" explicitly set. Moreover, IE 7 does
not let you add quotation marks, though it lets you e.g. set the color or
font of elements by their lang (not xml:lang) attributes.

For further confusion, if you set lang="ru", Firefox will default the font
family to whatever has been set in the browser settings as the default for
Cyrillic text (even if you in fact use Russian in Latin letters, using some
transliteration). It does not treat xml:lang="ru" the same way.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 3 '07 #2
Scripsit Jukka K. Korpela:
In principle, you would write
>lang(en) { quotes: "\201c" "\201d" "\2018" "\2019"; }
lang(ru) { quotes: "\ab" "\bb" "\201a" "\2018"; }
It seems that at least my copy of Outlook Express changed the colon ":" at
the start of a line to the greater than sign ">", interpreted as quotation
indicator. Please excuse me while I sit in the fridge for some time. Now,
here's a new try, with leading spaces added:

:lang(en) { quotes: "\201c" "\201d" "\2018" "\2019"; }
:lang(ru) { quotes: "\ab" "\bb" "\201a" "\2018"; }

Just in case that fails too, on some newsreaders, here's a version with the
universal selector "*", which does not change the meaning except eventually
for specificity:

*:lang(en) { quotes: "\201c" "\201d" "\2018" "\2019"; }
*:lang(ru) { quotes: "\ab" "\bb" "\201a" "\2018"; }

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

May 3 '07 #3
On Thu, 3 May 2007, Jukka K. Korpela wrote:
In principle, you would write

:lang(en) { quotes: "\201c" "\201d" "\2018" "\2019"; }
:lang(ru) { quotes: "\ab" "\bb" "\201a" "\2018"; }
Looks fine here.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
May 3 '07 #4
On Wed, 2 May 2007, Hank Moss wrote:
This is exacerbated by the fact that I code in XHTML
1.1, where the <langproperty is not allowed (the xml:lang property
is used instead).
Then use XHTML 1.0 - or better HTML 4.01.
For what do you need XHTML 1.1?
My XHTML 1.1 pages contain both English and Russian strings.
With HTML 4, you can use the LANG attribute (lang=en, lang=ru)
and the Mozilla/Firefox browsers will show the corresponding
text in the reader's preferred Latin and Cyrillic typefaces.
http://www.unics.uni-hannover.de/nht...-attribute.htm

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
May 3 '07 #5
On Thu, 3 May 2007, Jukka K. Korpela wrote:
On the other hand, XHTML 1.1 has pointless changes and restrictions
as compared with XHTML 1.0, and it _should not_ be served as text/html, and if
you obey this rule, your document will not be displayed _at all_ by IE.
As long as you still name your files *.html , IE 6 will ignore the
Content-Type and display them as ordinary HTML.

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/sear...Alan.J.Flavell
May 3 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Angelos | last post by:
Hello again.... I am coding php in dreamweaver. And because I like to use it for the HTML parts I want my HTML code to be unquoted and not into echo statements. BUT I ended up in something like...
44
by: seberino | last post by:
Tuples are defined with regards to parentheses ()'s as everyone knows. This causes confusion for 1 item tuples since (5) can be interpreted as a tuple OR as the number 5 in a mathematical...
2
by: Eshrath | last post by:
Hi, What I am trying to do: ======================= I need to form a table in html using the xsl but the table that is formed is quite long and cannot be viewed in our application. So we are...
2
by: Donald Firesmith | last post by:
I am having trouble having Google Adsense code stored in XSL converted properly into HTML. The <> unfortunately become &lt; and &gt; and then no longer work. XSL code is: <script...
3
by: Hadar | last post by:
Hi, I'm trying to dynamically set the src of an iframe with the <% %> block: <iframe id="content" src="<% = Request.QueryString.Get("content") %>" width="100%"></iframe> Notice that the tag...
4
by: Neil Zanella | last post by:
Hello, I would like to know what the difference is among the constructs <%= %> for evaluating an expression and displaying the evaluated result on the page and <%# %>. In particular I would like...
3
by: Daniel Wilson | last post by:
I am trying to read data from MS SQL Server and turn it into an XML message to send to a remote server, as follows. sfSchemaFileDiag.FilterIndex = 2 If sfSchemaFileDiag.ShowDialog =...
3
by: ajay2552 | last post by:
Hi, I have a query. All html tags start with < and end with >. Suppose i want to display either '<' or '>' or say some text like '<Company>' in html how do i do it? One method is to use &lt,...
56
by: Zytan | last post by:
Obviously you can't just use a simple for loop, since you may skip over elements. You could modify the loop counter each time an element is deleted. But, the loop ending condition must be...
45
by: Zytan | last post by:
This returns the following error: "Cannot modify the return value of 'System.Collections.Generic.List<MyStruct>.this' because it is not a variable" and I have no idea why! Do lists return copies...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.