From 67488fcbd49ca0b8994ea5c1852e5ab35a83fe10 Mon Sep 17 00:00:00 2001 From: nlopess Date: Sat, 3 Apr 2004 13:48:48 +0000 Subject: [PATCH] trying to fix ru problems --- docs/Makefile.in | 2 +- docs/configure.in | 10 +++++++--- docs/dsssl/{html-common.dsl => html-common.dsl.in} | 3 +++ docs/manual.xml.in | 1 + 4 files changed, 12 insertions(+), 4 deletions(-) rename docs/dsssl/{html-common.dsl => html-common.dsl.in} (98%) diff --git a/docs/Makefile.in b/docs/Makefile.in index 65995e45..5a6c1de9 100755 --- a/docs/Makefile.in +++ b/docs/Makefile.in @@ -55,7 +55,7 @@ test: # {{{ cleanup clean: - rm -f Makefile config.* manual.xml configure entities/version.ent *.fot + rm -f Makefile config.* manual.xml configure entities/version.ent *.fot dsssl/html-common.dsl rm -fr autom4te.cache html phpweb # }}} diff --git a/docs/configure.in b/docs/configure.in index be53e3bd..1a7df790 100755 --- a/docs/configure.in +++ b/docs/configure.in @@ -222,8 +222,6 @@ dnl {{{ language specific stuff AC_MSG_CHECKING(for language) -BUILD_DATE=`date '+%Y-%m-%d'` - AC_ARG_WITH(lang, [ --with-lang=LANG choose a language to work with],[ if test "$withval" = "yes"; then @@ -245,7 +243,13 @@ AC_ARG_WITH(lang, AC_MSG_RESULT([en (default)]) ]) AC_SUBST(LANG) -AC_SUBST(BUILD_DATE) + +case "$LANG" in + ru) ENCODING="windows-1251";; + *) ENCODING="ISO-8859-1";; +esac + +AC_SUBST(ENCODING) dnl }}} diff --git a/docs/dsssl/html-common.dsl b/docs/dsssl/html-common.dsl.in similarity index 98% rename from docs/dsssl/html-common.dsl rename to docs/dsssl/html-common.dsl.in index f2c051c0..2b06d18a 100644 --- a/docs/dsssl/html-common.dsl +++ b/docs/dsssl/html-common.dsl.in @@ -249,3 +249,6 @@ (para-check 'restart))))) (define (linebreak) (make element gi: "BR" (empty-sosofo))) + +(define %html-header-tags% + '(("META" ("HTTP-EQUIV" "Content-type") ("CONTENT" "text/html; charset=@ENCODING@")))) diff --git a/docs/manual.xml.in b/docs/manual.xml.in index 82ac80ef..0fccd94b 100644 --- a/docs/manual.xml.in +++ b/docs/manual.xml.in @@ -1,3 +1,4 @@ +