Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - About hyphenation, Please do help

 
Thread Tools Search this Thread
Old 04-12-2006, 06:23 PM   #1
Default About hyphenation, Please do help


Can any one suggest a good way of hyphenation in an HTML table? I have
tried ­ but I cant say it is completely automated. I am looking for
some kind of line breaking algorithm. Please do help



sapanparikh18@gmail.com
  Reply With Quote
Old 04-12-2006, 08:13 PM   #2
Jukka K. Korpela
 
Posts: n/a
Default Re: About hyphenation, Please do help
wrote:

> Can any one suggest a good way of hyphenation in an HTML table?


There is none.

> I have tried ­ but I cant say it is completely automated.


Besides, ­ is far from universally supported, and it will appear as
a visible hyphen in many circumstances.

> I am looking for
> some kind of line breaking algorithm.


Browsers have some line breaking algorithms, usually poor and
undocumented, but that's a different issue.

Please explain and illustrate the problem. Browsers generally do not
hyphenate words, and this is sometimes a small problem, but what makes
this a big problem? If it's the fixed width you have allocated for a
table column, the solution should be obvious...


Jukka K. Korpela
  Reply With Quote
Old 04-12-2006, 09:43 PM   #3
sapanparikh18@gmail.com
 
Posts: n/a
Default Re: About hyphenation, Please do help
I am working in vb right now, where i have a small html control which i
am suppose to use as an input component. It displays a table which is
1.2428 inch in width. By any chance it should not increase that width
but as soon as i get a word longer then 1.2428 Inch the table gets
expanded to fit the word.
Thanks for response,
please reply.
Thanks



sapanparikh18@gmail.com
  Reply With Quote
Old 04-12-2006, 10:24 PM   #4
Jukka K. Korpela
 
Posts: n/a
Default Re: About hyphenation, Please do help
wrote:

> I am working in vb right now, where i have a small html control which i
> am suppose to use as an input component.


Sounds somewhat enigmatic. A URL would illustrate a lot. Anyway, making the
control (input field) larger might be part of the solution.

> It displays a table which is
> 1.2428 inch in width.


How does an HTML control display a table, and why is it that narrow?

> By any chance it should not increase that width


Even if the user needs a very large font size (say 2 inches)?

> but as soon as i get a word longer then 1.2428 Inch the table gets
> expanded to fit the word.


So is that a problem, or a solution? And how would hyphenation help?

P.S. In future, please quote or paraphrase what you are commenting on; see
http://www.netmeister.org/news/learn2quote.html

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




Jukka K. Korpela
  Reply With Quote
Old 04-13-2006, 02:25 PM   #5
sapanparikh18@gmail.com
 
Posts: n/a
Default Re: About hyphenation, Please do help
>>How does an HTML control display a table, and why is it that narrow?
This is an HTML Editor control like Front page, and it displays a table
because I have rendered it.

>>Even if the user needs a very large font size (say 2 inches)?

Max font size allowed is very small anyways

>>So is that a problem, or a solution? And how would hyphenation help?

Off course this is the problem, i want it not to expand and hyphenate
the word from a proper place
Thanks



sapanparikh18@gmail.com
  Reply With Quote
Old 04-13-2006, 02:48 PM   #6
Andy Dingley
 
Posts: n/a
Default Re: About hyphenation, Please do help

wrote:
> Can any one suggest a good way of hyphenation in an HTML table?

[In a somewhat obscure context, hosted within a VB app]

HTML is relatively poor at this. HTML can specify some of it, but
you're at the mercy of how particular browsers might deal with the
actual implementation. HTML is also optimised about displaying "pages"
at a scale that's appropriate for "whole page" viewing. A tiny VB
input control, used more for input than display, isn't quite so
appropriate.

If the default behaviour isn't what you need, then look at using a
different VB control - probably not HTML.



Andy Dingley
  Reply With Quote
Old 04-13-2006, 09:53 PM   #7
Jukka K. Korpela
 
Posts: n/a
Default Re: About hyphenation, Please do help
wrote:

>>>How does an HTML control display a table, and why is it that narrow?

> This is an HTML Editor control like Front page, and it displays a table
> because I have rendered it.


That doesn't explain what is going on. A URL might help, you know.

>>>Even if the user needs a very large font size (say 2 inches)?

> Max font size allowed is very small anyways


Then fix the design.

>>>So is that a problem, or a solution? And how would hyphenation help?

> Off course this is the problem, i want it not to expand and hyphenate
> the word from a proper place


You haven't told us the real problem (the problem that you made you paint
yourself into a corner), so stay tuned to not getting real answers,

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




Jukka K. Korpela
  Reply With Quote
Old 04-13-2006, 11:32 PM   #8
sapanparikh18@gmail.com
 
Posts: n/a
Default Re: About hyphenation, Please do help
Question is simple
if i write
<table style="width:1.2428in">
<tr>
<td>
pneumonosilicoultramicroscopicvolcanoconiosis or
www.msdn.microft.office.com
</td>
</tr>
</table>

the table's length should always remian 1.2428. This can happen by
entering hyphens whe when the word goes longer than 1.2428

I think this is clear enough this time.
Thanks



sapanparikh18@gmail.com
  Reply With Quote
Old 04-14-2006, 12:32 AM   #9
dorayme
 
Posts: n/a
Default Re: About hyphenation, Please do help
In article
< .com>,
wrote:

> the table's length should always remian 1.2428. This can happen by
> entering hyphens whe when the word goes longer than 1.2428
>
> I think this is clear enough this time.


I doubt that browsers have the ability to make anything in the
size you specify. An inch on one of my screens is 100px, on
another is about 68px (as I have them set at present). A browser
would need to know a screen resolution and calculate what an inch
and a fraction of an inch across would be, just imagine that and
handling rounding errors and getting it exact!

Imagine the absurd results if it could actually do this and
someone with tired eyes wanted to enlarge the text in the
browser. Does the table still remian 1.2428 inches long and show
only the tiniest bit of the content you wanted?

You need to think through the differences between the print and
screen scenes.

--
dorayme


dorayme
  Reply With Quote
Old 04-14-2006, 04:26 PM   #10
sapanparikh18@gmail.com
 
Posts: n/a
Default Re: About hyphenation, Please do help
Well I can specify it "in inch" in HTML code as I am more interested in
precise printing, doesn't matter if it doesn't shows up exactly of an
inch on the screen. I am already doing this on different resolution
computers, but it always prints 1.2428 inches.



sapanparikh18@gmail.com
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46