xfardic
|
2004-08-27, 12:57 AM,
ارسال : #21
|
|||
|
|||
در سایت <!-- w --><a class="postlink" href="http://www.rpmseek.com">www.rpmseek.com</a><!-- w --> می توانید آنرا پیدا کنید.
ولی اگر rpm خود xfardic را بگیرید و با سوییچ nodep نصب کنید مشکلی ندارید. موفق باشید To Follow The Path Look To The Master Follow The Master Walk With The Master See Through The Master Become The Master |
|||
2004-08-27, 07:57 AM,
ارسال : #22
|
|||
|
|||
هنگام نصب rpm از همان سوئیچ nodeps-- استفاده کنید.
[ltr]Life *free = new Life(const long OpenSource);[/ltr] |
|||
2004-08-27, 12:35 PM,
ارسال : #23
|
|||
|
|||
الن جان اقا این مشکلlibexpat.so.1 خیلی حاد شده ....
اگه بتونی یه فکری بکنی عالیه. اقا یه در خواست : میشه فایل اجراییش رو برام میل کنی؟؟؟؟ آموزش بدون محدودیت |
|||
2004-08-27, 03:37 PM,
ارسال : #24
|
|||
|
|||
بچه ها من این xfardic رو تحت زوزه نصب کردم . دیکشنری آریان پور رو هم دارم حالا باید چیرو کجا کپی کنم که کار کنه؟
|
|||
2004-08-27, 03:44 PM,
ارسال : #25
|
|||
|
|||
دیکشنری آریان پور نمیخواد. بسته xml_db.tar.bz2 رو از سایت <!-- m --><a class="postlink" href="http://xfardic.sf.net">http://xfardic.sf.net</a><!-- m --> دانلود و در مسیر usr/share/xfardic/ باز کنید.
[ltr]Life *free = new Life(const long OpenSource);[/ltr] |
|||
2004-08-27, 03:55 PM,
ارسال : #26
|
|||
|
|||
مساله اینحاست که همچین دایرکتوری وجود نداره!
|
|||
2004-08-27, 04:06 PM,
ارسال : #27
|
|||
|
|||
موقع make کردن سورسش هم این خطا رو بهم می ده.
[ltr] Making all in xfardic make[1]: Entering directory `/root/xfardic-0.3.2-src/xfardic' if g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"xfardic\" -DVERSION=\"0.2.1\" -I. -I. -I/usr/include/libxml2 `wx-config --cxxflags` -g -O2 -MT xfardic.o -MD -MP -MF ".deps/xfardic.Tpo" \ -c -o xfardic.o `test -f 'xfardic.cpp' || echo './'`xfardic.cpp; \ then mv -f ".deps/xfardic.Tpo" ".deps/xfardic.Po"; \ else rm -f ".deps/xfardic.Tpo"; exit 1; \ fi xfardic.cpp: In member function `bool xFarDicApp::translate(xmlNode*)': xfardic.cpp:898: error: request for member `data' in ` (&document)->wxString::mb_str()', which is of non-aggregate type `const wxChar*' xfardic.cpp:935: error: request for member `data' in ` (&m_textVal)->wxString::mb_str()', which is of non-aggregate type `const wxChar*' make[1]: *** [xfardic.o] Error 1 make[1]: Leaving directory `/root/xfardic-0.3.2-src/xfardic' make: *** [all-recursive] Error 1 [/ltr] suse 9.1 |
|||
2004-08-28, 11:11 AM,
ارسال : #28
|
|||
|
|||
الن جان ... اقا این فایل ویرایش شده xfardic می شه برای منم ایمیل کنی؟؟؟
چون منم مشکلان اقایون رو دارم و ضمنا اون بسته رو هم نصب کردم. آموزش بدون محدودیت |
|||
2004-08-28, 04:02 PM,
ارسال : #29
|
|||
|
|||
mr_mohammad نویسنده :الن جان ... اقا این فایل ویرایش شده xfardic می شه برای منم ایمیل کنی؟؟؟ [ltr] could somebody test this patch ? --------------------------------- --- /root/clean/xfardic-0.3.2-src/xfardic/xfardic.cpp 2004-08-20 05:36:28.000000000 -0800 +++ xfardic.cpp 2004-08-21 19:58:26.000000000 -0800 @@ -16,6 +16,7 @@ // ---------------------------------------------------------------------------- // For compilers that support precompilation, includes "wx/wx.h". #include "wx/wx.h" #include "wx/wxprec.h" #include "wx/filefn.h" #include <stdio.h> @@ -108,7 +109,6 @@ private: // any class wishing to process wxWindows events must use this macro wxStaticText *m_ablabel; - wxButton *m_ok; wxStaticBox *m_abbox; wxPanel *abpanel; @@ -134,7 +134,6 @@ private: // any class wishing to process wxWindows events must use this macro - wxButton *m_ok; wxButton *m_apply; wxStaticBox *m_setbox; wxPanel *setpanel; @@ -341,7 +340,7 @@ // uncomment this to force writing back of the defaults for all values // if they're not present in the config - this can give the user an idea // of all possible settings for this program - //pConfig->SetRecordDefaults(); + pConfig->SetRecordDefaults(); // restore frame position pConfig->SetPath(_T("/Options")); @@ -561,11 +560,9 @@ (void)new wxStaticBitmap (abpanel, -1, logo, wxPoint(90, 2)); } - m_abbox = new wxStaticBox(abpanel, ID_ABBOX, _T(""), wxPoint(0,0), wxSize(378,338) ); + m_abbox = new wxStaticBox(abpanel, ID_ABBOX, _T(""), wxPoint(0,0), wxSize(478,458) ); - m_ok = new wxButton(abpanel, ID_BUTTON_OK, _T("&OK"), wxPoint(150,305), wxSize(80,30) ); //Set Default button - m_ok->SetDefault(); wxString msg; msg.Printf( _T("xFarDic English-Persian Dictionary Version 0.3.2\n") @@ -583,8 +580,9 @@ _T("Due to Licence problems, xFarDic is packaged without\n") _T("any databases. You can download required XML database\n") _T("from project home page at <!-- m --><a class="postlink" href="http://xfardic.sf.net">http://xfardic.sf.net</a><!-- m --> .\n") - _T("Without that database, xFarDic *will not* work.")); - m_ablabel = new wxStaticText(abpanel, -1, msg, wxPoint(15, 62), wxSize(380, 300), wxALIGN_LEFT); + _T("Without that database, xFarDic *will not* work.\n")); + + m_ablabel = new wxStaticText(abpanel, -1, msg, wxPoint(15, 62), wxSize(380, 300), wxALIGN_LEFT); } @@ -593,7 +591,6 @@ xFarDicAbout::~xFarDicAbout() { delete m_ablabel; - delete m_ok; delete m_abbox; delete abpanel; @@ -620,7 +617,6 @@ (void)new wxStaticBitmap (setpanel, -1, logo, wxPoint(10, 25)); } - m_ok = new wxButton(setpanel, ID_BUTTON_SETOK, _T("&OK"), wxPoint(165,248), wxSize(80,28) ); m_apply = new wxButton(setpanel, ID_BUTTON_SETAPPLY, _T("&Apply"), wxPoint(250,248), wxSize(80,28) ); chk_select = new wxCheckBox(setpanel, ID_CHK_SELECT, _T("Enable Auto &Select Word After Translation"), wxPoint(20,90)); @@ -628,7 +624,6 @@ chk_cache = new wxCheckBox(setpanel, ID_CHK_CACHE, _T("Save Word &Cache On Exit"), wxPoint(20,130)); // Set Default button - m_ok->SetDefault(); m_apply->Enable(FALSE); wxConfigBase *pConfig = wxConfigBase::Get(); @@ -672,7 +667,6 @@ xFarDicSettings::~xFarDicSettings() { - delete m_ok; delete m_setbox; delete setpanel; @@ -835,7 +829,7 @@ if(!m_textVal.IsAscii()) { wxString msg; - msg.Printf( _T("Unicode input is not accepted.\n")); + msg.Printf( _T("Unicode input is not acceptable.\n")); wxMessageBox(msg, _T("xFarDic"), wxOK | wxICON_STOP, this); m_text->SetSelection(0,m_textVal.Length()); return; @@ -855,7 +849,7 @@ if(m_textVal.IsNumber()) { wxString msg; - msg.Printf( _T("Numeric input is not accepted.\n")); + msg.Printf( _T("Numeric input is not acceptable.\n")); wxMessageBox(msg, _T("xFarDic"), wxOK | wxICON_STOP, this); m_text->SetSelection(0,m_textVal.Length()); return; @@ -895,9 +889,13 @@ document += m_textVal.Left(1); document += wxT(".xml"); - if (!OpenDB((char *)document.mb_str().data())) { - return false; + + if (!OpenDB((char *)document.mb_str())) { + return false; } + + + // XML Search Section //////////////////////////// @@ -920,9 +918,11 @@ while(child != NULL){ if ((!xmlStrcmp(child->name, (const xmlChar *)"fa")) && found){ - // DEBUGGING: - //fprintf(stderr, "--%s\n", xmlNodeListGetString(doc, child->xmlChildrenNode, 1)); - //fprintf(stderr, "--%d\n", i++); + + +//////////////////// DEBUGGING: + fprintf(stderr, "--%s\n", xmlNodeListGetString(doc, child->xmlChildrenNode, 1)); + wxString str = UTF8_STR((char *)xmlNodeListGetString(doc, child->xmlChildrenNode, 1)); m_label->SetValue(str); @@ -932,7 +932,7 @@ wxString str = UTF8_STR((char *)xmlNodeListGetString(doc, child->xmlChildrenNode, 1)); m_text->SetValue(str); found = true; - } else if ((!xmlStrcmp(xmlNodeListGetString(doc, child->xmlChildrenNode, 1), (const xmlChar *)m_textVal.mb_str().data()))) { + } else if ((!xmlStrcmp(xmlNodeListGetString(doc, child->xmlChildrenNode, 1), (const xmlChar *)m_textVal.mb_str()))) { found = true; } } [/ltr] Wish you Were here ... |
|||
2004-08-28, 07:30 PM,
ارسال : #30
|
|||
|
|||
اقای زوپ این چیه؟؟؟؟
آموزش بدون محدودیت |
|||
2004-08-28, 08:47 PM,
ارسال : #31
|
|||
|
|||
الن جان اقا بالاخره نصبش کردم...
می گم چی شده ها!!!!!!!! آموزش بدون محدودیت |
|||
2004-09-02, 01:54 AM,
ارسال : #32
|
|||
|
|||
xfardic
اقا به نظر شما بهتر نیست اقا الن برای این برنامه یک گزینه Update بگذارد که هر وقت نسخه جدید ان امد نسخه قبلی رو به جدیده ارتقا داد
:wink: |
|||
2004-09-02, 07:38 AM,
ارسال : #33
|
|||
|
|||
کل برنامه ۲ مگابایت است و یک فایل اجرایی!
[ltr]Life *free = new Life(const long OpenSource);[/ltr] |
|||
2004-09-10, 02:27 PM,
ارسال : #34
|
|||
|
|||
شما این رو توی چه محیطی نوشتید؟(gtk+)
منظورم اینه که ما توی چه محیطی می تونیم صفحه ها و ایونت ها رو روی دکمه ها ببنیم؟ |
|||
2004-09-10, 04:17 PM,
ارسال : #35
|
|||
|
|||
کد منبع اون رو دریافت کنید، در همه نوع ویرایشگر متنی میتونید اونو نگاه کنید. با استفاده از wxWidgets نوشته شده است.
[ltr]Life *free = new Life(const long OpenSource);[/ltr] |
|||
2004-09-12, 03:17 PM,
ارسال : #36
|
|||
|
|||
البته بد نیست که یه گزینه برای اضافه کردن کلمات داشته باشه ،این طوری هر کس کلماتی رو که تو ش پیدا نکرده بهش اضافه می کنه ! و البته می شه با یه برنامه و مدیریت این کلمات اضافه شده رو هم با هم به اشتراک بگذاریم ! منظورم رومتوجه شدید؟ یعنی یه دیتا بیس لغات خود مون برای XfarDic درست کنیم .. کاربر هاش ...
[ltr] $Nəvid$ In a world without any fences or walls, Who needs gates or windows ? گنو ایران | لیست مقالات فارسی گنو ایران | [/ltr] |
|||
2004-12-19, 12:11 AM,
ارسال : #37
|
|||
|
|||
من ميخواهم xfardic رو تو SuSE 9.1 نصب كنم كدام بسته مناسبه؟
deb يا rpm يا src.tar.bz2 آقا آلن اگه امكانش هست اين قابليت رو اضافه كنيد كه كلمات انگليسي رو تلفظ هم بكنه.(يعني كلمه رو بخونه) |
|||
2004-12-19, 08:07 AM,
ارسال : #38
|
|||
|
|||
فرقی نداره یا rpm یا
src.tar.bz2 من خودم معمولا بسته ها رو به صورت کد منبع میگیرم src.tar.bz2 |
|||
2004-12-19, 08:54 AM,
ارسال : #39
|
|||
|
|||
راحتتر هستید که بسته rpm رو دریافت و نصب نمایید. البته بسته بانک اطلاعاتی اش رو جدا باز کنید و از حالت فشرده خارج نمایید.
[ltr]Life *free = new Life(const long OpenSource);[/ltr] |
|||
2005-01-02, 01:24 PM,
ارسال : #40
|
|||
|
|||
man dar mandrake 10 natoonestam xfardic 5.0 ro nasb konam
|
|||
|