Thread: [Doxygen-users] Zooming text in doxygen chm file
Brought to you by:
dimitri
From: Maciej W <tri...@gm...> - 2014-03-19 10:28:17
|
Greetings, I've just downloaded doxygen and wanted to read the documentation from the chm file. The problem I have with the help file is that it is impossible to zoom the text / change the size of the font. Could the zoom option in doxygen chm help file be fixed? Cheers. |
From: Albert <alb...@gm...> - 2014-03-19 17:49:17
|
How do you think this can be achieved? I looked at some documentation ( http://savannah.nongnu.org/projects/chmspec and http://download.savannah.gnu.org/releases/chmspec/) but was not able to find anything usable to put in the chm file. I found this article: http://geekycoder.wordpress.com/2010/01/12/solutions-to-enlarge-the-text-size-of-chm-without-tears/but this is on a per computer bas as far as I can see. Albert On Wed, Mar 19, 2014 at 11:28 AM, Maciej W <tri...@gm...> wrote: > Greetings, > > I've just downloaded doxygen and wanted to read the documentation from the > chm file. The problem I have with the help file is that it is impossible to > zoom the text / change the size of the font. > Could the zoom option in doxygen chm help file be fixed? > > Cheers. > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users > > |
From: Albert <alb...@gm...> - 2014-03-21 17:41:39
|
Hi Maciej, Thank you for the answer. How it will work for the user is indeed through the Font button. The "How to achieve this" is more on the programming / configuration level, I have not been able to find information to achieve the requested functionality. In the article I mentioned in my previous email there was a way to achieve it by setting some flags trough some settings in the IE properties panel. I assume there must be another way as well, but how? I tried the method mentioned in the article and this worked for me. You mention and image in your last mail. Where can I find the corresponding chm file so I can have a look if they have set something special. Albert On Fri, Mar 21, 2014 at 10:12 AM, Maciej W <tri...@gm...> wrote: > Hello Albert, > > this is how it works in other chm files: http://i.imgur.com/TsPaI4y.png . > Upon clicking on that button the size of the font of the chm changes (there > are five hard-coded zoom levels). I've also seen other chm files that > displayed a menu with available zoom ratios upon clicking on a similar > button. > > > On Wed, Mar 19, 2014 at 6:49 PM, Albert <alb...@gm...> wrote: > >> How do you think this can be achieved? I looked at some documentation ( >> http://savannah.nongnu.org/projects/chmspec and >> http://download.savannah.gnu.org/releases/chmspec/) but was not able to >> find anything usable to put in the chm file. >> I found this article: >> http://geekycoder.wordpress.com/2010/01/12/solutions-to-enlarge-the-text-size-of-chm-without-tears/but this is on a per computer bas as far as I can see. >> >> Albert >> >> >> >> On Wed, Mar 19, 2014 at 11:28 AM, Maciej W <tri...@gm...> wrote: >> >>> Greetings, >>> >>> I've just downloaded doxygen and wanted to read the documentation from >>> the chm file. The problem I have with the help file is that it is >>> impossible to zoom the text / change the size of the font. >>> Could the zoom option in doxygen chm help file be fixed? >>> >>> Cheers. >>> >>> >>> ------------------------------------------------------------------------------ >>> Learn Graph Databases - Download FREE O'Reilly Book >>> "Graph Databases" is the definitive new guide to graph databases and >>> their >>> applications. Written by three acclaimed leaders in the field, >>> this first edition is now available. Download your free book today! >>> http://p.sf.net/sfu/13534_NeoTech >>> _______________________________________________ >>> Doxygen-users mailing list >>> Dox...@li... >>> https://lists.sourceforge.net/lists/listinfo/doxygen-users >>> >>> >> > |
From: TP <wi...@gm...> - 2014-03-22 01:10:12
|
First of all, changing the font size while viewing a CHM file can be done by simply pressing Control+"+" or Control+"-" (control+Plus or control+Minus keys). The Locate / Next / Previous / Zoom toolbar buttons can be enabled by following the instructions at "Adding tabs and toolbar buttons to HTML Help" [1]. Additional info is at the HTML Help FAQ "Toolbar buttons" article [2], "Adding The MSDN Menu To A CHM" [3], "Adding The Font Button To A CHM" [4], and "How To Add a Font Button to an HTML Help Window Toolbar" [5]. chm is pretty old now, but I have often wondered why this isn't the default. In particular, it is very handy to have the "msdn" / Next / Previous icons since that allows you to navigate thru the chm using the Alt+Down / Alt+Up keyboard shortcuts. BTW, changing toolbar button visibility requires the free Microsoft HTML Help Workshop [6]. It can be used to decompile CHM files that you didn't make yourself. [1] http://www.mif2go.com/xhtml/htmlhelp_0016_943addingtabsandtoolbarbuttonstohtmlhelp.htm#Rz108x95873 [2] http://wiki.helpmvp.com/home/notes/hhfaq#TOC-Toolbar-Buttons [3] http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtips.html#addmenu2chm [4] http://frogleg.mvps.org/helptechnologies/htmlhelp/hhtips.html#addfontbtnchm [5] http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q240062& [6] http://www.microsoft.com/en-us/download/details.aspx?id=21138 On Fri, Mar 21, 2014 at 10:41 AM, Albert <alb...@gm...> wrote: > > The "How to achieve this" is more on the programming / configuration > level, I have not been able to find information to achieve the requested > functionality. In the article I mentioned in my previous email there was a > way to achieve it by setting some flags trough some settings in the IE > properties panel. I assume there must be another way as well, but how? > I tried the method mentioned in the article and this worked for me. > |
From: Maciej W <tri...@gm...> - 2014-03-22 10:42:42
|
TP, thanks for the links. On Sat, Mar 22, 2014 at 2:09 AM, TP <wi...@gm...> wrote: > First of all, changing the font size while viewing a CHM file can be done > by simply pressing Control+"+" or Control+"-" (control+Plus or > control+Minus keys). > > Ctrl++/- fail for me in the standard Windows CHM viewer while the doxygen help file is opened (Windows XP SP3). Also, the Font button is visible, but nothing happens upon clicking on it. On Fri, Mar 21, 2014 at 10:41 AM, Albert <alb...@gm...> wrote: > > The "How to achieve this" is more on the programming / configuration > level, I have not been able to find information to achieve the requested > functionality. In the article I mentioned in my previous email there was a > way to achieve it by setting some flags trough some settings in the IE > properties panel. I assume there must be another way as well, but how? > I tried the method mentioned in the article and this worked for me. > > Total Commander has a chm file with a working Font button. Thanks. |
From: TP <wi...@gm...> - 2014-03-22 14:08:17
|
On Sat, Mar 22, 2014 at 3:42 AM, Maciej W <tri...@gm...> wrote: > Ctrl++/- fail for me in the standard Windows CHM viewer while the doxygen > help file is opened (Windows XP SP3). Also, the Font button is visible, but > nothing happens upon clicking on it. Just tried the doxygen 1.8.6 CHM, and Ctrl++/Ctrl+-/Ctrl+0 (reset font size) work for me on Windows 7 (and IE11 which I believe is what actually displays the pages?). You have to make sure to first click in the main area of the CHM viewer to set the keyboard focus --- otherwise the focus by default is the left side Contest/Search/Favorites area and those keys won't work. You are right, the Font button is visible but does nothing. |
From: Albert <alb...@gm...> - 2014-03-22 15:00:51
|
My experience (Windows 7 IE9) with the different chm files: - doxygen font button present but doesn't do anything, <cntrl>++ etc don't do anything - total commander font button works, <cntrl>++ etc don't do anything Enable "Options" -> "Internet Options .." -> "General" -> "Accessibility" -> "Ignore font sizes specified on webpages": - doxygen font button works, <cntrl>++ etc don't do anything - total commander font button works, <cntrl>++ etc don't do anything (no change) Had a look at the total commander chm file and content but didn't see something that makes the "Font button" work. I also studied the links TP supplied (thanks) but no new insights except the sentence "*Note: * If you check *Zoom*, also specify relative units for font sizes in CSS; see §9.4.1 *Using CSS and font tags with HTML Help*<http://www.mif2go.com/xhtml/htmlhelp_0014_941usingcssandfonttagswithhtmlhelp.htm#Rz108x49537>." from the first reference, but could not find anything how to apply this. Albert On Sat, Mar 22, 2014 at 3:07 PM, TP <wi...@gm...> wrote: > > On Sat, Mar 22, 2014 at 3:42 AM, Maciej W <tri...@gm...> wrote: > >> Ctrl++/- fail for me in the standard Windows CHM viewer while the doxygen >> help file is opened (Windows XP SP3). Also, the Font button is visible, but >> nothing happens upon clicking on it. > > > Just tried the doxygen 1.8.6 CHM, and Ctrl++/Ctrl+-/Ctrl+0 (reset font > size) work for me on Windows 7 (and IE11 which I believe is what actually > displays the pages?). You have to make sure to first click in the main area > of the CHM viewer to set the keyboard focus --- otherwise the focus by > default is the left side Contest/Search/Favorites area and those keys won't > work. > > You are right, the Font button is visible but does nothing. > |
From: TP <wi...@gm...> - 2014-03-22 17:32:47
|
On Sat, Mar 22, 2014 at 8:00 AM, Albert <alb...@gm...> wrote: > My experience (Windows 7 IE9) with the different chm files: > - doxygen font button present but doesn't do anything, <cntrl>++ etc don't > do anything > - total commander font button works, <cntrl>++ etc don't do anything > Enable "Options" -> "Internet Options .." -> "General" -> "Accessibility" > -> "Ignore font sizes specified on webpages": > - doxygen font button works, <cntrl>++ etc don't do anything > - total commander font button works, <cntrl>++ etc don't do anything (no > change) > Had a look at the total commander chm file and content but didn't see > something that makes the "Font button" work. I also studied the links TP > supplied (thanks) but no new insights except the sentence "*Note: * If > you check *Zoom*, also specify relative units for font sizes in CSS; see §9.4.1 > *Using CSS and font tags with HTML Help*<http://www.mif2go.com/xhtml/htmlhelp_0014_941usingcssandfonttagswithhtmlhelp.htm#Rz108x49537>." > from the first reference, but could not find anything how to apply this. > > Albert > > > On Sat, Mar 22, 2014 at 3:07 PM, TP <wi...@gm...> wrote: > >> >> On Sat, Mar 22, 2014 at 3:42 AM, Maciej W <tri...@gm...> wrote: >> >>> Ctrl++/- fail for me in the standard Windows CHM viewer while the >>> doxygen help file is opened (Windows XP SP3). Also, the Font button is >>> visible, but nothing happens upon clicking on it. >> >> >> Just tried the doxygen 1.8.6 CHM, and Ctrl++/Ctrl+-/Ctrl+0 (reset font >> size) work for me on Windows 7 (and IE11 which I believe is what actually >> displays the pages?). You have to make sure to first click in the main area >> of the CHM viewer to set the keyboard focus --- otherwise the focus by >> default is the left side Contest/Search/Favorites area and those keys won't >> work. >> >> You are right, the Font button is visible but does nothing. >> > > [Resending to list] I decompiled the doxygen 1.8.6 CHM (but had to create my own .hhp project file because I guess that doesn't get decompiled?). Anyway, what "22.8.3 Specifying CSS size values and units of measurement" [1] says is: " if you are generating HTML Help and you want to enable the Font button on the toolbar, font sizes are best expressed in em units. Relative units (em, ex, and %) are based on whatever absolute unit (pt, pc, in, cm, mm, or px) is used for the font-size property of the <body> tag entry; " So, I just modified doxygen_manual.css and changed: body, table, div, p, dl { font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; font-size: 13px; line-height: 1.3; } to: body, table, div, p, dl { font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; line-height: 1.3; } Regenerating the CHM then makes the Font size button work (and Ctrl+= or Ctrl++,Ctrl+-,Ctrl+0 still work). And by doing the little trick mentioned in "Adding tabs and toolbar buttons to HTML Help" [2] I also added the Next / Previous buttons. that allow the use of the Alt+Down / Alt+Up keys. BTW, you can use F6 to switch the focus between the Navigation pane and the main window. It would probably be better to change all font-size specifications in the .css from px to em but doing only the above basically works (I didn't check very carefully). [1] http://www.mif2go.com/xhtml/htmlcss_0030_2283specifyingcsssizevaluesandunitsofmeasurement.htm#Rz121x63678 [2] http://www.mif2go.com/xhtml/htmlhelp_0016_943addingtabsandtoolbarbuttonstohtmlhelp.htm#Rz108x95873 |
From: Albert <alb...@gm...> - 2014-03-23 10:08:02
|
Thanks. The hhp file is generated by doxygen itself and unfortunately not recreated when decompiling the chm file. I'll see what I can do in respect to creating a patch and which recommendations for generating the doxygen manual I can give. Albert On Sat, Mar 22, 2014 at 6:31 PM, TP <wi...@gm...> wrote: > On Sat, Mar 22, 2014 at 8:00 AM, Albert <alb...@gm...> wrote: > >> My experience (Windows 7 IE9) with the different chm files: >> - doxygen font button present but doesn't do anything, <cntrl>++ etc >> don't do anything >> - total commander font button works, <cntrl>++ etc don't do anything >> Enable "Options" -> "Internet Options .." -> "General" -> "Accessibility" >> -> "Ignore font sizes specified on webpages": >> - doxygen font button works, <cntrl>++ etc don't do anything >> - total commander font button works, <cntrl>++ etc don't do anything (no >> change) >> Had a look at the total commander chm file and content but didn't see >> something that makes the "Font button" work. I also studied the links TP >> supplied (thanks) but no new insights except the sentence "*Note: * If >> you check *Zoom*, also specify relative units for font sizes in CSS; see §9.4.1 >> *Using CSS and font tags with HTML Help*<http://www.mif2go.com/xhtml/htmlhelp_0014_941usingcssandfonttagswithhtmlhelp.htm#Rz108x49537>." >> from the first reference, but could not find anything how to apply this. >> >> Albert >> >> >> On Sat, Mar 22, 2014 at 3:07 PM, TP <wi...@gm...> wrote: >> >>> >>> On Sat, Mar 22, 2014 at 3:42 AM, Maciej W <tri...@gm...> wrote: >>> >>>> Ctrl++/- fail for me in the standard Windows CHM viewer while the >>>> doxygen help file is opened (Windows XP SP3). Also, the Font button is >>>> visible, but nothing happens upon clicking on it. >>> >>> >>> Just tried the doxygen 1.8.6 CHM, and Ctrl++/Ctrl+-/Ctrl+0 (reset font >>> size) work for me on Windows 7 (and IE11 which I believe is what actually >>> displays the pages?). You have to make sure to first click in the main area >>> of the CHM viewer to set the keyboard focus --- otherwise the focus by >>> default is the left side Contest/Search/Favorites area and those keys won't >>> work. >>> >>> You are right, the Font button is visible but does nothing. >>> >> >> > [Resending to list] > > I decompiled the doxygen 1.8.6 CHM (but had to create my own .hhp project > file because I guess that doesn't get decompiled?). Anyway, what "22.8.3 > Specifying CSS size values and units of measurement" [1] says is: > > > " > if you are generating HTML Help and you want to enable the Font > button on the toolbar, font sizes are best expressed in em > units. Relative units (em, ex, and %) are based on whatever absolute > unit (pt, pc, in, cm, mm, or px) is used for the font-size property > of the <body> tag entry; > " > > > So, I just modified doxygen_manual.css and changed: > > body, table, div, p, dl { > font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; > font-size: 13px; > line-height: 1.3; > } > > to: > > body, table, div, p, dl { > font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; > line-height: 1.3; > } > > Regenerating the CHM then makes the Font size button work (and Ctrl+= or > Ctrl++,Ctrl+-,Ctrl+0 still work). And by doing the little trick mentioned > in "Adding tabs and toolbar buttons to HTML Help" [2] I also added the Next > / Previous buttons. that allow the use of the Alt+Down / Alt+Up keys. > > BTW, you can use F6 to switch the focus between the Navigation pane and > the main window. > > It would probably be better to change all font-size specifications in the > .css from px to em but doing only the above basically works (I didn't check > very carefully). > > [1] > http://www.mif2go.com/xhtml/htmlcss_0030_2283specifyingcsssizevaluesandunitsofmeasurement.htm#Rz121x63678 > > [2] > http://www.mif2go.com/xhtml/htmlhelp_0016_943addingtabsandtoolbarbuttonstohtmlhelp.htm#Rz108x95873 > > |
From: Maciej W <tri...@gm...> - 2014-03-24 15:24:20
|
Thanks very much for resolving the issue. On Sun, Mar 23, 2014 at 11:07 AM, Albert <alb...@gm...> wrote: > Thanks. > The hhp file is generated by doxygen itself and unfortunately not > recreated when decompiling the chm file. > I'll see what I can do in respect to creating a patch and which > recommendations for generating the doxygen manual I can give. > > Albert > > > On Sat, Mar 22, 2014 at 6:31 PM, TP <wi...@gm...> wrote: > >> On Sat, Mar 22, 2014 at 8:00 AM, Albert <alb...@gm...> wrote: >> >>> My experience (Windows 7 IE9) with the different chm files: >>> - doxygen font button present but doesn't do anything, <cntrl>++ etc >>> don't do anything >>> - total commander font button works, <cntrl>++ etc don't do anything >>> Enable "Options" -> "Internet Options .." -> "General" -> >>> "Accessibility" -> "Ignore font sizes specified on webpages": >>> - doxygen font button works, <cntrl>++ etc don't do anything >>> - total commander font button works, <cntrl>++ etc don't do anything (no >>> change) >>> Had a look at the total commander chm file and content but didn't see >>> something that makes the "Font button" work. I also studied the links TP >>> supplied (thanks) but no new insights except the sentence "*Note: * If >>> you check *Zoom*, also specify relative units for font sizes in CSS; >>> see §9.4.1 *Using CSS and font tags with HTML Help*<http://www.mif2go.com/xhtml/htmlhelp_0014_941usingcssandfonttagswithhtmlhelp.htm#Rz108x49537>." >>> from the first reference, but could not find anything how to apply this. >>> >>> Albert >>> >>> >>> On Sat, Mar 22, 2014 at 3:07 PM, TP <wi...@gm...> wrote: >>> >>>> >>>> On Sat, Mar 22, 2014 at 3:42 AM, Maciej W <tri...@gm...> wrote: >>>> >>>>> Ctrl++/- fail for me in the standard Windows CHM viewer while the >>>>> doxygen help file is opened (Windows XP SP3). Also, the Font button is >>>>> visible, but nothing happens upon clicking on it. >>>> >>>> >>>> Just tried the doxygen 1.8.6 CHM, and Ctrl++/Ctrl+-/Ctrl+0 (reset font >>>> size) work for me on Windows 7 (and IE11 which I believe is what actually >>>> displays the pages?). You have to make sure to first click in the main area >>>> of the CHM viewer to set the keyboard focus --- otherwise the focus by >>>> default is the left side Contest/Search/Favorites area and those keys won't >>>> work. >>>> >>>> You are right, the Font button is visible but does nothing. >>>> >>> >>> >> [Resending to list] >> >> I decompiled the doxygen 1.8.6 CHM (but had to create my own .hhp project >> file because I guess that doesn't get decompiled?). Anyway, what "22.8.3 >> Specifying CSS size values and units of measurement" [1] says is: >> >> >> " >> if you are generating HTML Help and you want to enable the Font >> button on the toolbar, font sizes are best expressed in em >> units. Relative units (em, ex, and %) are based on whatever absolute >> unit (pt, pc, in, cm, mm, or px) is used for the font-size property >> of the <body> tag entry; >> " >> >> >> So, I just modified doxygen_manual.css and changed: >> >> body, table, div, p, dl { >> font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; >> font-size: 13px; >> line-height: 1.3; >> } >> >> to: >> >> body, table, div, p, dl { >> font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif; >> line-height: 1.3; >> } >> >> Regenerating the CHM then makes the Font size button work (and Ctrl+= or >> Ctrl++,Ctrl+-,Ctrl+0 still work). And by doing the little trick mentioned >> in "Adding tabs and toolbar buttons to HTML Help" [2] I also added the Next >> / Previous buttons. that allow the use of the Alt+Down / Alt+Up keys. >> >> BTW, you can use F6 to switch the focus between the Navigation pane and >> the main window. >> >> It would probably be better to change all font-size specifications in the >> .css from px to em but doing only the above basically works (I didn't check >> very carefully). >> >> [1] >> http://www.mif2go.com/xhtml/htmlcss_0030_2283specifyingcsssizevaluesandunitsofmeasurement.htm#Rz121x63678 >> >> [2] >> http://www.mif2go.com/xhtml/htmlhelp_0016_943addingtabsandtoolbarbuttonstohtmlhelp.htm#Rz108x95873 >> >> > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Doxygen-users mailing list > Dox...@li... > https://lists.sourceforge.net/lists/listinfo/doxygen-users > > |