Changeset 3483350
- Timestamp:
- 03/16/2026 01:03:55 AM (12 days ago)
- Location:
- simple-ebook-viewer
- Files:
-
- 1 deleted
- 4 edited
-
tags/0.4.1/simple-ebook-viewer_v0.4.1.zip (deleted)
-
tags/1.0.0/README.md (modified) (8 diffs)
-
tags/1.0.0/readme.txt (modified) (8 diffs)
-
trunk/README.md (modified) (8 diffs)
-
trunk/readme.txt (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-ebook-viewer/tags/1.0.0/README.md
r3480712 r3483350 1 1 # Simple Ebook Viewer for WordPress 2 2 3 Simple plugin for WordPress that enables you to upload various ebook formats as normal media files and to display them in your site using a shortcode.3 Simple plugin for WordPress that enables you to upload various ebook formats as normal media files and to display them on your site using a shortcode. 4 4 5 Every ebook uploaded in your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel.5 Every ebook uploaded on your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel. 6 6 7 7 The plugin uses the library [foliate-js](https://github.com/johnfactotum/foliate-js) by John Factotum to display ebooks in the browser. … … 84 84 `Show-annotations` and `show-page-delimiters` let the user see on the pages the Calibre annotations (as highlighted text, if there are Calibre annotations in the ebook) and the page delimiters (as short vertical bars, if the ebook contains a page list). 85 85 86 `Color-scheme`: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user in their device or browser (light or dark).86 `Color-scheme`: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user on their device or browser (light or dark). 87 87 88 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users have also the option to apply some filters to the Viewer's colors (with the menu entry "Color filter...").88 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users also have also the option to apply some filters to the Viewer's colors (with the menu entry "Color filter..."). 89 89 90 90 You can set the default values for these filters with the following shortcode's attributes: … … 100 100 - accepted values: a valid CSS hex color code (default: **#FFFFFF**) 101 101 102 Set `activate-color-filter` to "true" is necessary to enable all the other filters, and set`bg-transparent-filter` to false is necessary to enable `bg-color-filter`.102 Setting `activate-color-filter` to "true" is necessary to enable all the other filters, and setting `bg-transparent-filter` to false is necessary to enable `bg-color-filter`. 103 103 104 104 `Bg-transparent-filter` and `bg-color-filter` are available for reflowable ebooks only. 105 105 106 `Invert-color-filter` inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, the white will become black and the black willbecome white.106 `Invert-color-filter` inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, white become black and black become white. 107 107 108 `Rotate-color-filter` rotates the hues of all the colors in the ebook, like in a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white).108 `Rotate-color-filter` rotates the hues of all the colors in the ebook, like on a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white). 109 109 110 110 There are some other settings that the users won't be able to change by themselves. These are: … … 112 112 - accepted values: "**true**", "**false**" (default: **false**. If **true**, **return-to-url** is also required) 113 113 * **`return-to-url`** 114 - accepted values: a URL with the same hostname thanthe page that contains the ebook viewer (default: '')114 - accepted values: a URL with the same hostname as the page that contains the ebook viewer (default: '') 115 115 * **`real-fullscreen`** 116 116 - accepted values: "**true**", "**false**" (default: **false**) … … 126 126 - accepted values: "**true**", "**false**" (default: **true**) 127 127 128 With `always-full-viewport` set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. `always-full-viewport="true"` requires that also `return-to-url` is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative , like "/" or "/books-gallery", or it can be absolute, but it needs to have the same hostname of the webpage that contains the ebook viewer (e.g. if the ebook viewer is opened in https://www.example.com/ebook-viewer, the URL in `return-to-url` needs tostart with https://www.example.com).128 With `always-full-viewport` set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. `always-full-viewport="true"` requires that also `return-to-url` is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative (e.g., "/" or "/books-gallery") or absolute. In either case, it must have the same hostname as the webpage containing the ebook viewer (e.g. if the viewer is at https://www.example.com/ebook-viewer, the absolute URL must start with https://www.example.com). 129 129 130 130 If `real-fullscreen` is set to "true", the ebook viewer will cover the entire screen instead of only the viewport of the webpage when the user clicks on the "full screen" icon. With `real-fullscreen` set to true, `always-full-viewport` is ignored, since the full screen requires an explicit action by the user. … … 134 134 **Caveat 2**: the ebook viewer is not strongly equipped to deal with dynamic content created or removed after the ebook opening, so you might encounter errors or inaccuracies when jumping from one ebook location to another in such a circumstance. 135 135 136 `Math-styles`: in recent years all the major browser have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressionwithout the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font.137 Another shortcoming in the current support of MathML ,is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling.136 `Math-styles`: in recent years all the major browsers have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressions without the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font. 137 Another shortcoming in the current support of MathML is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling. 138 138 139 139 `Ebook-author` and `ebook-title`: you can use these optional values to override the ones that the ebook viewer retrieves from the ebook metadata in order to display them to the users. 140 140 141 `Popup-notes`: show footnotes and endnotes as popup instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees).141 `Popup-notes`: show footnotes and endnotes as popups instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees). 142 142 143 143 ### Development … … 179 179 which is distributed under the MIT license. 180 180 181 As secondary dependencies of the foliate-js library, the plugin embeds other threelibraries:181 As secondary dependencies of the foliate-js library, the plugin embeds three other libraries: 182 182 * zip.js (https://github.com/gildas-lormeau/zip.js), licensed under the BSD-3-Clause; 183 183 * fflate (https://github.com/101arrowz/fflate), MIT licensed. … … 197 197 * Latin Modern (https://www.gust.org.pl/projects/e-foundry) by the Polish TeX Users Group, licensed under the GUST Font License. 198 198 199 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, atthe best of my knowledge, modifying their internal parameters and metadata.199 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, to the best of my knowledge, modifying their internal parameters and metadata. -
simple-ebook-viewer/tags/1.0.0/readme.txt
r3480740 r3483350 12 12 13 13 == Description == 14 After installing this plugin, you will be able to upload various ebook formats as normal media files and to display them in your site using a shortcode.14 After installing this plugin, you will be able to upload various ebook formats as normal media files and to display them on your site using a shortcode. 15 15 16 Every ebook uploaded in your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel.16 Every ebook uploaded on your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel. 17 17 18 18 The full source code of the plugin is hosted on [GitHub](https://github.com/wrCisco/simple-ebook-viewer-for-wp). … … 85 85 **Show-annotations** and **show-page-delimiters** let the user see on the pages the Calibre annotations (as highlighted text, if there are Calibre annotations in the ebook) and the page delimiters (as short vertical bars, if the ebook contains a page list). 86 86 87 **Color-scheme**: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user in their device or browser (light or dark).87 **Color-scheme**: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user on their device or browser (light or dark). 88 88 89 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users have alsothe option to apply some filters to the Viewer's colors (with the menu entry "Color filter...").89 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users also have the option to apply some filters to the Viewer's colors (with the menu entry "Color filter..."). 90 90 91 91 You can set the default values for these filters with the following shortcode's attributes: … … 102 102 - accepted values: a valid CSS hex color code (default: **#FFFFFF**) 103 103 104 Set **activate-color-filter** to "true" is necessary to enable all the other filters, and set**bg-transparent-filter** to false is necessary to enable **bg-color-filter**.104 Setting **activate-color-filter** to "true" is necessary to enable all the other filters, and setting **bg-transparent-filter** to false is necessary to enable **bg-color-filter**. 105 105 106 106 **Bg-transparent-filter** and **bg-color-filter** are available for reflowable ebooks only. 107 107 108 **Invert-color-filter** inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, the white will become black and the black willbecome white.108 **Invert-color-filter** inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, white become black and black become white. 109 109 110 **Rotate-color-filter** rotates the hues of all the colors in the ebook, like in a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white).110 **Rotate-color-filter** rotates the hues of all the colors in the ebook, like on a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white). 111 111 112 112 There are some other settings that the users won't be able to change by themselves. These are: … … 115 115 - accepted values: "**true**", "**false**" (default: **false**. If **true**, **return-to-url** is also required) 116 116 * **`return-to-url`** 117 - accepted values: a URL with the same hostname thanthe page that contains the ebook viewer (default: '')117 - accepted values: a URL with the same hostname as the page that contains the ebook viewer (default: '') 118 118 * **`real-fullscreen`** 119 119 - accepted values: "**true**", "**false**" (default: **false**) … … 129 129 - accepted values: "**true**", "**false**" (default: **true**) 130 130 131 With **always-full-viewport** set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. **always-full-viewport="true"** requires that also **return-to-url** is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative , like "/" or "/books-gallery", or it can be absolute, but it needs to have the same hostname of the webpage that contains the ebook viewer (e.g. if the ebook viewer is opened in https://www.example.com/ebook-viewer, the URL in **return-to-url** needs tostart with https://www.example.com).131 With **always-full-viewport** set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. **always-full-viewport="true"** requires that also **return-to-url** is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative (e.g., "/" or "/books-gallery") or absolute. In either case, it must have the same hostname as the webpage containing the ebook viewer (e.g. if the viewer is at https://www.example.com/ebook-viewer, the absolute URL must start with https://www.example.com). 132 132 133 133 If **real-fullscreen** is set to "true", the ebook viewer will cover the entire screen instead of only the viewport of the webpage when the user clicks on the "full screen" icon. With **real-fullscreen** set to true, **always-full-viewport** is ignored, since the full screen requires an explicit action by the user. … … 137 137 **Caveat 2**: the ebook viewer is not strongly equipped to deal with dynamic content created or removed after the ebook opening, so you might encounter errors or inaccuracies when jumping from one ebook location to another in such a circumstance. 138 138 139 **Math-styles**: in recent years all the major browser have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressionwithout the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font.140 Another shortcoming in the current support of MathML ,is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling.139 **Math-styles**: in recent years all the major browsers have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressions without the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font. 140 Another shortcoming in the current support of MathML is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling. 141 141 142 142 **Ebook-author** and **ebook-title**: you can use these optional values to override the ones that the ebook viewer retrieves from the ebook metadata in order to display them to the users. 143 143 144 **Popup-notes**: show footnotes and endnotes as popup instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees).144 **Popup-notes**: show footnotes and endnotes as popups instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees). 145 145 146 146 == Warning == … … 154 154 which is distributed under the MIT license. 155 155 156 As secondary dependencies of the foliate-js library, the plugin embeds other threelibraries:156 As secondary dependencies of the foliate-js library, the plugin embeds three other libraries: 157 157 158 158 * zip.js (https://github.com/gildas-lormeau/zip.js), licensed under the BSD-3-Clause; … … 175 175 * Latin Modern (https://www.gust.org.pl/projects/e-foundry) by the Polish TeX Users Group, licensed under the GUST Font License. 176 176 177 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, atthe best of my knowledge, modifying their internal parameters and metadata.177 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, to the best of my knowledge, modifying their internal parameters and metadata. -
simple-ebook-viewer/trunk/README.md
r3480712 r3483350 1 1 # Simple Ebook Viewer for WordPress 2 2 3 Simple plugin for WordPress that enables you to upload various ebook formats as normal media files and to display them in your site using a shortcode.3 Simple plugin for WordPress that enables you to upload various ebook formats as normal media files and to display them on your site using a shortcode. 4 4 5 Every ebook uploaded in your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel.5 Every ebook uploaded on your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel. 6 6 7 7 The plugin uses the library [foliate-js](https://github.com/johnfactotum/foliate-js) by John Factotum to display ebooks in the browser. … … 84 84 `Show-annotations` and `show-page-delimiters` let the user see on the pages the Calibre annotations (as highlighted text, if there are Calibre annotations in the ebook) and the page delimiters (as short vertical bars, if the ebook contains a page list). 85 85 86 `Color-scheme`: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user in their device or browser (light or dark).86 `Color-scheme`: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user on their device or browser (light or dark). 87 87 88 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users have also the option to apply some filters to the Viewer's colors (with the menu entry "Color filter...").88 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users also have also the option to apply some filters to the Viewer's colors (with the menu entry "Color filter..."). 89 89 90 90 You can set the default values for these filters with the following shortcode's attributes: … … 100 100 - accepted values: a valid CSS hex color code (default: **#FFFFFF**) 101 101 102 Set `activate-color-filter` to "true" is necessary to enable all the other filters, and set`bg-transparent-filter` to false is necessary to enable `bg-color-filter`.102 Setting `activate-color-filter` to "true" is necessary to enable all the other filters, and setting `bg-transparent-filter` to false is necessary to enable `bg-color-filter`. 103 103 104 104 `Bg-transparent-filter` and `bg-color-filter` are available for reflowable ebooks only. 105 105 106 `Invert-color-filter` inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, the white will become black and the black willbecome white.106 `Invert-color-filter` inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, white become black and black become white. 107 107 108 `Rotate-color-filter` rotates the hues of all the colors in the ebook, like in a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white).108 `Rotate-color-filter` rotates the hues of all the colors in the ebook, like on a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white). 109 109 110 110 There are some other settings that the users won't be able to change by themselves. These are: … … 112 112 - accepted values: "**true**", "**false**" (default: **false**. If **true**, **return-to-url** is also required) 113 113 * **`return-to-url`** 114 - accepted values: a URL with the same hostname thanthe page that contains the ebook viewer (default: '')114 - accepted values: a URL with the same hostname as the page that contains the ebook viewer (default: '') 115 115 * **`real-fullscreen`** 116 116 - accepted values: "**true**", "**false**" (default: **false**) … … 126 126 - accepted values: "**true**", "**false**" (default: **true**) 127 127 128 With `always-full-viewport` set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. `always-full-viewport="true"` requires that also `return-to-url` is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative , like "/" or "/books-gallery", or it can be absolute, but it needs to have the same hostname of the webpage that contains the ebook viewer (e.g. if the ebook viewer is opened in https://www.example.com/ebook-viewer, the URL in `return-to-url` needs tostart with https://www.example.com).128 With `always-full-viewport` set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. `always-full-viewport="true"` requires that also `return-to-url` is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative (e.g., "/" or "/books-gallery") or absolute. In either case, it must have the same hostname as the webpage containing the ebook viewer (e.g. if the viewer is at https://www.example.com/ebook-viewer, the absolute URL must start with https://www.example.com). 129 129 130 130 If `real-fullscreen` is set to "true", the ebook viewer will cover the entire screen instead of only the viewport of the webpage when the user clicks on the "full screen" icon. With `real-fullscreen` set to true, `always-full-viewport` is ignored, since the full screen requires an explicit action by the user. … … 134 134 **Caveat 2**: the ebook viewer is not strongly equipped to deal with dynamic content created or removed after the ebook opening, so you might encounter errors or inaccuracies when jumping from one ebook location to another in such a circumstance. 135 135 136 `Math-styles`: in recent years all the major browser have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressionwithout the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font.137 Another shortcoming in the current support of MathML ,is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling.136 `Math-styles`: in recent years all the major browsers have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressions without the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font. 137 Another shortcoming in the current support of MathML is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling. 138 138 139 139 `Ebook-author` and `ebook-title`: you can use these optional values to override the ones that the ebook viewer retrieves from the ebook metadata in order to display them to the users. 140 140 141 `Popup-notes`: show footnotes and endnotes as popup instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees).141 `Popup-notes`: show footnotes and endnotes as popups instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees). 142 142 143 143 ### Development … … 179 179 which is distributed under the MIT license. 180 180 181 As secondary dependencies of the foliate-js library, the plugin embeds other threelibraries:181 As secondary dependencies of the foliate-js library, the plugin embeds three other libraries: 182 182 * zip.js (https://github.com/gildas-lormeau/zip.js), licensed under the BSD-3-Clause; 183 183 * fflate (https://github.com/101arrowz/fflate), MIT licensed. … … 197 197 * Latin Modern (https://www.gust.org.pl/projects/e-foundry) by the Polish TeX Users Group, licensed under the GUST Font License. 198 198 199 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, atthe best of my knowledge, modifying their internal parameters and metadata.199 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, to the best of my knowledge, modifying their internal parameters and metadata. -
simple-ebook-viewer/trunk/readme.txt
r3480740 r3483350 12 12 13 13 == Description == 14 After installing this plugin, you will be able to upload various ebook formats as normal media files and to display them in your site using a shortcode.14 After installing this plugin, you will be able to upload various ebook formats as normal media files and to display them on your site using a shortcode. 15 15 16 Every ebook uploaded in your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel.16 Every ebook uploaded on your site will have an "ebook slug" (by default it will be the ebook name) that you can view and edit in the Edit Media page of the Admin Panel. 17 17 18 18 The full source code of the plugin is hosted on [GitHub](https://github.com/wrCisco/simple-ebook-viewer-for-wp). … … 85 85 **Show-annotations** and **show-page-delimiters** let the user see on the pages the Calibre annotations (as highlighted text, if there are Calibre annotations in the ebook) and the page delimiters (as short vertical bars, if the ebook contains a page list). 86 86 87 **Color-scheme**: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user in their device or browser (light or dark).87 **Color-scheme**: "auto" means that the Viewer will adapt to the preferred color-scheme set by the user on their device or browser (light or dark). 88 88 89 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users have alsothe option to apply some filters to the Viewer's colors (with the menu entry "Color filter...").89 For most ebooks these preferences should be enough, but sometimes there are ebooks with style rules that don't play well with the styles set by the Viewer, so the users also have the option to apply some filters to the Viewer's colors (with the menu entry "Color filter..."). 90 90 91 91 You can set the default values for these filters with the following shortcode's attributes: … … 102 102 - accepted values: a valid CSS hex color code (default: **#FFFFFF**) 103 103 104 Set **activate-color-filter** to "true" is necessary to enable all the other filters, and set**bg-transparent-filter** to false is necessary to enable **bg-color-filter**.104 Setting **activate-color-filter** to "true" is necessary to enable all the other filters, and setting **bg-transparent-filter** to false is necessary to enable **bg-color-filter**. 105 105 106 106 **Bg-transparent-filter** and **bg-color-filter** are available for reflowable ebooks only. 107 107 108 **Invert-color-filter** inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, the white will become black and the black willbecome white.108 **Invert-color-filter** inverts the lightness of the colors. With a value of 0 it has no effect, with a value of 1, white become black and black become white. 109 109 110 **Rotate-color-filter** rotates the hues of all the colors in the ebook, like in a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white).110 **Rotate-color-filter** rotates the hues of all the colors in the ebook, like on a [Color Wheel](https://developer.mozilla.org/en-US/docs/Glossary/Color_wheel) (so, no effect on black and white). 111 111 112 112 There are some other settings that the users won't be able to change by themselves. These are: … … 115 115 - accepted values: "**true**", "**false**" (default: **false**. If **true**, **return-to-url** is also required) 116 116 * **`return-to-url`** 117 - accepted values: a URL with the same hostname thanthe page that contains the ebook viewer (default: '')117 - accepted values: a URL with the same hostname as the page that contains the ebook viewer (default: '') 118 118 * **`real-fullscreen`** 119 119 - accepted values: "**true**", "**false**" (default: **false**) … … 129 129 - accepted values: "**true**", "**false**" (default: **true**) 130 130 131 With **always-full-viewport** set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. **always-full-viewport="true"** requires that also **return-to-url** is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative , like "/" or "/books-gallery", or it can be absolute, but it needs to have the same hostname of the webpage that contains the ebook viewer (e.g. if the ebook viewer is opened in https://www.example.com/ebook-viewer, the URL in **return-to-url** needs tostart with https://www.example.com).131 With **always-full-viewport** set to "true", the ebook viewer will automatically cover the entire webpage when it is opened, and the "full screen" icon will be replaced by a "close viewer" icon. **always-full-viewport="true"** requires that also **return-to-url** is present, with a valid URL that indicates the destination of the user when they choose to close the viewer. The URL can be relative (e.g., "/" or "/books-gallery") or absolute. In either case, it must have the same hostname as the webpage containing the ebook viewer (e.g. if the viewer is at https://www.example.com/ebook-viewer, the absolute URL must start with https://www.example.com). 132 132 133 133 If **real-fullscreen** is set to "true", the ebook viewer will cover the entire screen instead of only the viewport of the webpage when the user clicks on the "full screen" icon. With **real-fullscreen** set to true, **always-full-viewport** is ignored, since the full screen requires an explicit action by the user. … … 137 137 **Caveat 2**: the ebook viewer is not strongly equipped to deal with dynamic content created or removed after the ebook opening, so you might encounter errors or inaccuracies when jumping from one ebook location to another in such a circumstance. 138 138 139 **Math-styles**: in recent years all the major browser have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressionwithout the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font.140 Another shortcoming in the current support of MathML ,is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling.139 **Math-styles**: in recent years all the major browsers have implemented a good deal of the MathML Core specification, so it is now possible to represent natively many mathematical expressions without the use of third party libraries. However, not all browsers and systems load automatically appropriate fonts. With math-styles set to "fonts" or "all", all the contents of MathML expression will use the Latin Modern font. 140 Another shortcoming in the current support of MathML is that only Gecko based browsers (i.e. Firefox) implement a breaking lines algorithm, so long math expressions within small screens usually don't fit entirely. With math-styles set to "styles" or "all", the plugin will use some html+css tricks to try to allow either line breaks or horizontal scrolling. 141 141 142 142 **Ebook-author** and **ebook-title**: you can use these optional values to override the ones that the ebook viewer retrieves from the ebook metadata in order to display them to the users. 143 143 144 **Popup-notes**: show footnotes and endnotes as popup instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees).144 **Popup-notes**: show footnotes and endnotes as popups instead of just links. The notes (and their references) need to be marked with the appropriate epub:type attributes to ensure that they are displayed as popups (the ebook viewer will try to recognize them anyway, but without guarantees). 145 145 146 146 == Warning == … … 154 154 which is distributed under the MIT license. 155 155 156 As secondary dependencies of the foliate-js library, the plugin embeds other threelibraries:156 As secondary dependencies of the foliate-js library, the plugin embeds three other libraries: 157 157 158 158 * zip.js (https://github.com/gildas-lormeau/zip.js), licensed under the BSD-3-Clause; … … 175 175 * Latin Modern (https://www.gust.org.pl/projects/e-foundry) by the Polish TeX Users Group, licensed under the GUST Font License. 176 176 177 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, atthe best of my knowledge, modifying their internal parameters and metadata.177 OpenDyslexic and Latin Modern fonts have been converted from their original OpenType format to the woff2 format for use on the web, without, to the best of my knowledge, modifying their internal parameters and metadata.
Note: See TracChangeset
for help on using the changeset viewer.