473,799 Members | 3,163 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Alignment to char and other things

[My first post from Google Groups. Hope it's readable.]

I'm working with some semi-advanced tables with lots of decimal
numbers in, and I can't get the alignment to work.

http://www.algonet.se/~gustafl/temp/output_ib.html

I want numbers aligned to the decimal point. The HTML 4 spec says User
agents doesn't need to support 'char' and 'charoff', so I wonder if
the problem is lack of support? If so, can the same results be
achieved in another way?

Next best would be aligning the number to right, but there seem to be
a problem with support for <colgroup> aswell. Am I right? Best
solution I found was to have a class for right alignment and call it
from each <td>.

Also, can someone give me a way to prevent negative numbers to break
after the minus? A solution that adds the least clutter to the code?
Would it be right typographically to replace the minus with an
'endash' (#x2013;)?

Thanks,

Gustaf
Jul 20 '05
30 3526
"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in
news:Xn******** *************** ******@193.229. 0.31:
Dave Patton <no**@none.co m> wrote:
When we have multiple language versions of a confluence visit
narrative, we present them in the same page. In part this is
done for 'historical reasons', due to the design of the
database and codebase.
It should be straightforward to modify the system so that two pages
are generated, with links to each other. But it might mean some hard
work.


Yes - we pretty much know what we want to do, but to do it involves
quite a bit of work, so it's a matter of the people that can do the
work having the time to do it.
And we know there are issues with how
the confluence.php page is designed. Other than such issues,
do you(collectivel y) see it as a "problem" that we sometimes
have two(or more) versions of the narrative text on one page?


I'm not sure I see what you see as the design issue.


Things like table-based layout, validation errors, etc.
But if I read the
English text on the page, I won't see the pictures at the start.
Actually, there are no 'pictures', only thumbnails, but I know
what you mean. To really see each picture, you either have to
'click' on the thumbnail link, or use the "all pictures" links
at the bottom of the page. We have language issues with the
picture captions as well - currently, we allow multiple languages
in the captions:
http://www.confluence.org/confluence.php?visitid=8475
The
Swedish text eats up space and prevents natural layout.
Maybe not to someone who knows Swedish ;-)
Moreover, if I
didn't know Swedish, I might get a bit disturbed. Think about a page
containing first some text that is completely incomprehensibl e to you,
or just comprehensible enough to irritate you to ask what it is, or
maybe text in unknown characters.
Our philosophy has been to always have the narrative represent what
the confluence visitor submits. We always provide a version of the
narrative in English, but we do get submissions that provide narrative
text only using the native language of the person making the submission.
In such cases, we always have that language first, followed by English.
Some people have commented that they like this, because it gives them
a chance to better understand other languages, but that would also
be true if we had the different language versions on different pages.
Besides, the navigation (and some other essential parts) is in English
only.
What would I do if I only knew Swedish? (If all the rest on the
site is in English only, it would still be useful to a Swedish-only
person who found the page via Google to know what the situation is,
maybe via a short note in Swedish about the site.)


They could use our not-yet-released "translate this page" option :-)
It's simply going to make it easy to be on any page on our site,
and chose one of the online translation engines(e.g Google,
AltaVista) to 'machine translate' the page.

I do think the suggestion of a "short note about the site",
in multiple languages, is a good idea - I'll discuss it with
the other site coordinators. With confluence visits now in
148 countries, we have 'a few' language variations to deal with ;-)

--
Dave Patton
Canadian Coordinator, Degree Confluence Project
http://www.confluence.org/
My website: http://members.shaw.ca/davepatton/
Jul 20 '05 #31

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

Similar topics

36
7791
by: Bhalchandra Thatte | last post by:
I am allocating a block of memory using malloc. I want to use it to store a "header" structure followed by structs in my application. How to calculate the alignment without making any assumption about the most restrictive type on my machine? Thanks.
10
3243
by: j0mbolar | last post by:
for any pointer to T, does a pointer to T have different or can have different alignment requirement than a pointer to pointer to T? if so, where is the exact wording in the standard that would suggest so?
67
10762
by: S.Tobias | last post by:
I would like to check if I understand the following excerpt correctly: 6.2.5#26 (Types): All pointers to structure types shall have the same representation and alignment requirements as each other. All pointers to union types shall have the same representation and alignment requirements as each other. Does it mean that *all* structure (or union) types have the same alignment? Eg. type
13
2999
by: aegis | last post by:
The following was mentioned by Eric Sosman from http://groups.google.com/group/comp.lang.c/msg/b696b28f59b9dac4?dmode=source "The alignment requirement for any type T must be a divisor of sizeof(T). (Proof: In `T array;' both `array' and `array' must be correctly aligned.) Since `sizeof(unsigned char)' is divisible only by one and since one is a divisor of every type's size, every type is suitably aligned for `unsigned char'."
3
2504
by: Bill Pursell | last post by:
I have a program that does most of its work traversing a bunch of lists. The lists contain a void *, and I spent some time today replacing the void *'s with a copy of the data at the end of the structure as a zero length array. The performance improvement that resulted by avoiding the need to dereference the ptr was substantial, but it has left me with an uncertain feeling. In particular, changing an assignment caused the output to...
12
818
by: Yevgen Muntyan | last post by:
Hey, Consider the following code: #include <stdlib.h> #define MAGIC_NUMBER 64 void *my_malloc (size_t n) { char *result = malloc (n + MAGIC_NUMBER);
10
2214
by: haomiao | last post by:
I want to implement a common list that can cantain any type of data, so I declare the list as (briefly) --------------------------------------- struct list { int data_size; int node_num; char nodes; //will be list_node1,list_node2... };
11
2308
by: Brian Gladman | last post by:
A lot of low level cryptographic code and some hardware cryptographic accelerators either fail completely or perform very poorly if their input, output and/or key storage areas in memory are not aligned on specific memory boundaries. Moreover, in many situations the cryptographic code does not itself have control over the memory alignment of its parameters so the best it can do is to detect if these aligmments are correct and act...
1
4340
by: RazvanD | last post by:
Hi! I am trying to get the page-aligned address for an ordinary memory address. As I am using an x86-based CPU the page size is 4KB. Thus, assuming addr is the memory address, I could get the page-aligned address by using the following methods:
8
2831
by: Stephen Horne | last post by:
I understand that the next C++ standard will have features to handle the alignment of data types. This is good, but a bit late for me! I've been using some template trickery to handle alignment issues for some time. What I usually want is a type that takes the same amount of space and has the same alignment as some other type, but which doesn't have constructors, destructors etc. The idea is that initialisation and cleanup can be done...
0
9686
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10475
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
10250
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
10026
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
7564
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
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
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
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
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.