Hi Varedis,
Finally I got a break through :) . And now i know how iBook must have been
done :) . What i asked in the previous question is r8 . After completion of
that thing i would like to share the code with you for the further
processing of that with the rendering part and some other features which i
would like to do .. Finally i m happy :) ... I will post the video of it
soon :) .
...read more »
Hi Snehal,
I look forward to seeing what you have achieved.
dBonates:
While I haven't extensively tested the subject of text selection I did
briefly brainstorm it, without any tested I would say that the
interactionLocked method needs to be looked at and utilized in Leaves
On Sep 2, 4:15 pm, "snehal.............." <jacksn...@gmail.com> wrote:
...read more »
I also tried the css3 multi columns support, I started my tests on
Safari and it worked like a charm. I was disappointed when I moved my
code to iPad, it seems that mobile safari does not support the columns
module fully.
If you can guide me a little bit on this, I will esteem it a favor.
The second approach is to fill a div with the content word by word
until scrollHieght equals the offsetHieght.
NSArray * contentArray = [chapter.Content
componentsSeparatedByString:@" "];
<script language="JavaScript" type="text/javascript">
var content = "";
function setContent(){
theObj = document.getElementById("foo");
theObj.innerHTML = content;
if(theObj.offsetHeight == theObj.scrollHeight)
return "OK";
return "NO";
}
</script>
still this way is slow and it is not the most efficient.
Now I paginate the content for each font size and store the positions
in a database.
Still I want a dynamic solution.
-----------------------------------------
On Sep 2, 2:45 pm, Varedis <robert.scot...@btinternet.com> wrote:
...read more »
Mobile Safari does support multi columns, however it needs a little
helping hand to make it think in the right way.
The Css File:
html {
width:100%; // Do Not Change
height: 480px; // Height of Screen, could be set to 100% maybe
margin: 0px;
padding: 0px;
font-size:16px;
}
body {
margin: 0px;
padding: 0px;
}
#viewer {
width: 320px; // SCREEN WIDTH
height: 480px; // SCREEN HEIGHT
}
#book {
width: 630px; //DOUBLE SCREEN WIDTH MINUS WHATEVER MARGIN YOU
WANT - THIS IS THE KEY
height:470px; //SCREEN HEIGHT MINUS MARGIN
padding:5px;
-webkit-column-width:300px;
-webkit-column-gap:10px;
text-align:justify;
padding-right: 10px;
}
Your content will need to be wrapped by the two divs like so:
<div id="viewer">
<div id="book">
....Content....
</div>
</div>
Then everything should work.
The width of the book div is the key to forcing the content to
transfer into columns correctly
Many thanks for sharing this piece of innovation, I really liked it.
How did you solved the problem of memory consumption?
Although I use background rendering, still RenderPageAtIndex method
eats the memory in seconds, the NSAutoRealsePool trick didn't work
here.
Thank you again
On Sep 8, 3:38 pm, Varedis <robert.scot...@btinternet.com> wrote:
Haven't had a problem with memory consumption here
On Sep 8, 6:25 pm, ashraf <ashrafan...@me.com> wrote:
Thanks for your answer, the problem which I am talking about is this:
>>> Hi Max!
>>> This is because application use all memory :(
>>> I fixed this bug locally (you should release all hidden layers) but by now I'm unable to do a commit :(
>>> Just few days ;)
>>> Salvatore
Please tell us which hidden layer must be released in LeavesView class.
The sooner is better.
Sent from my iPad
On Sep 14, 2010, at 3:42 PM, Varedis <robert.scot...@btinternet.com> wrote:
Been trying to set up a GitHub account but it won't let me push any
changes into it, if anyone could help me sort this out that would be
awesome.
For now here is the complied source for this
http://www.robsanimate-studio.co.uk/UIWebView_leaves.zip
Warning: As it stands this will not work with any other type of
rendering like the pdf or image rendering seen in the normal leaves.
There may be a slight bug on the Simulator when you change the text
size and part of the screen retains the old text size. This seems to
be just a simulator bug and from my testing it works fine on the
device.
this app is crashing. and one more thing , i observed is ,
i edited the xhtml file and inserted some hyperlinked content with Tag <a
href> ---- </a>.
it highlighted that text, but after clicking that is is not responding to
following method.
May i know y ?
- (BOOL)webView:(UIWebView*)webView
shouldStartLoadWithRequest:(NSURLRequest*)request
navigationType:(UIWebViewNavigationType)navigationType {
if(navigationType == UIWebViewNavigationTypeLinkClicked) {
NSLog(@" link clicked");
[myWebView stopLoading];
return YES;
}
return YES;
}
On Tue, Sep 21, 2010 at 2:09 PM, Varedis <robert.scot...@btinternet.com>wrote:
> Been trying to set up a GitHub account but it won't let me push any
> changes into it, if anyone could help me sort this out that would be
> awesome.
> For now here is the complied source for this
> http://www.robsanimate-studio.co.uk/UIWebView_leaves.zip
> Warning: As it stands this will not work with any other type of
> rendering like the pdf or image rendering seen in the normal leaves.
> There may be a slight bug on the Simulator when you change the text
> size and part of the screen retains the old text size. This seems to
> be just a simulator bug and from my testing it works fine on the
> device.
--
This is my profile:
http://www.google.com/profiles/madhu.bhilwadi88
Madhu Bhilawadi
Can you give me anymore info on the crash? any errors or warnings?
where exactly does it crash what is it logging in the console?
The hyperlink problem is that all touches are passed to Leaves and not
the UIWebView. You would have to find a way to build your touches to
know what is a hyperlink touch and what is a page turn touch.
On Sep 21, 10:31 am, Madhu Bhilwadi <bhilwadi.ma...@gmail.com> wrote:
it works fine wen i am in debugging mode
but it crashes if i run
One more thing is , u are using xhtml file, is it possible for me to use pdf
instead??
On Tue, Sep 21, 2010 at 3:09 PM, Varedis <robert.scot...@btinternet.com>wrote:
--
This is my profile:
http://www.google.com/profiles/madhu.bhilwadi88
Madhu Bhilawadi
Is it crashing on the device or the simulator?
I haven't tried using a pdf in a webview before, if you want to try go
ahead and let me know the results
On Sep 21, 1:14 pm, Madhu Bhilwadi <bhilwadi.ma...@gmail.com> wrote:
in simulatior
On Wed, Sep 22, 2010 at 6:39 PM, Varedis <robert.scot...@btinternet.com>wrote:
--
This is my profile:
http://www.google.com/profiles/madhu.bhilwadi88
Madhu Bhilawadi
Try adding:
gpdfpass= [NSString stringWithFormat:@"The Colour of Magic"];
to the top of the init method in WebViewController just above where it
hides the bottom bar.
Thats the only thing I can think of that it is not getting, which is
the name of the book.
Also there are a couple of deprieciated statements throughout the code
If you get warnings change:
[[UIApplication sharedApplication] setStatusBarHidden:NO animate:YES];
[[UIApplication sharedApplication] setStatusBarHidden:YES
animate:YES];
to
[[UIApplication sharedApplication] setStatusBarHidden:NO
withAnimation:YES];
[[UIApplication sharedApplication] setStatusBarHidden:YES
withAnimation:YES];
On Sep 22, 2:17 pm, Madhu Bhilwadi <bhilwadi.ma...@gmail.com> wrote:
ok thanq fir the good response :)
I actually not using web view to display pdf, i have used
http://github.com/ole/leaves/tree/twopages for my project
Now i want pdf internal URL to work
How can i proceed , after clicking URL , how should i get the link?
On Wed, Sep 22, 2010 at 6:55 PM, Varedis <robert.scot...@btinternet.com>wrote:
--
This is my profile:
http://www.google.com/profiles/madhu.bhilwadi88
Madhu Bhilawadi
Has the code been moved? This link doesn't work for me. Thanks
On Sep 21, 1:39 am, Varedis <robert.scot...@btinternet.com> wrote:
the link download source is there at the top
--
This is my profile:
http://www.google.com/profiles/madhu.bhilwadi88
Madhu Bhilawadi
the link is not working
The page cannot be found
The page you are looking for might have been removed, had its name
changed, or is temporarily unavailable.
> > http://www.robsanimate-studio.co.uk/UIWebView_leaves.zip
On Sep 27, 12:53 pm, Madhu Bhilwadi <bhilwadi.ma...@gmail.com> wrote:
the host does really exist? Someone ghot the zip???
thanks in advance :)
2010/10/2 wesam Taha <busb...@gmail.com>:
--
Daniel Bonates
=========================
msn: danielbona...@hotmail.com
Varedis/Madhu,
I'm working on similar webview issue. Can you please share the zip
file?
Appreciate your help,
Thanks,
Raj
basav...@gmail.com
On Oct 5, 10:26 am, Daniel Bonates <dbona...@gmail.com> wrote:
Hi Guys,
I have reuploaded the file again, I have made a few changes and put
some comments in so you know what bit does what, its not the cleanest
code in the world but it gets the job done.
What this code does:
Renders Epub books to a UIWebView
Paginates written content correctly
What this does not do currently:
This will not paginate images correctly
Issues:
None on the device
Simulator has an issue if you are changing the text size on the second
page but I can't see where that is coming from.
The leaves code will not work with other forms of content like PDF or
Images.
I will not provide debugging tips for any other part of leaves as this
is not my project, I will provide debugging for my UIWebView parts
however.
If you like my code I would appreciate any donation you can give for
the hours I have put in to this:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=...
On Oct 14, 3:47 pm, Raj <basav...@gmail.com> wrote:
I forgot to put the link to the file in, that may help:
http://www.robsanimate-studio.co.uk/leaves.zip
On Oct 20, 9:48 am, Varedis <robert.scot...@btinternet.com> wrote: