On 18 éÀÎØ 2002 14:05, Jean-Marc Lasgouttes wrote: > >>>>> "Vitaly" == Vitaly Lipatov <[EMAIL PROTECTED]> writes: > > Vitaly> When someone runs LyX built without it patch he see not > Vitaly> correct characters on screen and Intro does not readable. See > Vitaly> attached patch. > > I am not sure I want to have that right now. While I can see why you > need that, I do not like the implementation much. Is 'locale charmap' > portable on all unices? Hmm. locale is in glibc... Please see the new patch. There is check for locale present in it.
> > Vitaly> There is some addition for browsers search in this patch. Now > Vitaly> configure searchs only for netscape it is very restricted by > Vitaly> my mind. > > Please do not modify the configure script, but rather the configure.m4 OK. It was my mistake... > script from which it is derived. Your choice of html browser is a bit > subjective (what about mozilla?)... And since no two people will agree Try $ mozilla filename. I see it is understand local filename only as file://path/filename. > on it, I propose to leave it to the lowest common denominator: > netscape. OK. -- Lav GNU! ALT Linux! LaTeX! LyX!
--- configure.m4.orig 2002-06-18 21:51:50 +0400 +++ configure.m4 2002-06-18 23:11:47 +0400 @@ -101,6 +101,11 @@ lyx_keep_temps=no srcdir= lyx_suffix= +if test -x `which locale`; then + charmap=`locale charmap` +else + charmap="" +fi #### Parse the command line for ac_option do @@ -586,6 +591,54 @@ \\font_encoding "$chk_fontenc" EOF +# Some cyrillic defaults +case "$charmap" in + KOI8-R) +cat >>$outfile <<EOF + +\\default_language russian +\\default_papersize "a4" +\\screen_font_scalable false +\\screen_font_encoding koi8-r +\\kbmap true +\\kbmap_primary "null.kmap" +\\kbmap_secondary "koi8-r.kmap" +EOF + ;; + CP1251) + cat >>$outfile <<EOF + +\\default_language russian +\\default_papersize "a4" +\\screen_font_scalable false +\\screen_font_encoding cp1251 +EOF + ;; + KOI8-U) + cat >>$outfile <<EOF + +\\default_language ukrainian +\\default_papersize "a4" +\\screen_font_scalable false +\\screen_font_encoding koi8-u +\\kbmap true +\\kbmap_primary "null.kmap" +\\kbmap_secondary "koi8-u.kmap" +EOF + ;; + PT154) + cat >>$outfile <<EOF + +\\default_language kazakh +\\default_papersize "a4" +\\screen_font_scalable false +\\screen_font_encoding paratype-cp154 +EOF + ;; + *) :;; +esac + + ######## X FONTS # create a fonts.dir file to make X fonts available to LyX echo "checking for TeX fonts"