Results 1 to 7 of 7

Thread: Photography / unicode related -- the chemicals. (a calculator written in ThinBasic)

  1. #1

    Photography / unicode related -- the chemicals. (a calculator written in ThinBasic)

    OK, first post ...

    As I fabricate all photography related chemicals myself, this is a handy tool (attached).

    (needs a font capable of subscript numbers, included and under Win7 I think the program will ask to install this font - (from disk).

    I converted this from a Lisp prog , written loooong time ago.

    questions : is subscript possible with unicode fonts in Thinbasic ???

    best Rob
    (http://www.ipernity.com/home/294723)
    Attached Files Attached Files
    Last edited by RobbeK; 06-03-2014 at 18:50.

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi Rob,

    again, very nice proggie! I think Unicode is one of the areas where ThinBASIC could improve.
    As PowerBASIC does have unicode string support, I think it should be possible to integrate it to TB as well.

    Moving to unicode would ideally mean unicode source files, to be able to insert Unicode literals and so on.

    Maybe there is way to achieve it right now via some kind of hack, I will check during weekend.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hi Rob,

    I investigated a bit and so far no luck producing unicode subscript.

    Does it mean dead end?

    In ThinBASIC, never!

    I prepared little OOP helper for you, used like:
    Uses "UI"
    
    #INCLUDE "uSubscriptWriter.tBasicU"
    
    DWord hCanvas = Canvas_Window("Subscript", 100, 100, 640, 480)
    Canvas_Attach(hCanvas, 0, TRUE)
      
      Dim sw As SubscriptWriter
      sw.Init("Courier New", 14, %CANVAS_FONTSTYLE_NORMAL)
      
      sw.Print("Speed")
      sw.PrintSub("Passenger")
      sw.Print(" = Speed")    
      sw.PrintSub("Vehicle")
      
    Canvas_Redraw
    Canvas_WaitKey
    
    Find the unit in the attachement please.


    Petr
    Attached Files Attached Files
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  4. #4
    ! great idea to adapt it to a canvas ....

    gave me another idea -- retro style as we used to program displays in the 70s (before the monitor).

    Every segment gets a unique power of 2 value in this way they give one to one compositions.

    A font-less system, rural & antique but it works ....
    (only numbers for the moment , made this rather quickly)

    best Rob -- thanks again
    (this is not the way the code should be built - the intention is doing the decoding by binary and masks - .. 00000 00001 00010 etc ....
    so the first segment has to turned on if n b.and 1 is True , the second (too) if n b.and ...00010 is true ... etc...

    (there are 10 types of people in this world, those who understand binary and those who dont ;-)
    Attached Files Attached Files
    Last edited by RobbeK; 10-03-2014 at 21:00.

  5. #5

    ME -- The poetry of the code ;-)

    A collage I made a few years ago.
    The idea was to combine computer language with photography.
    GFA compiler , the main loop that ends the program when the object in focus is destroyed.


    (it's soft nude , based on those popular Paris postcards -- if you don't like nudes, don't look (it seems such people exist))
    http://www.ipernity.com/doc/294723/31089717/sizes


    best (the definition of the dream)

    Rob
    Last edited by RobbeK; 15-03-2014 at 13:54.

  6. #6
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Hehe,

    no problem with nudity in this form, really unusual combination


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  7. #7
    Hi Petr,

    Reading the Me <> This , I suddenly remembered I made something related ;-)

    best Rob
    (Palach .. Icon/Person dilemma, probably only a few survivers can tell, maybe ).
    It sometimes is difficult , when I studied in Ghent (I'm Flemish) one day there were some lectures by Pachman (A CZ chess grandmaster - I had some books from his hand ) , in my infinite stupidity I thought he was going to talk about chess -- but he found exile in Germany and his lectures were about his semi-fascistic ideas ...

Similar Threads

  1. Creative Photography :) NASA Studios
    By Charles Pegge in forum Shout Box Area
    Replies: 4
    Last Post: 12-03-2014, 22:05
  2. Photography/Lens thread
    By mike lobanovsky in forum Technology
    Replies: 40
    Last Post: 09-03-2014, 20:31
  3. HELP FILE : Unicode information swapped
    By Michael Clease in forum Fixed or cleared errors in help material
    Replies: 1
    Last Post: 09-03-2011, 12:19
  4. Proposed Wide String (Unicode) support in OxygenBasic
    By Charles Pegge in forum O2h Compiler
    Replies: 2
    Last Post: 27-02-2011, 04:08
  5. Is this ASCII, ANSI, UNICODE or something else?
    By martin in forum thinAir General
    Replies: 12
    Last Post: 29-04-2009, 09:56

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •