Author Topic: A viewer of html for Nspire  (Read 13241 times)

0 Members and 1 Guest are viewing this topic.

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
A viewer of html for Nspire
« on: October 30, 2012, 11:43:12 am »
Message en français (version originale) :

Salut tout le monde !
Je ne vais pas disserter pendant des heures, le projet serait simplement de visualiser du html (avec css) sur TI-Nspire grâce à un programme fait en C. Bien entendu, les pages html seraient stockées sur la calculatrice (pas d'internet :P), mais ça permettrait de profiter des pages html sans les modifier simplement en les sauvant et les envoyant sur la caltos. De plus, cela prendrait ainsi moins de place mémoire que mViewer.

Seulement voilà : certes, je sais programmer en C sur Nspire (mais si j'ai encore rien fait de concret, mais faut bien un début à tout), mais en revanche, je ne vois pas du tout comment implémenter une bibliothèque qui à partir du code html, génère de l'image à directement afficher à l'écran. J'ai bien trouvé 2-3 trucs sur internet, mais je n'ai absolument rien compris à comment les utiliser.

Donc si des gens pouvaient me venir en aide en trouvant ce que je désire, je ferais peut-être un programme capable de vous lire des pages html sur Nspire ! ;D

Message in english (also an original version because I didn't traduce literally) :

Hi there !
I'm not gonna speak for hours, my project would simply be a reador of html (with css) on TI-Nspire thanks to a C program. Of course, the hyper text makup language pages (html :P) would be stored on the calculator (no wifi ;) ). The reador would enable us to read html's pages just by saving them from computer to the calculator. Moreover, the place in memory used would be less than mViewer.

But I need help ! I can program with C on Nspire (even though I haven't already coded anything on Nspire with C), but I don't know how implement a library which would do all the work by creating the image to show on the screen. I found some things on the net, but I didn't understand anything at all, too complicated.

So, if you can help me by finding a simple library doing that, I would probably create a Ndless program reading html for Nspire using the library. :angel:
« Last Edit: October 30, 2012, 05:04:49 pm by mdr1 »



Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: A reador of html for Nspire
« Reply #1 on: October 30, 2012, 12:29:15 pm »
recompile webkit?
* adriweb runs (?)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: A reador of html for Nspire
« Reply #2 on: October 30, 2012, 04:16:09 pm »
What about Lynx or Links?
Ndless.me with the finest TI-Nspire programs

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: A reador of html for Nspire
« Reply #3 on: October 30, 2012, 04:18:22 pm »
There are a lot of different command line based browsers. Most are based off of lynx or links/links2 though. They would probably work better.
/e

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: A viewer of html for Nspire
« Reply #4 on: October 30, 2012, 05:10:24 pm »
Lynx and Links seem to work only on Windows, Mac, Linux and OS/2.



Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: A viewer of html for Nspire
« Reply #5 on: October 30, 2012, 05:16:57 pm »
Aren't Linx/Links text-only? It would actually be nice to have some sort of HTML reader that supports tables or some other minor stuff that the calc can render and without taking too much space. Seems like a nice project regardless, though.

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: A viewer of html for Nspire
« Reply #6 on: October 30, 2012, 05:26:33 pm »
Lynx and Links seem to work only on Windows, Mac, Linux and OS/2.

You probably won't find any library directly compatible with the TI-Nspire except if it is compatible with SDL, since today SDL is the only standard UI interface supported by the TI-Nspire.
But hopefully this doesn't mean adapting these libraries or text-based browser is impossible.
Ndless.me with the finest TI-Nspire programs

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: A viewer of html for Nspire
« Reply #7 on: October 30, 2012, 05:55:55 pm »
You probably won't find any library directly compatible with the TI-Nspire except if it is compatible with SDL, since today SDL is the only standard UI interface supported by the TI-Nspire.
But hopefully this doesn't mean adapting these libraries or text-based browser is impossible.
But all I demande to the library is to return an image of 320*240 pixels which I display on the screen.
Why would it need any interface ?



Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: A viewer of html for Nspire
« Reply #8 on: October 30, 2012, 08:17:25 pm »
Why would you make an image out of the parsed data ??
Render directly the pase thigns would be *the* way to go, if any...



(the only good use of having an image is to actually grab a screenshot of the website you'hve wanted that got parsed by some computer :P)
« Last Edit: October 30, 2012, 08:17:56 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: A viewer of html for Nspire
« Reply #9 on: October 30, 2012, 08:30:35 pm »
Aren't Linx/Links text-only? It would actually be nice to have some sort of HTML reader that supports tables or some other minor stuff that the calc can render and without taking too much space. Seems like a nice project regardless, though.
Links2 can work on a graphics buffer. It's core is text only though.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: A viewer of html for Nspire
« Reply #10 on: October 30, 2012, 08:46:24 pm »
Ah that's good at least. However I meant it would be nice if it supported more than that, like the attachment below (well... maybe not THAT much lol)

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: A viewer of html for Nspire
« Reply #11 on: October 31, 2012, 09:35:58 am »
All I see for links2 is that : http://links.twibright.com/download/
Where's the source code ?  ???
(and how to use it)



Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: A viewer of html for Nspire
« Reply #12 on: October 31, 2012, 11:26:57 am »
Take a look on this page: http://links.twibright.com/download.php the source tarball is there
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: A viewer of html for Nspire
« Reply #13 on: October 31, 2012, 01:39:35 pm »
Is that an exe file he can instantly download without having to complile anything? I think that's what he wanted

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: A viewer of html for Nspire
« Reply #14 on: October 31, 2012, 01:49:13 pm »
A source tarball is a tar file containing all the source code. This is the most basic way of delivering software on linux. People will download the source tarball, extract it, compile it and then install the compiled software. This way when it is compiled it is compiled specifically for your system.
/e