Re: Japanese kunten on Lyx?

2010-08-28 Thread Koji Yokota
Clemente,

Using platex with document class 'tarticle' or 'tbook' will resolve
the problem for vertical writing. pLaTeX (LaTeX for Japanese) will be
included in forthcoming TeXLive 2010 and currently its preview version
is available from the webpage of TeXLive. It is usable with LyX (they
appear like article (Japanese, vertical writing)).

For kunten and katchu, probably you want to rely on using LaTeX macros
available on net by various users. For these, you need use TeX Codes
within LyX.

Koji

2010年8月25日16:29 Clemente Beghi c.be...@googlemail.com:
 Hello,

 I have been using Lyx for some time and I really like it.
 Mainly I have been using it on Debian/Ubuntu and Windows OSs, on top
 of TexLive, in particular XeTex.
 I am not so familiar with the Latex code,  so I would insert commands
 by hand only for the fine tuning. I use XeTex because it easily allows
 me to use whatever font I need without complications, more
 specifically the Hiragino.otf (ヒラギノ.otf) used for printing quality
 Japanese characters and Times Extended Roman.ttf that I use for its
 many diacritical marks .

 Recently I would like to put in my files longer sections of ancient
 Japanese documents, that have some peculiarities:
 vertical text (縦書き), reading marks (訓点, appearing as small characters
 either on the left or the right) and interlinear commentaries (割注
 namely two thin vertical lines in the space of about one).
 How can remain faithful to the original documents and put in my Lyx
 file these things so that they properly appear also in the final pdf
 document?
 Thank you for your help.
 All the best,

 Clemente



Re: Japanese kunten on Lyx?

2010-08-28 Thread Koji Yokota
Clemente,

Using platex with document class 'tarticle' or 'tbook' will resolve
the problem for vertical writing. pLaTeX (LaTeX for Japanese) will be
included in forthcoming TeXLive 2010 and currently its preview version
is available from the webpage of TeXLive. It is usable with LyX (they
appear like article (Japanese, vertical writing)).

For kunten and katchu, probably you want to rely on using LaTeX macros
available on net by various users. For these, you need use TeX Codes
within LyX.

Koji

2010年8月25日16:29 Clemente Beghi c.be...@googlemail.com:
 Hello,

 I have been using Lyx for some time and I really like it.
 Mainly I have been using it on Debian/Ubuntu and Windows OSs, on top
 of TexLive, in particular XeTex.
 I am not so familiar with the Latex code,  so I would insert commands
 by hand only for the fine tuning. I use XeTex because it easily allows
 me to use whatever font I need without complications, more
 specifically the Hiragino.otf (ヒラギノ.otf) used for printing quality
 Japanese characters and Times Extended Roman.ttf that I use for its
 many diacritical marks .

 Recently I would like to put in my files longer sections of ancient
 Japanese documents, that have some peculiarities:
 vertical text (縦書き), reading marks (訓点, appearing as small characters
 either on the left or the right) and interlinear commentaries (割注
 namely two thin vertical lines in the space of about one).
 How can remain faithful to the original documents and put in my Lyx
 file these things so that they properly appear also in the final pdf
 document?
 Thank you for your help.
 All the best,

 Clemente



Re: Japanese kunten on Lyx?

2010-08-28 Thread Koji Yokota
Clemente,

Using platex with document class 'tarticle' or 'tbook' will resolve
the problem for vertical writing. pLaTeX (LaTeX for Japanese) will be
included in forthcoming TeXLive 2010 and currently its preview version
is available from the webpage of TeXLive. It is usable with LyX (they
appear like "article (Japanese, vertical writing)").

For kunten and katchu, probably you want to rely on using LaTeX macros
available on net by various users. For these, you need use TeX Codes
within LyX.

Koji

2010年8月25日16:29 Clemente Beghi :
> Hello,
>
> I have been using Lyx for some time and I really like it.
> Mainly I have been using it on Debian/Ubuntu and Windows OSs, on top
> of TexLive, in particular XeTex.
> I am not so familiar with the Latex code,  so I would insert commands
> by hand only for the fine tuning. I use XeTex because it easily allows
> me to use whatever font I need without complications, more
> specifically the Hiragino.otf (ヒラギノ.otf) used for printing quality
> Japanese characters and Times Extended Roman.ttf that I use for its
> many diacritical marks .
>
> Recently I would like to put in my files longer sections of ancient
> Japanese documents, that have some peculiarities:
> vertical text (縦書き), reading marks (訓点, appearing as small characters
> either on the left or the right) and interlinear commentaries (割注
> namely two thin vertical lines in the space of about one).
> How can remain faithful to the original documents and put in my Lyx
> file these things so that they properly appear also in the final pdf
> document?
> Thank you for your help.
> All the best,
>
> Clemente
>


Re: LyX 1.5.2: Some document classes not available

2007-11-21 Thread Koji Yokota

José Matos wrote:
  I think you meant above linuxdoc not SGML because both docbook and XML are 
SGML. :-)


Yeah, you are right.

Koji


Re: LyX 1.5.2: Some document classes not available

2007-11-21 Thread Koji Yokota

Patrick Schoenbach wrote:

Is there a DocBook distribution that works on Windows and together with
LyX and MikTeX?


DTDs can be obtained from the link of the webpage I mentioned. I don't 
know very well about other tools on windows, but you can find 
instructions on the web. It seems some suggest using some java programs 
and others recommend cygwin.


Koji


Re: LyX 1.5.2: Some document classes not available

2007-11-21 Thread Koji Yokota

José Matos wrote:
  I think you meant above linuxdoc not SGML because both docbook and XML are 
SGML. :-)


Yeah, you are right.

Koji


Re: LyX 1.5.2: Some document classes not available

2007-11-21 Thread Koji Yokota

Patrick Schoenbach wrote:

Is there a DocBook distribution that works on Windows and together with
LyX and MikTeX?


DTDs can be obtained from the link of the webpage I mentioned. I don't 
know very well about other tools on windows, but you can find 
instructions on the web. It seems some suggest using some java programs 
and others recommend cygwin.


Koji


Re: LyX 1.5.2: Some document classes "not available"

2007-11-21 Thread Koji Yokota

José Matos wrote:
  I think you meant above linuxdoc not SGML because both docbook and XML are 
SGML. :-)


Yeah, you are right.

Koji


Re: LyX 1.5.2: Some document classes "not available"

2007-11-21 Thread Koji Yokota

Patrick Schoenbach wrote:

Is there a DocBook distribution that works on Windows and together with
LyX and MikTeX?


DTDs can be obtained from the link of the webpage I mentioned. I don't 
know very well about other tools on windows, but you can find 
instructions on the web. It seems some suggest using some java programs 
and others recommend cygwin.


Koji


Re: LyX 1.5.2: Some document classes not available

2007-11-20 Thread Koji Yokota
Patrick Schoenbach wrote:
 On 18.11.2007 22:17, Patrick Schoenbach wrote:
 I just did a *complete* install of MikTeX on Windows, and I installed
 LyX 1.5.2. However, in the document properties, some of the document
 classes are marked as not available (e.g. the Docbook classes).
 Reconfiguring LyX did not help either.

Those document classes may not be included in MikTeX. Check
Help-LaTeX Configuration from menu which lists original resources
of those classes marked not available.

Unfortunately, you need manually fetch classes from those resources and
install them under the TeX's texmf tree.

Koji


Re: LyX 1.5.2: Some document classes not available

2007-11-20 Thread Koji Yokota

Patrick Schoenbach wrote:

Thanks. This already helps. However, www.sgmltools.org does not exist
anymore. Where do I get SGMLTools for Windows from? Google does not help
much, or did I overlook something?


SGMLtools was succeeded by SGMLtools-Lite. It can be found at:

http://sgmltools-lite.sourceforge.net/

As SGML is already becoming obsolete, you may want to consider using 
DocBook as the above webpage tells you.


Koji


Re: LyX 1.5.2: Some document classes not available

2007-11-20 Thread Koji Yokota
Patrick Schoenbach wrote:
 On 18.11.2007 22:17, Patrick Schoenbach wrote:
 I just did a *complete* install of MikTeX on Windows, and I installed
 LyX 1.5.2. However, in the document properties, some of the document
 classes are marked as not available (e.g. the Docbook classes).
 Reconfiguring LyX did not help either.

Those document classes may not be included in MikTeX. Check
Help-LaTeX Configuration from menu which lists original resources
of those classes marked not available.

Unfortunately, you need manually fetch classes from those resources and
install them under the TeX's texmf tree.

Koji


Re: LyX 1.5.2: Some document classes not available

2007-11-20 Thread Koji Yokota

Patrick Schoenbach wrote:

Thanks. This already helps. However, www.sgmltools.org does not exist
anymore. Where do I get SGMLTools for Windows from? Google does not help
much, or did I overlook something?


SGMLtools was succeeded by SGMLtools-Lite. It can be found at:

http://sgmltools-lite.sourceforge.net/

As SGML is already becoming obsolete, you may want to consider using 
DocBook as the above webpage tells you.


Koji


Re: LyX 1.5.2: Some document classes "not available"

2007-11-20 Thread Koji Yokota
Patrick Schoenbach wrote:
> On 18.11.2007 22:17, Patrick Schoenbach wrote:
>> I just did a *complete* install of MikTeX on Windows, and I installed
>> LyX 1.5.2. However, in the document properties, some of the document
>> classes are marked as "not available" (e.g. the Docbook classes).
>> Reconfiguring LyX did not help either.

Those document classes may not be included in MikTeX. Check
"Help"->"LaTeX Configuration" from menu which lists original resources
of those classes marked "not available".

Unfortunately, you need manually fetch classes from those resources and
install them under the TeX's texmf tree.

Koji


Re: LyX 1.5.2: Some document classes "not available"

2007-11-20 Thread Koji Yokota

Patrick Schoenbach wrote:

Thanks. This already helps. However, www.sgmltools.org does not exist
anymore. Where do I get SGMLTools for Windows from? Google does not help
much, or did I overlook something?


SGMLtools was succeeded by SGMLtools-Lite. It can be found at:

http://sgmltools-lite.sourceforge.net/

As SGML is already becoming obsolete, you may want to consider using 
DocBook as the above webpage tells you.


Koji


Building 1.5.0beta1 on FreeBSD

2007-03-05 Thread Koji Yokota
Dear list,

I'm trying to build 1.5.0beta1 on FreeBSD 6.1, but there seems a problem
with included boost. Up to 1.4.4 release, FreeBSD's lyx port was using
devel/boost in ports, not included one in lyx. However, it seems
lyx-1.5.0beta1 is using functions which is only in cvs, not release
version of boost-1.33.1, so I tried to build with included boost.

It builds fine if I modify Makefiles not to build src/support/tests and
src/frontends/controllers/tests, but compiled lyx binary dumps core.
When I try to build these test programs, compilation fails saying:

 gmake  convert filetools lstrings
 gmake[7]: entering in directory 
 `/usr/ports/print/lyx-devel/work/lyx-1.5.0beta1/src/support/tests'
 /bin/sh ../../../libtool --tag=CXX --mode=link c++-L/usr/local/lib 
 -pthread -o convert  convert.o boost.o ../convert.o 
 c++ -pthread -o convert convert.o boost.o ../convert.o  -L/usr/local/lib
 /usr/lib/crt1.o(.text+0x72): In function `_start':
 : undefined reference to `main'
 boost.o(.text+0x18): In function `lyx::boost::throw_exception(std::exception 
 const)':
 : undefined reference to `boost::assertion_failed(char const*, char const*, 
 char const*, long)'
 ../convert.o(.text+0x266): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , int(int)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x2f2): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , unsigned int(unsigned int)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x37e): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , unsigned long(unsigned long)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x40a): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , long(long)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x4d6): In function `int lyx::convertint, 
 std::basic_stringwchar_t, std::char_traitswchar_t, std::allocatorwchar_t 
  (std::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t )':
 : undefined reference to `lyx::to_ascii(std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  const)'
 gmake[7]: *** [convert] error 1

It seems failing finding out existing functions appropriately. When I
compile, I applied the following patch file to be able to compile on
FreeBSD systems:

 --- configure.orig  Tue Feb 20 08:16:34 2007
 +++ configure   Thu Mar  1 20:14:47 2007
 @@ -23832,7 +23832,7 @@
  echo ${ECHO_T}yes 6
 :
  fi
 -   if test $pkg_failed == no ; then
 +   if test $pkg_failed = no; then
 QT4_CORE_INCLUDES=$QT4_CORE_CFLAGS
  
 QT4_CORE_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore`
 @@ -23909,7 +23909,7 @@
  echo ${ECHO_T}yes 6
 :
  fi
 -   if test $pkg_failed == no ; then
 +   if test $pkg_failed = no; then
 QT4_INCLUDES=$QT4_FRONTEND_CFLAGS
 QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore 
 Qt
 Gui`
  
 @@ -24152,7 +24152,7 @@
 fi
  
 fi
 -   for ac_prog in moc-qt4 moc
 +   for ac_prog in moc4 moc-qt4 moc
  do
# Extract the first word of $ac_prog, so it can be a program name with 
 args
 .
  set dummy $ac_prog; ac_word=$2
 @@ -24197,7 +24197,7 @@
test -n $MOC4  break
  done
  
 -   for ac_prog in uic-qt4 uic
 +   for ac_prog in uic4 uic-qt4 uic
  do
# Extract the first word of $ac_prog, so it can be a program name with 
 args
 .
  set dummy $ac_prog; ac_word=$2

I run configure with:

  ./configure  --with-frontend=qt4 --with-extra-lib=/usr/local/lib \
   --with-extra-inc=/usr/local/include \
--with-qt4-dir=/usr/local

Could you give any suggestions?

Thank you in advance,

--
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce




Building 1.5.0beta1 on FreeBSD

2007-03-05 Thread Koji Yokota
Dear list,

I'm trying to build 1.5.0beta1 on FreeBSD 6.1, but there seems a problem
with included boost. Up to 1.4.4 release, FreeBSD's lyx port was using
devel/boost in ports, not included one in lyx. However, it seems
lyx-1.5.0beta1 is using functions which is only in cvs, not release
version of boost-1.33.1, so I tried to build with included boost.

It builds fine if I modify Makefiles not to build src/support/tests and
src/frontends/controllers/tests, but compiled lyx binary dumps core.
When I try to build these test programs, compilation fails saying:

 gmake  convert filetools lstrings
 gmake[7]: entering in directory 
 `/usr/ports/print/lyx-devel/work/lyx-1.5.0beta1/src/support/tests'
 /bin/sh ../../../libtool --tag=CXX --mode=link c++-L/usr/local/lib 
 -pthread -o convert  convert.o boost.o ../convert.o 
 c++ -pthread -o convert convert.o boost.o ../convert.o  -L/usr/local/lib
 /usr/lib/crt1.o(.text+0x72): In function `_start':
 : undefined reference to `main'
 boost.o(.text+0x18): In function `lyx::boost::throw_exception(std::exception 
 const)':
 : undefined reference to `boost::assertion_failed(char const*, char const*, 
 char const*, long)'
 ../convert.o(.text+0x266): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , int(int)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x2f2): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , unsigned int(unsigned int)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x37e): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , unsigned long(unsigned long)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x40a): In function `std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  
 lyx::convertstd::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t , long(long)':
 : undefined reference to `lyx::from_ascii(std::string const)'
 ../convert.o(.text+0x4d6): In function `int lyx::convertint, 
 std::basic_stringwchar_t, std::char_traitswchar_t, std::allocatorwchar_t 
  (std::basic_stringwchar_t, std::char_traitswchar_t, 
 std::allocatorwchar_t )':
 : undefined reference to `lyx::to_ascii(std::basic_stringwchar_t, 
 std::char_traitswchar_t, std::allocatorwchar_t  const)'
 gmake[7]: *** [convert] error 1

It seems failing finding out existing functions appropriately. When I
compile, I applied the following patch file to be able to compile on
FreeBSD systems:

 --- configure.orig  Tue Feb 20 08:16:34 2007
 +++ configure   Thu Mar  1 20:14:47 2007
 @@ -23832,7 +23832,7 @@
  echo ${ECHO_T}yes 6
 :
  fi
 -   if test $pkg_failed == no ; then
 +   if test $pkg_failed = no; then
 QT4_CORE_INCLUDES=$QT4_CORE_CFLAGS
  
 QT4_CORE_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore`
 @@ -23909,7 +23909,7 @@
  echo ${ECHO_T}yes 6
 :
  fi
 -   if test $pkg_failed == no ; then
 +   if test $pkg_failed = no; then
 QT4_INCLUDES=$QT4_FRONTEND_CFLAGS
 QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore 
 Qt
 Gui`
  
 @@ -24152,7 +24152,7 @@
 fi
  
 fi
 -   for ac_prog in moc-qt4 moc
 +   for ac_prog in moc4 moc-qt4 moc
  do
# Extract the first word of $ac_prog, so it can be a program name with 
 args
 .
  set dummy $ac_prog; ac_word=$2
 @@ -24197,7 +24197,7 @@
test -n $MOC4  break
  done
  
 -   for ac_prog in uic-qt4 uic
 +   for ac_prog in uic4 uic-qt4 uic
  do
# Extract the first word of $ac_prog, so it can be a program name with 
 args
 .
  set dummy $ac_prog; ac_word=$2

I run configure with:

  ./configure  --with-frontend=qt4 --with-extra-lib=/usr/local/lib \
   --with-extra-inc=/usr/local/include \
--with-qt4-dir=/usr/local

Could you give any suggestions?

Thank you in advance,

--
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce




Building 1.5.0beta1 on FreeBSD

2007-03-05 Thread Koji Yokota
Dear list,

I'm trying to build 1.5.0beta1 on FreeBSD 6.1, but there seems a problem
with included boost. Up to 1.4.4 release, FreeBSD's lyx port was using
devel/boost in ports, not included one in lyx. However, it seems
lyx-1.5.0beta1 is using functions which is only in cvs, not release
version of boost-1.33.1, so I tried to build with included boost.

It builds fine if I modify Makefiles not to build src/support/tests and
src/frontends/controllers/tests, but compiled lyx binary dumps core.
When I try to build these test programs, compilation fails saying:

> gmake  convert filetools lstrings
> gmake[7]: entering in directory 
> `/usr/ports/print/lyx-devel/work/lyx-1.5.0beta1/src/support/tests'
> /bin/sh ../../../libtool --tag=CXX --mode=link c++-L/usr/local/lib 
> -pthread -o convert  convert.o boost.o ../convert.o 
> c++ -pthread -o convert convert.o boost.o ../convert.o  -L/usr/local/lib
> /usr/lib/crt1.o(.text+0x72): In function `_start':
> : undefined reference to `main'
> boost.o(.text+0x18): In function `lyx::boost::throw_exception(std::exception 
> const&)':
> : undefined reference to `boost::assertion_failed(char const*, char const*, 
> char const*, long)'
> ../convert.o(.text+0x266): In function `std::basic_string<wchar_t, 
> std::char_traits, std::allocator > 
> lyx::convert<std::basic_string<wchar_t, std::char_traits, 
> std::allocator >, int>(int)':
> : undefined reference to `lyx::from_ascii(std::string const&)'
> ../convert.o(.text+0x2f2): In function `std::basic_string<wchar_t, 
> std::char_traits, std::allocator > 
> lyx::convert<std::basic_string<wchar_t, std::char_traits, 
> std::allocator >, unsigned int>(unsigned int)':
> : undefined reference to `lyx::from_ascii(std::string const&)'
> ../convert.o(.text+0x37e): In function `std::basic_string<wchar_t, 
> std::char_traits, std::allocator > 
> lyx::convert<std::basic_string<wchar_t, std::char_traits, 
> std::allocator >, unsigned long>(unsigned long)':
> : undefined reference to `lyx::from_ascii(std::string const&)'
> ../convert.o(.text+0x40a): In function `std::basic_string<wchar_t, 
> std::char_traits, std::allocator > 
> lyx::convert<std::basic_string<wchar_t, std::char_traits, 
> std::allocator >, long>(long)':
> : undefined reference to `lyx::from_ascii(std::string const&)'
> ../convert.o(.text+0x4d6): In function `int lyx::convert<int, 
> std::basic_string<wchar_t, std::char_traits, std::allocator 
> > >(std::basic_string<wchar_t, std::char_traits, 
> std::allocator >)':
> : undefined reference to `lyx::to_ascii(std::basic_string<wchar_t, 
> std::char_traits, std::allocator > const&)'
> gmake[7]: *** [convert] error 1

It seems failing finding out existing functions appropriately. When I
compile, I applied the following patch file to be able to compile on
FreeBSD systems:

> --- configure.orig  Tue Feb 20 08:16:34 2007
> +++ configure   Thu Mar  1 20:14:47 2007
> @@ -23832,7 +23832,7 @@
>  echo "${ECHO_T}yes" >&6
> :
>  fi
> -   if test "$pkg_failed" == "no" ; then
> +   if test $pkg_failed = no; then
> QT4_CORE_INCLUDES=$QT4_CORE_CFLAGS
>  
> QT4_CORE_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore`
> @@ -23909,7 +23909,7 @@
>  echo "${ECHO_T}yes" >&6
> :
>  fi
> -   if test "$pkg_failed" == "no" ; then
> +   if test $pkg_failed = no; then
> QT4_INCLUDES=$QT4_FRONTEND_CFLAGS
> QT4_LDFLAGS=`$PKG_CONFIG --libs-only-L QtCore 
> Qt
> Gui`
>  
> @@ -24152,7 +24152,7 @@
> fi
>  
> fi
> -   for ac_prog in moc-qt4 moc
> +   for ac_prog in moc4 moc-qt4 moc
>  do
># Extract the first word of "$ac_prog", so it can be a program name with 
> args
> .
>  set dummy $ac_prog; ac_word=$2
> @@ -24197,7 +24197,7 @@
>test -n "$MOC4" && break
>  done
>  
> -   for ac_prog in uic-qt4 uic
> +   for ac_prog in uic4 uic-qt4 uic
>  do
># Extract the first word of "$ac_prog", so it can be a program name with 
> args
> .
>  set dummy $ac_prog; ac_word=$2

I run configure with:

  ./configure  --with-frontend=qt4 --with-extra-lib=/usr/local/lib \
   --with-extra-inc=/usr/local/include \
--with-qt4-dir=/usr/local

Could you give any suggestions?

Thank you in advance,

--
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce




Re: Chinese caracter

2006-02-07 Thread Koji Yokota
Hi,

You must use CJK-LyX:

http://cellular.phys.pusan.ac.kr/cjk.html

and also, chinese-capable latex. There 
is cwTeX for Traditional Chinese, but 
I don't know about Simplified 
Chinese.

Cheers,

2006年 2月 7日 火曜日 17:44、Eric Germaneau さ
んは書きました:
 Hi!

 Does someone know how to use
 Chinese caracter in a lyx document
 (so in Latex as well ).
 I'm using the Slackware 10.2
 distribution. Thanks in advance.
 Regards,

  Eric.

-- 
Koji Yokota 
([EMAIL PROTECTED])
Otaru University of Commerce


Re: Chinese caracter

2006-02-07 Thread Koji Yokota
Hi,

You must use CJK-LyX:

http://cellular.phys.pusan.ac.kr/cjk.html

and also, chinese-capable latex. There 
is cwTeX for Traditional Chinese, but 
I don't know about Simplified 
Chinese.

Cheers,

2006年 2月 7日 火曜日 17:44、Eric Germaneau さ
んは書きました:
 Hi!

 Does someone know how to use
 Chinese caracter in a lyx document
 (so in Latex as well ).
 I'm using the Slackware 10.2
 distribution. Thanks in advance.
 Regards,

  Eric.

-- 
Koji Yokota 
([EMAIL PROTECTED])
Otaru University of Commerce


Re: Chinese caracter

2006-02-07 Thread Koji Yokota
Hi,

You must use CJK-LyX:

http://cellular.phys.pusan.ac.kr/cjk.html

and also, chinese-capable latex. There 
is cwTeX for Traditional Chinese, but 
I don't know about Simplified 
Chinese.

Cheers,

2006年 2月 7日 火曜日 17:44、Eric Germaneau さ
んは書きました:
> Hi!
>
> Does someone know how to use
> Chinese caracter in a lyx document
> (so in Latex as well ).
> I'm using the Slackware 10.2
> distribution. Thanks in advance.
> Regards,
>
>      Eric.

-- 
Koji Yokota 
([EMAIL PROTECTED])
Otaru University of Commerce


Re: Writing in Japanese?

2005-12-28 Thread Koji Yokota
On Sat, Dec 24, 2005 at 12:48:28PM -0500, Michael Wojcik wrote:
 But perhaps it wouldn't be so difficult to put 
 this one character in using ERT?
 
 Any opinions on the best way to do this?

I don't think LyX (non-CJK) can handle double-byte characters that
Japanese uses. And, unfortunately, there is no CJK-LyX for Windows
at the moment.

One possible way to do is you write everything in LyX in English,
putting a marker (like KO) at the place where Japanese
Ko character appears, and you export the document to LaTeX format.

Next, you use an editor which can handle Japanese and replace the
marker with Japanese character.

Then, use pLaTeX to compile the document (normal LaTeX won't work).
One of standard distributions of pLaTeX for Windows can be obtained
from

http://www.fsci.fuk.kindai.ac.jp/~kakuto/win32-ptex/web2c75.html

If you need write longer Japanese, I recommend you to use CJK-LyX
on Linux (or else), which can be obtained from

ftp://ftp.u-aizu.ac.jp/pub/tex/cjk-lyx/

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: SVMult document class

2005-12-28 Thread Koji Yokota
On Thu, Dec 22, 2005 at 04:18:51PM +0100, Axel Dessecker wrote:
 Am Donnerstag, 22. Dezember 2005 15:49 schrieb Paul A. Rubin:
  Do you have a layout for it?
 
 Well, I'm going to create one... Thanks Paul.
 
 Axel


Axel,

I have one created in past. Please try if you like.

http://www.otaru-uc.ac.jp/~yokota/comp/layouts/svmult.tgz 

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: Writing in Japanese?

2005-12-28 Thread Koji Yokota
On Sat, Dec 24, 2005 at 12:48:28PM -0500, Michael Wojcik wrote:
 But perhaps it wouldn't be so difficult to put 
 this one character in using ERT?
 
 Any opinions on the best way to do this?

I don't think LyX (non-CJK) can handle double-byte characters that
Japanese uses. And, unfortunately, there is no CJK-LyX for Windows
at the moment.

One possible way to do is you write everything in LyX in English,
putting a marker (like KO) at the place where Japanese
Ko character appears, and you export the document to LaTeX format.

Next, you use an editor which can handle Japanese and replace the
marker with Japanese character.

Then, use pLaTeX to compile the document (normal LaTeX won't work).
One of standard distributions of pLaTeX for Windows can be obtained
from

http://www.fsci.fuk.kindai.ac.jp/~kakuto/win32-ptex/web2c75.html

If you need write longer Japanese, I recommend you to use CJK-LyX
on Linux (or else), which can be obtained from

ftp://ftp.u-aizu.ac.jp/pub/tex/cjk-lyx/

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: SVMult document class

2005-12-28 Thread Koji Yokota
On Thu, Dec 22, 2005 at 04:18:51PM +0100, Axel Dessecker wrote:
 Am Donnerstag, 22. Dezember 2005 15:49 schrieb Paul A. Rubin:
  Do you have a layout for it?
 
 Well, I'm going to create one... Thanks Paul.
 
 Axel


Axel,

I have one created in past. Please try if you like.

http://www.otaru-uc.ac.jp/~yokota/comp/layouts/svmult.tgz 

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: Writing in Japanese?

2005-12-28 Thread Koji Yokota
On Sat, Dec 24, 2005 at 12:48:28PM -0500, Michael Wojcik wrote:
> But perhaps it wouldn't be so difficult to put 
> this one character in using ERT?
> 
> Any opinions on the best way to do this?

I don't think LyX (non-CJK) can handle double-byte characters that
Japanese uses. And, unfortunately, there is no CJK-LyX for Windows
at the moment.

One possible way to do is you write everything in LyX in English,
putting a "marker" (like KO) at the place where Japanese
"Ko" character appears, and you export the document to LaTeX format.

Next, you use an editor which can handle Japanese and replace the
marker with Japanese character.

Then, use pLaTeX to compile the document (normal LaTeX won't work).
One of standard distributions of pLaTeX for Windows can be obtained
from

http://www.fsci.fuk.kindai.ac.jp/~kakuto/win32-ptex/web2c75.html

If you need write longer Japanese, I recommend you to use CJK-LyX
on Linux (or else), which can be obtained from

ftp://ftp.u-aizu.ac.jp/pub/tex/cjk-lyx/

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: SVMult document class

2005-12-28 Thread Koji Yokota
On Thu, Dec 22, 2005 at 04:18:51PM +0100, Axel Dessecker wrote:
> Am Donnerstag, 22. Dezember 2005 15:49 schrieb Paul A. Rubin:
> > Do you have a layout for it?
> 
> Well, I'm going to create one... Thanks Paul.
> 
> Axel
>

Axel,

I have one created in past. Please try if you like.

http://www.otaru-uc.ac.jp/~yokota/comp/layouts/svmult.tgz 

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: More about foreign languages - No!

2005-10-16 Thread Koji Yokota
 I did it already before, but the dvi and pdf is
 using english yet. :(

Do you have correct install of babel package of LaTeX? At View - LaTeX Log, 
you should find lines such as

 (/usr/local/share/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2004/11/20 v3.8d The Babel package
(/usr/local/share/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2004/11/20 v3.8d Babel common definitions
(/usr/local/share/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2004/11/20 v3.8d Babel language switching mechanism
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
) (/usr/local/share/texmf-dist/tex/generic/babel/portuges.ldf
Language: portuges 2004/02/19 v1.2p Portuguese support from the babel system

 Please try with your Lyx and see if it is true for
 you also, then give me the response, and thanks a lot
 in advance!

It works fine at my place :)


Re: More about foreign languages - No!

2005-10-16 Thread Koji Yokota
 I did it already before, but the dvi and pdf is
 using english yet. :(

Do you have correct install of babel package of LaTeX? At View - LaTeX Log, 
you should find lines such as

 (/usr/local/share/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2004/11/20 v3.8d The Babel package
(/usr/local/share/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2004/11/20 v3.8d Babel common definitions
(/usr/local/share/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2004/11/20 v3.8d Babel language switching mechanism
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
) (/usr/local/share/texmf-dist/tex/generic/babel/portuges.ldf
Language: portuges 2004/02/19 v1.2p Portuguese support from the babel system

 Please try with your Lyx and see if it is true for
 you also, then give me the response, and thanks a lot
 in advance!

It works fine at my place :)


Re: More about foreign languages - No!

2005-10-16 Thread Koji Yokota
> I did it already before, but the dvi and pdf is
> using english yet. :(

Do you have correct install of babel package of LaTeX? At View -> LaTeX Log, 
you should find lines such as

 (/usr/local/share/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2004/11/20 v3.8d The Babel package
(/usr/local/share/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2004/11/20 v3.8d Babel common definitions
(/usr/local/share/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2004/11/20 v3.8d Babel language switching mechanism
)
[EMAIL PROTECTED]
[EMAIL PROTECTED]
) (/usr/local/share/texmf-dist/tex/generic/babel/portuges.ldf
Language: portuges 2004/02/19 v1.2p Portuguese support from the babel system

> Please try with your Lyx and see if it is true for
> you also, then give me the response, and thanks a lot
> in advance!

It works fine at my place :)


Re: the ftp server for CJK-Lyx down?

2005-10-03 Thread Koji Yokota
 1. The links to the CJK-Lyx are broken. I am wondering if the server was
 down.

It's still down, but there is a mirror site at 
ftp://ftp.u-aizu.ac.jp/pub/tex/cjk-lyx/

-- 
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce


Re: the ftp server for CJK-Lyx down?

2005-10-03 Thread Koji Yokota
 That's good to know. Have you tried contacting ChangGil Han directly
 about the problem?

Yes, but he is probably busy. He previously said his site is frequently 
attacked, so he may be facing a system-wide problem...

-- 
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce


Re: the ftp server for CJK-Lyx down?

2005-10-03 Thread Koji Yokota
 1. The links to the CJK-Lyx are broken. I am wondering if the server was
 down.

It's still down, but there is a mirror site at 
ftp://ftp.u-aizu.ac.jp/pub/tex/cjk-lyx/

-- 
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce


Re: the ftp server for CJK-Lyx down?

2005-10-03 Thread Koji Yokota
 That's good to know. Have you tried contacting ChangGil Han directly
 about the problem?

Yes, but he is probably busy. He previously said his site is frequently 
attacked, so he may be facing a system-wide problem...

-- 
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce


Re: the ftp server for CJK-Lyx down?

2005-10-03 Thread Koji Yokota
> 1. The links to the CJK-Lyx are broken. I am wondering if the server was
> down.

It's still down, but there is a mirror site at 
ftp://ftp.u-aizu.ac.jp/pub/tex/cjk-lyx/

-- 
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce


Re: the ftp server for CJK-Lyx down?

2005-10-03 Thread Koji Yokota
> That's good to know. Have you tried contacting ChangGil Han directly
> about the problem?

Yes, but he is probably busy. He previously said his site is frequently 
attacked, so he may be facing a system-wide problem...

-- 
Koji Yokota ([EMAIL PROTECTED])
Otaru University of Commerce


Re: the ftp server for CJK-Lyx down?

2005-09-22 Thread Koji Yokota
The server seems to have been down for a while. For the source of 
version 1.3.4, it's also available at


ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/CJK-LyX-qt-1.3.4-1.src.tar.gz

For version 1.3.5,

http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/CJK-LyX-qt-1.3.5-1.src.tar.gz
http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/CJK-LyX-xforms-1.3.5-1.src.tar.gz


2. I am also wondering why the ftp server of Lyx does not provide
CJK-Lyx files. 


I agree. It'll be convenient as CJK-LyX server sometimes goes inaccessible.

Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce



Cheng-shan Frank Liu wrote:


Hi, I have two quick questions about CJK-Lyx:

1. The links to the CJK-Lyx are broken. I am wondering if the server 
was down.


http://cellular.phys.pusan.ac.kr/cjk.html
ftp://cellular.phys.pusan.ac.kr/CJK-LyX

2. I am also wondering why the ftp server of Lyx does not provide
CJK-Lyx files.

Thank you for your attention.

Frank Liu




Re: the ftp server for CJK-Lyx down?

2005-09-22 Thread Koji Yokota
The server seems to have been down for a while. For the source of 
version 1.3.4, it's also available at


ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/CJK-LyX-qt-1.3.4-1.src.tar.gz

For version 1.3.5,

http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/CJK-LyX-qt-1.3.5-1.src.tar.gz
http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/CJK-LyX-xforms-1.3.5-1.src.tar.gz


2. I am also wondering why the ftp server of Lyx does not provide
CJK-Lyx files. 


I agree. It'll be convenient as CJK-LyX server sometimes goes inaccessible.

Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce



Cheng-shan Frank Liu wrote:


Hi, I have two quick questions about CJK-Lyx:

1. The links to the CJK-Lyx are broken. I am wondering if the server 
was down.


http://cellular.phys.pusan.ac.kr/cjk.html
ftp://cellular.phys.pusan.ac.kr/CJK-LyX

2. I am also wondering why the ftp server of Lyx does not provide
CJK-Lyx files.

Thank you for your attention.

Frank Liu




Re: the ftp server for CJK-Lyx down?

2005-09-22 Thread Koji Yokota
The server seems to have been down for a while. For the source of 
version 1.3.4, it's also available at


ftp://ftp.freebsd.org/pub/FreeBSD/ports/distfiles/CJK-LyX-qt-1.3.4-1.src.tar.gz

For version 1.3.5,

http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/CJK-LyX-qt-1.3.5-1.src.tar.gz
http://www.otaru-uc.ac.jp/~yokota/comp/CJK-LyX/CJK-LyX-xforms-1.3.5-1.src.tar.gz


2. I am also wondering why the ftp server of Lyx does not provide
CJK-Lyx files. 


I agree. It'll be convenient as CJK-LyX server sometimes goes inaccessible.

Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce



Cheng-shan Frank Liu wrote:


Hi, I have two quick questions about CJK-Lyx:

1. The links to the CJK-Lyx are broken. I am wondering if the server 
was down.


http://cellular.phys.pusan.ac.kr/cjk.html
ftp://cellular.phys.pusan.ac.kr/CJK-LyX

2. I am also wondering why the ftp server of Lyx does not provide
CJK-Lyx files.

Thank you for your attention.

Frank Liu




Re: Fails to convert image (at preview)

2005-09-21 Thread Koji Yokota
Oh, yes. .eps - .ppm converter was mistakenly specified in Preference.
Removing it corrected the problem.

Now, I understand the purpose of the Converter tab in Preference :)
(Was there a documentation for this? Sorry, I'm only a user :)

Anyway, thank you very much.

Koji Yokota

On Tue, Sep 20, 2005 at 08:22:18AM +0100, Angus Leeming wrote:
 So, it seems the phenomenon I observed is a natural consequence in my 
 current environment.
 Do I need to modify lyxpreview2ppm.py?
 
 lyxpreview2ppm.py is meant to be used to create WYSIWYG-type previews of 
 things like Math equations. See http://wiki.lyx.org/LyX/InstantPreview. The 
 process of generating these images is rather involved, requiring a special 
 LaTeX package, preview.sty, together with a conversion from LaTeX document 
 - dvi file - (possibly lots and lots of) bitmap images of the math 
 equations.
 
 If you want to simply view your .eps images within LyX, I recommend that 
 you remove and explicit converter .eps - .ppm (or .png). The converter 
 mechanism will then fall through to the use of scripts/convertDefault.sh 
 which is simply a wrapper for ImageMagick's convert utility. Install that 
 and all should work perfectly.
 
 Let me know if you continue to have problems.
 
 Angus
 

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: Fails to convert image (at preview)

2005-09-21 Thread Koji Yokota
Oh, yes. .eps - .ppm converter was mistakenly specified in Preference.
Removing it corrected the problem.

Now, I understand the purpose of the Converter tab in Preference :)
(Was there a documentation for this? Sorry, I'm only a user :)

Anyway, thank you very much.

Koji Yokota

On Tue, Sep 20, 2005 at 08:22:18AM +0100, Angus Leeming wrote:
 So, it seems the phenomenon I observed is a natural consequence in my 
 current environment.
 Do I need to modify lyxpreview2ppm.py?
 
 lyxpreview2ppm.py is meant to be used to create WYSIWYG-type previews of 
 things like Math equations. See http://wiki.lyx.org/LyX/InstantPreview. The 
 process of generating these images is rather involved, requiring a special 
 LaTeX package, preview.sty, together with a conversion from LaTeX document 
 - dvi file - (possibly lots and lots of) bitmap images of the math 
 equations.
 
 If you want to simply view your .eps images within LyX, I recommend that 
 you remove and explicit converter .eps - .ppm (or .png). The converter 
 mechanism will then fall through to the use of scripts/convertDefault.sh 
 which is simply a wrapper for ImageMagick's convert utility. Install that 
 and all should work perfectly.
 
 Let me know if you continue to have problems.
 
 Angus
 

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: Fails to convert image (at preview)

2005-09-21 Thread Koji Yokota
Oh, yes. .eps -> .ppm converter was mistakenly specified in Preference.
Removing it corrected the problem.

Now, I understand the purpose of the Converter tab in Preference :)
(Was there a documentation for this? Sorry, I'm only a user :)

Anyway, thank you very much.

Koji Yokota

On Tue, Sep 20, 2005 at 08:22:18AM +0100, Angus Leeming wrote:
> >So, it seems the phenomenon I observed is a natural consequence in my 
> >current environment.
> >Do I need to modify lyxpreview2ppm.py?
> 
> lyxpreview2ppm.py is meant to be used to create WYSIWYG-type previews of 
> things like Math equations. See http://wiki.lyx.org/LyX/InstantPreview. The 
> process of generating these images is rather involved, requiring a special 
> LaTeX package, preview.sty, together with a conversion from LaTeX document 
> -> dvi file -> (possibly lots and lots of) bitmap images of the math 
> equations.
> 
> If you want to simply view your .eps images within LyX, I recommend that 
> you remove and explicit converter .eps -> .ppm (or .png). The converter 
> mechanism will then fall through to the use of scripts/convertDefault.sh 
> which is simply a wrapper for ImageMagick's "convert" utility. Install that 
> and all should work perfectly.
> 
> Let me know if you continue to have problems.
> 
> Angus
> 

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce


Re: Fails to convert image (at preview)

2005-09-19 Thread Koji Yokota

Angus,

Thank you for your advice.

I'm using version 1.3.5 (actually it's CJK-Lyx-1.3.5 but I don't think 
CJK patch is related to this problem) and I'm using the temporary 
directory (/tmp).


Looking at the debug information of 'lyx -dbg graphics', it seems that 
the created script for the conversion of image does not specify the 
output file.  Here is the content of the script (+debug info):


PreviewLoader::finishedInProgress(1): processing failed for 
/usr/local/share/lyx/scripts/lyxpreview2ppm.py 
/tmp/lyx_tmpdir79676GFtWvQ/lyx_tmpbuf0/0lyxpreview.tex 109 ppm

Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: /hoge/hoge.eps
with displayed filename: /hoge/hoge.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to gif
Unable to convert from eps to jpg
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  /hoge/hoge.eps
to_file_base: /tmp/lyx_tmpdir79676GFtWvQ/Diamond82-179676XOhtkh
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile='/hoge/hoge.eps'
infile_base='/hoge'
outfile='/tmp/lyx_tmpdir79676GFtWvQ/gconvert079676yHQsea.ppm'

pstopnm ${infile} ||
{
'rm' -f ${outfile}
exit 1
}

if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi

fromfile=${outfile}
tofile='/tmp/lyx_tmpdir79676GFtWvQ/Diamond82-179676XOhtkh.ppm'

'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}
--
pstopnm: Writing ppmraw file
Image conversion failed.
Unable to find converted file!


I'm using netpbm-10.26.14 on FreeBSD-5.4 and the man page of netpbm says:


If you use the -stdout  option, pstopnm outputs images of all the pages
 


as a multi-image file to Standard Output.  Otherwise,  pstopnm  creates
one file for each page in the Postscript document.  The files are named
as follows: If the input file is named psfile.ps, the name of the files
will  be  psfile001.ppm,  psfile002.ppm,  etc.


So, it seems the phenomenon I observed is a natural consequence in my 
current environment.

Do I need to modify lyxpreview2ppm.py?

Angus Leeming wrote:


Koji Yokota wrote:

 


LyX has been failing to show image preview when I insert graphics in
LyX document from some time ago.

LyX simply shows a box which says failed to convert image at the
place I inserted graphics. However, LyX seems successfully
converting the image in the same directory as the document and
image. For example, when the file name of the inserted image is
test.eps, it creates a file test.eps001.ppm which is not broken.
So, the problem looks simply LyX cannot correctly find
test.eps001.ppm.

Can you suggest how to correct the problem? Thank you in advance.
   



* Could you tell us what version of LyX you are using?

* Are you using a temporary directory? To check:

Using the Qt frontend look in the Paths pane of the Edit-Preferences
dialog.

[x] Use temporary directory [/tmp] [Browse...]

Using the XForms frontend look in the Input-Paths tab of the
Edit-Preferences dialog.

Temp dir: [x] [/tmp] [Browse...]


I'm very surprised by the generated filenames too.
lyx -dbg graphics
should dump a whole heap of information to the console to help you
diagnose the problem.

Angus


 



Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce




Re: Fails to convert image (at preview)

2005-09-19 Thread Koji Yokota

Angus,

Thank you for your advice.

I'm using version 1.3.5 (actually it's CJK-Lyx-1.3.5 but I don't think 
CJK patch is related to this problem) and I'm using the temporary 
directory (/tmp).


Looking at the debug information of 'lyx -dbg graphics', it seems that 
the created script for the conversion of image does not specify the 
output file.  Here is the content of the script (+debug info):


PreviewLoader::finishedInProgress(1): processing failed for 
/usr/local/share/lyx/scripts/lyxpreview2ppm.py 
/tmp/lyx_tmpdir79676GFtWvQ/lyx_tmpbuf0/0lyxpreview.tex 109 ppm

Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: /hoge/hoge.eps
with displayed filename: /hoge/hoge.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to gif
Unable to convert from eps to jpg
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  /hoge/hoge.eps
to_file_base: /tmp/lyx_tmpdir79676GFtWvQ/Diamond82-179676XOhtkh
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile='/hoge/hoge.eps'
infile_base='/hoge'
outfile='/tmp/lyx_tmpdir79676GFtWvQ/gconvert079676yHQsea.ppm'

pstopnm ${infile} ||
{
'rm' -f ${outfile}
exit 1
}

if [ ! -f ${outfile} ]; then
if [ -f ${outfile}.0 ]; then
'mv' -f ${outfile}.0 ${outfile}
'rm' -f ${outfile}.?
else
exit 1
fi
fi

fromfile=${outfile}
tofile='/tmp/lyx_tmpdir79676GFtWvQ/Diamond82-179676XOhtkh.ppm'

'mv' -f ${fromfile} ${tofile} ||
{
'cp' -f ${fromfile} ${tofile} ||
{
exit 1
}
'rm' -f ${fromfile}
}
--
pstopnm: Writing ppmraw file
Image conversion failed.
Unable to find converted file!


I'm using netpbm-10.26.14 on FreeBSD-5.4 and the man page of netpbm says:


If you use the -stdout  option, pstopnm outputs images of all the pages
 


as a multi-image file to Standard Output.  Otherwise,  pstopnm  creates
one file for each page in the Postscript document.  The files are named
as follows: If the input file is named psfile.ps, the name of the files
will  be  psfile001.ppm,  psfile002.ppm,  etc.


So, it seems the phenomenon I observed is a natural consequence in my 
current environment.

Do I need to modify lyxpreview2ppm.py?

Angus Leeming wrote:


Koji Yokota wrote:

 


LyX has been failing to show image preview when I insert graphics in
LyX document from some time ago.

LyX simply shows a box which says failed to convert image at the
place I inserted graphics. However, LyX seems successfully
converting the image in the same directory as the document and
image. For example, when the file name of the inserted image is
test.eps, it creates a file test.eps001.ppm which is not broken.
So, the problem looks simply LyX cannot correctly find
test.eps001.ppm.

Can you suggest how to correct the problem? Thank you in advance.
   



* Could you tell us what version of LyX you are using?

* Are you using a temporary directory? To check:

Using the Qt frontend look in the Paths pane of the Edit-Preferences
dialog.

[x] Use temporary directory [/tmp] [Browse...]

Using the XForms frontend look in the Input-Paths tab of the
Edit-Preferences dialog.

Temp dir: [x] [/tmp] [Browse...]


I'm very surprised by the generated filenames too.
lyx -dbg graphics
should dump a whole heap of information to the console to help you
diagnose the problem.

Angus


 



Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce




Re: Fails to convert image (at preview)

2005-09-19 Thread Koji Yokota

Angus,

Thank you for your advice.

I'm using version 1.3.5 (actually it's CJK-Lyx-1.3.5 but I don't think 
CJK patch is related to this problem) and I'm using the temporary 
directory (/tmp).


Looking at the debug information of 'lyx -dbg graphics', it seems that 
the created script for the conversion of image does not specify the 
output file.  Here is the content of the script (+debug info):


PreviewLoader::finishedInProgress(1): processing failed for 
/usr/local/share/lyx/scripts/lyxpreview2ppm.py 
/tmp/lyx_tmpdir79676GFtWvQ/lyx_tmpbuf0/0lyxpreview.tex 109 ppm

Recognised Fileformat: eps
[GrahicsCacheItem::convertToDisplayFormat]
Attempting to convert image file: /hoge/hoge.eps
with displayed filename: /hoge/hoge.eps
Recognised Fileformat: eps

The file contains eps format data.
Unable to convert from eps to bmp
Unable to convert from eps to gif
Unable to convert from eps to jpg
Unable to convert from eps to pbm
Unable to convert from eps to pgm
Unable to convert from eps to png
Converting it to ppm format.
Converter c-tor:
from_file:  /hoge/hoge.eps
to_file_base: /tmp/lyx_tmpdir79676GFtWvQ/Diamond82-179676XOhtkh
from_format:  eps
to_format:ppm
build_script ... ready!
Conversion script:
--
#!/bin/sh
infile='/hoge/hoge.eps'
infile_base='/hoge'
outfile='/tmp/lyx_tmpdir79676GFtWvQ/gconvert079676yHQsea.ppm'

pstopnm "${infile}" ||
{
'rm' -f "${outfile}"
exit 1
}

if [ ! -f "${outfile}" ]; then
if [ -f "${outfile}".0 ]; then
'mv' -f "${outfile}".0 "${outfile}"
'rm' -f "${outfile}".?
else
exit 1
fi
fi

fromfile="${outfile}"
tofile='/tmp/lyx_tmpdir79676GFtWvQ/Diamond82-179676XOhtkh.ppm'

'mv' -f "${fromfile}" "${tofile}" ||
{
'cp' -f "${fromfile}" "${tofile}" ||
{
exit 1
}
'rm' -f "${fromfile}"
}
--
pstopnm: Writing ppmraw file
Image conversion failed.
Unable to find converted file!


I'm using netpbm-10.26.14 on FreeBSD-5.4 and the man page of netpbm says:


If you use the -stdout  option, pstopnm outputs images of all the pages
 


as a multi-image file to Standard Output.  Otherwise,  pstopnm  creates
one file for each page in the Postscript document.  The files are named
as follows: If the input file is named psfile.ps, the name of the files
will  be  psfile001.ppm,  psfile002.ppm,  etc.


So, it seems the phenomenon I observed is a natural consequence in my 
current environment.

Do I need to modify lyxpreview2ppm.py?

Angus Leeming wrote:


Koji Yokota wrote:

 


LyX has been failing to show image preview when I insert graphics in
LyX document from some time ago.

LyX simply shows a box which says "failed to convert image" at the
place I inserted graphics. However, LyX seems successfully
converting the image in the same directory as the document and
image. For example, when the file name of the inserted image is
"test.eps", it creates a file "test.eps001.ppm" which is not broken.
So, the problem looks simply LyX cannot correctly find
"test.eps001.ppm".

Can you suggest how to correct the problem? Thank you in advance.
   



* Could you tell us what version of LyX you are using?

* Are you using a temporary directory? To check:

Using the Qt frontend look in the Paths pane of the Edit->Preferences
dialog.

[x] Use temporary directory [/tmp] [Browse...]

Using the XForms frontend look in the Input->Paths tab of the
Edit->Preferences dialog.

Temp dir: [x] [/tmp] [Browse...]


I'm very surprised by the generated filenames too.
lyx -dbg graphics
should dump a whole heap of information to the console to help you
diagnose the problem.

Angus


 



Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce




Fails to convert image (at preview)

2005-09-15 Thread Koji Yokota
LyX has been failing to show image preview when I insert graphics in LyX
document from some time ago.

LyX simply shows a box which says failed to convert image at the place
I inserted graphics. However, LyX seems successfully converting the
image in the same directory as the document and image. For example, when
the file name of the inserted image is test.eps, it creates a file
test.eps001.ppm which is not broken. So, the problem looks simply LyX
cannot correctly find test.eps001.ppm.

Can you suggest how to correct the problem? Thank you in advance.

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce



Fails to convert image (at preview)

2005-09-15 Thread Koji Yokota
LyX has been failing to show image preview when I insert graphics in LyX
document from some time ago.

LyX simply shows a box which says failed to convert image at the place
I inserted graphics. However, LyX seems successfully converting the
image in the same directory as the document and image. For example, when
the file name of the inserted image is test.eps, it creates a file
test.eps001.ppm which is not broken. So, the problem looks simply LyX
cannot correctly find test.eps001.ppm.

Can you suggest how to correct the problem? Thank you in advance.

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce



Fails to convert image (at preview)

2005-09-15 Thread Koji Yokota
LyX has been failing to show image preview when I insert graphics in LyX
document from some time ago.

LyX simply shows a box which says "failed to convert image" at the place
I inserted graphics. However, LyX seems successfully converting the
image in the same directory as the document and image. For example, when
the file name of the inserted image is "test.eps", it creates a file
"test.eps001.ppm" which is not broken. So, the problem looks simply LyX
cannot correctly find "test.eps001.ppm".

Can you suggest how to correct the problem? Thank you in advance.

-- 
Koji Yokota ([EMAIL PROTECTED])
Department of Economics
Otaru University of Commerce