From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 27 Mar 2002 21:10:52 +0300 From: Sergey Vlasov To: devel@altlinux.ru Subject: Re: [devel] =?KOI8-R?B?18HSycHO1Nk=?= sgml -> pdf cyr =?KOI8-R?B?xA==?= =?KOI8-R?B?zNE=?= howto-ru Message-Id: <20020327211052.0dfc2cc6.vsu@mivlgu.murom.ru> In-Reply-To: <20020325164153.6ada3f9b.mvd@altlinux.ru> References: <20020325164153.6ada3f9b.mvd@altlinux.ru> X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-alt-linux) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="=.78GE_EXOFZ/iYs" Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: devel@altlinux.ru List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Archived-At: List-Archive: List-Post: --=.78GE_EXOFZ/iYs Content-Type: multipart/mixed; boundary="Multipart_Wed__27_Mar_2002_21:10:52_+0300_087d4bb0" --Multipart_Wed__27_Mar_2002_21:10:52_+0300_087d4bb0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit On Mon, 25 Mar 2002 16:41:53 +0200 Maxim Dzumanenko wrote: > Хочу поднять вопрос получения pdf с кириллическими символами из sgml > Интересует мнение всех кто занимался данным вопросом. > > Случай с linuxdoc: > глухо, sgmltools -b ld2db file.sgml не работает (кстати > почему?), других вариантов пока нет Теперь к вопросу, почему sgmltools -b ld2db не работает. Внутрь я не лазил, но strace показал, что openjade вызывается с переменной SGML_CATALOG_FILES=/usr/share/sgml/stylesheets/sgmltools/sgmltools.cat В этом каталоге не находятся: 1) LinuxDoc DTD - на что и идет первая ругань; для нее еще нужны как минимум iso-entities; 2) внутренние DTD openjade (/usr/share/sgml/openjade-*); 3) самое интересное - SGML declaration от docbook тоже не годится для LinuxDoc, т.к. в docbook ставится OMITTAG NO, а все файлы LinuxDoc рассчитаны на OMITTAG YES. Быстрый хак - патч для /usr/share/sgml/stylesheets/sgmltools/sgmltools.cat и подходящий sgml.dcl (собранный из найденного в пакете sgml-tools и куска от docbookdcl) - прилагается. --Multipart_Wed__27_Mar_2002_21:10:52_+0300_087d4bb0 Content-Type: application/octet-stream; name="sgmltools.cat.patch" Content-Disposition: attachment; filename="sgmltools.cat.patch" Content-Transfer-Encoding: base64 LS0tIHNnbWx0b29scy5jYXQub3JpZwlNb24gRmViICA0IDE2OjA5OjEyIDIwMDIKKysrIHNnbWx0 b29scy5jYXQJV2VkIE1hciAyNyAyMTowMDoxNCAyMDAyCkBAIC0zNCwzICszNCw2IEBACiAgLS0g ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC0t CiBQVUJMSUMgIi0vL1NHTUx0b29scy8vRE9DVU1FTlQgTGludXhkb2MgU3R5bGUgU2hlZXQgZm9y IERvY2Jvb2svL0VOIiBsZDJkYi5kc2wKIAorU0dNTERFQ0wgInNnbWwuZGNsIgorQ0FUQUxPRyAi Li4vLi4vZHRkL3NnbWx0b29scy9jYXRhbG9nIgorQ0FUQUxPRyAiL2V0Yy9zZ21sL2NhdGFsb2ci Cg== --Multipart_Wed__27_Mar_2002_21:10:52_+0300_087d4bb0 Content-Type: application/octet-stream; name="sgml.dcl" Content-Disposition: attachment; filename="sgml.dcl" Content-Transfer-Encoding: base64 CjwhU0dNTCAiSVNPIDg4Nzk6MTk4NiIKCi0tIExvY2FsIFNHTUwgZGVjbGFyYXRpb24gdXNlZCBh dCBBUlQKICAgQmFzZWxpbmUgaXMgU0dNTFMgZGVmYXVsdCBkZWNsYXJhdGlvbiwKICAgd2l0aCBp bmNyZWFzZWQgQ0FQQUNJVFkgc2V0dGluZ3MgZm9yIGxhcmdlIGRvY3VtZW50cywKICAgYW5kIGlu Y3JlYXNlZCBRVUFOVElUWSBzZXR0aW5ncyBmb3IgcmVhc29uYWJsZSBEVERzCgogICAiU3RvbGVu IiBieSBTdGV2ZSBUeW5vciAoU0RUKSBmcm9tIGEgY29tcC50ZXh0LnNnbWwgcG9zdCBieSAKICAg Sm9lIEVuZ2xpc2ggPGplbmdsaXNoQGNybC5jb20+LiAKLS0KCkNIQVJTRVQKCglCQVNFU0VUDQog ICJJU08gNjQ2OjE5ODMvL0NIQVJTRVQgSW50ZXJuYXRpb25hbCBSZWZlcmVuY2UgVmVyc2lvbiAo SVJWKS8vRVNDIDIvNSA0LzAiDQoJREVTQ1NFVA0KICAgICAgICAgICAgICAgICAgICAwICAgOSAg IFVOVVNFRA0KICAgICAgICAgICAgICAgICAgICA5ICAgMiAgICAgOQ0KICAgICAgICAgICAgICAg ICAgIDExICAgMiAgIFVOVVNFRA0KICAgICAgICAgICAgICAgICAgIDEzICAgMSAgICAxMw0KICAg ICAgICAgICAgICAgICAgIDE0ICAxOCAgIFVOVVNFRA0KICAgICAgICAgICAgICAgICAgIDMyICA5 NSAgICAzMg0KICAgICAgICAgICAgICAgICAgMTI3ICAgMSAgIFVOVVNFRA0KDQoJQkFTRVNFVCAN CiAgIklTTyBSZWdpc3RyYXRpb24gTnVtYmVyIDEwMC8vQ0hBUlNFVCBFQ01BLTk0IFJpZ2h0IFBh cnQgb2YgTGF0aW4gQWxwaGFiZXQgTnIuIDEvL0VTQyAyLzEzIDQvMSINCglERVNDU0VUICANCiAg ICAgICAgICAgICAgICAgIDEyOCAgMzIgICBVTlVTRUQNCiAgICAgICAgICAgICAgICAgIDE2MCAg OTYgICAzMg0KCi0tIFNEVHsKICAgICBCQVNFU0VUICAgIklTTyBSZWdpc3RyYXRpb24gTnVtYmVy IDEwMC8vQ0hBUlNFVAogICAgICAgICAgICAgICAgRUNNQS05NCBSaWdodCBQYXJ0IG9mIExhdGlu IEFscGhhYmV0IE5yLiAxLy9FU0MgMi8xMyA0LzEiCiAgICAgICAgREVTQ1NFVCAwICA5IFVOVVNF RAogICAgICAgICAgICAgICAgOSAgMiAgOQogICAgICAgICAgICAgICAxMSAgMiBVTlVTRUQKICAg ICAgICAgICAgICAgMTMgIDEgMTMKICAgICAgICAgICAgICAgMTQgMTggVU5VU0VECiAgICAgICAg ICAgICAgIDMyIDk1IDMyCiAgICAgICAgICAgICAgMTI3ICAxIFVOVVNFRCAKCSAgICAgICAxMjgg MzIgVU5VU0VECiAgICAgICAgICAgICAgIDE2MCA5NSAzMgogICAgICAgICAgICAgICAyNTUgIDEg VU5VU0VECn1TRFQgLS0KCi0tU0RUewogICAgICAgIEJBU0VTRVQgICJJU08gNjQ2LTE5ODMvL0NI QVJTRVQKICAgICAgICAgICAgICAgIEludGVybmF0aW9uYWwgUmVmZXJlbmNlIFZlcnNpb24gKElS VikvL0VTQyAyLzUgNC8wIgogICAgICAgIERFU0NTRVQgMCAgOSBVTlVTRUQKICAgICAgICAgICAg ICAgIDkgIDIgIDkKICAgICAgICAgICAgICAgMTEgIDIgVU5VU0VECiAgICAgICAgICAgICAgIDEz ICAxIDEzCiAgICAgICAgICAgICAgIDE0IDE4IFVOVVNFRAogICAgICAgICAgICAgICAzMiA5NSAz MgogICAgICAgICAgICAgIDEyNyAgMSBVTlVTRUQgCiAgIH1TRFQgLS0KQ0FQQUNJVFkgU0dNTFJF RgoJLS0gYWxsIHF1YW50aXRpZXMgZGVmYXVsdCB0byAzNTAwMCBpbiByZWZlcmVuY2UgY2FwYWNp dHkgc2V0IC0tCglUT1RBTENBUAk1MDAwMDAKCUdSUENBUCAgCTUwMDAwMAoJTUFQQ0FQCQkxMDAw MDAKClNDT1BFICAgIERPQ1VNRU5UCgpTWU5UQVggIAogICAgICAgIFNIVU5DSEFSIENPTlRST0xT ICAgIDAgIDEgIDIgIDMgIDQgIDUgIDYgIDcgIDggIDkgMTAgMTEgMTIgMTMgMTQgMTUgMTYKICAg ICAgICAgICAgICAgICAgICAgICAgMTcgMTggMTkgMjAgMjEgMjIgMjMgMjQgMjUgMjYgMjcgMjgg MjkgMzAgMzEgMTI3CiAgICAgICAgQkFTRVNFVCAgICAiSVNPIDY0Ni0xOTgzLy9DSEFSU0VUCiAg ICAgICAgICAgICAgICAgICAgSW50ZXJuYXRpb25hbCBSZWZlcmVuY2UgVmVyc2lvbiAoSVJWKS8v RVNDIDIvNSA0LzAiCiAgICAgICAgREVTQ1NFVCAgMCAxMjggMAogICAgICAgIEZVTkNUSU9OCiAg ICAgICAgICAgICAgICBSRSAgICAgICAgICAJMTMKICAgICAgICAgICAgICAgIFJTICAgICAgICAg IAkxMAogICAgICAgICAgICAgICAgU1BBQ0UgICAgICAgCTMyCiAgICAgICAgICAgICAgICBUQUIJ U0VQQ0hBUiA5CiAgICAgICAgTkFNSU5HCiAgICAgICAgICAgICAgICBMQ05NU1RSVCAgICAJIiIK ICAgICAgICAgICAgICAgIFVDTk1TVFJUICAgIAkiIgogICAgICAgICAgICAgICAgTENOTUNIQVIg ICAgCSItLiIKICAgICAgICAgICAgICAgIFVDTk1DSEFSICAgIAkiLS4iCiAgICAgICAgICAgICAg ICBOQU1FQ0FTRSAKCQkJCUdFTkVSQUwgWUVTCgkJCQlFTlRJVFkgTk8KICAgICAgICBERUxJTQog ICAgICAgICAgICAgICAgR0VORVJBTCAgICAgCVNHTUxSRUYKICAgICAgICAgICAgICAgIFNIT1JU UkVGICAgIAlTR01MUkVGCiAgICAgICAgTkFNRVMgICBTR01MUkVGCgoJLS0gQWxsICJpbnRlcmVz dGluZyIgcXVhbnRpdHkgcGFyYW1ldGVycyBhcmUgaW5jbHVkZWQgaGVyZSwKCSAgIHNldCB0byB0 aGUgZGVmYXVsdCB2YWx1ZSB1bmxlc3Mgb3RoZXJ3aXNlIG5vdGVkLgoJICAgVmFsdWVzIHVzZWQg Ynkgb3RoZXIgYXBwbGljYXRpb25zIGFsc28gaW5jbHVkZWQgZm9yIHJlZmVyZW5jZS4KCS0tCiAg ICAgICAgUVVBTlRJVFkgU0dNTFJFRgogICAgICAgICAgICAgICAgQVRUQ05UICAgICAgICAgIDgw CS0tICBkZWZhdWx0OiA0MDsgCgkJCQkJICAgIHJhaW5ib3c6IDgwOwoJCQkJCSAgICBkb2Nib29r OiAyNTYgLS0KICAgICAgICAgICAgICAgIEFUVFNQTEVOICAgICAgICA5NjAKICAgICAgICAgICAg ICAgIEVOVExWTCAgICAgICAgICAxNgogICAgICAgICAgICAgICAgR1JQQ05UICAgICAgICAgIDIw MAktLSBkZWZhdWx0OiAzMiAtLQogICAgICAgICAgICAgICAgR1JQR1RDTlQgICAgICAgIDI1MAkt LSBkZWZhdWx0OiA5NiAtLQogICAgICAgICAgICAgICAgR1JQTFZMICAgICAgICAgIDE2CiAgICAg ICAgICAgICAgICBMSVRMRU4gICAgICAgICAgODA5MgktLSAgZGVmYXVsdDogMjQwIAoJCQkJCSAg ICBIVE1MOiAxMDI0OwoJCQkJCSAgICByYWluYm93OiAyMDQ4IAoJCQkJCSAgICBkb2Nib29rOiA4 MDkyIC0tCiAgICAgICAgICAgICAgICBOQU1FTEVOICAgICAgICAgNzIJLS0gZGVmYXVsdDogOCAK CQkJCQkgICBIVE1MOiA3MiAgKHdhcyAzNCkKCQkJCQkgICBkb2Nib29rOiA0NCAtLQogICAgICAg ICAgICAgICAgUElMRU4gICAgICAgICAgIDI0MAogICAgICAgICAgICAgICAgVEFHTEVOICAgICAg ICAgIDk2MAogICAgICAgICAgICAgICAgVEFHTFZMICAgICAgICAgIDEwMAktLSAgZGVmYXVsdDog MjQgCgkJCQkJICAgIGRvY2Jvb2s6IDEwMCAtLQoKRkVBVFVSRVMKICAgICAgICBNSU5JTUlaRQog ICAgICAgICAgICAgICAgREFUQVRBRyAgICAgICAgIE5PCiAgICAgICAgICAgICAgICBPTUlUVEFH ICAgICAgICAgWUVTCiAgICAgICAgICAgICAgICBSQU5LICAgICAgICAgICAgTk8KICAgICAgICAg ICAgICAgIFNIT1JUVEFHICAgICAgICBZRVMKICAgICAgICBMSU5LCiAgICAgICAgICAgICAgICBT SU1QTEUgIE5PCiAgICAgICAgICAgICAgICBJTVBMSUNJVCBOTwogICAgICAgICAgICAgICAgRVhQ TElDSVQgTk8KICAgICAgICBPVEhFUgogICAgICAgICAgICAgICAgQ09OQ1VSICBOTwogICAgICAg ICAgICAgICAgU1VCRE9DICBZRVMJOTk5OTk5CiAgICAgICAgICAgICAgICBGT1JNQUwgIE5PCgpB UFBJTkZPIE5PTkUKPgo= --Multipart_Wed__27_Mar_2002_21:10:52_+0300_087d4bb0-- --=.78GE_EXOFZ/iYs Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE8ogsxW82GfkQfsqIRAgKYAJ9RHVJUijUNe8FH3LvaNE/ftVhDawCfdHVH ho+2ZgsUJ3zlMNurfTCxMJM= =sZBi -----END PGP SIGNATURE----- --=.78GE_EXOFZ/iYs--