Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Comical]Leer manga, (de drch a izq) {abierto}
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Spanish
View previous topic :: View next topic  
Author Message
Sertinell
Guru
Guru


Joined: 19 May 2004
Posts: 582

PostPosted: Sun Jan 23, 2005 11:52 pm    Post subject: [Comical]Leer manga, (de drch a izq) {abierto} Reply with quote

Hola,

En windows usaba para leer el manga de derecha a izq y a modo de dos paginas el CDdisplay, en gentoo he encontrado comical, y un parche para el manga, para leer de derecha a izq, ya qe en el modo normal es un lio, tienes qe leer primero la de la izq, pero empezando a leer por la derecha de esa pagina, total qe acabo liandome y no mentero de la mitad de las cosas (encima ta en ingles).

El problema es qe no se aplicar el parche, Lo qe han posteado en sus foros es esto,:
http://www.sketchyorigins.com/comics/showthread.php?p=92840#post92840
Code:
diff -u src-original/ComicalApp.cpp src/ComicalApp.cpp
--- src-original/ComicalApp.cpp 2004-01-25 03:39:03.000000000 -0500
+++ src/ComicalApp.cpp 2004-10-10 16:42:55.690424696 -0400
@@ -97,8 +97,9 @@
menuView->Append(ID_Z, _T("&Zoom"), menuZoom);

menuMode = new wxMenu;
- menuMode->AppendRadioItem(ID_Double, _T("Double Page"), _T("Show two pages at a time."));
menuMode->PrependRadioItem(ID_Single, _T("Single Page"), _T("Show only a single page at a time."));
+ menuMode->AppendRadioItem(ID_Double, _T("Double Page"), _T("Show two pages at a time."));
+ menuMode->AppendRadioItem(ID_MangaDouble, _T("Manga Style Double Page"), _T("Show two pages at a time in manga style."));
menuView->Append(ID_M, _T("&Mode"), menuMode);

menuHelp = new wxMenu;
@@ -140,6 +141,7 @@
EVT_MENU(ID_ZFitH, MainFrame::OnZoom)
EVT_MENU(ID_ZFitV, MainFrame::OnZoom)
EVT_MENU(ID_Double, MainFrame::OnDouble)
+ EVT_MENU(ID_MangaDouble, MainFrame::OnMangaDouble)
EVT_MENU(ID_Single, MainFrame::OnSingle)
EVT_MENU(ID_ShowLog, MainFrame::OnShowLog)
END_EVENT_TABLE()
@@ -283,6 +285,15 @@
theCanvas->Mode(DOUBLE);
}

+void MainFrame::OnMangaDouble(wxCommandEvent& event)
+{
+ wxMenuItem *prev = menuView->FindItemByPosition(3);
+ wxMenuItem *next = menuView->FindItemByPosition(4);
+ prev->Enable(true);
+ next->Enable(true);
+ theCanvas->Mode(MANGA_DOUBLE);
+}
+
void MainFrame::OnShowLog()
{
ComicalLogWindow->Show(true);
diff -u src-original/ComicalApp.h src/ComicalApp.h
--- src-original/ComicalApp.h 2004-01-21 14:41:35.000000000 -0500
+++ src/ComicalApp.h 2004-10-10 16:41:33.595904960 -0400
@@ -83,6 +83,7 @@
void OnFull(wxCommandEvent& event);
void OnSingle(wxCommandEvent& event);
void OnDouble(wxCommandEvent& event);
+ void OnMangaDouble(wxCommandEvent& event);
void OnShowLog();

bool OpenFile(wxString);
@@ -111,6 +112,7 @@
ID_M,
ID_Single,
ID_Double,
+ID_MangaDouble,
ID_First,
ID_Last,
ID_PrevTurn,
Only in src: ComicalApp.o
diff -u src-original/ComicalCanvas.cpp src/ComicalCanvas.cpp
--- src-original/ComicalCanvas.cpp 2004-01-21 14:41:35.000000000 -0500
+++ src/ComicalCanvas.cpp 2004-10-10 17:10:38.722605376 -0400
@@ -548,7 +548,8 @@

case SINGLE:
case DOUBLE:
-
+ case MANGA_DOUBLE:
+
mode = newmode;
GoToPage(theBook->current);
break;
@@ -594,10 +595,10 @@
dc.DrawBitmap(*centerPage, xCanvas/2 - centerPage->GetWidth()/2, 0);
}
else {
- if (leftPage) if (leftPage->Ok())
- dc.DrawBitmap(*leftPage, xCanvas/2 - leftPage->GetWidth(), 0);
- if (rightPage) if (rightPage->Ok())
- dc.DrawBitmap(*rightPage, xCanvas/2, 0);
+ if (leftPage && leftPage->Ok())
+ dc.DrawBitmap(*leftPage, (mode!=MANGA_DOUBLE)?(xCanvas/2 - leftPage->GetWidth())xCanvas/2), 0);
+ if (rightPage && rightPage->Ok())
+ dc.DrawBitmap(*rightPage, (mode!=MANGA_DOUBLE)?(xCanvas/2)xCanvas/2 - leftPage->GetWidth()), 0);
}

}
diff -u src-original/ComicalCanvas.h src/ComicalCanvas.h
--- src-original/ComicalCanvas.h 2004-01-21 14:38:31.000000000 -0500
+++ src/ComicalCanvas.h 2004-10-10 16:43:25.579880808 -0400
@@ -36,7 +36,7 @@
#endif

enum zooms {ONEQ = 7, HALF, THREEQ, FULL, FIT, FITV, FITH};
-enum modes {SINGLE = 1, DOUBLE = 2};
+enum modes {SINGLE = 1, DOUBLE = 2, MANGA_DOUBLE = 3};

class ComicalCanvas : public wxScrolledWindow {
Qe como veis es la salida de un diff, me echais una mano a aplicarlo, y de paso creamos un ebuild ?

Otro soft qe he probado: es CBview, y la mayoria de los visores de imagenes normales (Gwenview, gthumb, etc. )

Un saludo y gracias ;)
Back to top
View user's profile Send private message
ArsDangor
Guru
Guru


Joined: 20 May 2003
Posts: 477

PostPosted: Mon Jan 24, 2005 12:46 am    Post subject: Reply with quote

Prueba con algo como lo siguiente:
Code:
cd dondetengaselcomical
patch -p0 < rutacompletaalparche
E instálalo. :)

Salu2.
_________________
Cómo usar Portage correctamente
Back to top
View user's profile Send private message
Sertinell
Guru
Guru


Joined: 19 May 2004
Posts: 582

PostPosted: Mon Jan 24, 2005 1:09 pm    Post subject: Reply with quote

No asi no funciona, creo qe me va tocar introducir a mano los cambios qe muestra ese diff en cada uno de los ficheros ... :(

Esto es lo qe me tira ...
Code:
$ patch -p0 < /home/sergio/soft/comical/comical-0.4/mangaparche
patching file src/ComicalApp.cpp
patch: **** malformed patch at line 5: menuView->Append(ID_Z, _T("&Zoom"), menuZoom);
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum