Re: [NTG-context] LuaTeX problems
On Thu, Jun 26, 2008 at 8:57 AM, Tomi Lindberg [EMAIL PROTECTED] wrote: ConTeXt minimals is up and running but I have problems with LuaTeX. First the files I assume to be important: % Project \startproject atkmom \environment environ \product book \stopproject % Product \startproduct book \project atkmom \component images \startfrontmatter \environment fmatter \completecontent \stopfrontmatter \startbodymatter \environment body \component intro \component osbasics \component files \component opera \stopbodymatter \startbackmatter \completeindex[title=Hakemisto] \stopbackmatter \stopproduct With texexec my project results in proper .pdf file except the additional empty page at the end of it. With context the process ends after line \product book (I get a proper notice about the end of product book) in project file and i get the * prompt. It seems like LuaTeX can't see the \stopproject at all and thinks that the file has unexpectedly ended. Also with context I get messages that every \at, \in and \about that refers to something in component other than the one they're in is an unknown reference. They all work fine with texexec. Any idea what's wrong? Both files work for me but I don't have your component or environment files and there is a problem with the content in one of the files but as long as you don't give us more information we can't help you. Instead of sending us all other files you should make a minimal example where we can reproduce the error. Regards, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting up minimals (saw: Re: distro info)
On Fri, Jun 27, 2008 at 3:43 AM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2008, Andrea Valle wrote: Perfect, all seems to work Great. If you found certain instructions on the wiki confusing, please add details there. So back to the other questions - This means I can use something like this if I call the xtx switch?: \definetypeface[Optima][rm][Xserif][Optima] \definetypeface[Optima][tt][Xmono][LM Typewriter Regular] \definetypeface[Garamond][rm][Xserif][Garamond] \setupbodyfont[Optima] - How does font selection work under luatex? I don't know font selection in XeTeX, and understand font selection in luatex only marginally, so I'll let someone else answer this. I never used the short definition for XeTeX but fonts defined with the longer form can be used with XeTeX and LuaTeX, you could use the same typescripts. http://wiki.contextgarden.net/Mark_IV#A_.28Complete.29_Typescript_Example http://archive.contextgarden.net/message/20080413.111450.d1603396.en.html http://archive.contextgarden.net/message/20080609.010650.0b8f9e15.en.html You can find more threads in the list archive. - What have I to do to use bibtex? Suppose your file is called thesis.tex (Ok, I had to test things to ensure what I was saying was true, and that is the only test file that I have currently :). Now run $context thesis This will create a lot of warnings about missing references, ignore them. Then run $bibtex thesis This will create tesis.bbl. Now run context, and all those warnings will be gone. You only need to run bibtex once (unless you change your bib file). This situation is temporary. When Hans implements intermediate run's in mtxrun, you will not need to run bibtex by hand. Aditya Regards 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting up minimals (saw: Re: distro info)
Thanks to all, Added some stuff here on the things I'm doing. http://wiki.contextgarden.net/ConTeXt_Minimals I have to say that I found some reduncy in mac infos (substantially I followed Mojca's post) Obviously, please in case move/change the stuff Best -a- -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.myspace.com/andreavalle -- [EMAIL PROTECTED] -- Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty (Ken Perlin on noise) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting up minimals (saw: Re: distro info)
Suppose your file is called thesis.tex (Ok, I had to test things to ensure what I was saying was true, and that is the only test file that I have currently :). Now run $context thesis This will create a lot of warnings about missing references, ignore them. Then run $bibtex thesis This will create tesis.bbl. Now run context, and all those warnings will be gone. You only need to run bibtex once (unless you change your bib file). So, it's like latex? Have I to specify that I'm using the bib module? I mean, this: \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=semiotiche] Best -a- This situation is temporary. When Hans implements intermediate run's in mtxrun, you will not need to run bibtex by hand. -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.myspace.com/andreavalle -- [EMAIL PROTECTED] -- Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty (Ken Perlin on noise) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting up minimals (saw: Re: distro info)
Many thanks Wolfgang. The fact is that I'm not understanding what's going on... Best -a- On 27 Jun 2008, at 08:15, Wolfgang Schuster wrote: On Fri, Jun 27, 2008 at 3:43 AM, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 27 Jun 2008, Andrea Valle wrote: Perfect, all seems to work Great. If you found certain instructions on the wiki confusing, please add details there. So back to the other questions - This means I can use something like this if I call the xtx switch?: \definetypeface[Optima][rm][Xserif][Optima] \definetypeface[Optima][tt][Xmono][LM Typewriter Regular] \definetypeface[Garamond][rm][Xserif][Garamond] \setupbodyfont[Optima] - How does font selection work under luatex? I don't know font selection in XeTeX, and understand font selection in luatex only marginally, so I'll let someone else answer this. I never used the short definition for XeTeX but fonts defined with the longer form can be used with XeTeX and LuaTeX, you could use the same typescripts. http://wiki.contextgarden.net/Mark_IV#A_.28Complete. 29_Typescript_Example http://archive.contextgarden.net/message/ 20080413.111450.d1603396.en.html http://archive.contextgarden.net/message/ 20080609.010650.0b8f9e15.en.html You can find more threads in the list archive. - What have I to do to use bibtex? Suppose your file is called thesis.tex (Ok, I had to test things to ensure what I was saying was true, and that is the only test file that I have currently :). Now run $context thesis This will create a lot of warnings about missing references, ignore them. Then run $bibtex thesis This will create tesis.bbl. Now run context, and all those warnings will be gone. You only need to run bibtex once (unless you change your bib file). This situation is temporary. When Hans implements intermediate run's in mtxrun, you will not need to run bibtex by hand. Aditya Regards 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ -- Andrea Valle -- CIRMA - DAMS Università degli Studi di Torino -- http://www.cirma.unito.it/andrea/ -- http://www.myspace.com/andreavalle -- [EMAIL PROTECTED] -- Think of it as seasoning . noise [salt] is boring . F(blah) [food without salt] can be boring . F(noise, blah) can be really tasty (Ken Perlin on noise) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting up minimals (saw: Re: distro info)
On Fri, Jun 27, 2008 at 11:08 AM, Andrea Valle [EMAIL PROTECTED] wrote: Many thanks Wolfgang. The fact is that I'm not understanding what's going on... You're not alone. http://wiki.contextgarden.net/Understanding_how_fonts_work_in_ConTeXt Ask what do you want to know and we can fill the gaps. Regards, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] pdf bizareness...
Hi, - ConTeXt ver: 2008.06.22 17:38 MKII fmt: 2008.6.23 ( ctx minimal) - XeTeX, Version 3.1415926-2.2-0.999.1 (Web2C 7.5.6) When using (1) \setupinteraction[state=start, title={éèçàù}, subtitle={éèçàù}, author={éèçàù}, keyword={éèçàù}] the accented characters get al scrambled up in the pdf document properties fields while in the document itself all is ok. Qué passa ? (2) \pdfminorversion=5 (or whatever) gives ! Undefined control sequence. l.31 \pdfminorversion =5 ? ! Emergency stop. l.31 \pdfminorversion =5 What's the alternative ? Thanks, Alan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Setting up minimals (saw: Re: distro info)
On Fri, 27 Jun 2008, Andrea Valle wrote: Suppose your file is called thesis.tex (Ok, I had to test things to ensure what I was saying was true, and that is the only test file that I have currently :). Now run $context thesis This will create a lot of warnings about missing references, ignore them. Then run $bibtex thesis This will create tesis.bbl. Now run context, and all those warnings will be gone. You only need to run bibtex once (unless you change your bib file). So, it's like latex? Well, not exactly. Let me explain how bibtex works in latex, and then how it works in context. In latex, you write \cite{ref1}, \cite{ref2}, etc. to cite a document, \bibliographystyle{style} to tell the style of the references, and \bibliography{bib-file} to tell the name of the bib database. When you run latex on this file, for each \cite{ref1} latex writes \citation{ref1} into the aux file; for \bibliographystyle{style} it writes \bibstyle{style} and for \bibliography{bib-file} it writes \bibdata{bib-file}. Latex aux file contains all sort of auxillary information, but bibtex only reconizes the about three commands. When you run bibtex, it translates the references included in \citation from the bib-file to latex markup, as specified by the style file. These are stored in the bbl file. All these features are hardcoded in bibtex, so it makes it difficult to use bibtex with anything other than latex. The bib module exploits a feature in bibtex to make it work with context. If you write \cite{*} in your latex document, latex writes \citation{*} in the aux file, and bibtex translates *all* the enteries in the bib-file to latex markup. So, the bib module writes \citation{*} to the aux file. Next, in order to get the references in a manner that context can understand, Taco has written a bib style file that translates the bib file to \start \stop publication style. So, in terms of interaction with bibtex, bib module creates a very simple aux file \citation{*} \bibstyle{cont-no} \bibdata{bib-file} When you run bibtex on this, bibtex translates *all* the references in your bib file to context markup. On the second run, the bib module reads these commands, and stores everything as registers internally and uses ConTeXt inbuilt functions for sorting etc. Have I to specify that I'm using the bib module? Usually, you only need to do: \usemodule[bib] \setupbibtex[database=bib-file] \setuppublications[alternative=ieee] % ieee is my own bib style % see documentation for other options Normally (that is in mkii), context (rather texexec) runs bibtex after the first run behind the scenes. In mkiv running is not implemented in mtx-context script yet. So you need to run bibtex *once* after the first run. This will create the bbl file, which contains *all* your references in the bib file, so until you change your bib file, you do not need to run bibtex again. Again, this is temporary; once mtx-context allows for commands to be executed inbetween context runs, you will not need to run bibtex by hand. I mean, this: \usemodule[bibltx] Normally you should not need to include the bibltx module. The bibltx module reads the bbl files created by bibtex for latex. Suppose you have an old latex project, and you only have its bbl file but not the bib file. Suppose you want to translate the project to context. Then rather than translating all your references back to bib format, the bibltx module allows you to use the bbl file created for latex. You should not need to do this for new projects. \setupbibtex[database=semiotiche] Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf bizareness...
Re (1) Would somebody please de so kind to compile this minimal example with XeTeX and inform me what you see in the pdf's document properties for: title, subject, author and keywords ? The good looking characters or the messed up ones ? --- begin code --- \mainlanguage[fr] \setupinteraction[ title=ÀÂÆ ÇÉÈÊË ÎÏÔŒ ÙÜŸ, subtitle=àâæ çéèêë îïôœ ùûüÿ, author=àâæ ÀÂÆ, keyword=àâæ çéèêë îïôœ ùûüÿ] \starttext À Â Æ Ç É È Ê Ë Î Ï Ô Œ Ù Ü Ÿ à â æ ç é è ê ë î ï ô œ ù û ü ÿ \stoptext --- end code --- Thanks on beforehand, Alan 2008/6/27 Alan Stone [EMAIL PROTECTED]: Hi, - ConTeXt ver: 2008.06.22 17:38 MKII fmt: 2008.6.23 ( ctx minimal) - XeTeX, Version 3.1415926-2.2-0.999.1 (Web2C 7.5.6) When using (1) \setupinteraction[state=start, title={éèçàù}, subtitle={éèçàù}, author={éèçàù}, keyword={éèçàù}] the accented characters get al scrambled up in the pdf document properties fields while in the document itself all is ok. Qué passa ? (2) \pdfminorversion=5 (or whatever) gives ! Undefined control sequence. l.31 \pdfminorversion =5 ? ! Emergency stop. l.31 \pdfminorversion =5 What's the alternative ? Thanks, Alan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] texshow-web questions
As an eternal optimist, I often refer to texshow-web in the hope that I will find a function to help me, or a quick description of one that I already know. In most cases I end up reverting to searching the manuals and source code. I like the idea of texshow-web and I sometimes add notes to entries if I find our something interesting. I would be quite happy to add lots more, but I have some questions and suggestions for improvements which I think would help. 1) Is there a way of adding a function to the list? or can it be updated to include all the functions from the many macro packages included with the context distribution. For example, in recent discussion group threads I have found out about the \digits command and the \filename and \hyphenatedfilename commands, none of which is in texshow-web. I would have been happy to add notes on them if I could. 2) If I'm adding notes to a command, is it possible to add a URL link to a particular page in one of the manuals? This would great for looking up a command and going straight to the relevant entry in the relevant manual. Regards, Richard Stephens ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf bizareness...
I'm getting a bunch of ��ï symbols. On Fri, Jun 27, 2008 at 04:22:14PM +0200, Alan Stone wrote: Re (1) Would somebody please de so kind to compile this minimal example with XeTeX and inform me what you see in the pdf's document properties for: title, subject, author and keywords ? The good looking characters or the messed up ones ? --- begin code --- \mainlanguage[fr] \setupinteraction[ title=Ԍ, subtitle= , author= , keyword= ] \starttext \stoptext --- end code --- Thanks on beforehand, Alan 2008/6/27 Alan Stone [EMAIL PROTECTED]: Hi, - ConTeXt ver: 2008.06.22 17:38 MKII fmt: 2008.6.23 ( ctx minimal) - XeTeX, Version 3.1415926-2.2-0.999.1 (Web2C 7.5.6) When using (1) \setupinteraction[state=start, title={ }, subtitle={ }, author={ }, keyword={ }] the accented characters get al scrambled up in the pdf document properties fields while in the document itself all is ok. Qu passa ? (2) \pdfminorversion=5 (or whatever) gives ! Undefined control sequence. l.31 \pdfminorversion =5 ? ! Emergency stop. l.31 \pdfminorversion =5 What's the alternative ? Thanks, Alan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- Khaled Hosny Arabic localizer and member of Arabeyes.org team signature.asc Description: Digital signature ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Off-Topic: Down With Helvetica
Dear gang, Many of you -- Hello luigi ;-) -- may be interested in this mainstream media article on font design: http://www.nytimes.com/2008/06/26/technology/personaltech/26basics.html?emex=1214712000en=a2063db595baad4aei=5087%0A Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shi`i Studies Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] how to prevent document resize in acrobat reader when click on an ref object
HI! I'm often use \setupinteraction[state=start] \setupcolor[state=start] \starttext \placesomething[somewhere][ref]{caption} ... ... So in the text I refer to \in{something}[ref] so I can click on it in the resulting pdf so I get there. \stoptext The question is how to change the default behavior so acrobat not resizes the document on the screen when I'm clicking on the ref object. I think it is annoying changing back to the reading size I had before. Many thanks! Janneman ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf bizareness...
Thanks Khaled. In the meantime found http://wiki.contextgarden.net/PDF_Bookmarks_and_Headers#PDF_Headers so... --- begin code --- \mainlanguage[fr] \setupinteraction[ state=start, title={ÀÂÆ ÇÉÈÊË ÎÏÔŒ ÙÜŸ}, subtitle={àâæ çéèêë îïôœ ùûüÿ}, author={àâæ ÀÂÆ}, keyword={àâæ çéèêë îïôœ ùûüÿ}] \starttext À Â Æ Ç É È Ê Ë Î Ï Ô Œ Ù Ü Ÿ à â æ ç é è ê ë î ï ô œ ù û ü ÿ \stoptext --- end code --- Still scramled pdf headers. Looking for an enlightened and enlightening soul... Alan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf bizareness...
FYI, log file in attachment. There's a ( for me obscure ) warning message... Have a good weekend everybody, Alan minifr.log Description: Binary data ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to prevent document resize in acrobat reader when click on an ref object
On Fri, 27 Jun 2008, Jan-Erik Hägglöf wrote: HI! I'm often use \setupinteraction[state=start] \setupcolor[state=start] \starttext \placesomething[somewhere][ref]{caption} ... ... So in the text I refer to \in{something}[ref] so I can click on it in the resulting pdf so I get there. \stoptext The question is how to change the default behavior so acrobat not resizes the document on the screen when I'm clicking on the ref object. I think it is annoying changing back to the reading size I had before. Yes, I find that annoying too. However, it is easy to change \setupinteraction[focus=standard] Aditya___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] texshow-web questions
[EMAIL PROTECTED] wrote: As an eternal optimist, I often refer to texshow-web in the hope that I will find a function to help me, or a quick description of one that I already know. In most cases I end up reverting to searching the manuals and source code. I like the idea of texshow-web and I sometimes add notes to entries if I find our something interesting. I would be quite happy to add lots more, but I have some questions and suggestions for improvements which I think would help. 1) Is there a way of adding a function to the list? or can it be updated to include all the functions from the many macro packages included with the context distribution. For example, in recent discussion group threads I have found out about the \digits command and the \filename and \hyphenatedfilename commands, none of which is in texshow-web. I would have been happy to add notes on them if I could. 2) If I'm adding notes to a command, is it possible to add a URL link to a particular page in one of the manuals? This would great for looking up a command and going straight to the relevant entry in the relevant manual. if someone finda a command that is not in there and send me the correct xml definition i can add it - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] pdf bizareness...
Alan Stone wrote: FYI, log file in attachment. There's a ( for me obscure ) warning message... you mean ... [1.1] ** WARNING ** Could not open config file dvipdfmx.cfg. stdin - minifr.pdf [1] 5366 bytes written probably harmless Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] searchable cyrillic in PDF files
Hans Hagen wrote: Oleg Kolosov wrote: Hans Hagen wrote: Oleg Kolosov wrote: Hello! I'm trying to generate searchable pdf with cyrrillic glyphs with the following: \enableregime[utf] \mainlanguage[ru] \setupencoding[default=t2a] \useencoding[pfr] \usepdffontresource t2a \usetypescript[pscyr][\defaultencoding] % type-pscyr is my own typescript file \setupbodyfont[pscyr,14pt] also tried with: \startencoding[t2a] \usepdffontresource t2a \stopencoding It seems that \usepdffontresource does nothing. I see pdfr-def loaded in log, but not pdfr-t2a. \input pdfr-t2a (or pdfr-ec) says that \startpdffontresource is undefined command. I've created pdfr-t2a.tex by replacing definitions in pdfr-ec with ones from cmap latex package (found in file t2a.cmap). I'm using ConTeXt mkII since mkIV is in active development. Tried also with ec as default encoding with the same result (pdfr-ec.tex is not loaded). Please help me create header for minimal file which will generate searchable PDF. pdftex does it itself (i.e. create the vectors) using pdfr-def.tex (unless i did something wrong) Hans It's unlikely. I've tested it with minimal file and english text is indeed searchable, but cyrillic is not, with copy-paste I get some strange symbols. I'm using type1 fonts from PSCyr package with my own typescript, does this matter? I've attached typescript file just in case (it's still incomplete but works fine for me). Maybe I miss some definition or option? BTW cyrillic in PDF TOC works fine (with inclusion of spec-tst.tex). can you check if the file has the right entris for your font? pdfr-def.tex the old mechanism is obsolete so pdfr-t2a will not do anything Hans Codes seem to be in place but doesn't match actual font in T2A encoding. For ex. I have cyrillic capital a in font on 00C1 where in pdfr-def this is Aacute. According to enco-utf my 00C1 in font should map to 0410 position (I hope this is understandable description). Maybe there is some switch to enable such mapping? I don't understand these encoding/mapping issues enough to create necessary table myself. Maybe you can provide some example, so I will be able to help? P. S. Sorry for late response. -- Best Regards, Oleg Kolosov ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Web links
If anyone is interested in a list of web links that I update roughly quarterly and use both professionally and personally, s/he is welcome to visit http://yoel.info/links.htm The links have lots of computing and humanities resources, among others. Charles ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___