#14 SPACE key to scroll image diagonally

closed
Pontus Ekberg
None
5
2005-12-10
2005-11-23
Tao Liu
No

I used to view manga with a software 'comicview' in
windoz OS, which has a cool function to scroll image
diagonally when pressing space key, i.e. it scrolls the
image from topright(TR) -> bottomright(BR) ->
topleft(TL) -> bottomleft(BL). This function makes us
lazy guys to avoid many boring operations on arrow
keys. Now comix can only scroll image from top to
bottom while clicking space key, can you add this
feature as a new mode? I think it's easy to do
'hajust.set_value' when "event.keyval ==
gtk.keysyms.space":)

My another idea is to calculate a pathway to scroll for
each image. For example, if an image contains two pages
seperated by blank margins, the pathway will be
"TR->BR->TL->BL of the right page, then TR->BR->TL->BL
of the left page" in the manner of manga.

Discussion

  • Pontus Ekberg
    Pontus Ekberg
    2005-11-23

    • assigned_to: nobody --> herrekberg
     
  • Pontus Ekberg
    Pontus Ekberg
    2005-11-23

    Logged In: YES
    user_id=1250348

    Hi.

    I don't know much about the manga format, but should a page
    not be read right to left on the first row and then the same
    on the next row etc? In this case should the path for the
    scrolling not be TR->TL->BR->BL (TL->TR->BL->BR for
    non-manga)? See this picture to see what I mean:
    http://comix.sourceforge.net/scroll.png

    To make a special path for viewing two pages should be
    possible. It has to be in "double page mode" though, parsing
    the image data to try and evaluate the layout of the page
    would be very hard (and time consuming).

     
  • Tao Liu
    Tao Liu
    2005-11-28

    Logged In: YES
    user_id=1308937

    Hi herrekberg,

    Sorry for the delay of responce. You are quite right. I've
    made a
    mistake yet. For a single page, the path should be
    TL->TR->BL->BR for
    non-manga.

    I doubt whether it's necessary to design a diagonal path,
    because that
    brings the user little benefit. But I think it is necessary
    to improve
    the current strategy for scrolling. I focus my discussion on
    non-manga
    comics, and for manga, just draw the path for non-manga on a
    piece of
    paper then check the path in a *mirror*. I give the
    illustration on
    the assumption that the width of image is bigger than the
    window width
    and smaller than (window width)x2 and the height is between
    window
    height and (window height)x2.

    In the current strategy:

    1 Comix locates the initial view at top-left corner.

    2* Then reader browses the page by scrolling to the very
    right side
    manually.

    3 When he/she clicks SPACE key, the window moves directly
    *down* to
    the BR corner.

    4* So that the reader must move the window back to the BL
    corner.

    * the path numbered with a '*' is done by the reader.

    ###################-------+
    #TL # TR|
    # # 2* |
    # 1 -----------> |
    # # |
    # # |
    # # |
    ################### |
    | the picture |
    | |
    | |
    | |
    | |
    | |
    |BL BR|
    +-------------------------+

    +-------###################
    |TL # TR#
    | # #
    | # #
    | # | #
    | # | #
    | # | #
    | #########|#########
    | the pict|re |
    | | |
    | X 3 |
    | | |
    | <----X---v |
    | 4* |
    |BL BR|
    +-------------------------+

    You can replace this with a fixed path as TL->BL to make the
    program more
    convenient:

    1 and 2* are just same as above.

    3 When reader clicks SPACE key, the window moves to the BL
    corner.

    ###################-------+
    #TL # TR|
    # # 2* |
    # 1 -----------> |
    # # |
    # # |
    # # |
    ################### |
    | the picture |
    | |
    | |
    | |
    | |
    | |
    |BL BR|
    +-------------------------+

    +-------###################
    |TL # TR#
    | # #
    | # #
    | # / #
    | # / #
    | # / #
    | #########/#########
    | the pi/ture |
    | / 3 |
    | / |
    | \/_ |
    | |
    | |
    |BL BR|
    +-------------------------+

    In doublepage mode, the more convenient path is
    TL->BL->Middle of
    Top(MT)->Middle of Bottom(MB):

    * the path numbered with a '*' is done by the reader.

    MT=(TR+TL)/2
    MB=(BR+BL)/2

    ###################-------+-------------------------+
    #TL # |MT TR|
    # # 2* | |
    # 1 ----------> | |
    # # | |
    # # | |
    # # | |
    ################### / | |
    | left pictu/e | right picture |
    | / 3 | |
    | / | |
    | <-------- | |
    | | |
    | | |
    |BL |MB BR|
    +-------------------------+-------------------------+

    +-------------------------##################--------+
    |TL #MT # TR|
    | # 6* # |
    | # --------------> |
    | # / / |
    | # / /# |
    | # / / # |
    | left picture ###/##########/### |
    ################### | / right/picture |
    # # |/ / |
    # # / / |
    # # 4* /| / 8* |
    # -----------> | ------------> |
    # # | |
    #BL # |MB BR|
    ###################-------+-------------------------+

    I'm not a native English speaker, so forgive my poor English
    writing.

    Hope Comix becomes better and more popular in us comic fans!

    Best,

    Tao

    PS: I find that in the version 2.1, you add the
    scrolling-horizontally
    function. But it only scrolls the image on the BL(scroll to
    the right)
    or TR (scroll to the left) corner, which is of little help
    for people
    who read from left to right or those who read from right to
    left:-P

     
  • Pontus Ekberg
    Pontus Ekberg
    2005-11-28

    Logged In: YES
    user_id=1250348

    Hi Tao.

    You have really taken your time, thank you. :)

    I think your idea is the best, and hopefully not too hard to
    implement. I hope I will have fixed this for the next version.

    About the PS:
    I do not know exactly how you mean. You do know that it
    changes direction if you use the manga mode?

    This is how it is done now:

    +-------------------------+
    |TL TR|
    | <---------- |
    | | |
    | | |
    | | non-manga |
    | | |
    | | |
    | | |
    | | |
    | | |
    | | |
    | | |
    | -----------> |
    |BL BR|
    +-------------------------+

    +-------------------------+
    |TL TR|
    | -----------> |
    | | |
    | | |
    | | manga |
    | | |
    | | |
    | | |
    | | |
    | | |
    | | |
    | | |
    | <---------- |
    |BL BR|
    +-------------------------+

    Do you think the directions should be flipped? For me it
    seems natural, scrolling down takes you further toward the
    end of the page while scrolling upwards takes you toward the
    beginning.

    Regards,
    Pontus Ekberg

     
  • Pontus Ekberg
    Pontus Ekberg
    2005-12-03

    Logged In: YES
    user_id=1250348

    The space key thing is fixed and will be included in the
    next version.

     
  • Pontus Ekberg
    Pontus Ekberg
    2005-12-10

    • status: open --> closed
     
  • Pontus Ekberg
    Pontus Ekberg
    2005-12-10

    Logged In: YES
    user_id=1250348

    Included now, thanks for the help.