473,761 Members | 3,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fractions Simply Won't Display Properly

I've been searching in vain for a way to present typographically
correct fractions (not resorting to <sup> and <sub> tags) but have been
frustrated by the fact that the glyphs for one-half, one-eighth,
three-quarters, etc. do not display in the correct typeface (or even
consistently the same typeface) and seem totally resistant to attempt
to fix this through CSS:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Language" content="en">
<table>
<tr valign="top"><t d>&#x00bc;</td></tr>
<tr valign="top"><t d>&#x00bd;</td></tr>
<tr valign="top"><t d>&#x00be;</td></tr>
<tr valign="top"><t d>⅓</td></tr>
<tr valign="top"><t d>⅔</td></tr>
<tr valign="top"><t d>⅕</td></tr>
<tr valign="top"><t d>⅖</td></tr>
<tr valign="top"><t d>⅗</td></tr>
<tr valign="top"><t d>⅘</td></tr>
<tr valign="top"><t d>⅙</td></tr>
<tr valign="top"><t d>⅚</td></tr>
<tr valign="top"><t d>⅛</td></tr>
<tr valign="top"><t d>⅜</td></tr>
<tr valign="top"><t d>⅝</td></tr>
</table>
</body>
</html>

Any thoughts of a solution (other than using inlines like 1/2, 3/4,
etc. or other hacks)?

Jul 24 '05
33 6632
On Wed, 6 Jul 2005, Dr John Stockton wrote:
One should not pander to the incompetent. Do it so that it works well
in the majority of countries (there are more countries in the British
Isles than in the whole of North America), and include a footnote or
link explaining why they have their problem.


I take that, that one should write, for example, √
for the square root sign
http://www.unics.uni-hannover.de/nht...quareroot.html

but not <font face=Symbol>&Ou ml;</font>.
http://google.com/search?q=p.is.disp...859-1&filter=0

Jul 24 '05 #31
Dr John Stockton <jr*@merlyn.dem on.co.uk> wrote:

[ Discussing the use of FRACTION SLASH character, in a hypothetical
situation where it is supported as defined in the Unicode standard: ]
That would work for numeric fractions; but more is needed, as in my
gravity*.htm pages : a/b a + b/c a+b / c (a + 2b)/(c + 4d)


Fractional expressions are different from fractions as fractional
numbers. Traditional typography uses particular styles for the latter
but does not deal much with the former, partly because it revolves
around normal text rather than mathematical texts. Surely you need some
special markup or comparable tools if you wish to have fractional
expressions displayed in special ways (i.e. other than simple
linearized notation). HTML 3.0 had some realistic ideas about this, but
now we are in the jungle of messy and mostly unimplemented MathML.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 24 '05 #32
Andreas Prilop wrote:
Why then do you bother with entities? Write the text directly in UTF-8.
Isn't it more convenient to see, say, µ than &micro; ?


Seems problematic to me... how do I encode the files I've already done
easily and what happens when... say... I choose view source in my
browser (or for someone else's) will it show correctly or will they then
see mouse droppings throughout the text?

If I thought it would be reasonable I would...
Thank you...

Rich
Jul 24 '05 #33
On Fri, 8 Jul 2005, SeaPlusPlus wrote:
Seems problematic to me... how do I encode the files I've already done
easily
You could open with Netscape/Mozilla Composer and save as UTF-8.
and what happens when... say... I choose view source in my
browser (or for someone else's) will it show correctly or will they then
see mouse droppings throughout the text?


Try that at
http://www.unics.uni-hannover.de/nht...ilingual1.html

Jul 24 '05 #34

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

Similar topics

2
9249
by: karp | last post by:
Lets say I have the following class in order to add two fractions, class Fraction{ public: Fractions::Fraction(int numer = 0, int denom = 1) { valeurNumerateur = numer; valeurDenominateur = denom; }
0
1429
by: Mori | last post by:
Hi, How do I hold fractions in a string so I can display them and print them out? Say I want to display "2˝" (that's 2 and a half if this doesn't display either), but it displays "2?˝" (that's 2 follow by uppercase A with a squiggle on top, thenfollowed by a half). It's not just halfs I want to display either, it's eighths and three
2
7050
by: Mori | last post by:
Hi, Can someone supply a code example of displaying a string with a fractional part, say 5 and 7 16ths. I cannot find an example of how to use the Encoding object (if that is what you use). thanks, Mori
2
1641
by: Just Me | last post by:
I need a numerical updown control that displays fractions. If the increment is 1/16 it would display 1/16, 1/32, 3/16, 1/4... I thought I might inherit from a NumericalUpDown control and place a label on top of the display and put the text in that. Sounds kind of kluged. Anyone have a better approach?
15
14624
by: farah727rash | last post by:
Hi everyone, I have this problem and I don't know what's wrong with my program. I am trying to enter my two variables height and weight as fraction numbers. I declared them as float and also as double, but the program aborts when I input a fraction instead of decimal/integer number. Could someone tell me where the problem is, and what I need to do to correct my code? Thanks a lot in advance, Farah. #include <iostream> using namespace...
4
3380
by: Bob | last post by:
Hi All, Was wondering if in C# there is an elegant way of displaying and or calculating fractions. The case: we have an app that measures/slices dices etc and all our internal measures and counters are in metric measures ... (its a manufacturing tool) For display purposes this is fine for Australia/Europe/Asia .. however the US company likes to see the measures in feet/inches .. no real problem here.
1
1636
by: Semajthewise | last post by:
Here it is cleaned up a little more. Here's what this code does. It will take 2 fractions and add, subtract, multiply, or divide them. The user enters the fractions to be calculated into two textboxes. These can be entered as a whole number and a proper fraction, whole number and an improper fraction, just a proper/inproper fraction, or just a whole number. Form build Requirements: using Microsoft Visual Studio.NET 2003 single form...
5
5625
by: gubbachchi | last post by:
Hi all, How to convert the fractions into decimals and vice versa in php. I have a form, where the user will enter fractions in the text boxes such as "1 1/2", "1 1/4" and so on. I need to store all these values in mysql database after converting it into decimal value, and again fetch the value from database and re-convert it into fractions and display it to the user in a different php page. So what is best solution for this. Can anyone...
0
1245
by: Paddy | last post by:
(From: http://paddy3118.blogspot.com/2008/09/python-fractions-issue.html) There seems to be a problem/difference in calculating with the new fractions module when comparing Python 26rc2 and 30rc1 I was reading the paper "Interval Arithmetic: Python Implementation and Applications" and thought to try the first example function f(x,y), which needs more precision than Python floating point provides (on my Windows PC), to calculate a...
0
9377
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
9989
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...
1
9925
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8814
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7358
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
5266
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
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3913
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
3
2788
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.