I’ve made a deck to study Thai. It contains “deep links” to a Thai dictionary app only available on iOS. It also contains links to a Thai-English dictionary website, which work on either platform (or for iOS users without that app installed.) Should I submit two separate decks? Or one deck with instructions to customize it for the user’s environment? I think I should submit two separate decks, to make it easier on the users! Is there anything wrong with that?
Why not submit a single deck with all the links, and explain to the users that some links only work on iOS? You can for example show the link to “foo” as “foo (iOS)” to communicate that. I think this is better than submitting two decks if the links are the only thing in your deck which is platform-specific.
If you want to get fancy, you can hide the iOS-only links some JavaScript.
JavaScript sounds like a good idea! I guess I have little faith in my users’ ability to choose one set of links over the other, and I don’t want to clutter up the cards by including both sets of links.
The problem is that one set of links only works on iOS if the user has the Thai-English dictionary app installed. (Which they should because it’s awesome.) Otherwise they should get the links to the website.
I want to make it as easy on the users as possible. I’m still leaning towards submitting two separate decks, as ungainly as that might be.
One deck is definitely the way to do this.
Instead of using JavaScript, you should use platform specific CSS.
E.g. something like
.ios-link {
display: none;
}
.iphone .ios-link,
.ipad .ios-link {
display: initial;
}
That’s excellent! Thanks so much for the tip. It still doesn’t handle iOS users who don’t have the app installed, but that’s nothing a good README can’t solve. Thank you!