Re: [NTG-context] ConTexT conversion to html/rtf/odt
On Sat, Nov 6, 2010 at 20:33, Manfred Lotz wrote: Tried htcontext test.tex and got: ! Undefined control sequence. argument dl class=dd-\itemlevel ... l.6 \item bla bla ? Perhaps there is some stupidity from my side. If yes I appreciate any corrections. If no then htcontext from package tex4ht doesn't really work for ConTeXt and then I would like to know what other alternatives I have. Also regarding rtf or/and odt. There is a group of maintainers (http://tug.org/mailman/listinfo/tex4ht), but the author who was the big hacker passed away not that long ago. You may ask on the mailing list, but there is no guarantee ... tex4ht would break each time when Hans does some bigger changes in the core and this is probably the case now as well. See Aditya's answer about the rest ... Mojca ___ 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 ___
Re: [NTG-context] ConTexT conversion to html/rtf/odt
On Sat, Nov 6, 2010 at 9:00 PM, Aditya Mahajan adit...@umich.edu wrote: On Sat, 6 Nov 2010, Manfred Lotz wrote: work for ConTeXt and then I would like to know what other alternatives I have. Also regarding rtf or/and odt. Since you do not need any fancy features, a simpler option is to use markdown as your starting format and use pandoc to convert it to context, html, and odt. However, creating even slightly complicated tables in markdown is a pain, unless your editor supports an ascii table mode. This is indeed a decent solution, one which worked for typesetting my thesis in PDF and HTML. (You get RTF and ODT for free, assuming it doesn't take much glue to get it to look the way you want). I had to write a wrapper script to do regular expression parsing to take care of edge cases (pandoc is written in Haskell, so to 'scripting' the application requires working in that language; my choice was to do a more hackish approach that used a Ruby script that generated multiple markdown files) Aditya, do perhaps know one of these editors with ASCII table mode? 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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 ___
Re: [NTG-context] ConTexT conversion to html/rtf/odt
On Sat, Nov 6, 2010 at 10:00 PM, Aditya Mahajan adit...@umich.edu wrote: On Sat, 6 Nov 2010, Manfred Lotz wrote: I'm in a situation where I have to do some documentation which should be available in html and rtf/odt (would be nice to have). There is an experimental feature of converting ConTeXt to XML. You can then process XML using standard XML tools to get HTML. Not so experimental. PDF/A was tested (I needs more testing with new version of AdobeAcrobat) -- luigi ___ 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 ___
Re: [NTG-context] ConTexT conversion to html/rtf/odt
On Sat, 6 Nov 2010 17:00:38 -0400 (EDT) Aditya Mahajan adit...@umich.edu wrote: On Sat, 6 Nov 2010, Manfred Lotz wrote: I'm in a situation where I have to do some documentation which should be available in html and rtf/odt (would be nice to have). There is an experimental feature of converting ConTeXt to XML. You can then process XML using standard XML tools to get HTML. I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. \setupbackend[export=yes] ! Undefined control sequence. l.1 \setupbackend [export=yes] This doesn't work for me. Perhaps my context from TeXLive 2010 is too old. Not quite sure about that. Since you do not need any fancy features, a simpler option is to use markdown as your starting format and use pandoc to convert it to context, html, and odt. However, creating even slightly complicated tables in markdown is a pain, unless your editor supports an ascii table mode. Thanks for pointing me to pandoc. On the one hand it works very well but on the other hand it (markdown) seems a bit too rudimentary. -- Manfred ___ 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 ___
Re: [NTG-context] ConTexT conversion to html/rtf/odt
On Sun, Nov 7, 2010 at 11:54 AM, Manfred Lotz manfred.l...@arcor.de wrote: On Sat, 6 Nov 2010 17:00:38 -0400 (EDT) Aditya Mahajan adit...@umich.edu wrote: On Sat, 6 Nov 2010, Manfred Lotz wrote: I'm in a situation where I have to do some documentation which should be available in html and rtf/odt (would be nice to have). There is an experimental feature of converting ConTeXt to XML. You can then process XML using standard XML tools to get HTML. I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. \setupbackend[export=yes] ! Undefined control sequence. l.1 \setupbackend [export=yes] This doesn't work for me. Perhaps my context from TeXLive 2010 is too old. Not quite sure about that. Yes, can be. Usually you should use the minimals, but with tlcontrib --- see http://tlcontrib.metatex.org/ --- thigs are changing. Mojca ? -- luigi ___ 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 ___
Re: [NTG-context] ConTexT conversion to html/rtf/odt
On 7-11-2010 11:54, Manfred Lotz wrote: On Sat, 6 Nov 2010 17:00:38 -0400 (EDT) Aditya Mahajanadit...@umich.edu wrote: On Sat, 6 Nov 2010, Manfred Lotz wrote: I'm in a situation where I have to do some documentation which should be available in html and rtf/odt (would be nice to have). There is an experimental feature of converting ConTeXt to XML. You can then process XML using standard XML tools to get HTML. I do not need any fancy stuff, just simple things: ordered, unordered lists, verbatim, tables etc. \setupbackend[export=yes] ! Undefined control sequence. l.1 \setupbackend [export=yes] This doesn't work for me. Perhaps my context from TeXLive 2010 is too old. Not quite sure about that. it was added after tex live 2010 was frozen (this year we froze rather early not knowing that there would be a long delay before 2010 showed up; also we had to freeze in sync with luatex) 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 ___
[NTG-context] \margintext
I have two questions to \margintext \setupinmargin[left][separator=:,width=2cm,line=2] \starttext %foo \margintext[left]{margin text} \input knuth \stoptext this works fine, but when I uncomment the line with %foo, then the marginal note is placed in second line of the following paragraph. Why? Must \margintext always be the first statement in a paragraph? I do not understand the meaning of the optional argument separator? TeXLive2010 with tlcontrib Herbert ___ 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 ___
[NTG-context] TEI XML
Hi list, used the example on the wiki (http://wiki.contextgarden.net/TEI_xml), but I didn't get any correct output. I used Mark IV. I want to use TEI for an project and use ConTeXt for the specific output. Is it a good choice? Daniel ___ 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 ___
[NTG-context] helping on Wiki Command Reference
Hi, would it be useful to write examples in the Wiki Command Reference manual, or will there be some automatism that imports that information from some other source? Most keywords have empty descriptions. Should users fill them in? Is there a reliable and complete reference for the commands somewhere? Kind regards, [1] http://wiki.contextgarden.net/Category:Reference/en -- Jonas Stein n...@jonasstein.de ___ 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 ___
Re: [NTG-context] TEI XML
On 7-11-2010 7:19, Daniel Grycman wrote: Hi list, used the example on the wiki (http://wiki.contextgarden.net/TEI_xml), but I didn't get any correct output. I used Mark IV. I want to use TEI for an project and use ConTeXt for the specific output. Is it a good choice? sure, but you need to map tei elements onto something context which is not different from other xml mappings 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 ___
[NTG-context] context export
Hi Hans, On Sun, 07 Nov 2010 16:23:37 +0100 Hans Hagen pra...@wxs.nl wrote: Hi Manfred, some reading ... it should not be to hard to map the xml onto html ... relevant details are in attributes Hmm, but I would need to have a dtd or schema file in order write a transformation (xslt or so) to html. The other possibility would be to make the html creation an iterative process along the creation of the context document. I'd would prefer the first possibility, though. Instead of using xslt I also could code the transformation in Lua. What xml lib do you recommend to use in Lua? Currently, I have no time to code the xml -- htmp conversion. However, considering above ideas I could start with markdown as discussed in the other thread which has limitations but gives me a context source for free as a starting point. -- Thanks, Manfred ___ 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 ___
[NTG-context] \startmode and \startcomment inside of \def
Hi, I would like to define something like this: \def\startSolution{\startmode[solutions]...} \def\stopSolution{...\stopmode} But when I use \startSolution and \stopSolution, and mode solutions isn't enabled, I get something like Runaway argument? aaa \stopSolution \stoptext ! File ended while scanning use of \dostopmode. system error on line 0 in file : File ended while scanning use of \dostopmode ... What's the proper way of doing this? -- Vedran Miletić ___ 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 ___
Re: [NTG-context] \startmode and \startcomment inside of \def
Am 07.11.2010 um 19:42 schrieb Vedran Miletić: Hi, I would like to define something like this: \def\startSolution{\startmode[solutions]...} \def\stopSolution{...\stopmode} But when I use \startSolution and \stopSolution, and mode solutions isn't enabled, I get something like Runaway argument? aaa \stopSolution \stoptext ! File ended while scanning use of \dostopmode. system error on line 0 in file : File ended while scanning use of \dostopmode ... What's the proper way of doing this? Use \startmode[...] ... \stopmode in your document without your own Solution environment or define the environment as \definebuffer[Solution][local=yes] \startmode[solutions] \setupbuffer[Solution][local=no] \stopmode \starttext ... \startSolution solution \stopSolution ... \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 ___
Re: [NTG-context] \startmode and \startcomment inside of \def
2010/11/7 Wolfgang Schuster schuster.wolfg...@googlemail.com Am 07.11.2010 um 19:42 schrieb Vedran Miletić: Hi, I would like to define something like this: \def\startSolution{\startmode[solutions]...} \def\stopSolution{...\stopmode} But when I use \startSolution and \stopSolution, and mode solutions isn't enabled, I get something like Runaway argument? aaa \stopSolution \stoptext ! File ended while scanning use of \dostopmode. system error on line 0 in file : File ended while scanning use of \dostopmode ... What's the proper way of doing this? Use \startmode[...] ... \stopmode in your document without your own Solution environment or define the environment as \definebuffer[Solution][local=yes] \startmode[solutions] \setupbuffer[Solution][local=no] \stopmode \starttext ... \startSolution solution \stopSolution ... \stoptext How would I then do something like this? \def\startSolution{\startmode[solutions]\startframedtext} \def\stopSolution{\stopframedtext\stopmode} -- Vedran Miletić ___ 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 ___
Re: [NTG-context] TEI XML
On 7 Nov 2010 19:19:11 +0100 Daniel Grycman daniel.gryc...@rub.de wrote: Hi list, used the example on the wiki (http://wiki.contextgarden.net/TEI_xml), but I didn't get any correct output. I used Mark IV. I want to use TEI for an project and use ConTeXt for the specific output. Is it a good choice? Daniel If you want a meaningful answer, you must give meaningful information. I didn't get any correct output. is not meaningful information. All I can reply to this is works here. Thomas ___ 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 ___
Re: [NTG-context] \startmode and \startcomment inside of \def
Am 07.11.2010 um 20:49 schrieb Vedran Miletić: How would I then do something like this? \def\startSolution{\startmode[solutions]\startframedtext} \def\stopSolution{\stopframedtext\stopmode} \startmode[solution] \setupbuffer[Solution][local=no,before=\startframedtext,after=\stopframedtext] \stopmode 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 ___
Re: [NTG-context] TEI XML
Hi Thomas, the pdf output consists only of the text with no structure in it, like linenumbering for example. Daniel Am 07.11.10 21:06 schrieb Thomas Schmitz unter tschm...@uni-bonn.de: On 7 Nov 2010 19:19:11 +0100 Daniel Grycman daniel.gryc...@rub.de wrote: Hi list, used the example on the wiki (http://wiki.contextgarden.net/TEI_xml), but I didn't get any correct output. I used Mark IV. I want to use TEI for an project and use ConTeXt for the specific output. Is it a good choice? Daniel If you want a meaningful answer, you must give meaningful information. I didn't get any correct output. is not meaningful information. All I can reply to this is works here. Thomas __ _ 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 __ _ ___ 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 ___
Re: [NTG-context] TEI XML
Hi Daniel, On Sun, 07 Nov 2010 13:23:32 -0700, Daniel Grycman daniel.gryc...@rub.de wrote: Hi Thomas, the pdf output consists only of the text with no structure in it, like linenumbering for example. What Thomas means is: give us a minimal sample file so others can reproduce the apparent error. Also give your MkIV version. Best wishes Idris Am 07.11.10 21:06 schrieb Thomas Schmitz unter tschm...@uni-bonn.de: On 7 Nov 2010 19:19:11 +0100 Daniel Grycman daniel.gryc...@rub.de wrote: Hi list, used the example on the wiki (http://wiki.contextgarden.net/TEI_xml), but I didn't get any correct output. I used Mark IV. I want to use TEI for an project and use ConTeXt for the specific output. Is it a good choice? Daniel If you want a meaningful answer, you must give meaningful information. I didn't get any correct output. is not meaningful information. All I can reply to this is works here. -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TEI XML
On Nov 7, 2010, at 9:23 PM, Daniel Grycman wrote: Hi Thomas, the pdf output consists only of the text with no structure in it, like linenumbering for example. Daniel Oh wait, now I see: you were trying to use the entire file structure on the wiki, the example text and the style file, and weren't getting any output. I'm sorry, I haven't finished this yet, so this won't work in the state that it's in. But just to be clear: this is just an example. If you have your proper project, you will need to write your own conversion. If you want to see that/how it works, I can send you an example that does work off-list. Thomas ___ 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 ___
Re: [NTG-context] ConTexT conversion to html/rtf/odt
On Sun, 7 Nov 2010, John Haltiwanger wrote: Aditya, do perhaps know one of these editors with ASCII table mode? Emacs org mode. Nothing else even comes close to it. There are a few scripts that will convert csv to similar to rst tables. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startmode and \startcomment inside of \def
On Sun, 7 Nov 2010, Wolfgang Schuster wrote: Am 07.11.2010 um 20:49 schrieb Vedran Miletić: How would I then do something like this? \def\startSolution{\startmode[solutions]\startframedtext} \def\stopSolution{\stopframedtext\stopmode} \startmode[solution] \setupbuffer[Solution][local=no,before=\startframedtext,after=\stopframedtext] \stopmode In general, I agree with Wolfgang. It is better to redefine the macro at an outer level. You can even do: \defineframedtext[Solution] \startnotmode[solution] \definebuffer[Solution][local=yes] \stopnotmode However, in the few cases that you actually need to check for a mode inside a macro, you can use \doifmode ... etc. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] context export
On Sun, 7 Nov 2010, Manfred Lotz wrote: Hi Hans, On Sun, 07 Nov 2010 16:23:37 +0100 Hans Hagen pra...@wxs.nl wrote: Hi Manfred, some reading ... it should not be to hard to map the xml onto html ... relevant details are in attributes Hmm, but I would need to have a dtd or schema file in order write a transformation (xslt or so) to html. No. I think that Hans meant that you should be able to generate an html document directly out of context (instead of the xml document that is currently generated). The other possibility would be to make the html creation an iterative process along the creation of the context document. I'd would prefer the first possibility, though. Another possibility is to just write html (rather xhtml) and process it directly in ConTeXt. See the XML manual and Thomas's MyWay on processing XHML. Instead of using xslt I also could code the transformation in Lua. What xml lib do you recommend to use in Lua? I don't know about the lua librarties. Currently, I have no time to code the xml -- htmp conversion. In the long run, if you want multiple formats for a document that is slightly complicated, translating the input to xml is the easiest solution. However, considering above ideas I could start with markdown as discussed in the other thread which has limitations but gives me a context source for free as a starting point. You can also consider richer ascii markups: rst and asciidoc. Unfortunately, pandoc only has partial support for rst, and the default tools for rst and asciidoc do not export to context. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TEI XML
Hi Thomas, On Sun, 07 Nov 2010 13:38:18 -0700, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: If you want to see that/how it works, I can send you an example that does work off-list. Why not post it to the wiki, even if it needs to be labeled in progress etc ... can always use tuftes etc if it's a matter of propriety etc ... Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \Cap
The documentation says, that \cap converts the first letter of the word into a capital letter ... But it didn't \starttext \Cap{foo} \stoptext TeXLive and TLContrib Herbert ___ 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 ___
Re: [NTG-context] TEI XML
Hi Idris and all, I have finished the example on the wiki so it will give proper output, even if a few things are still missing, but the most important stuff is there. My problem is that the real file contains Greek, and I want this to work for everyone, even without Greek fonts, that's why i need to rewrite some parts of it... All best Thomas On Nov 7, 2010, at 10:16 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: Hi Thomas, On Sun, 07 Nov 2010 13:38:18 -0700, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: If you want to see that/how it works, I can send you an example that does work off-list. Why not post it to the wiki, even if it needs to be labeled in progress etc ... can always use tuftes etc if it's a matter of propriety etc ... Best wishes Idris -- ___ 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 ___
Re: [NTG-context] TEI XML
Hi Thomas, On Sun, 07 Nov 2010 14:41:11 -0700, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: I have finished the example on the wiki so it will give proper output, even if a few things are still missing, but the most important stuff is there. Thanks! I've been thinking of reworking CritTexT in terms of xml so I'm interested ... My problem is that the real file contains Greek, and I want this to work for everyone, even without Greek fonts, We don't have a free default Greek for MkIV? I think Scheherezade from SIL is default for Arabic (or should be anyway -- I think Khaled made some improvements) and is fully unicode etc. Does SIL or someone else have a similar font we can use for Greek? Best wishes Idris -- Professor Idris Samawi Hamid, Editor-in-Chief International Journal of Shīʿī 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] TEI XML
On Nov 7, 2010, at 10:47 PM, Idris Samawi Hamid ادريس سماوي حامد wrote: We don't have a free default Greek for MkIV? I think Scheherezade from SIL is default for Arabic (or should be anyway -- I think Khaled made some improvements) and is fully unicode etc. Does SIL or someone else have a similar font we can use for Greek? Best wishes Idris We have SIL gentium, which is very nice and in the minimals. So yes, I could have just put Philostratus in Greek up there Thomas ___ 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 ___
Re: [NTG-context] \Cap
Am 07.11.2010 22:22, schrieb Herbert Voss: The documentation says, that \cap converts the first letter of the word into a capital letter ... But it didn't \starttext \Cap{foo} \stoptext TeXLive and TLContrib using the code from core-fnt.mkii it works with mkiv: \unexpanded\def\CAPPED#1% {{\def\\##1{\smallcapped{##1}}#1}} \unexpanded\def\SmallCapped#1% {\CAPPED{\\#1}} \def\Cap{\mathortext\normalCap\SmallCapped} \starttext \Cap{foo bar baz} \CAP{foo \\bar \\baz} \stoptext Herbert ___ 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 ___