Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Kirill Frolov                        2:5030/827.2   01 Apr 2004  01:08:28
 To : Victor Frolov
 Subject : Re: lout
 -------------------------------------------------------------------------------- 
 
 
 On Wed, 31 Mar 04 06:52:32 +0400, Victor Frolov wrote:
 
  VF>      У кого-нибудь есть полжительный опыт в настройке lout для 
  VF> формирования .ps документов, содержащих кирилицу ?
 
   Имеется, но как -- хоть убей, не помню...
 
  VF>  и откуда брать кириличекие шрифты для него ? или можно без них ?
 
   В Debian имеется минимальный набор scalable-cyrfonts, его хватает в
 минимальном варианте. Иначе можно из пакета pscyr позаимствовать...
 Date: Thu, 30 Oct 2003 21:42:18 +0300
 From: Kirill Frolov <netmail@svs.ru>
 To: lout@ptc.spbu.ru
 Subject: add russian fonts to lout. first attempt.
 
 On Tue, Oct 28, 2003 at 09:43:23AM +0500, Dmitry G. Golub wrote:
 
 On Tue, Oct 28, 2003 at 09:29:24AM +0400, Alex Oboimov wrote:
 
 > Только позаботься, чтобы в файле russian.fd или russian.ld для последних
 > версий lout были правильно прописаны - имя файла фонта, имя фонта, имя
 > font face, имя файла перекодировочной таблицы (.lcm файла).
 
   И russian.fd и russian.ld составлял. Столкнулся с такой проблемой:
 в обоих случаях только единицы из описанных шрифтов считаются существующими.
 Hа остальные даётся ошибка -- "can't find font family blablala with face
 blablabla". Практически все шрифты содержат пробелы в имени (не postscript,
 там через минусы, а в family), я их и в кавычки ставил и думал в этом всё
 дело. Оказалось не только в этом -- OldSlavic Normal, без всяких пробелов,
 оно тоже "не видит"!  А Teams Normal видит. В чём причина понять уже не могу.
 Шрифт задаю так: { OldSlavic Normal 14p } @Font { русский текст }, или
 так: { "Numbus Sans L" Normal 14p } @Font { русский текст }.
 
   Hо это ещё не всё. Даже тот же Teams, который видится, практически
 использовать не удаётся. Выдаётся сообщение на ошибку в afm-файле
 "too many kerning pairs".  Пробовал Numbus Sans L шрифт. Там другие
 ошибки в afm файле. А вот Dingbats отлично выводит. :-/
 
   Содержимое моего russian.ld в последней его редакции приведено в конце
 письма.
 
   Шрифты, вернее afm-файлы я брал от AbiWord (в редакции ASP-Linux 7-версии)
 и scalable-cyrfonts из Debian (прилагается к ghostscript, вроде). Версия
 lout у меня 3.25. 
 
 > И советую скачать последнюю версию, кажется на текущий момент это 3.28
 
   Скачал 3.29. Буду пересобирать. Hо кажется мне, не поможет.
 
   Подвожу итог: у меня не видятся шрифты, а на те которые видятся идёт ругань
 на содержимое afm-файлов. Hи один русский шрифт мне так и не удалось
 использовать. :-(
 
   Прошу тех, у кого чего-нибудь работает, вышлите мне свои russian(.fd|.ld)
 файлы и скажите какие шрифты используете. Может у меня шрифты совсем
 неправильные(?) или я в создании russian.ld напортачил чего. :-/
   Содержимое моего russian.ld файла, шрифты от AbiWord
 (до конца письма):
 [...вырезано..ибо..некорректно...]
 -- 
  + Origin: A quick brown fox jumps over the lazy dog. (2:5030/827.2)
 
 Date: Sat, 1 Nov 2003 01:28:54 +0300
 To: lout@ptc.spbu.ru
 Subject: Re: add russian fonts to lout. first attempt.
 From: Kirill Frolov <netmail@svs.ru>
 
 On Thu, Oct 30, 2003 at 09:42:18PM +0300, Kirill Frolov wrote:
 
 > "can't find font family blablala with face blablabla".
 
    I downloaded the source code, turn on debugging, and only when i understood
 there is the problem: @Tag *MUST* consist of two things -- @Family and @Face
 delimited by dash (or minus sign). For example, if @Family is "OldSlavic"
 and @Face is "Normal", then the only valid @Tag is exactly "OldSlavic-Normal".
 
    I think, this is must be question No.1 for 5-th section of FAQ!
 
 > Выдаётся сообщение на ошибку в afm-файле "too many kerning pairs".
 
    In internet, I found an advice to delete duplicated kerning pairs in *.afm
 files. Really, there is duplicated records in afm-files. But these records
 differen one from other!  I don't know, which of duplicated lines i must
 cut from *.afm file, and which a must leave untouched.  I read, that all
 programs uses only the *first* suitable line from afm-file, but TeX uses
 the *LAST* line. I'm in a big muddle. :-/
 
 >   Подвожу итог: у меня не видятся шрифты, а на те которые видятся идёт ругань
 > на содержимое afm-файлов. Hи один русский шрифт мне так и не удалось
 
    All fonts at now is visible, but some warning messages remained:
 
   74,16: ignoring unencoded ligature character IJ in font file
 /usr/share/fonts/type1/scalable-cyrfonts/b018015d.afm (line 62)
    74,16: ignoring unencoded ligature character fl in font file
 /usr/share/fonts/type1/scalable-cyrfonts/b018015d.afm (line 91)
    74,16: ignoring unencoded ligature character fi in font file
 /usr/share/fonts/type1/scalable-cyrfonts/b018015d.afm (line 91)
    74,16: ignoring unencoded ligature character ij in font file
 /usr/share/fonts/type1/scalable-cyrfonts/b018015d.afm (line 94)
 
    Can anybody say to me, what is the meaning of these messages?
 -- 
  + Origin: A quick brown fox jumps over the lazy dog. (2:5030/827.2)
 
 Date: Sat, 1 Nov 2003 03:15:11 +0300
 From: "Valeriy E. Ushakov" <uwe@ptc.spbu.ru>
 To: lout@ptc.spbu.ru
 Subject: Re: add russian fonts to lout. first attempt.
 
 On Sat, Nov 01, 2003 at 01:28:54 +0300, Kirill Frolov wrote:
 
 > I downloaded the source code, turn on debugging, and only when i
 > understood there is the problem: @Tag *MUST* consist of two things
 > -- @Family and @Face delimited by dash (or minus sign).
 > 
 > I think, this is must be question No.1 for 5-th section of FAQ!
 
 Nothing beats reading the manual.  See Expert's Guide, section about
 @FontDef. ;)
 > In internet, I found an advice to delete duplicated kerning pairs in
 > *.afm files. Really, there is duplicated records in afm-files. But
 > these records differen one from other!  I don't know, which of
 > duplicated lines i must cut from *.afm file, and which a must leave
 > untouched.  I read, that all programs uses only the *first* suitable
 > line from afm-file, but TeX uses the *LAST* line. I'm in a big
 > muddle. :-/
 
 http://snark.ptc.spbu.ru/~uwe/lout/essays/1797.kpxbug.txt
 
  
 > All fonts at now is visible, but some warning messages remained:
 > 
 >    74,16: ignoring unencoded ligature character ij in font file
 > /usr/share/fonts/type1/scalable-cyrfonts/b018015d.afm (line 94)
 > 
 > Can anybody say to me, what is the meaning of these messages?
 
 You can ignore it.  Or delete the 'L' command for it from the AFM.
 
 SY, Uwe
 -- 
 uwe@ptc.spbu.ru                         |       Zu Grunde kommen
 http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen
  Пример файла russian.ld:
 
 { @FontDef
     @Tag { "OldSlavic-Base" }
     @Family { "OldSlavic" }
     @Face { "Base" }
     @Name { "OldSlavicRegu" }
     @Metrics { "OldSlavicRegu.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Gothic L-Book" }
     @Family { "URW Gothic L" }
     @Face { "Book" }
     @Name { "URWGothicCYR-Book" }
     @Metrics { "a010013d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Gothic L-Demi" }
     @Family { "URW Gothic L" }
     @Face { "Demi" }
     @Name { "URWGothicCYR-Demi" }
     @Metrics { "a010015d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Gothic L-BookObli" }
     @Family { "URW Gothic L" }
     @Face { "BookObli" }
     @Name { "URWGothicCYR-BookObli" }
     @Metrics { "a010033d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Gothic L-DemiObli" }
     @Family { "URW Gothic L" }
     @Face { "DemiObli" }
     @Name { "URWGothicCYR-DemiObli" }
     @Metrics { "a010035d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Bookman L-Ligh" }
     @Family { "URW Bookman L" }
     @Face { "Ligh" }
     @Name { "URWBookmanCYR-Ligh" }
     @Metrics { "b018012d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Bookman L-DemiBold" }
     @Family { "URW Bookman L" }
     @Face { "DemiBold" }
     @Name { "URWBookmanCYR-DemiBold" }
     @Metrics { "b018015d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Bookman L-LighItal" }
     @Family { "URW Bookman L" }
     @Face { "LighItal" }
     @Name { "URWBookmanCYR-LighItal" }
     @Metrics { "b018032d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Bookman L-DemiBoldItal" }
     @Family { "URW Bookman L" }
     @Face { "DemiBoldItal" }
     @Name { "URWBookmanCYR-DemiBoldItal" }
     @Metrics { "b018035d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Century Schoolbook L-Roma" }
     @Family { "Century Schoolbook L" }
     @Face { "Roma" }
     @Name { "CenturySchCYR-Roma" }
     @Metrics { "c059013d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Century Schoolbook L-Bold" }
     @Family { "Century Schoolbook L" }
     @Face { "Bold" }
     @Name { "CenturySchCYR-Bold" }
     @Metrics { "c059016d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Century Schoolbook L-Ital" }
     @Family { "Century Schoolbook L" }
     @Face { "Ital" }
     @Name { "CenturySchCYR-Ital" }
     @Metrics { "c059033d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Century Schoolbook L-BoldItal" }
     @Family { "Century Schoolbook L" }
     @Face { "BoldItal" }
     @Name { "CenturySchCYR-BoldItal" }
     @Metrics { "c059036d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-Regu" }
     @Family { "Nimbus Sans L" }
     @Face { "Regu" }
     @Name { "NimbusSansCYR-Regu" }
     @Metrics { "n019003d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-Bold" }
     @Family { "Nimbus Sans L" }
     @Face { "Bold" }
     @Name { "NimbusSansCYR-Bold" }
     @Metrics { "n019004d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-ReguItal" }
     @Family { "Nimbus Sans L" }
     @Face { "ReguItal" }
     @Name { "NimbusSansCYR-ReguItal" }
     @Metrics { "n019023d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-BoldItal" }
     @Family { "Nimbus Sans L" }
     @Face { "BoldItal" }
     @Name { "NimbusSansCYR-BoldItal" }
     @Metrics { "n019024d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-ReguCond" }
     @Family { "Nimbus Sans L" }
     @Face { "ReguCond" }
     @Name { "NimbusSanCYR-ReguCond" }
     @Metrics { "n019043d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-BoldCond" }
     @Family { "Nimbus Sans L" }
     @Face { "BoldCond" }
     @Name { "NimbusSanCYR-BoldCond" }
     @Metrics { "n019044d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-ReguCondItal" }
     @Family { "Nimbus Sans L" }
     @Face { "ReguCondItal" }
     @Name { "NimbusSanCYR-ReguCondItal" }
     @Metrics { "n019063d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Sans L-BoldCondItal" }
     @Family { "Nimbus Sans L" }
     @Face { "BoldCondItal" }
     @Name { "NimbusSansCYR-BoldCondItal" }
     @Metrics { "n019064d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Roman No9 L-Regu" }
     @Family { "Nimbus Roman No9 L" }
     @Face { "Regu" }
     @Name { "NimbusRomanCYR-Regu" }
     @Metrics { "n021003d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Roman No9 L-Medi" }
     @Family { "Nimbus Roman No9 L" }
     @Face { "Medi" }
     @Name { "NimbusRomanCYR-Medi" }
     @Metrics { "n021004d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Roman No9 L-ReguItal" }
     @Family { "Nimbus Roman No9 L" }
     @Face { "ReguItal" }
     @Name { "NimbusRomanCYR-ReguItal" }
     @Metrics { "n021023d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Roman No9 L-MediItal" }
     @Family { "Nimbus Roman No9 L" }
     @Face { "MediItal" }
     @Name { "NimbusRomanCYR-MediItal" }
     @Metrics { "n021024d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Mono L-Regu" }
     @Family { "Nimbus Mono L" }
     @Face { "Regu" }
     @Name { "NimbusMonCYR-Regu" }
     @Metrics { "n022003d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Mono L-Bold" }
     @Family { "Nimbus Mono L" }
     @Face { "Bold" }
     @Name { "NimbusMonCYR-Bold" }
     @Metrics { "n022004d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Mono L-ReguObli" }
     @Family { "Nimbus Mono L" }
     @Face { "ReguObli" }
     @Name { "NimbusMonCYR-ReguObli" }
     @Metrics { "n022023d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Nimbus Mono L-BoldObli" }
     @Family { "Nimbus Mono L" }
     @Face { "BoldObli" }
     @Name { "NimbusMonCYR-BoldObli" }
     @Metrics { "n022024d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Palladio L-Roma" }
     @Family { "URW Palladio L" }
     @Face { "Roma" }
     @Name { "URWPalladioCYR-Roma" }
     @Metrics { "p052003d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Palladio L-Bold" }
     @Family { "URW Palladio L" }
     @Face { "Bold" }
     @Name { "URWPalladioCYR-Bold" }
     @Metrics { "p052004d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Palladio L-Ital" }
     @Family { "URW Palladio L" }
     @Face { "Ital" }
     @Name { "URWPalladioCYR-Ital" }
     @Metrics { "p052023d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Palladio L-BoldItal" }
     @Family { "URW Palladio L" }
     @Face { "BoldItal" }
     @Name { "URWPalladioCYR-BoldItal" }
     @Metrics { "p052024d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Teams-Normal" }
     @Family { "Teams" }
     @Face { "Normal" }
     @Name { "Teams-Normal" }
     @Metrics { "teams.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Teams-Bold" }
     @Family { "Teams" }
     @Face { "Bold" }
     @Name { "Teams-Bold" }
     @Metrics { "teamsb.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Teams-BoldItalic" }
     @Family { "Teams" }
     @Face { "BoldItalic" }
     @Name { "Teams-BoldItalic" }
     @Metrics { "teamsbi.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "Teams-Italic" }
     @Family { "Teams" }
     @Face { "Italic" }
     @Name { "Teams-Italic" }
     @Metrics { "teamsi.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 
 { @FontDef
     @Tag { "URW Chancery L-MediItal" }
     @Family { "URW Chancery L" }
     @Face { "MediItal" }
     @Name { "ChanceryCYR-MediItal" }
     @Metrics { "z003034d.afm" }
     @Mapping { "KOI8-R.LCM" }
     @Recode { Yes }
 #   EncodingScheme FontSpecific
 }
 --- [ZX]
  * Origin: 0D00 1E54 41D1 9753 3F41 40F7 4BBA 050B 30E8 0E4E (2:5030/827.2)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 lout   Victor Frolov   31 Mar 2004 07:52:32 
 Re: lout   Kirill Frolov   01 Apr 2004 01:08:28 
Архивное /ru.linux/3833d7ade7b5.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional