* Trouble with Cyrillic
@ 2013-10-05 10:23 Dmitry Tokarev
2013-10-07 11:18 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Tokarev @ 2013-10-05 10:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 389 bytes --]
Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example.
The content of pdf-file:
test - тест.
test - .
Example:
\definefont [Story][StoryRegular.otf]
\definefont [LozenCondensed][lozencondensed.ttf]
\starttext
\Story test - тест.
\LozenCondensed test - тест.
\stoptext
[-- Attachment #2: test.log --]
[-- Type: text/plain, Size: 6379 bytes --]
(/home/usr/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2013.09.03 10:22 MKIV beta fmt: 2013.9.5 int: english/english
system > 'cont-new.mkiv' loaded
(/home/usr/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system > files > jobname 'test', input './test', result 'test'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
(/mnt/home_media/home_project/context/test/test.tex{/home/usr/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
fonts > typescripts > unknown library 'loc'
{/home/usr/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/usr/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > 'fallback modern rm 12pt' is loaded
backend > xmp > using file '/home/usr/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1
) )</home/usr/context/tex/texmf/fonts/truetype/public/lozen/lozencondensed.ttf></home/usr/context/tex/texmf/fonts/opentype/story/StoryRegular.otf></home/usr/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
system > structure > start used structure
used structure > text: test
system > structure > stop used structure
system > files > start used files
used file > 1: filename=cont-yes.mkiv filetype=tex foundname=/home/usr/context/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file > 2: filename=cont-new.mkiv filetype=tex foundname=/home/usr/context/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file > 3: filename=lang-us.lua filetype=lua foundname=/home/usr/context/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file > 4: filename=/mnt/home_media/home_project/context/test/test.tex foundname=/mnt/home_media/home_project/context/test/test.tex usedmethod=direct
used file > 5: filename=mkiv-base.map filetype=map format=map foundname=/home/usr/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used file > 6: filename=lm.lfg filetype=tex foundname=/home/usr/context/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file > 7: filename=lm-math.lfg filetype=tex foundname=/home/usr/context/tex/texmf-context/tex/context/fonts/lm-math.lfg usedmethod=database
used file > 8: filename=lm-math.map filetype=map format=map foundname=/home/usr/context/tex/texmf/fonts/map/dvips/lm/lm-math.map usedmethod=database
used file > 9: filename=lm-rm.map filetype=map format=map foundname=/home/usr/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used file > 10: filename=lmroman12-regular filetype=otf format=otf foundname=/home/usr/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file > 11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/usr/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 12: filename=latinmodern-math.otf filetype=otf format=otf foundname=/home/usr/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 13: filename=StoryRegular.otf filetype=otf format=otf foundname=/home/usr/context/tex/texmf/fonts/opentype/story/StoryRegular.otf usedmethod=database
used file > 14: filename=/home/usr/context/tex/texmf/fonts/truetype/public/lozen/lozencondensed.ttf format=ttf foundname=/home/usr/context/tex/texmf/fonts/truetype/public/lozen/lozencondensed.ttf usedmethod=direct
used file > 15: filename=lpdf-pdx.xml filetype=tex foundname=/home/usr/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database
system > files > stop used files
system > options > start commandline options
used option > currentrun="2"
used option > fulljobname="./test.tex"
used option > input="./test.tex"
used option > kindofrun="2"
used option > maxnofruns="8"
used option > no-parse-first-line="true"
used option > nonstopmode="true"
used option > synctex="true"
system > options > stop commandline options
system > options > start commandline files
used file > 1: ./test.tex
system > options > stop commandline files
mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path: /home/usr/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats > synctex tracing: synctex has been enabled (extra log file generated)
mkiv lua stats > resource resolver: loadtime 0.008 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 15 found files, scanned paths: <none>
mkiv lua stats > stored bytecode data: 331 modules (0.160 sec), 69 tables (0.000 sec), 400 chunks (0.160 sec)
mkiv lua stats > cleaned up reserved nodes: 41 nodes, 9 lists of 441
mkiv lua stats > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list
mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 44 calls
mkiv lua stats > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns: en::2, load time: 0.000
mkiv lua stats > jobdata time: 0.001 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks: 144 direct, 185 indirect, 329 total
mkiv lua stats > randomizer: resumed with value 0.95141453291421
mkiv lua stats > lxml preparation time: 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats > result saved in file: test.pdf, compresslevel 3, objectcompreslevel 3
mkiv lua stats > loaded fonts: 4 files: latinmodern-math.otf (experimental), lmroman12-regular.otf, storyregular.otf, lozencondensed.ttf
mkiv lua stats > fonts load time: 0.189 seconds
mkiv lua stats > luatex banner: this is luatex, version beta-0.76.0-2013040516 (tex live 2013/dev)(rev 4627)
mkiv lua stats > control sequences: 37800 of 65536 + 100000
mkiv lua stats > current memory usage: 29 MB (ctx: 28 MB)
mkiv lua stats > runtime: 0.545 seconds, 1 processed pages, 1 shipped pages, 1.835 pages/second
[-- Attachment #3: lozencondensed.ttf --]
[-- Type: application/x-font-ttf, Size: 32196 bytes --]
[-- Attachment #4: StoryRegular.otf --]
[-- Type: application/vnd.ms-opentype, Size: 41740 bytes --]
[-- Attachment #5: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble with Cyrillic
2013-10-05 10:23 Trouble with Cyrillic Dmitry Tokarev
@ 2013-10-07 11:18 ` Hans Hagen
2013-10-07 11:24 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2013-10-07 11:18 UTC (permalink / raw)
To: ntg-context
On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
> Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example.
> The content of pdf-file:
> test - тест.
> test - .
>
> Example:
> \definefont [Story][StoryRegular.otf]
> \definefont [LozenCondensed][lozencondensed.ttf]
>
> \starttext
> \Story test - тест.
>
> \LozenCondensed test - тест.
> \stoptext
maybe the font has no cyrillic
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble with Cyrillic
2013-10-07 11:18 ` Hans Hagen
@ 2013-10-07 11:24 ` Wolfgang Schuster
2013-10-07 11:38 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2013-10-07 11:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 07.10.2013 um 13:18 schrieb Hans Hagen <pragma@wxs.nl>:
> On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
>> Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example.
>> The content of pdf-file:
>> test - тест.
>> test - .
>>
>> Example:
>> \definefont [Story][StoryRegular.otf]
>> \definefont [LozenCondensed][lozencondensed.ttf]
>>
>> \starttext
>> \Story test - тест.
>>
>> \LozenCondensed test - тест.
>> \stoptext
>
> maybe the font has no cyrillic
It has but it uses a custom encoding and not unicode.
\starttext
\startfont[file:lozencondensed.ttf]
\dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space}
\stopfont
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble with Cyrillic
2013-10-07 11:24 ` Wolfgang Schuster
@ 2013-10-07 11:38 ` Hans Hagen
2013-10-07 17:10 ` Dmitry Tokarev
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2013-10-07 11:38 UTC (permalink / raw)
To: ntg-context
On 10/7/2013 1:24 PM, Wolfgang Schuster wrote:
>
> Am 07.10.2013 um 13:18 schrieb Hans Hagen <pragma@wxs.nl>:
>
>> On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
>>> Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example.
>>> The content of pdf-file:
>>> test - тест.
>>> test - .
>>>
>>> Example:
>>> \definefont [Story][StoryRegular.otf]
>>> \definefont [LozenCondensed][lozencondensed.ttf]
>>>
>>> \starttext
>>> \Story test - тест.
>>>
>>> \LozenCondensed test - тест.
>>> \stoptext
>>
>> maybe the font has no cyrillic
>
> It has but it uses a custom encoding and not unicode.
>
> \starttext
>
> \startfont[file:lozencondensed.ttf]
> \dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space}
> \stopfont
>
> \stoptext
so someone has to make a file like dingbats.lfg ... or, as the font is
not that pretty anyway, use another font instead
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble with Cyrillic
2013-10-07 11:38 ` Hans Hagen
@ 2013-10-07 17:10 ` Dmitry Tokarev
2013-10-07 18:17 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Tokarev @ 2013-10-07 17:10 UTC (permalink / raw)
To: mailing list for ConTeXt users
07.10.2013, 17:39, "Hans Hagen" <pragma@wxs.nl>:
> On 10/7/2013 1:24 PM, Wolfgang Schuster wrote:
>> Am 07.10.2013 um 13:18 schrieb Hans Hagen <pragma@wxs.nl>:
>>> On 10/5/2013 12:23 PM, Dmitry Tokarev wrote:
>>>> Please help me understand why with StoryRegular font Cyrillic is displayed, and with lozencondensed - no. I attached log file and the fonts used in the example.
>>>> The content of pdf-file:
>>>> test - тест.
>>>> test - .
>>>>
>>>> Example:
>>>> \definefont [Story][StoryRegular.otf]
>>>> \definefont [LozenCondensed][lozencondensed.ttf]
>>>>
>>>> \starttext
>>>> \Story test - тест.
>>>>
>>>> \LozenCondensed test - тест.
>>>> \stoptext
>>> maybe the font has no cyrillic
>> It has but it uses a custom encoding and not unicode.
>>
>> \starttext
>>
>> \startfont[file:lozencondensed.ttf]
>> \dostepwiserecurse{33}{273}{1}{#1:~\char#1\relax\space}
>> \stopfont
>>
>> \stoptext
> so someone has to make a file like dingbats.lfg ... or, as the font is
> not that pretty anyway, use another font instead
>
> Hans
Hans, Wolfgang thank you very much for reply. Unfortunately I have to use this file to technical documentation, so I will try to find a work around.
As I see, this font uses the encoding win-1251: http://en.wikipedia.org/wiki/Windows-1251
There are several mismatched characters, but they don't belong to Russian language. Please help me make the correctly contents of lgf-file. As Hans has advised I took the dingbats.lfg as a basis. How, for example remap symbol 192 from font to unicode 0x0410?
lozencondenced.lgf:
return {
name = "lozencondenced",
version = "1.00",
comment = "Goodies that complement dingbats (funny names).",
author = "Hans Hagen",
copyright = "ConTeXt development team",
remapping = {
tounicode = true,
unicodes = {
?? = ??,
.
.
.
},
},
}
The part of code that I use to define the font in my project (In the original, there is also defined Lozen-Bold, Lozen-Italic and Lozen-Bold-Italic):
\starttypescript [sans] [lozen]
\definefontsynonym [Lozen-Roman] [name:lozencondensed] [features=default]
\stoptypescript
\starttypescript [sans] [lozen] [name]
\definefontsynonym [Sans] [Lozen-Roman] [features=default]
\stoptypescript
\starttypescript [Lozen]
\definetypeface [Lozen] [ss] [sans] [lozen] [default]
\stoptypescript
Where the lozencondenced.lgf should be located and how should I use it to define a font?
Dmitry
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble with Cyrillic
2013-10-07 17:10 ` Dmitry Tokarev
@ 2013-10-07 18:17 ` Hans Hagen
2013-10-08 17:23 ` Dmitry Tokarev
0 siblings, 1 reply; 8+ messages in thread
From: Hans Hagen @ 2013-10-07 18:17 UTC (permalink / raw)
To: ntg-context
On 10/7/2013 7:10 PM, Dmitry Tokarev wrote:
> lozencondenced.lgf:
> return {
> name = "lozencondenced",
> version = "1.00",
> comment = "Goodies that complement dingbats (funny names).",
> author = "Hans Hagen",
> copyright = "ConTeXt development team",
> remapping = {
> tounicode = true,
> unicodes = {
> ?? = ??,
> .
> .
> .
> },
> },
> }
it's a
name = unicode
list; another option is to load the font in fontforge and see if you can
save it as proper unicode font
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Trouble with Cyrillic
2013-10-07 18:17 ` Hans Hagen
@ 2013-10-08 17:23 ` Dmitry Tokarev
2013-10-08 18:21 ` Hans Hagen
0 siblings, 1 reply; 8+ messages in thread
From: Dmitry Tokarev @ 2013-10-08 17:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
08.10.2013, 00:17, "Hans Hagen" <pragma@wxs.nl>:
> On 10/7/2013 7:10 PM, Dmitry Tokarev wrote:
>> lozencondenced.lgf:
>> return {
>> name = "lozencondenced",
>> version = "1.00",
>> comment = "Goodies that complement dingbats (funny names).",
>> author = "Hans Hagen",
>> copyright = "ConTeXt development team",
>> remapping = {
>> tounicode = true,
>> unicodes = {
>> ?? = ??,
>> .
>> .
>> .
>> },
>> },
>> }
> it's a
>
> name = unicode
>
> list; another option is to load the font in fontforge and see if you can
> save it as proper unicode font
>
> Hans
Thanks Hans, the fontforge was the easiest way. I did the following:
1. File->Open
2. Encoding->Force Encoding->ISO 10646-1 (Unicode, Full)
3. File->Generate Fonts...
Now all the Cyrillic characters are present in generated pdf-file.
Dmitry
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-10-08 18:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-05 10:23 Trouble with Cyrillic Dmitry Tokarev
2013-10-07 11:18 ` Hans Hagen
2013-10-07 11:24 ` Wolfgang Schuster
2013-10-07 11:38 ` Hans Hagen
2013-10-07 17:10 ` Dmitry Tokarev
2013-10-07 18:17 ` Hans Hagen
2013-10-08 17:23 ` Dmitry Tokarev
2013-10-08 18:21 ` Hans Hagen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).