and want to get to the TOC… I think the “up” link should appear at
the top of the page. As in, if it is going to be anywhere, it should
be at the top. Ok to have it on the bottom as well. Not so usable to
have it only at the bottom.
This line shifted when content changed. I now set width of TOC to be
25% to stop shifting.On Monday, February 9, 2015 at 10:44:05 AM UTC-5, Yannick Duchêne wrote:
Le lundi 9 février 2015 15:56:44 UTC+1, gmhwxi a écrit :
I experimented with the following issues:
Fixing the position of the vertical bar that separates TOC from the
book content
Shrinking the right margin of the book content
I don’t understand issue #1. The vertical bar that separates the TOC from
the content: is this the dotted line?
To get this, we probably need some JS code to rearrange the layout of the
book.
OK, I see. There are two ways of achieving this: a static one relying on
your DSSSL sheet and a dynamic one relying on JavaScript. For JavaScript, I
see two possible variant: either use the main index page as the source for
the links or use an XML file a the source for the links.
I can only try the JavaScript way. May post something tomorrow or within
two or three days. There won’t be a search box, though.
To get this, we probably need some JS code to rearrange the layout of the
book.
Sorry for being late.
Here is: as attached files, INT2PROG.js and INT2PROG.css
INT2PROG.css is a modified version of the original. All changes are at
the end, and nothing else was changed.
INT2PROG.js is to be located in the same directory as INT2PROG.css and
additionally, this snippet must be added into each page, just before the
body closing tags (i.e. as the last element of the body) :
<script src="INT2PROG.js"></script>
I could not fully test it. If there is an issue, please, send me an archive
of all the files whith the snippet added at the end, so that I can better
test it.
If it’s OK or as soon as it will be OK, I will tweak the style a bit.
I don’t know if it’s temporary, but I noticed the previous Introduction to Programming in ATS with some
broken links, still have broken links. Ex: “Elements of Programming” ends
into a 404 error.
Also, as I noticed you seem to have opted for invocation from the end of
BODY, I changed the JS as attached. That’s about flicker with Firefox (and
also fixed some minor stuffs). There is a comment at the end saying what to
do if ever the invocation is moved to the HEAD (but better to leave it in
the BODY).
This line shifted when content changed. I now set width of TOC to be
25% to stop shifting.
That’s because I used display: table-cell. It’s not the same now.
As two attached files, the next version of CSS of JS.
Changes:
Added a tiny margin at the right of the content (for when the window
size is narrow).
The ToC side bar is now of a fixed size, and disappears if the window
width is less than 800 pixels.
The ToC remains fixed (does not scroll with the document) if its height
is less than the window height.
The selected entries markes as such in the ToC, are now aware of
possibly multiple entries matching the current document (ex. with “Elements
of Programming”).
The BODY is temporarily hidden until JS has done its job, so as to make
flickering less ugly on page load (witnessed on Firefox).
The main page (book1.html) is displayed the same as other pages, except
the ToC area is blank (less ugly and more constant).
On Monday, February 9, 2015 at 12:23:40 PM UTC-5, Yannick Duchêne wrote:
Le lundi 9 février 2015 17:03:48 UTC+1, gmhwxi a écrit :
Yes, the dotted vertical line.
This line shifted when content changed. I now set width of TOC to be
25% to stop shifting.
That’s because I used display: table-cell. It’s not the same now.
As two attached files, the next version of CSS of JS.
Changes:
Added a tiny margin at the right of the content (for when the window
size is narrow).
The ToC side bar is now of a fixed size, and disappears if the window
width is less than 800 pixels.
The ToC remains fixed (does not scroll with the document) if its
height is less than the window height.
The selected entries markes as such in the ToC, are now aware of
possibly multiple entries matching the current document (ex. with “Elements
of Programming”).
The BODY is temporarily hidden until JS has done its job, so as to
make flickering less ugly on page load (witnessed on Firefox).
The main page (book1.html) is displayed the same as other pages,
except the ToC area is blank (less ugly and more constant).
HTML-old.tar.gz is not so old backup I fetched with wget. I’m posting
it in case of, as there seems to be an issue with the actual online
version. Note as this was fetched with wget, some URLs was made local.
HTML-new.tar.gz is the book with the JavaScript and CSS variant applied.
Please, don’t care about the home page book1.html, and sometime you may
have to scroll up to see the navigation panel (there are some things still
to be tweak to make both nicer). To test it, just unpack into a folder and
open any page with a web‑browser (no need to put it online).
I have not yet figured out how to move links around yet. Hope that
someone familiar with CSS can give it a try.
Where would you like to move links? I may have a look.
Congratulation for this new style, … it’s a lot more beautiful than the
previous one, and I bet it will be an invitation to read the doc’ even more
than before.
By the way, I did not suspected DSSSL was still in use today.
It would be nice to have a navigation menu on the left-hand side of each
page. Not sure if this is easy to not.On Tuesday, February 3, 2015 at 4:12:57 PM UTC-5, Yannick Duchêne wrote:
Le mardi 3 février 2015 21:06:02 UTC+1, gmhwxi a écrit :
I finally learned a bit on customizing dsssl files. Take a look:
I have not yet figured out how to move links around yet. Hope that
someone familiar with CSS can give it a try.
Where would you like to move links? I may have a look.
Congratulation for this new style, … it’s a lot more beautiful than the
previous one, and I bet it will be an invitation to read the doc’ even more
than before.
By the way, I did not suspected DSSSL was still in use today.
Also, could you let me know how you added the link to INT2PROGINATS-BOOK.js
at the bottom of each page? I could not figure out how to do this using the
docbook
toolchain.On Mon, Feb 9, 2015 at 9:56 AM, Hongwei Xi gmh...@gmail.com wrote:
I experimented with the following issues:
Fixing the position of the vertical bar that separates TOC from the
book content
Shrinking the right margin of the book content
On Mon, Feb 9, 2015 at 9:38 AM, Hongwei Xi gmh...@gmail.com wrote:
Thanks!
I can now see the changes. I put a temporary link here
so that other people can see it:
HTML-old.tar.gz is not so old backup I fetched with wget. I’m
posting it in case of, as there seems to be an issue with the actual online
version. Note as this was fetched with wget, some URLs was made local.
HTML-new.tar.gz is the book with the JavaScript and CSS variant
applied. Please, don’t care about the home page book1.html, and sometime
you may have to scroll up to see the navigation panel (there are some
things still to be tweak to make both nicer). To test it, just unpack into
a folder and open any page with a web‑browser (no need to put it online).
To get this, we probably need some JS code to rearrange the layout of the
book.On Wed, Feb 4, 2015 at 5:47 PM, ‘Yannick Duchêne’ via ats-lang-users < ats-lan...@googlegroups.com> wrote:
Le mardi 3 février 2015 22:36:22 UTC+1, gmhwxi a écrit :
It would be nice to have a navigation menu on the left-hand side of each
page. Not sure if this is easy to not.
Enjoy :)On Monday, February 9, 2015 at 12:23:40 PM UTC-5, Yannick Duchêne wrote:
Le lundi 9 février 2015 17:03:48 UTC+1, gmhwxi a écrit :
Yes, the dotted vertical line.
This line shifted when content changed. I now set width of TOC to be
25% to stop shifting.
That’s because I used display: table-cell. It’s not the same now.
As two attached files, the next version of CSS of JS.
Changes:
Added a tiny margin at the right of the content (for when the window
size is narrow).
The ToC side bar is now of a fixed size, and disappears if the window
width is less than 800 pixels.
The ToC remains fixed (does not scroll with the document) if its
height is less than the window height.
The selected entries markes as such in the ToC, are now aware of
possibly multiple entries matching the current document (ex. with “Elements
of Programming”).
The BODY is temporarily hidden until JS has done its job, so as to
make flickering less ugly on page load (witnessed on Firefox).
The main page (book1.html) is displayed the same as other pages,
except the ToC area is blank (less ugly and more constant).
To get this, we probably need some JS code to rearrange the layout of the
book.
Sorry for being late.
Here is: as attached files, INT2PROG.js and INT2PROG.css
INT2PROG.css is a modified version of the original. All changes are at
the end, and nothing else was changed.
INT2PROG.js is to be located in the same directory as INT2PROG.css and
additionally, this snippet must be added into each page, just before the
body closing tags (i.e. as the last element of the body) :
<script src="INT2PROG.js"></script>
I could not fully test it. If there is an issue, please, send me an
archive of all the files whith the snippet added at the end, so that I can
better test it.
If it’s OK or as soon as it will be OK, I will tweak the style a bit.
I have not yet figured out how to move links around yet. Hope that
someone familiar with CSS can give it a try.On Tuesday, February 3, 2015 at 4:52:40 AM UTC-5, Raoul Duke wrote:
and want to get to the TOC… I think the “up” link should appear at
the top of the page. As in, if it is going to be anywhere, it should
be at the top. Ok to have it on the bottom as well. Not so usable to
have it only at the bottom.
Also, could you let me know how you added the link to INT2PROGINATS-BOOK.js
at the bottom of each page? I could not figure out how to do this using
the docbook
toolchain.
I did a sed -i … on all HTML files (ref face).
If you have issue adding it in the BODY but can add it in the HEAD, that’s
fine too, I would just add to change a tiny thing.
I will look at your changes in the CSS and merged it with other change I
done, then will send you another slight variantion of the JS and the CSS.
I don’t know if it’s temporary, but I noticed the previous Introduction to Programming in ATS with some
broken links, still have broken links. Ex: “Elements of Programming” ends
into a 404 error.
Also, as I noticed you seem to have opted for invocation from the end of
BODY, I changed the JS as attached. That’s about flicker with Firefox (and
also fixed some minor stuffs). There is a comment at the end saying what to
do if ever the invocation is moved to the HEAD (but better to leave it in
the BODY).