Re: CJK seems to be partially working in 1.5.0
Stacia Hartleben wrote: Hi, I know this is an old mail, but I am bringing it back up because it reminds me of the Devanagari package. I'm trying to get CJK working on my own using your instructions, Marc, and I can't get it to work, I just get tons of errors. Could you include a test file that I can look at? Also this may have been fixed in the latest LyX so you don't have to export to LaTeX, I'm not sure... Did you install a CJK font? There is no CJK font present by default (song is referenced, but not present). If you don't have one, you can find one together with instructions here http://www-alg.ist.hokudai.ac.jp/~jan/japfonts.html . If you have one installed, can you tell me which one? -- Marc Flerackers ([EMAIL PROTECTED]) Software Engineer ANDROME NV WetenschapsPark 4 B-3590 Diepenbeek - Belgium Phone:+32(0)11-301330 Fax:+32(0)11-301331
Re: CJK seems to be partially working in 1.5.0
Hi, I know this is an old mail, but I am bringing it back up because it reminds me of the Devanagari package. I'm trying to get CJK working on my own using your instructions, Marc, and I can't get it to work, I just get tons of errors. Could you include a test file that I can look at? Also this may have been fixed in the latest LyX so you don't have to export to LaTeX, I'm not sure... On 3/30/07, Marc Flerackers <[EMAIL PROTECTED]> wrote: When setting the document encoding to utf8 I can paste Japanese from other programs like Firefox. The Japanese characters are displayed correctly, and I add \usepackage{CJK} to the preamble and put a \begin{CJK}{UTF8}{ipam} and \end{CJK} around the charecters so they are rendered correctly to dvi or pdf. However I can only render my document manually by exporting to latex and running latex and bibtex, as lyx seems to crash on an exception when pressing the render button: lyx: Disabling LyX socket. Consider installing the PyWin extension modules if you're irritated by windows appearing briefly. pplatex.exe failed to compile 0lyxpreview.tex pplatex: Process input file thesis.dvi pplatex: Copy data to thesis.dvi Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. Completed When running inside the vs2005 debugger I get: Unhandled exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: [rethrow] at memory location 0x.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: [rethrow] at memory location 0x.. Unhandled exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. lyxc.exe has triggered a breakpoint First-chance exception at 0x00405f72 in lyxc.exe: 0xC005: Access violation reading location 0x002b. This crash doesn't happen when rendering documents without Japanese. Another CJK issue is that while I can type Japanese, I don't see the IME popup and I don't see what I am typing. Only when pressing enter, the text is inserted and visualized. Overal the 1.5.0 Beta 1 looks very promissing :). -- Marc Flerackers ([EMAIL PROTECTED]) Software Engineer
Re: CJK seems to be partially working in 1.5.0
Marc Flerackers <[EMAIL PROTECTED]> writes: > However I can only render my document > manually by exporting to latex and running latex and bibtex, as lyx > seems to crash on an exception when pressing the render button: Hi, Marc. Could you repost this to the lyx-devel list. Given that you're running inside the debugger, it'd be good if you good ascertain the path that boost::filesystem is complaining about. > This crash doesn't happen when rendering documents without Japanese. > Another CJK issue is that while I can type Japanese, I don't see the IME > popup and I don't see what I am typing. Only when pressing enter, the > text is inserted and visualized. http://wiki.lyx.org/LyX.NewInLyX15#cjk Regards, Angus
Re: CJK seems to be partially working in 1.5.0
Let me know how you progress and maybe post this on http://bugzilla.lyx.org . That would be amazing if CJK was working...maybe support for the CJK package could be added so you don't have to put something around every character. On 3/30/07, Marc Flerackers <[EMAIL PROTECTED]> wrote: When setting the document encoding to utf8 I can paste Japanese from other programs like Firefox. The Japanese characters are displayed correctly, and I add \usepackage{CJK} to the preamble and put a \begin{CJK}{UTF8}{ipam} and \end{CJK} around the charecters so they are rendered correctly to dvi or pdf. However I can only render my document manually by exporting to latex and running latex and bibtex, as lyx seems to crash on an exception when pressing the render button: lyx: Disabling LyX socket. Consider installing the PyWin extension modules if you're irritated by windows appearing briefly. pplatex.exe failed to compile 0lyxpreview.tex pplatex: Process input file thesis.dvi pplatex: Copy data to thesis.dvi Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. Completed When running inside the vs2005 debugger I get: Unhandled exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: [rethrow] at memory location 0x.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: [rethrow] at memory location 0x.. Unhandled exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. lyxc.exe has triggered a breakpoint First-chance exception at 0x00405f72 in lyxc.exe: 0xC005: Access violation reading location 0x002b. This crash doesn't happen when rendering documents without Japanese. Another CJK issue is that while I can type Japanese, I don't see the IME popup and I don't see what I am typing. Only when pressing enter, the text is inserted and visualized. Overal the 1.5.0 Beta 1 looks very promissing :). -- Marc Flerackers ([EMAIL PROTECTED]) Software Engineer
CJK seems to be partially working in 1.5.0
When setting the document encoding to utf8 I can paste Japanese from other programs like Firefox. The Japanese characters are displayed correctly, and I add \usepackage{CJK} to the preamble and put a \begin{CJK}{UTF8}{ipam} and \end{CJK} around the charecters so they are rendered correctly to dvi or pdf. However I can only render my document manually by exporting to latex and running latex and bibtex, as lyx seems to crash on an exception when pressing the render button: lyx: Disabling LyX socket. Consider installing the PyWin extension modules if you're irritated by windows appearing briefly. pplatex.exe failed to compile 0lyxpreview.tex pplatex: Process input file thesis.dvi pplatex: Copy data to thesis.dvi Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. Completed When running inside the vs2005 debugger I get: Unhandled exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: [rethrow] at memory location 0x.. First-chance exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: [rethrow] at memory location 0x.. Unhandled exception at 0x7c812a5b in lyxc.exe: Microsoft C++ exception: boost::filesystem::basic_filesystem_error,std::allocator >,boost::filesystem::path_traits> > at memory location 0x00128f78.. lyxc.exe has triggered a breakpoint First-chance exception at 0x00405f72 in lyxc.exe: 0xC005: Access violation reading location 0x002b. This crash doesn't happen when rendering documents without Japanese. Another CJK issue is that while I can type Japanese, I don't see the IME popup and I don't see what I am typing. Only when pressing enter, the text is inserted and visualized. Overal the 1.5.0 Beta 1 looks very promissing :). -- Marc Flerackers ([EMAIL PROTECTED]) Software Engineer