B

Bram V

Member

Last active 7 years ago

  1. 7 years ago
    Thu Mar 2 11:02:59 2017
    B Bram V posted in Page scroll obtion.

    Many thanks, this is exactly what I was looking for. It works like a charm.

  2. Mon Feb 20 17:43:33 2017
    B Bram V started the conversation Load videos only with wifi connection, not with 3G/4G.

    My question is: can I selectively download/show videos when the user's device is on Wifi?

    Background: I have some large videos in my e-book, which make the e-book 'heavy'. So I want to download them only when they are necessary, they are not an essential part of the book. I would like to alert the user if the video will be downloaded via a cellular network, which might bring high costs. The book will be published as an iOS and Android app.

    iOS has a 'reachability ' api, to detect if the iOS device is on wifi or cellular. As far as I can see, this is not accessible from PubCoder, nor from javascript. An alternative might be measuring connection speed, yet that wouldn't help, because there is slow wifi and fast 4G and vice versa. It's not the connection speed that counts, but its costs.

    Do you see any other way to solve this? Any help would be appreciated!

  3. Mon Feb 20 15:42:06 2017
    B Bram V posted in Page scroll obtion.

    I've got exactly the same problem. Using 'touch up' in stead of 'touch down' doesn't help (it allows for scrolling, but as soon as you 'touch up' your finger, you still go to the linked page).

    Have you already found a solution? For me, splitting the Table of Contents into two pages wouldn't help, it would break up the layout.

    So I am looking for a way to stop the other interactions, as soon as the user swipes up.

    I would appreciate your help!

  4. Thu Oct 6 14:23:09 2016
    B Bram V started the conversation Manual language switch in iOS and Android app.

    How can I make a language switch in a multi-language app, independent from the system-wide language setting of the user device?

    This is the background of my question:

    I am making a bilingual app (English and Dutch) and anticipate that some users with a English language device will want to use the app in Dutch (and vice versa). In a small language area as ours, things get mixed, and I would like to give the user a language choice *within* the app.

    In iOS, this is possible in principle, as described here:
    http://stackoverflow.com/questions/9939885/manual-language-selection-in-an-ios-app-iphone-and-ipad
    This requires some programming in C and probably needs to be implemented on the level of PubCoder, not in an individual app.

    in Android apps, the problem is similar, and there is a similar solution in C, as described here:
    http://stackoverflow.com/questions/12908289/how-to-change-language-of-app-when-user-selects-language

    But are there any *other* hooks for the language setting? Does Javascript have access to the language settings?

    Of course I can duplicate all pages and improvise a solution with each page in one language, but that is against the elegant philosophy of PubCoder workspaces. And it won't be maintainable.

    Any help would be greatly appreciated.

    Kind regards,
    Bram

  5. Tue Oct 4 11:10:46 2016
    B Bram V posted in Prevent showing loading.jpg.

    Many thanks. I didn't realize that showing 'loading.jpg' is done natively. It would be most helpful to be able to switch it on and off, so I appreciate that you have put it on the roadmap. Your workaround does work however (0.01 second as delay is enough).

    I have now used a variation of this workaround for hiding/showing the audio player. The audioplayer on the loading.jpg screenshot (generated on my Mac) is *very* different from the audioplayer shown in the iPad. Hiding the audioplayer for the first 0.01 second removes it from the screenshot and solves this problem.

  6. Wed Sep 28 13:23:58 2016
    B Bram V started the conversation Prevent showing loading.jpg.

    How can I prevent showing the file 'loading.jpg' upon loading a new page?

    This is the background of my question:

    When loading a new page, PubCoder briefly shows the file 'loading.jpg', which is a static screenshot of the page. Meanwhile, the true html page is loaded. Showing this static screenshot first, gives an impression of quick loading.

    Yet, this strategy has issues of its own:

    • As an iOS app: The screenshot is generated on a Mac, which has different font rendering from an iPad (on my Mac the text is somewhat fatter than on my iPad). Optically, this results in the text showing first fat (from the screenshot), and than thinning (as in the real rendering). This is not so nice.
    • As an Android app: there is a clear gap between the screenshot and the 'real' page, which is unsatisfactory
    • The screenshots are relatively large (200 kB in my case).

    I think I can do without the screenshot, but I don't see how to suppress it.

    The trick described by Carlton M. to suppress hidden objects, works for me:
    https://forum.pubcoder.com/209-hidden-objects-showing-breifly-on-load
    This generates a fully white screenshot. Yet, this workaround reduces the useability of the PubCoder editor and adds unnecessary markup and and extra fade-out.

    I also tried to suppress the rendering of loading.jpg with this custom CSS:

    .SCPreview {
        display: none;
    }

    As SCPreview seems to be the class of the image loading.jpg. This doesn't work. (Maybe I overlook something very simple, I am not an experienced coder)

    Any help or advice is greatly appreciated.

    Kind regards,
    Bram

  7. Mon Sep 19 17:47:00 2016
    B Bram V started the conversation Remote resource in OPF manifest.

    How can I add a remote resource link to the OPF manifest of an epub3?

    This is the background of my question:
    I would like to embed some videos without including the large video files in the epub. The videos are 'extra contents', not really the core of my publication, so if readers/watchers don't have an internet connection, it's not a catastrophe. This is easily done with the 'Smart Object' and works well when I export the publication as an iOS app. For an epub you'll also have to set the OPF Properties of the page that embeds the video to 'remote-resources', which is also easily done in Pubcoder. Yet, the links to the resources need also be included in the OPF manifest. I don't see how I can edit or otherwise change the manifest in Pubcoder. But maybe I overlook something.

    Any help is greatly appreciated.

    Kind regards,
    Bram