How does Apple make their Swift programming books? [closed] - swift

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to create a book using a template (or just formatting in general) similar to the ones used with the Apple Swift Programming Language iBook.
I'm struggling with figuring out exactly what software Apple uses to create the book with such simple and clean formatting along with what they use to create the headers, coding samples, comments, etc (is it a special version of Markdown?).
My Google searches with "what apple uses to create books", "what apple uses to create api documentation", "apple software for dev books", etc. didn't really lead to much. The searches themselves might not have been effective either, so there's that possibility.
Regardless, I got answers involving RegexKit, HeaderDocs, and Gentle Bytes, and it didn't seem too relevant to what I was trying to do.
So then I did some digging into the main frameworks that build up the iBook and I found these files (there are more but the image only shows some).
Mainly xhtml files.
So really all I'm asking is what software does Apple use to combine all these files or did they use a different application that automatically combined them as they inserted them while creating the iBook? Do they even use iBooks Author or rather an internal application that's not available for download outside of Apple? OR maybe it's something that's not related to anything I said and I'm way off track.
Any help would be greatly appreciated.

Because it is an iBook I would assume that they used iBooks Author
After you created your iBook with iBooks Author, you can convert it to HTML, it will create many files then.

Related

How to read and write on Google Sheets from my IOS app using swift? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 months ago.
Improve this question
I am developing an app that must have a functionality to read from Google Sheets, write, and update.
I looked into the Sheets API and it documents how to implement it with various programming languages, but not swift. I'm wondering if there is any way to implement Google Sheets API in swift, and how would the app be able to read and write?
Thank you!
It looks like the only official documentation from Google related to this can be found here, although I think you may be looking for something more specific like this one.
This second library seems a bit more documented since the creator does not just explain what it can do but it also provides examples on how to use it.
There is also this method that includes examples and images on how it works.
References:
First mentioned library with samples
Second mentioned library with samples and images
Google's "official way" with limited documentation

Localize iOS Automatically [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I'm wondering if someone has a script out there that can take my Localizable.strings (english version) and using some free service like Google Translate automatically translate it any other language I specify. It would obviously have to be in the correct format. I could probably write this in a jiffy and post it on Github, but I'm wondering if something to this effect already exists?
Edit: Maybe I should clarify something for everyone who's been so pessimistic towards this. The only real text my app uses include single words like "close", "ok", "send", "left", "right". Google translate shouldn't have a problem with any of that irrespective of the language its translating to.
If there were such a script, you would be better off not localizing rather than localizing using something like google translate.
However, there are some good, inexpensive translation services out there. I personally use OneHourTranslation and have been satisfied with the results. I've also heard of, but never used, iCanLocalize, which has a streamlined localization process that allows you to upload the .strings file directly and download localized .strings files.
I had my last iPhone app localized in 5 languages for $65 USD, which is ridiculously cheap. Why wouldn't you just use a translation service?
I wrote one a few months ago.
https://github.com/jkubicek/AutoLocalize
With recent changes to Google's translation services policy, its likely that it won't work anymore, but it shoudn't be too difficult to convert it to use Bing instead of google.

How to write a WOL app for iPhone? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Wake on LAN so cool, just want to write a iPhone app to WOL my PC, but have no idea to code, any one can point me the way?
If you've no experience of programming, then this is a very large first step. (More of a sheer vertical incline really.)
As such, you might want to take a step back and have a look a some basic (or indeed BASIC) programming tutorials. (Google is your friend.)
Alternatively, Apple has good online documentation regarding Objective C and the Cocoa (the language and framework that iPhone applications are written in.) A good place to start for this would be Apple's Introduction to The Objective-C Programming Language.
Basically you need to send a magic packed as described here, to do that you'll need basic programming knowledge and some knowledge on socket programming, here is a good book on the subject. There are numerous examples of that.
But in the end perhaps I could persuade you to purchase one of several iPhone applications that do exactly that, or grab the free one?
You'll need an understanding of bsd sockets as well as the user interface kit framework to put the necessary controls on the screen.
Or of course download an existing free app like this one which does it already, automatically detects your mac address, and also tells you whether your machines are on or off:
http://itunes.apple.com/us/app/wake/id396566137?mt=8
All the best for your projects.

Muscial notation on the iPhone. Any suggestions for example code? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm writing an iPhone app where I'd like to display some simple musical notation (just a chord or two).
This question is a call for suggestions on the quickest way to go about it. For instance:
Is there any iphone OR objective-C libraries for doing this that I'm missing?
Are there any examples of open-source objective-C software in the wild I could look at? It wouldn't have to be iPhone specific.
If there isn't any objective-C code to do this, anyone know of any musicial-notation rendering software in other languages?
Indeed, MusicKit is an audio tool, not a symbolic tool like you need.
I don't know of any open-source Objective-C music notation programs. However, the recently-released Zong! Viewer is an open-source (GPL) Java program. You can't run Java on the iPhone, of course, but it might give you some ideas for structuring your software. MuseScore is an open source music notation editor that might provide more ideas.
So far the only iPhone music notation application I know is pocketscore. It has the great idea of exporting MusicXML files via e-mail so you can work on your music later with a more full-featured program than you can write on an iPhone.
There might be other open source programs you can check out on the MusicXML software list. Good luck!
This is an objective-c music analysis framework which may have what you need:
musickit

Best regex library for iphone sdk app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm confused about the regex libraries that are available in the iPhone SDK. For example RegexLite looks like it needs a dynamic link, and from what I understand, this is not possible for the SDK on the iPhone.
I want a RegEx library for data validation... which one is the best available?
Just want to add here that iOS 4 now has NSRegularExpression.
John Englehart (regexkitlite developer) has posted to cocoa-dev saying that apps are being rejected for using it. http://lists.apple.com/archives/Cocoa-dev/2010/Jun/msg00564.html
(Apologies for this purporting to be an "answer", it would be a reply to Kendall Helmstetter Gelner if only I had 49 more reputation points).
RegexKitLite is available and works properly on iPhone either included from source as part of your Xcode project or by linking in a static library (which the ToS of the SDK do permit).
Using RegexKitLite requires dragging only a source and header file into your project, and works really well - it offers most of the features you'd want from a regex library. It's basically just a very thin wrapper around an underlying framework that's already there.
Make sure the source type for header and .m file is "sourcecode.c.objc" after you add them to the project (Use "Get Info" on a given source file and look at the "General" tab).
RegexKitLite uses the regular expression engine provided by the libicucore.A.dylib library. However Apple does not officially support linking directly against this library. See this post to the Xcode-users mailing list for details. However despite this there are many iPhone applications available on the App Store than make use of RegexKitLite, so it's unlikely (but not impossible) that Apple will reject your application for making use of it.
This is a nice lightweight alternative to RegexKitLite: https://github.com/bendytree/Objective-C-RegEx-Categories