473,612 Members | 2,331 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<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 2432
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>Wha t</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
1380
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 this <? if ($blabla == 1) { ?> <h1> blabla is one <h1> <? } elseif ($bloublou == 2) { ?> <form>
44
3322
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 expression such as x = (5) * (4+6). Wouldn't it have been better to define tuples with <>'s or {}'s or something else to avoid this confusion?? Perhaps ()'s are a good idea for some other reason I don't know?
2
3208
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 writing one object in C# which will take the entire table tag contents and renders. Ie., we need to pass "<table>………… <thead>……</thead>. <tr>.<td> <td>..<tr>.<td> <td> </table>" content to
2
10554
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 type="text/javascript"> <!]> </script> <script type="text/javascript"
3
17738
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 (intentionally) has no runat=server and also nested in a <TD> tag... What am I doing wrong?
4
1550
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 to know why the <%# %> construct is necessary in locations where the other <%= %> does not do. It seems to me that there is no equivalent of the <%# %> construct in PHP, thus I thought I would post to clarify. Is this an ASP.NET specific...
3
1935
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 = DialogResult.OK Then DataSet1.WriteXml(sfSchemaFileDiag.FileName) End If
3
3366
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, &gt ,&ltCompany&gt to display '<', '>' and '<Company>' respectively. But is there any freeware code available which could implement the above functionality without having to use &gt,&lt and such stuff???
56
5137
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 checked on each iteration, since the Count changes as you delete elements. I would think it is guaranteed to be computed each time, and not cached. So, is this the best way?
45
18844
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 of their elements? Why can't I change the element itself? class Program { private struct MyStruct
0
8115
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8617
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8568
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8422
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6082
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4047
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4111
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2555
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1416
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.