Request for help with CSS/Html formatted On-Calc Doc
|
09-25-2018, 12:36 AM
(This post was last modified: 09-25-2018 12:40 AM by Tim Wessman.)
Post: #1
|
|||
|
|||
Request for help with CSS/Html formatted On-Calc Doc
Hello,
Spurred on by the discussion at http://www.hpmuseum.org/forum/thread-2796.html and to assuage my guilt at having Terje Vallestad once again spend so much time working on it, I spent a bit of time over the weekend creating the ability to output a more easily consumed format for the built in help outside the HP Prime interface. I was planning to do it directly to PDF, but then I realized that if someone wanted to do things like make a table of contents, and indexes, images, etc it might be easier and better in the long term to go to HTML first as an intermediate step. Also, I wasn't sure that I could directly support writing of internal links between related topics with the limited pdf support I seem to have access to internally. Thus, I added the ability in the language/help tool to output a tagged html file from the tree. That should allow anyone interested to make edits in other tools and save/export into various formats. It has been far too long since I've done HTML/CSS stuff nor was it ever a specialty. The request I have is for anyone willing:
Hopefully, with a bit of tweaking between both the internal side (by me, to add any changes to the automatic output) and suggestions from interested people reading this, we can make it so that a single click will spit out a decent enough looking document to be useful. At that point I will ensure that all supported languages receive the same treatment and are made available in some way. Please don't go through and hand edit or modify the existing document! The goal really is to figure out how to automate it and make it easier all around - not just to do a one off fix of things! WIP_Html_Output_Prime_Help.zip (Size: 239.6 KB / Downloads: 71) (html file and css file to open locally on your end to play with) Thank you! TW Although I work for HP, the views and opinions I post here are my own. |
|||
09-25-2018, 10:55 AM
Post: #2
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
Awesome that something happened so quickly. Many thanks!
Wikis are great, Contribute :) |
|||
09-25-2018, 01:01 PM
(This post was last modified: 09-25-2018 03:52 PM by chromos.)
Post: #3
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
Some simple and quick ideas in css style (you can see it here: http://chromos.cz/_exported/hp_prime/myHtmlPage.html)
PHP Code: body { Notes: 1) In html file, there should be <head> before <meta>. 2) There is many duplicated 'id's in html file, see w3.org validator. Prime G2, 15C CE |
|||
09-25-2018, 05:50 PM
Post: #4
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
Prime G2, 15C CE |
|||
09-26-2018, 02:16 AM
(This post was last modified: 09-26-2018 03:24 AM by compsystems.)
Post: #5
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
I will collaborate with extra CAS examples (text format) and cmds without documentation, of course, you make changes in the writing of English, my English is not my native language.
For example for assume cmd() a second example assume(x, integer); solve(x^3-x^2+x = 1, x, '=' ) returns {x = 1} instead of {x = 1, x = i, x = −i}, // makelist Returns a list made with a function or with a constant. Or create a list of zeros from a constant as the final size makelist(Fnc/constant,lnitVal,FinalVal,StepVal) makelist(x->x^2,1,10,2) => [1,9,25,49,81] makelist(x->ifte(x<=2,y^x,z^x),1,5) => [y,y^2,z^3,z^4,z^5,z^6] makelist( 0,1,5 ) => [0,0,0,0,0] makelist( 5 ) => [0,0,0,0,0] |
|||
09-26-2018, 04:48 AM
Post: #6
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
I am not looking to add more text at this time. It is purely about how to modify existing tags/structure and and add some styling to make it look nicer.
TW Although I work for HP, the views and opinions I post here are my own. |
|||
09-26-2018, 05:30 AM
Post: #7
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-26-2018 04:48 AM)Tim Wessman Wrote: I am not looking to add more text at this time. It is purely about how to modify existing tags/structure and and add some styling to make it look nicer. How about fixing those [Help] texts where the second example is missing both the right arrow and the answer? |
|||
09-26-2018, 07:43 AM
Post: #8
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
Hello,
I like this initiative a lot. One can decide to use it as it is or print it. The important thing is that it will be updated with every firmware release. I understand this wants to be an extraction of the online help so, no extra contents. However I think it will be very useful. Thanks Giancarlo |
|||
09-26-2018, 08:56 AM
Post: #9
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-25-2018 05:50 PM)chromos Wrote: Second try is here: This is nice, but I think there is an issue with the sub-lists not being indented correctly, for example look at section 4.4.2 "Function Plot View". |
|||
09-26-2018, 11:09 AM
(This post was last modified: 09-26-2018 11:12 AM by Tim Wessman.)
Post: #10
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-25-2018 05:50 PM)chromos Wrote: http://chromos.cz/_exported/hp_prime2/myHtmlPage.html Looking quite nice! I never knew you could add a little lightbulb thing with CSS. I was surprised you've kept my horrible two colors though (the blue and red background). Surprisingly, they now actually look pretty decent! Have you found any places where you'd like more tags? Or fined blocks or elements missing tags you'd expect? TW Although I work for HP, the views and opinions I post here are my own. |
|||
09-26-2018, 11:11 AM
Post: #11
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-26-2018 05:30 AM)CyberAngel Wrote:(09-26-2018 04:48 AM)Tim Wessman Wrote: I am not looking to add more text at this time. It is purely about how to modify existing tags/structure and and add some styling to make it look nicer. Such as? There are examples with no given output specifically because it won't be useful, or has some randomness, or other types of things. Only items that show a result and arrow in the calculator, but are missing it in the outputted HTML are concerning at this point I think. TW Although I work for HP, the views and opinions I post here are my own. |
|||
09-26-2018, 03:04 PM
Post: #12
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-26-2018 08:56 AM)Didier Lachieze Wrote: This is nice, but I think there is an issue with the sub-lists not being indented correctly, for example look at section 4.4.2 "Function Plot View". Unfortunately, there are many such places, not only at section 4.4.2, because in source html code are no nested lists, they are coded as ordinary paragraphs. :-( (09-26-2018 11:09 AM)Tim Wessman Wrote: I was surprised you've kept my horrible two colors though (the blue and red background). Surprisingly, they now actually look pretty decent! They are corporation colors, so I was not dare enough to change them. :-) (09-26-2018 11:09 AM)Tim Wessman Wrote: Have you found any places where you'd like more tags? Or fined blocks or elements missing tags you'd expect? No, I think your code is very well made regarding to semantic. Only some lists aren't coded as lists (see my reply a few lines above). === I'm glad you both liked my effort. I tried to get as close as possible to the official HP Prime manual. = Current changelog at my css = Added PHP Code: .seealso a { Reason: 'See Also:' is in small-caps and links were in small-caps too. Prime G2, 15C CE |
|||
09-26-2018, 11:20 PM
Post: #13
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-26-2018 03:04 PM)chromos Wrote: They are corporation colors, so I was not dare enough to change them. :-) Boarding a plane to head to the HHC conference shortly so I can't say much - the colors most definitely were not "official" hp colors. In fact, the red "tomato" color was just some color from the CSS snipped I found and pasted in. The blue if you've pulled it from the document is probably some sort of corporate color. If it is the original one, that was just me picking a blue. Looks pretty amazing! I will see if I can do more to recognize some of the internal sub lists to correct those items. Will be a bit tricky, but I can probabably do it for 90-95% of them or so. Guess I know a project to work on in the flight! TW Although I work for HP, the views and opinions I post here are my own. |
|||
09-26-2018, 11:22 PM
Post: #14
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-25-2018 01:01 PM)chromos Wrote: 1) In html file, there should be <head> before <meta>. Can fix the first, but didn't see that reporting duplicate IDs. There may be a few help items placed in more then 1 spot, so guessing that is what they are potentially. Do you have an example though to help me test/findit? TW Although I work for HP, the views and opinions I post here are my own. |
|||
09-27-2018, 02:48 AM
(This post was last modified: 09-27-2018 02:50 AM by chromos.)
Post: #15
|
|||
|
|||
RE: Request for help with CSS/Html formatted On-Calc Doc
(09-26-2018 11:22 PM)Tim Wessman Wrote:(09-25-2018 01:01 PM)chromos Wrote: 1) In html file, there should be <head> before <meta>. Sorry, link to w3.org validator goes to my first page (which is no longer that page to prevent confusion). Proper link is now https://validator.w3.org/nu/?doc=http%3A...lPage.html. If you want, you can validate your own copy of html file here: https://validator.w3.org/ (by uri, file upload or pasting text). If nothing from above works for you, you can see saved result from w3.org validator here: http://chromos.cz/_exported/hp_prime2/va...result.htm. Prime G2, 15C CE |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)