Pages: [1]   Go Down
  Print  
Author Topic: vertical text project  (Read 515 times)
0 Members and 2 Guests are viewing this topic.
邪悪歌
FuncMaster Flash
Administrator
*
Offline Offline

United States United States

Posts: 217



Functest of them all!


Awards
« on: Apr 01 2010, 09:19:06 »

Hello all... hansi inspired me to try playing around with the idea a bit of making a type of vertical text generator... I have made a really simple first draft prototype that seems to be working relatively well for the most part... I've noticed that the first line seems to add one additional character than it should, but I haven't really looked into the reason why yet... anyway, here's what I have so far, let me know what you think.  Coffee Grin
« Last Edit: Apr 08 2010, 02:55:03 by 邪悪歌 » Logged

日本語能力試験を取りたいんだ、手伝ってくれて有難う。

studying -
questioning -
phaed
the guy with the jumping-worm picture
Developer
*
Offline Offline

United States United States

Posts: 72




Awards
« Reply #1 on: Apr 01 2010, 01:36:36 »

You might want to fix an inconsistency in the CSS - for it to work well with Mozilla you need to set li's list-style to "none" as well.

Edit: also, the unclosed <ul> and unopened </ul> surrounding the JS are not XHTML-valid and don't work in FF 3.0.5. To fix this I added `document.write("<ul>")` and `document.write("</ul>")` to the start and end of the JS function, respectively.
« Last Edit: Apr 01 2010, 01:47:57 by phaed » Logged

I run Kono Mai at ConPlanet.

It is no measure of health to be well adjusted to a profoundly sick society.

1994 2007 2008 2010
邪悪歌
FuncMaster Flash
Administrator
*
Offline Offline

United States United States

Posts: 217



Functest of them all!


Awards
« Reply #2 on: Apr 01 2010, 04:27:54 »

thanks for the tips... but aside from that, how does it look?  like I said it's just kind of a rough draft and this morning I made a minor change where it will wrap after a period rather than basing it on a modulus of 10
Logged

日本語能力試験を取りたいんだ、手伝ってくれて有難う。

studying -
questioning -
phaed
the guy with the jumping-worm picture
Developer
*
Offline Offline

United States United States

Posts: 72




Awards
« Reply #3 on: Apr 01 2010, 04:41:01 »

thanks for the tips... but aside from that, how does it look?  like I said it's just kind of a rough draft and this morning I made a minor change where it will wrap after a period rather than basing it on a modulus of 10
Ah, that's good. I think it looks very nice, and the code is quite streamlined, which is good Big Grin Now you just need to release this to the world somehow Tongue
Logged

I run Kono Mai at ConPlanet.

It is no measure of health to be well adjusted to a profoundly sick society.

1994 2007 2008 2010
邪悪歌
FuncMaster Flash
Administrator
*
Offline Offline

United States United States

Posts: 217



Functest of them all!


Awards
« Reply #4 on: Apr 08 2010, 02:52:07 »

I have added those changes you mentioned and I made a new simple little experiment to help with the reverse direction...
basically my idea was to use a lisp-like recursive algorithm to swap the first sentence in a series of sentences to the end... you can use this for reversing the order of numbers and I thought it may help to reverse the order of sentences so that I can do some tricks and have them displayed from the right in reverse order in columns... I haven't yet devised the algorithm to reverse the order of the sentences... perhaps I'll have to assign them some sort of token or something to enumerate them... do you have any ideas?
anyway, here's the swap experiment I made

I also re-uploaded the original vert test with my changes in the original post...
« Last Edit: Apr 08 2010, 02:55:53 by 邪悪歌 » Logged

日本語能力試験を取りたいんだ、手伝ってくれて有難う。

studying -
questioning -
邪悪歌
FuncMaster Flash
Administrator
*
Offline Offline

United States United States

Posts: 217



Functest of them all!


Awards
« Reply #5 on: Apr 14 2010, 01:34:41 »

Okay, so I've just about worked it out...
I'm getting a very strange issue, but I haven't figured out yet what's causing it exactly...
I'm sure it's something fairly simple that I may just be overlooking, but I haven't figured out quite what yet exactly...

So, here's what I have so far...

Goals:
Display any text vertically - Y
Display Japanese text vertically - Y
Set up vertical text to split into columns based on sentence final symbol - Y ?
Sentence swap - Y but seemingly superfluous to this task
Reverse order of any sentences - Y
Reverse order of Japanese sentences - Y
Display sentences correctly in reverse order with periods - Y
Display Japanese text vertically in reverse order with periods - N

I am thinking that perhaps it may have to do with the way I set up the columns to display initially...
I had them set up so that a full string would be parsed and split up into units based on the location of the periods, but when I set up the string to be split and reversed, it split it up into an array of strings, thus eliminating the necessity for further checking in the original vertical display... I think that the original algorithm need merely be altered to allow for the new method of splitting the string to work properly... at this point, it will display the text vertically, but it will only display the last sentence for some reason

Edit: alright, I found out what the bug was (what I had suspected) and fixed the problem... it's working now Big Grin
« Last Edit: Apr 14 2010, 01:58:26 by 邪悪歌 » Logged

日本語能力試験を取りたいんだ、手伝ってくれて有難う。

studying -
questioning -
Pages: [1]   Go Up
  Print  
 
Jump to:  

May 20 2012, 02:51:31 | Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Skin by zeme
WikiLang Join WikiLang About WikiLang Wiki Recent Changes Help topics Index Page Forum Recent Posts Login Projects Language Tools Word of the Day ConPlanet (Recent) Affiliates WikiLang Friends Language Learners Forum