My favorites | Sign in
Project Home Downloads Wiki Issues Source
Details: Show all Hide all

Older

  • Mar 14, 2011
    issue 5 (About the nehan2-min.js's Nehan.LayoutMapper.start(opt)) commented on by ayr...@gmail.com   -   Thank you!!! It works!
    Thank you!!! It works!
  • Mar 14, 2011
    issue 5 (About the nehan2-min.js's Nehan.LayoutMapper.start(opt)) commented on by lambda.w...@gmail.com   -   OK, it's easy. All pages nehan creates have same class "nehan-page". So add style in your css like this. .nehan-page{ margin-bottom:2em; }
    OK, it's easy. All pages nehan creates have same class "nehan-page". So add style in your css like this. .nehan-page{ margin-bottom:2em; }
  • Mar 14, 2011
    issue 5 (About the nehan2-min.js's Nehan.LayoutMapper.start(opt)) commented on by ayr...@gmail.com   -   Thanks for the example! Actually I want to adjust the height between text blocks (as I marked in the attached picture). Sorry if I expressed myself wrong. :p I think LayoutMapper is more easier for my purpose, it works fine except the space between text blocks is a little small. here is my html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="http://nehan.googlecode.com/hg/nehan2-min.js"></script> <script type="text/javascript"> $( function(){ Nehan.LayoutMapper.start(); } ); </script> </head> <body> <div> <pre class="lp-vertical lp-height-300 lp-width-400"> あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。 </pre> </div> </body> </html> Thanks!
    Thanks for the example! Actually I want to adjust the height between text blocks (as I marked in the attached picture). Sorry if I expressed myself wrong. :p I think LayoutMapper is more easier for my purpose, it works fine except the space between text blocks is a little small. here is my html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript" src="http://nehan.googlecode.com/hg/nehan2-min.js"></script> <script type="text/javascript"> $( function(){ Nehan.LayoutMapper.start(); } ); </script> </head> <body> <div> <pre class="lp-vertical lp-height-300 lp-width-400"> あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。あいうえおかきくけこ,あいうえおかきくけこ。 </pre> </div> </body> </html> Thanks!
  • Mar 13, 2011
    issue 5 (About the nehan2-min.js's Nehan.LayoutMapper.start(opt)) commented on by lambda.w...@gmail.com   -   Nehan is parser that provides "one page" laout for given layout parameters. And now, there is no special class and example for all page provider, but it is easy to create. I hope following code helps you. var text = "あいうえおかきくけこ"; // the text you want to convert. var layoutOpt = { width:300, height:200, fontSize:16, nextLineOffsetRate: 1.8, // modify this if you want larger space for next line. charImgRoot:"/img/char" }; var pageProvider = new Nehan.PageProvider(layoutOpt, text); var pages = []; var pageNo = 0; while(pageProvider.hasNextPage()){ var output = pageProvider.outputPage(pageNo); var percent = output.percent; // current percent rate. var htmlPage = output.html; // layout html. pages.push(htmlPage); pageNo++; } // now all pages are in pages array.
    Nehan is parser that provides "one page" laout for given layout parameters. And now, there is no special class and example for all page provider, but it is easy to create. I hope following code helps you. var text = "あいうえおかきくけこ"; // the text you want to convert. var layoutOpt = { width:300, height:200, fontSize:16, nextLineOffsetRate: 1.8, // modify this if you want larger space for next line. charImgRoot:"/img/char" }; var pageProvider = new Nehan.PageProvider(layoutOpt, text); var pages = []; var pageNo = 0; while(pageProvider.hasNextPage()){ var output = pageProvider.outputPage(pageNo); var percent = output.percent; // current percent rate. var htmlPage = output.html; // layout html. pages.push(htmlPage); pageNo++; } // now all pages are in pages array.
  • Mar 13, 2011
    issue 5 (About the nehan2-min.js's Nehan.LayoutMapper.start(opt)) commented on by ayr...@gmail.com   -   Thanks for the reply, Is there a way that simple reader does not display the NEXT and PREV buttons, but show all the text instead? Actually I want to adjust the "nextLineOffsetRate" parameter to make the spaces between text blocks larger, and without the NEXT PREV buttons. I am not sure if the "nextLineOffsetRate" is the new "lineHeightRate" or not? Thanks again for your kindly reply.
    Thanks for the reply, Is there a way that simple reader does not display the NEXT and PREV buttons, but show all the text instead? Actually I want to adjust the "nextLineOffsetRate" parameter to make the spaces between text blocks larger, and without the NEXT PREV buttons. I am not sure if the "nextLineOffsetRate" is the new "lineHeightRate" or not? Thanks again for your kindly reply.
  • Mar 13, 2011
    issue 5 (About the nehan2-min.js's Nehan.LayoutMapper.start(opt)) commented on by lambda.w...@gmail.com   -   LayoutMapper has following option. Nehan.LayoutMapper.start({ convBR:true, // change BR tag to \n linkColor:"0000FF" // describe link color for spacial characters. }); If you use LayoutMapper, you need to descirbe each layout size in html tag class(lp-font-size-xx, lp-width-xx, lp-height-xx .. etc). >and does the lp-font-color-FF0000 only change the punctuation marks's color? Yes. As nehan use images for special characters(like punctuation marks), we need to define colors for them in special option in addtion to css definition. If you want to define detailed layout parser, I recommend Nehan.PageProvider(see example "simple-reader.html").
    LayoutMapper has following option. Nehan.LayoutMapper.start({ convBR:true, // change BR tag to \n linkColor:"0000FF" // describe link color for spacial characters. }); If you use LayoutMapper, you need to descirbe each layout size in html tag class(lp-font-size-xx, lp-width-xx, lp-height-xx .. etc). >and does the lp-font-color-FF0000 only change the punctuation marks's color? Yes. As nehan use images for special characters(like punctuation marks), we need to define colors for them in special option in addtion to css definition. If you want to define detailed layout parser, I recommend Nehan.PageProvider(see example "simple-reader.html").
  • Mar 13, 2011
    issue 5 (About the nehan2-min.js's Nehan.LayoutMapper.start(opt)) reported by ayr...@gmail.com   -   Hi, What are the nehan2-min.js: Nehan.LayoutMapper.start(opt)'s parameters? Can I change parameters like in Layout like this? var layout = new Nehan.Layout({ direction:"vertical", width: 300, height: 200, fontSize: 16, charImgRoot:"/img/char", nextLineOffsetRate: 1.8, nextCharSpacingRate: 0.1 }); and does the lp-font-color-FF0000 only change the punctuation marks's color? Thanks!
    Hi, What are the nehan2-min.js: Nehan.LayoutMapper.start(opt)'s parameters? Can I change parameters like in Layout like this? var layout = new Nehan.Layout({ direction:"vertical", width: 300, height: 200, fontSize: 16, charImgRoot:"/img/char", nextLineOffsetRate: 1.8, nextCharSpacingRate: 0.1 }); and does the lp-font-color-FF0000 only change the punctuation marks's color? Thanks!
  • Mar 02, 2011
    Revision 3556858d93
    (add some character for tail connectives)




    pushed by lambda.w...@gmail.com
  • Mar 02, 2011
    Revision 3556858d93
    (add some character for tail connectives)




    pushed by lambda.w...@gmail.com
  • Mar 02, 2011
    Revision 9a20daf0b5
    (add some character for tail connectives)




    pushed by lambda.w...@gmail.com
  • Mar 02, 2011
    Revision 9a20daf0b5
    (add some character for tail connectives)




    pushed by lambda.w...@gmail.com
  • Feb 11, 2011
    Revision 681fcb9181
    (add new character for tail connective char)




    pushed by lambda.w...@gmail.com
  • Feb 11, 2011
    Revision 681fcb9181
    (add new character for tail connective char)




    pushed by lambda.w...@gmail.com
  • Feb 11, 2011
  • Feb 11, 2011
  • Feb 08, 2011
    Revision 48bfbe90e7
    (fix streaming mode)




    pushed by lambda.w...@gmail.com
  • Feb 08, 2011
    Revision 48bfbe90e7
    (fix streaming mode)




    pushed by lambda.w...@gmail.com
  • Jan 26, 2011
    nehan2-char-img-1.0.zip (character image set for nehan2 ver1.0) file uploaded by lambda.w...@gmail.com
  • Jan 24, 2011
    Revision 5776972c84
    (add char map)




    pushed by lambda.w...@gmail.com
  • Jan 23, 2011
    Revision 1582ebdbb5
    (modify onbiki)




    pushed by lambda.w...@gmail.com
  • Jan 23, 2011
    Revision d39f62fb15
    (change img for onbiki)




    pushed by lambda.w...@gmail.com
  • Jan 23, 2011
    Revision 9934fa14a9
    (change img for onbiki)




    pushed by lambda.w...@gmail.com
  • Jan 23, 2011
    Revision f63141c4a5
    (replace img)




    pushed by lambda.w...@gmail.com
  • Jan 22, 2011
    Revision 089f87762e
    (return accurate seek pos for head of page)




    pushed by lambda.w...@gmail.com
  • Jan 21, 2011
  • Jan 21, 2011
    Revision dea2d4af74
    (modify layout mapper)




    pushed by lambda.w...@gmail.com
  • Jan 20, 2011
  • Jan 20, 2011
  • Jan 20, 2011
  • Jan 20, 2011
  • Jan 20, 2011
    LayoutParameters Wiki page deleted by lambda.w...@gmail.com
  • Jan 20, 2011
  • Jan 20, 2011
    GridParameters Wiki page deleted by lambda.w...@gmail.com
  • Jan 20, 2011
  • Jan 20, 2011
  • Jan 12, 2011
    nehan2-1.22.zip (improve line-height for mobile safari(iPad, iPhone, iPod).) file uploaded by lambda.w...@gmail.com   -  
    Labels: Featured
    Labels: Featured
  • Jan 12, 2011
    Revision 83f9ebfd87
    (improve line-height for mobile safari)




    pushed by lambda.w...@gmail.com
  • Jan 12, 2011
    Revision 22850b67ef
    (improve line-height for mobile safari)




    pushed by lambda.w...@gmail.com
  • Jan 12, 2011
    nehan2-1.22.zip (improve line-height for mobile safari(iPad, iPhone, iPod).) file uploaded by lambda.w...@gmail.com   -  
    Labels: Featured
    Labels: Featured
  • Jan 12, 2011
    Revision fdee6cba00
    (modify line-height for ipad, ipod, iphone.)




    pushed by lambda.w...@gmail.com
  • Jan 11, 2011
    Revision fb80063d71
    (modify regexp for lexing of small characters)




    pushed by lambda.w...@gmail.com
  • Jan 01, 2011
    Revision 2c6d0de717
    (layout mapper)




    pushed by lambda.w...@gmail.com
  • Jan 01, 2011
  • Dec 31, 2010
    Revision 7732433ddf
    (add full char period for tail connective chars)




    pushed by lambda.w...@gmail.com
  • Dec 31, 2010
  • Dec 31, 2010
    Revision e597fe9a07
    (add period for head ng and tail connective characters)




    pushed by lambda.w...@gmail.com
  • Dec 31, 2010
  • Dec 31, 2010
    Revision 35fe21bd2a
    (add period for head ng and tail connective characters)




    pushed by lambda.w...@gmail.com
  • Dec 30, 2010
    Revision adc3653be8
    (add layout mapper opt(tag))




    pushed by lambda.w...@gmail.com
  • Dec 30, 2010
    Revision 22417c051a
    (modify layout mapper)




    pushed by lambda.w...@gmail.com
 
Powered by Google Project Hosting