Francesco Martini
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Ebook Viewer] Show “Read aloud…”I close this thread as addressed in https://wordpress.org/support/topic/left-align-no-hyphens/
Forum: Plugins
In reply to: [Simple Ebook Viewer] Left-align, no hyphensWhat’s strange is that the code that manages text justification and hyphenation is exactly the same in the two versions that I shared with you, so I’m not sure what the cause might be for the different results.
Anyway, I’m glad that you found/wrote what works for you, in the next public version I’ll try to add justification and hyphenation as customisable options, you’ll need to update the shortcodes with the appropriate attributes before updating the plugin to not lose your settings.
About the text-to-speech controller, maybe I’ll add a handle to move it around… But we’ll see, I’ll think about it.
Forum: Plugins
In reply to: [Simple Ebook Viewer] Left-align, no hyphensThe available voice options are browser and system dependent. For example, with Chrome on Windows, you should have the local installed voices and the Google’s remote ones, in Edge you should have the local and the Microsoft’s remote ones, in Firefox you should have only the local ones.
The position of the text-to-speech controller is always at the top of the viewer, regardless of whether it has been manually activated or not.
I updated the customised version, let me know if that works consistently among browsers.
Forum: Plugins
In reply to: [Simple Ebook Viewer] Left-align, no hyphensIn the most recent version of the plugin, the name of the file should be just simebv-viewer.js, without the hash at the end. Aside from that, that is more or less the change I did in the custom version.
I shared with you the zip file of the customised plugin, which also shows the text-to-speech controller.
All the changes will be overwritten with the next update, which should include the shortcode attributes for those preferences.
Forum: Plugins
In reply to: [Simple Ebook Viewer] Left-align, no hyphensThere isn’t a way to do that at the moment, I’ll look into it for the next release. In the meantime, if in your website you want the text of the ebooks always left aligned and with no hyphens, I may be able to provide you with a custom version of the plugin with that setting enabled.
If you only want a specific ebook to have that setting, another immediately feasible workaround would be to insert the necessary styles directly in the ebook. The style rule would need to have selectors with higher specificity than the ones set by the viewer, which as of version 1.1.0 is:
p, li, blockquote, dd {
text-align: justify;
-webkit-hyphens: auto;
hyphens: auto;
}So, you would probably need to add a class or use something like
body p, body li, body blockquote, body ddas selectors.Forum: Plugins
In reply to: [Simple Ebook Viewer] Sizing ebook containerI think that the .po and .mo files from the translation platform contain only the translations of the strings in the php files (mainly for the admin panel), while I redacted manually the .po file for the italian translation embedded in the plugin and it contains all the translatable strings. The file that contains the majority of translations for the viewer in the frontend is the .json one (and for it to work, it’s important that the hash in the filename is 8ea62ac67c59323d2f8a1367744dc934).
I don’t know what to expect in terms of timing, I hope it gets sorted out soon.
Forum: Plugins
In reply to: [Simple Ebook Viewer] Sizing ebook containerBoth the plugin and the language pack were updated to the version 1.1.0 (the language pack should contain the json file simple-ebook-viewer-es_ES-8ea62ac67c59323d2f8a1367744dc934.json)?
If I try the plugin here I see the spanish translation as expected.
Forum: Plugins
In reply to: [Simple Ebook Viewer] Sizing ebook containerI released yesterday the version 1.1.0 of the plugin, which works with both italian and spanish translations. I’m not sure how long it takes for a WordPress instance to install the new language pack; to test it, I downloaded the updated zip file from https://translate.wordpress.org/projects/wp-plugins/simple-ebook-viewer/language-packs/ and copied the files inside wp-content/languages/plugins.
Forum: Plugins
In reply to: [Simple Ebook Viewer] change default for Show PositionHi, I released yeasterday the version 1.1.0 of the plugin, which adds the “pagination-style” option for the shortcode. Allowed values are “slider”, “pages” and “percent”.
Forum: Plugins
In reply to: [Simple Ebook Viewer] Sizing ebook containerHi, thank you!
I think I’ll need to release another new version of the plugin in order to display the new translation, as it is currently using an embedded italian translation and it can’t handle both local translations and those on the online platform at the same time.
I’m trying to get the italian translation approved on the platform as well, but if it isn’t unlocked by the start of next week, I’ll go ahead and release the new plugin’s version regardless.
Forum: Plugins
In reply to: [Simple Ebook Viewer] change default for Show PositionNo, I’m afraid that’s not possible right now. I’m adding it as a to-do for the next release.
Thank you
Forum: Plugins
In reply to: [Simple Ebook Viewer] Sizing ebook containerHi, sorry for the delay, I uploaded a new minor version of the plugin to allow user contributed translations on the WordPress platform: you should be able to go on https://translate.wordpress.org/projects/wp-plugins/simple-ebook-viewer/ and begin contributing a translation for one of the spanish locales. Let me know if you need anything, thanks!
Forum: Plugins
In reply to: [Simple Ebook Viewer] Sizing ebook containerHi, thank you for you kind words.
If by “fixed, non-dynamic dimensions” you mean pixels, you surely can, with
width="NNNpx"andheight="NNNpx". Otherwise, you can use any valid CSS value: if you have a container to fill, you can set both width and height to 100%, or you can use viewport units or more complex calculations with calc. Not knowing the exact layout of your page, I’m not sure what would work best for you.About the translation, that’s great! Give me a little time to set up the project and I’ll get back to you.
Forum: Plugins
In reply to: [Simple Ebook Viewer] Go back featureIt should be kept in memory even if you turn the page or select other options in the menu (and if you jump to yet another page through the Table of Contents or an internal link, you should be able to return to your original location by tapping on “Previous” twice). The history is lost when you reload the webpage, and partially lost if you tap on “Previous” and then jump to another page through TOC or an internal link: what was on “Next” at that point is deleted.
Are you having a different experience?
Forum: Plugins
In reply to: [Simple Ebook Viewer] Go back featureIt’s the second entry of the menu: “History”. If you have internal links in your ebook, after clicking them, you should be able to click on “Previous”, right after “History”, and go back to your previous location.