Re: [NTG-context] Suggestion
Anyway, I highly respect the ConTeXt and LuaTeX's work. But if Taco and Hans can : - use a proper regexp library (like lrexlib?), not the silly lpeg PEG are not silly at all. PEG *include* regex, but not viceversa, and it seems to have the same power of CFG, so you can build a parser for pratically anything (and you can not do this with regex) . Perhaps the reverse sentence has more sense: drop the silly (?) regex, use the new peg. For what I know the reverse side of lpeg is that a file must be loaded in memory completly. - more powerful multi columns (maybe not through gird typesetting?) Maybe columnset can do more, or we need more examples from hans . - full support of xslt:) why not xquery too? Are mkiv supposed to be a full xml processor ? A bit of xslt can be done with lpeg (and not regex), but usually it's better to prepare a xml to typeset before processing with mkiv (use the right tool for the right task). Things might be a lot better... and worse too . Things are now a lot better than before ,IMMO . -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Suggestion
On Fri, Jun 19, 2009 at 2:29 PM, luigi scarsoluigi.sca...@gmail.com wrote: Anyway, I highly respect the ConTeXt and LuaTeX's work. But if Taco and Hans can : - use a proper regexp library (like lrexlib?), not the silly lpeg PEG are not silly at all. PEG *include* regex, but not viceversa, and it seems to have the same power of CFG, so you can build a parser for pratically anything (and you can not do this with regex) . Perhaps the reverse sentence has more sense: drop the silly (?) regex, use the new peg. For what I know the reverse side of lpeg is that a file must be loaded in memory completly. Well, I don't like to know what kind of thing is superior ... micro kernel is superior than monolithic kernel, but... The key reason for this is, more people are familiar with regexp. so if you can build a 100% compatible regexp module on top of lpeg in ConTeXt, it will be ok, or even better... - more powerful multi columns (maybe not through gird typesetting?) Maybe columnset can do more, or we need more examples from hans . yes. but columnset requires more strict rules (e.g., grid stuffs) why not build a version of columnset on top of normal TeX page building? (grid can be a option, should not be a requirement) - full support of xslt:) why not xquery too? Are mkiv supposed to be a full xml processor ? No. I mean the user can have an option to convert an xml (that is, a context document) using (maybe external) xslt tool. This won't be too difficult to implement ... A bit of xslt can be done with lpeg (and not regex), a bit == far from all but usually it's better to prepare a xml to typeset before processing with mkiv (use the right tool for the right task). Things might be a lot better... and worse too . Things are now a lot better than before ,IMMO . it should be. -- 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Suggestion
On Fri, Jun 19, 2009 at 9:06 AM, Yue Wang yuleo...@gmail.com wrote: On Fri, Jun 19, 2009 at 2:29 PM, luigi scarsoluigi.sca...@gmail.com wrote: Anyway, I highly respect the ConTeXt and LuaTeX's work. But if Taco and Hans can : - use a proper regexp library (like lrexlib?), not the silly lpeg PEG are not silly at all. PEG *include* regex, but not viceversa, and it seems to have the same power of CFG, so you can build a parser for pratically anything (and you can not do this with regex) . Perhaps the reverse sentence has more sense: drop the silly (?) regex, use the new peg. For what I know the reverse side of lpeg is that a file must be loaded in memory completly. Well, I don't like to know what kind of thing is superior ... micro kernel is superior than monolithic kernel, but... Wrong paragon . From *mathematical* point of view, the set of all regular languages are a subset of PEG languages . PEG are more powerful than regex --it's not an opinion, it's a fact. The key reason for this is, more people are familiar with regexp. so if you can build a 100% compatible regexp module on top of lpeg in ConTeXt, it will be ok, or even better... We already have lua for simple string manipulation, and lpeg for other stuffs . Again we don't need regex . - full support of xslt:) why not xquery too? Are mkiv supposed to be a full xml processor ? No. I mean the user can have an option to convert an xml (that is, a context document) using (maybe external) xslt tool. This won't be too difficult to implement ... hmm, external tools call for platform /SO issue ... Personally xsltproc in linux it's OK -- I don't need an integration , I prefear separations of concerns. A bit of xslt can be done with lpeg (and not regex), a bit == far from all It's enough for simple xml processing . If you need more, are you sure that you are using the right tool ? Things might be a lot better... and worse too . Things are now a lot better than before ,IMMO . it should be. It is . -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] math and palatino
Idris Samawi Hamid ? ? wrote: http://www.ctan.org/get/fonts/Asana-Math/Asana-Math.otf + This is LuaTeX, Version beta-0.41.0-2009061016 I reported this to Taco so we'll see what he says... That version of Asana works for me with a small test file, using This is LuaTeX, Version beta-0.41.0-2009061815 (Web2C 2009) but it could be a problem with a specific glyph, so can you send a minimal test file? Best wishes, Taco ___ 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] On creating my own fonts
Maurício wrote: I've been doing some searching on how to create my own fonts. If possible, I would like to be able to write my own program to at least draw glyphs, even if I have to resort to other tools to describe hinting, kerning and ligatures. My current knowledge is this. I read that OpenType fonts are actually Type 1 fonts embedded in an archive. Not exactly, and there is a much simpler way to create fonts, by using the open source font editor fontforge to do the hard work. http://fontforge.sourceforge.net/ There are two options: you can use the python scripting support of fontforge to generate fonts directly (all font types !) or you can create an SFD file (fontforge's internal storage format, which is just plain ASCII) and use fontforge itself for the final tuning. Best wishes, Taco ___ 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] On creating my own fonts
On Fri, Jun 19, 2009 at 10:13 AM, Taco Hoekwater t...@elvenkind.com wrote: Maurício wrote: I've been doing some searching on how to create my own fonts. If possible, I would like to be able to write my own program to at least draw glyphs, even if I have to resort to other tools to describe hinting, kerning and ligatures. My current knowledge is this. I read that OpenType fonts are actually Type 1 fonts embedded in an archive. Not exactly, and there is a much simpler way to create fonts, by using the open source font editor fontforge to do the hard work. http://fontforge.sourceforge.net/ There are two options: you can use the python scripting support of fontforge to generate fonts directly (all font types !) or you can create an SFD file (fontforge's internal storage format, which is just plain ASCII) and use fontforge itself for the final tuning. also really cool are http://unifiedfontobject.org/ http://www.robofab.com/ http://letterror.com/ -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Suggestion
The key reason for this is, more people are familiar with regexp. so if you can build a 100% compatible regexp module on top of lpeg in ConTeXt, it will be ok, or even better... There *is* a regexp module on top of LPeg. It's written by Roberto Ierusalimschy, the Lua and LPeg author. Just use it if you want. http://www.inf.puc-rio.br/~roberto/lpeg/re.html Arthur ___ 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] On creating my own fonts
On Fri, Jun 19, 2009 at 03:20, Maurício wrote: I've been doing some searching on how to create my own fonts. If possible, I would like to be able to write my own program to at least draw glyphs, even if I have to resort to other tools to describe hinting, kerning and ligatures. My current knowledge is this. I read that OpenType fonts are actually Type 1 fonts embedded in an archive. So I used this 't1disasm' tool I found after wikipedia article on postscript fonts and used it to decode one of ConTeXt minimal distribution font file into a nice to read text file that looks like the transcript below, and it seems to be something I could easily understand if I find a reference. I would like to ask you if I'm in the proper direction. There are some issues I can't understand, like how can I make OpenType fonts out of Type 1 fonts when the later are supposed to only contain 256 characters (aren't they?). Or how to understand this text file format so I can write my own glyphs. Do you think I'm in the right direction. Do you think there's an easier or better way if I want to create fonts without using existing graphical tools? Without trying to answer your question ... Just a few references that I think you should read: 1.) If you want to understand the code that you have provided at the bottom of your document, start with http://www.math.ubc.ca/~cass/graphics/manual/ and http://www.adobe.com/devnet/postscript/pdfs/PLRM.pdf. Though it's by no means essential to understand. You can just as well use metapost as a programming language and that one could generate glyph shapes in PostScript for you. 2.) It makes sense to read the MetaFont Book to get some nice ideas, or at least browse through it. 3.) As Taco suggested, it's probably best to use fontforge, or maybe MetaType1 (if you can figure out how to use it). Once you create glyph shapes with some tool (that tool could be metapost if you really want to program glyphs), you can use another tool (like fontforge or some commercial program) to create a font out of the shapes. 4.) Be prepared to invest a lot of time ... 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Example of passing unexpanded text between \startfoo ... \stopfoo into Lua?
Hi Kevin, A colleague and I are experimenting with strategies to implement a literate programming module for ConTeXt, and we'd like to have something like Im not exactly sure what you're trying to achieve, but perhaps you could do this using a prettyprinter? A pretty printer gets passed each line in the \startfoo \stopfoo block and can change the line in any way it wants (including removing it). IIRC there is some minimal general preprocessing done, something with whitespace I think. \startcodeblock[language=c,file=foo.c, etc.][blockname] // This is the main routine... int main() { return 0; } \stopcodeblock Perhaps you could say a bit about what the above should output? Gr. Matthijs 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 ___
Re: [NTG-context] On creating my own fonts
On Fri, Jun 19, 2009 at 11:43:44AM +0200, Mojca Miklavec wrote: 4.) Be prepared to invest a lot of time ... Tell me about it, I started three years ago and I'm nowhere close to my original goal :) Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer 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 ___
Re: [NTG-context] On creating my own fonts
On Thu, Jun 18, 2009 at 10:20:43PM -0300, Maurício wrote: I've been doing some searching on how to create my own fonts. If possible, I would like to be able to write my own program to at least draw glyphs, even if I have to resort to other tools to describe hinting, kerning and ligatures. I think you can use MetaPost to draw the glyphs, if you are comfortable for that, then you can write fontforge scripts to import those glyphs into a font (look at mftrace for hints, it does essentially the same thing but with MetaFont+mtrace). FontForge is very powerful font editor with the widest cover of OpenType specification, and can output many font formates plus many interesting features. Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer 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 ___
Re: [NTG-context] On creating my own fonts
On Fri, Jun 19, 2009 at 3:20 AM, Maurício briqueabra...@yahoo.com wrote: I've been doing some searching on how to create my own fonts. If possible, I would like to be able to write my own program to at least draw glyphs, even if I have to resort to other tools to describe hinting, kerning and ligatures. immo, 1) draw by hand some glyphs, so you have an objective piece of paper of what you want 2) search on Internet for a font that looks like what you (think) to want 3) starting from this font, make some modifications of glyphs that you have drawn with fontforge or metapost With fontforge, you can even make countours from images , and with a bit of hack from MetaFont too. -- 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] New modules
Hi all, to keep it short, I put a few new modules on the garden and my collection of typescripts too (Mojca added all of them to the minimals), the complete list is: • t-algorithmic • t-fixme • t-simplefonts • t-typescripts 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 ___