Author Topic: Word Clock  (Read 12965 times)

0 Members and 1 Guest are viewing this topic.

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

FellippeHeitor

  • Guest
Word Clock
« on: December 09, 2018, 10:17:24 pm »
Here's a Word Clock programmed using InForm.

Captura de Tela 2018-12-10 às 01.13.59.png

Unpack the contents of the zip below into your QB64 folder (or to the folder of your choice provided the file falcon.h is placed in the QB64 folder), load WordClock.bas into the IDE and hit F5 to compile and run.

The zip contains the minimum set of library files that must be distributed alongside an InForm-based project. To get InForm plus the form designer, head to qb64.org/inform
* WordClock.zip (Filesize: 81.58 KB, Downloads: 348)
« Last Edit: December 09, 2018, 10:18:36 pm by FellippeHeitor »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • Steve’s QB64 Archive Forum
Re: Word Clock
« Reply #1 on: December 09, 2018, 10:37:13 pm »
O’CLOCK isn’t highlighted in the screenshot.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

FellippeHeitor

  • Guest
Re: Word Clock
« Reply #2 on: December 09, 2018, 10:40:42 pm »
Cause 13 minutes had already passed since one o'clock :-)

This is based on this: https://www.reddit.com/r/mildlyinteresting/comments/a4pvms/this_clock_i_found_at_a_friends_party/ (more at
)
« Last Edit: December 09, 2018, 11:01:24 pm by FellippeHeitor »

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
Re: Word Clock
« Reply #3 on: December 10, 2018, 01:27:54 am »
I made one in SCREEN 0 years ago. It was based on the Micky Mouse watch, popular in the 1960's. At 12:30 it would read...

It's half past the mouse's ASCII.

Cool. Ever thought of hooking it up with text to speech?

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline Qwerkey

  • Forum Resident
  • Posts: 755
Re: Word Clock
« Reply #4 on: December 11, 2018, 04:06:56 am »
O’CLOCK isn’t highlighted in the screenshot.

Fellippe's wording is quite correct, I think.  "It is one o'clock"; "It is ten (minutes) past one".

Is this different in the US?

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • Steve’s QB64 Archive Forum
Re: Word Clock
« Reply #5 on: December 11, 2018, 08:19:53 am »
O’CLOCK isn’t highlighted in the screenshot.

Fellippe's wording is quite correct, I think.  "It is one o'clock"; "It is ten (minutes) past one".

Is this different in the US?

If we’re talking speech, o’clock is usually avoided altogether.

“What time is it?”

“One.”



When writing, I was under the impression that the o’clock should still be used.  “Ten minutes past one o’clock.”  Written words are more ambiguous than spoken, as we don’t have environmental cues like scene, facial expression, and personal interactive experience to help differentiate their meaning.

But, as an author, I can also firmly attest that all rules of writing can be firmly tossed out the window and forgotten when it comes to creative applications.  (Such as, “Never start a sentence with ‘But’, as I just did for emphasis. :P). If Fell likes it as is, its fine as is.  I was just thinking it was a flag he may have missed setting, so I mentioned it.  Not a big deal either way; just personal preference in linguistic styles. ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Qwerkey

  • Forum Resident
  • Posts: 755
Re: Word Clock
« Reply #6 on: December 11, 2018, 09:22:42 am »
Steve, I temporarily forgot your unparalleled lexical expertise.  I had not thought about the o'clock when not exactly the hour.  It does sound odd "it is ten past one o'clock", but I suppose that it is technically correct.
« Last Edit: December 11, 2018, 12:49:48 pm by Qwerkey »

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Word Clock
« Reply #7 on: December 11, 2018, 10:47:10 am »
I haven't researched this at all, but I assume "o clock" must have started as "on the clock". As in "It's 10 minutes and 23 seconds on the clock".

How to settle the argument you're all having, I have no idea - we should divert to the wisdom of Fellippe, whom has a better command of English than most native speakers and patently *everyone* not from the northeast.
« Last Edit: December 11, 2018, 10:48:35 am by STxAxTIC »
You're not done when it works, you're done when it's right.

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
Re: Word Clock
« Reply #8 on: December 11, 2018, 11:02:46 am »
My question is... It's ten minutes past one... Well, ten minutes past one WHAT? O'clock clears that up, nicely. That's not so much from a literary standard as it is from a comedic one. Now kidding aside for the moment, I think most people in The U.S. say, "It's ten past one." Minutes are implied, although sure, some kook could mean it's 10 seconds past one, but we don't even have people that nutty living here in California. Quarter past and half past are used more than 15 past and 30 past. After is sometimes used instead of past. No one ever says it's a third past anything, or three-quarters past, for that matter. How about it's 25-cents shy of a dollar past one? Well, there I go again.

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • Steve’s QB64 Archive Forum
Re: Word Clock
« Reply #9 on: December 11, 2018, 11:25:24 am »
I haven't researched this at all, but I assume "o clock" must have started as "on the clock". As in "It's 10 minutes and 23 seconds on the clock".

How to settle the argument you're all having, I have no idea - we should divert to the wisdom of Fellippe, whom has a better command of English than most native speakers and patently *everyone* not from the northeast.

O’clock is used when the primary hour is in use.

One o’clock.  Two o’clock.

One thirty doesn’t have o’clock.  Verbally, “half past one” doesn’t need it, but I was always taught when writing, the rule is to follow the hour, so it’s “half past one o’clock” written.

Of course, writing rules change over time, and with the invention of text messages and mobile keyboards, a lot of those older rules are fading away.  Take “okay” for an example.  It used to be “okay”, but that was too much writing, so it became “OK”.  Now, it’s often just “K”. 

How I was taught 40 yrs ago may very well not be the same rule for the kids of today.  In the end, it’s not a big deal one way or another, and mainly a matter of personal preference — unless, of course, somebody is paying you to code it.  Then you follow their instructions, no matter how odd you might find them to be.  Paychecks trump personal preference, as I’ve had to deal with in writing.  To get a short story published in a local magazine, I had to change the word “niggerly” to “miserly”, because they found it “racist”.  (Insert loooooong sigh here.)

***********

@Pete: We don’t hear “three-quarters past”, but we do hear, “quarter till”.  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Qwerkey

  • Forum Resident
  • Posts: 755
Re: Word Clock
« Reply #10 on: December 11, 2018, 12:15:30 pm »
Interestingly, when English speakers say "It is half-past two" the Dutch say "het is half drie" (it is half (to) three).

Marked as best answer by on March 23, 2024, 08:35:51 pm

FellippeHeitor

  • Guest
Re: Word Clock
« Reply #11 on: December 11, 2018, 01:47:10 pm »
  • Undo Best Answer
  • Being a speaker of English as a foreign language, what I have to say is that that's how I've been taught and that's how I teach. Since language is a construction and as long as there are people speaking it there will be constant evolution, I can only watch as you natives discuss it and eventually tell my students: "this is how it works, but some native speakers disagree" and then proceed to quote each of you.

    Far from a linguistic assessment, the word clock above is solely based on the hardware version I presented in the links as the discussion unfolded. Since it *speaks* as I do, I felt quite comfortable using the same wording. Aside from that, I'm not that inclined to defend this or that form.

    @Pete:
    I don't think TTS capability is a must here, as having this sitting silently on the desktop looks like a better approach.

    However, it'd be as easy as adding this at the end of SUB __UI_BeforeUpdateDisplay (and adjusting the SHELL call accordingly):
    Code: QB64: [Select]
    1.     STATIC prevText$
    2.     TimeText$ = ""
    3.     FOR i = 1 TO UBOUND(Word)
    4.         IF Control(Word(i)).ForeColor = _RGB32(111, 205, 0) THEN 'if the word is highlighted
    5.             TimeText$ = TimeText$ + Caption(Word(i)) + " "
    6.         END IF
    7.     NEXT
    8.  
    9.     IF TimeText$ <> prevText$ THEN
    10.         prevText$ = TimeText$
    11.         SHELL "yourTTSprogram " + TimeText$ 'this line requires being adapted to the way the TTS program requires to be called
    12.     END IF

    Offline Pete

    • Forum Resident
    • Posts: 2361
    • Cuz I sez so, varmint!
    Re: Word Clock
    « Reply #12 on: December 11, 2018, 06:12:03 pm »
    That's neat. Unlike your desktop only plan, this TTS addition would be practical for me. I often fall asleep in the recliner, while working on my laptop. With TTS, I could get it to say... "It's past eleven o'clock. Go to bed, dumbass! It would be nice hearing that in something other than my wife's voice, for a change. :(

    Pete
    Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/